feat: 大规模扩充至212个模块/175K行代码 — 覆盖android/java/javax/org/dalvik全包

- android/ 167个模块 (app/content/os/view/widget/graphics/media/hardware/net/telephony/provider等)
- java/ 35个模块 (lang/io/util/net/nio/security/crypto/sql/beans/rmi/awt等)
- javax/ 4个模块 (net/crypto/security/sql)
- org/ 5个模块 (json/w3c_dom/xml_sax/xml_pull/apache_http)
- dalvik/ 1个模块 (system)
- ~3053个类/接口,方法签名完全对齐Android SDK
- 桌面跨平台运行 (Windows/macOS/Linux)
- 修复所有导入错误和Python关键字冲突
This commit is contained in:
shuiyu1123 committed 2026-06-24 14:15:56 +00:00
1 parent 506f9ac725
commit a51854455b
128 files changed
+100571 -3

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
"""
Java java.nio.ByteOrder - BIG_ENDIAN, LITTLE_ENDIAN
"""
from __future__ import annotations
from .._core import Stub
import sys as _sys
__all__ = ["ByteOrder"]
class ByteOrder(Stub):
"""java.nio.ByteOrder"""
def __init__(self, name):
super().__init__()
self._name = name
@staticmethod
def nativeOrder():
if _sys.byteorder == "little":
return ByteOrder.LITTLE_ENDIAN
return ByteOrder.BIG_ENDIAN
def toString(self):
return self._name
BIG_ENDIAN = None
LITTLE_ENDIAN = None
ByteOrder.BIG_ENDIAN = ByteOrder("BIG_ENDIAN")
ByteOrder.LITTLE_ENDIAN = ByteOrder("LITTLE_ENDIAN")