isAndroid0() — netty Function Reference
Architecture documentation for the isAndroid0() function in PlatformDependent0.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3ff615de_7832_58ad_d48c_9ac0f11e5783["isAndroid0()"] be4c38f2_d236_e498_c295_1033d2617879["PlatformDependent0"] 3ff615de_7832_58ad_d48c_9ac0f11e5783 -->|defined in| be4c38f2_d236_e498_c295_1033d2617879 2cae8627_cae5_091a_fce1_110ca16bdb9c["equals()"] 3ff615de_7832_58ad_d48c_9ac0f11e5783 -->|calls| 2cae8627_cae5_091a_fce1_110ca16bdb9c style 3ff615de_7832_58ad_d48c_9ac0f11e5783 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/PlatformDependent0.java lines 1131–1145
private static boolean isAndroid0() {
// Idea: Sometimes java binaries include Android classes on the classpath, even if it isn't actually Android.
// Rather than check if certain classes are present, just check the VM, which is tied to the JDK.
// Optional improvement: check if `android.os.Build.VERSION` is >= 24. On later versions of Android, the
// OpenJDK is used, which means `Unsafe` will actually work as expected.
// Android sets this property to Dalvik, regardless of whether it actually is.
String vmName = SystemPropertyUtil.get("java.vm.name");
boolean isAndroid = "Dalvik".equals(vmName);
if (isAndroid) {
logger.debug("Platform: Android");
}
return isAndroid;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does isAndroid0() do?
isAndroid0() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/PlatformDependent0.java.
Where is isAndroid0() defined?
isAndroid0() is defined in common/src/main/java/io/netty/util/internal/PlatformDependent0.java at line 1131.
What does isAndroid0() call?
isAndroid0() calls 1 function(s): equals.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free