- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Build$VERSION_CODES (0.11 sec)
-
okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt
* * @param network network to use, if not selects the default network. */ @RequiresApi(Build.VERSION_CODES.Q) @ExperimentalOkHttpApi class AndroidAsyncDns( private val dnsClass: AsyncDns.DnsClass, private val network: Network? = null, ) : AsyncDns { @RequiresApi(Build.VERSION_CODES.Q) internal val resolver = DnsResolver.getInstance() private val executor = Executors.newSingleThreadExecutor()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 10:07:48 UTC 2024 - 2.8K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt
class CustomSSLSocketFactory( delegate: SSLSocketFactory, ) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val parameters = sslSocket.sslParameters Log.d("CustomSSLSocketFactory", "old applicationProtocols: $parameters.applicationProtocols") parameters.applicationProtocols = arrayOf("x-amzn-http-ca")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt
class CustomSSLSocketFactory( delegate: SSLSocketFactory, ) : DelegatingSSLSocketFactory(delegate) { override fun configureSocket(sslSocket: SSLSocket): SSLSocket { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { val parameters = sslSocket.sslParameters val sni = parameters.serverNames Log.d("CustomSSLSocketFactory", "old SNI: $sni")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.6K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
.heldCertificate(heldCertificate) .addTrustedCertificate(heldCertificate.certificate) .build() } @Before fun init() { assumeTrue("Supported on API 29+", Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) client = OkHttpClient.Builder() .dns(AsyncDns.toDns(AndroidAsyncDns.IPv4, AndroidAsyncDns.IPv6)) .sslSocketFactory(localhost.sslSocketFactory(), localhost.trustManager) .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/io/TempFileCreator.java
// Try another way. } try { int version = (int) Class.forName("android.os.Build$VERSION").getField("SDK_INT").get(null); int jellyBean = (int) Class.forName("android.os.Build$VERSION_CODES").getField("JELLY_BEAN").get(null); /* * I assume that this check can't fail because JELLY_BEAN will be present only if we're * running under Jelly Bean or higher. But it seems safest to check. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 06 17:11:11 UTC 2023 - 12.5K bytes - Viewed (0)