Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for isAndroid (0.05 sec)

  1. 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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureDefaultAtomicHelperTest.java

     * Android.
     */
    @NullUnmarked
    public class AbstractFutureDefaultAtomicHelperTest extends TestCase {
      public void testUsingExpectedAtomicHelper() throws Exception {
        if (isAndroid()) {
          assertThat(AbstractFutureState.atomicHelperTypeForTest()).isEqualTo("UnsafeAtomicHelper");
        } else {
          assertThat(AbstractFutureState.atomicHelperTypeForTest())
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 13:08:45 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/PlatformTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class PlatformTest {
      @RegisterExtension
      var platform = PlatformRule()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

        } catch (NoSuchMethodException e) {
          assertThat(isAndroid() || isBeforeJava19()).isTrue();
          return; // close() doesn't exist, so we can't test it.
        }
        closeMethod.invoke(wrapper);
        assertThat(delegate.isTerminated()).isTrue();
      }
    
      private static boolean isAndroid() {
        return System.getProperty("java.runtime.name", "").contains("Android");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 18:45:52 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

    import javax.net.ssl.SSLSocket
    import okhttp3.Protocol
    import okhttp3.internal.SuppressSignatureCheck
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    
    /**
     * Simple non-reflection SocketAdapter for Android Q+.
     *
     * These API assumptions make it unsuitable for use on earlier Android versions.
     */
    @SuppressLint("NewApi")
    @SuppressSignatureCheck
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. android/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() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 1K bytes
    - Viewed (0)
  8. guava-gwt/test-super/com/google/common/math/super/com/google/common/math/TestPlatform.java

    import com.google.common.annotations.GwtCompatible;
    
    /**
     * @author Chris Povirk
     */
    @GwtCompatible
    final class TestPlatform {
      static boolean intsCanGoOutOfRange() {
        return true;
      }
    
      static boolean isAndroid() {
        return false;
      }
    
      private TestPlatform() {}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 909 bytes
    - Viewed (0)
  9. 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/PlatformRegistry.kt

     * limitations under the License.
     */
    package okhttp3.internal.platform
    
    expect object PlatformRegistry {
      fun findPlatform(): Platform
    
      val isAndroid: Boolean
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 727 bytes
    - Viewed (0)
Back to top