- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 34 for isAndroid (0.06 seconds)
-
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformRegistry.kt
return Jdk9Platform.buildIfSupported() ?: Platform() } throw IllegalStateException("Expected Android API level 21+ but was ${Build.VERSION.SDK_INT}") } actual val isAndroid: Boolean get() = true var applicationContext: Context? get() = (Platform.get() as? ContextAwarePlatform)?.applicationContext set(value) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 1.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeJvmTest.kt
import okhttp3.internal.platform.Platform.Companion.isAndroid import org.junit.jupiter.api.Test class MediaTypeJvmTest : MediaTypeGetTest() { override fun MediaType.charsetName(): String? = this.charset()?.name() @Test fun testCharsetNameIsDoubleQuotedAndSingleQuotedAndroid() { val mediaType = "text/plain;charset=\"'utf-8'\"".toMediaType() if (isAndroid) { // Charset.forName("'utf-8'") == UTF-8
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
file = out.getFile(); assertEquals(dataSize, file.length()); assertTrue(file.exists()); assertThat(file.getName()).contains("FileBackedOutputStream"); if (!isAndroid() && !isWindows()) { PosixFileAttributes attributes = java.nio.file.Files.getFileAttributeView(file.toPath(), PosixFileAttributeView.class) .readAttributes();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:04:26 GMT 2026 - 8K bytes - Click Count (0) -
okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/PlatformRegistry.kt
val jdkWithJettyBoot = Jdk8WithJettyBootPlatform.buildIfSupported() if (jdkWithJettyBoot != null) { return jdkWithJettyBoot } return Platform() } actual val isAndroid: Boolean get() = false
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu May 22 14:39:30 GMT 2025 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/TestPlatform.java
/** * @author Chris Povirk */ @GwtCompatible @NullUnmarked final class TestPlatform { static boolean intsCanGoOutOfRange() { return false; } static boolean isAndroid() { return System.getProperty("java.runtime.name", "").contains("Android"); } private TestPlatform() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/internal/Finalizer.java
} catch (NoSuchMethodException e) { throw new AssertionError(e); } } private static @Nullable Field getInheritableThreadLocalsField() { if (isAndroid()) { /* * We need not worry about class unloading under Android. Plus, this approach doesn't always * work under Android. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
guava/src/com/google/common/base/FinalizableReferenceQueue.java
@VisibleForTesting static boolean disabled; @Override public @Nullable Class<?> loadFinalizer() { if (disabled) { return null; } if (isAndroid()) { // We need not worry about class unloading under Android. Plus, this approach wouldn't work. return null; } ClassLoader systemLoader; try {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 19:26:59 GMT 2026 - 15.8K bytes - Click Count (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt
t: Throwable?, ) { if (level == WARN) { Log.w(Tag, message, t) } else { Log.i(Tag, message, t) } } companion object { val isSupported: Boolean = isAndroid && Build.VERSION.SDK_INT >= 29 fun buildIfSupported(): Platform? = if (isSupported) Android10Platform() else null }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jul 20 11:25:50 GMT 2025 - 4.5K bytes - Click Count (0) -
guava/src/com/google/common/base/internal/Finalizer.java
} catch (NoSuchMethodException e) { throw new AssertionError(e); } } private static @Nullable Field getInheritableThreadLocalsField() { if (isAndroid()) { /* * We need not worry about class unloading under Android. Plus, this approach doesn't always * work under Android. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 03:19:29 GMT 2026 - 9.6K bytes - Click Count (0) -
android/guava/src/com/google/common/base/FinalizableReferenceQueue.java
@VisibleForTesting static boolean disabled; @Override public @Nullable Class<?> loadFinalizer() { if (disabled) { return null; } if (isAndroid()) { // We need not worry about class unloading under Android. Plus, this approach wouldn't work. return null; } ClassLoader systemLoader; try {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 19:26:59 GMT 2026 - 15.8K bytes - Click Count (0)