Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for isAndroid (0.28 sec)

  1. okhttp/src/main/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: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 2.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/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: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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: 2024-06-16 04:42
    - Last Modified: 2024-01-04 05:32
    - 1.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
                java.nio.file.Files.getFileAttributeView(temp.toPath(), PosixFileAttributeView.class)
                    .readAttributes();
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-10-06 17:11
    - 4.3K bytes
    - Viewed (0)
  5. src/internal/goos/zgoos_windows.go

    // Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
    
    //go:build windows
    
    package goos
    
    const GOOS = `windows`
    
    const IsAix = 0
    const IsAndroid = 0
    const IsDarwin = 0
    const IsDragonfly = 0
    const IsFreebsd = 0
    const IsHurd = 0
    const IsIllumos = 0
    const IsIos = 0
    const IsJs = 0
    const IsLinux = 0
    const IsNacl = 0
    const IsNetbsd = 0
    const IsOpenbsd = 0
    const IsPlan9 = 0
    const IsSolaris = 0
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-03-30 18:50
    - 457 bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

          assertThat(temp.listFiles()).isEmpty();
          File child = new File(temp, "child");
          assertThat(child.createNewFile()).isTrue();
          assertThat(child.delete()).isTrue();
    
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
                java.nio.file.Files.getFileAttributeView(temp.toPath(), PosixFileAttributeView.class)
                    .readAttributes();
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-10-06 17:11
    - 4.3K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          return if (Platform.isAndroid) {
            Build.VERSION.SDK_INT
          } else {
            null
          }
        }
    
        fun localhostHandshakeCertificates(): HandshakeCertificates {
          return when {
            isBouncyCastle() -> localhostHandshakeCertificatesWithRsa2048
            else -> localhost()
          }
        }
    
        val isAndroid: Boolean
          get() = Platform.Companion.isAndroid
    
    Registered: 2024-06-16 04:42
    - Last Modified: 2024-01-08 01:13
    - 15.3K bytes
    - Viewed (0)
  8. src/internal/goos/zgoos_darwin.go

    // Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
    
    //go:build !ios && darwin
    
    package goos
    
    const GOOS = `darwin`
    
    const IsAix = 0
    const IsAndroid = 0
    const IsDarwin = 1
    const IsDragonfly = 0
    const IsFreebsd = 0
    const IsHurd = 0
    const IsIllumos = 0
    const IsIos = 0
    const IsJs = 0
    const IsLinux = 0
    const IsNacl = 0
    const IsNetbsd = 0
    const IsOpenbsd = 0
    const IsPlan9 = 0
    const IsSolaris = 0
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-03-30 18:50
    - 463 bytes
    - Viewed (0)
  9. src/internal/goos/zgoos_freebsd.go

    // Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
    
    //go:build freebsd
    
    package goos
    
    const GOOS = `freebsd`
    
    const IsAix = 0
    const IsAndroid = 0
    const IsDarwin = 0
    const IsDragonfly = 0
    const IsFreebsd = 1
    const IsHurd = 0
    const IsIllumos = 0
    const IsIos = 0
    const IsJs = 0
    const IsLinux = 0
    const IsNacl = 0
    const IsNetbsd = 0
    const IsOpenbsd = 0
    const IsPlan9 = 0
    const IsSolaris = 0
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-03-30 18:50
    - 457 bytes
    - Viewed (0)
  10. src/internal/goos/zgoos_aix.go

    // Code generated by gengoos.go using 'go generate'. DO NOT EDIT.
    
    //go:build aix
    
    package goos
    
    const GOOS = `aix`
    
    const IsAix = 1
    const IsAndroid = 0
    const IsDarwin = 0
    const IsDragonfly = 0
    const IsFreebsd = 0
    const IsHurd = 0
    const IsIllumos = 0
    const IsIos = 0
    const IsJs = 0
    const IsLinux = 0
    const IsNacl = 0
    const IsNetbsd = 0
    const IsOpenbsd = 0
    const IsPlan9 = 0
    const IsSolaris = 0
    const IsWasip1 = 0
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-03-30 18:50
    - 449 bytes
    - Viewed (0)
Back to top