Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for isAndroid (0.05 sec)

  1. 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)
  2. 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)
  3. 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) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. 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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 22 14:39:30 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

          PublicSuffixDatabase.resetForTests()
        }
    
        fun alpnProtocolNames(protocols: List<Protocol>) = protocols.filter { it != Protocol.HTTP_1_0 }.map { it.toString() }
    
        val isAndroid: Boolean
          get() = PlatformRegistry.isAndroid
    
        /** Attempt to match the host runtime to a capable Platform implementation. */
        private fun findPlatform(): Platform = PlatformRegistry.findPlatform()
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/HostnameVerifierTest.kt

    import javax.security.auth.x500.X500Principal
    import okhttp3.FakeSSLSession
    import okhttp3.OkHttpClient
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HeldCertificate
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 40.4K bytes
    - Viewed (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

          } catch (_: InvocationTargetException) {
            null
          }
      }
    
      companion object {
        val Tag = "OkHttp"
    
        val isSupported: Boolean = isAndroid && Build.VERSION.SDK_INT in 21 until 29
    
        fun buildIfSupported(): Platform? = if (isSupported) AndroidPlatform() else null
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      public void testDivNonZeroExact() {
        String runtimeName = System.getProperty("java.runtime.name");
        boolean isAndroid = runtimeName != null && runtimeName.contains("Android");
        for (BigInteger p : NONZERO_BIGINTEGER_CANDIDATES) {
          for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
            if (isAndroid && p.equals(BAD_FOR_ANDROID_P) && q.equals(BAD_FOR_ANDROID_Q)) {
              // https://issuetracker.google.com/issues/37074172
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

          "Unexpected trust managers: ${result.contentToString()}"
        }
    
        val trustManager = result[0] as X509TrustManager
    
        return when {
          insecureHosts.isEmpty() -> trustManager
          Platform.isAndroid -> InsecureAndroidTrustManager(trustManager, insecureHosts)
          else -> InsecureExtendedTrustManager(trustManager as X509ExtendedTrustManager, insecureHosts)
        }
      }
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (1)
  10. 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
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Jul 20 11:25:50 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top