Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for isAndroid (0.17 sec)

  1. android/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)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        }
        assertTrue(builder.build() instanceof SparseImmutableTable);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      @Override
      public void testNullPointerInstance() {
        if (isAndroid()) {
          /*
           * NPT fails under the old versions of Android we test under because it performs reflection on
           * ImmutableTable, which declares static methods that refer to Collector, which is unavailable
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 20K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/StatsTesting.java

     *
     * @author Pete Gillin
     */
    class StatsTesting {
      // TODO(cpovirk): Convince myself that this larger error makes sense.
      static final double ALLOWED_ERROR = isAndroid() ? .25 : 1e-10;
    
      // Inputs and their statistics:
    
      static final double ONE_VALUE = 12.34;
    
      static final double OTHER_ONE_VALUE = -56.78;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/MoreFilesTest.java

       * not possible to protect against this if the file system doesn't.
       */
      public void testDirectoryDeletion_directorySymlinkRace() throws IOException {
        int iterations = isAndroid() ? 100 : 5000;
        for (DirectoryDeleteMethod method : EnumSet.allOf(DirectoryDeleteMethod.class)) {
          try (FileSystem fs = newTestFileSystem(SECURE_DIRECTORY_STREAM)) {
            Path dirToDelete = fs.getPath("dir/b/i");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/LongMathTest.java

              }
            }
          }
        }
      }
    
      @AndroidIncompatible // slow
      public void testCheckedMultiply() {
        boolean isAndroid = TestPlatform.isAndroid();
        for (long a : ALL_LONG_CANDIDATES) {
          for (long b : ALL_LONG_CANDIDATES) {
            if (isAndroid && a == -4294967296L && b == 2147483648L) {
              /*
               * Bug in older versions of Android we test against, since fixed: -9223372036854775808L /
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        }
        assertTrue(builder.build() instanceof SparseImmutableTable);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      @Override
      public void testNullPointerInstance() {
        if (isAndroid()) {
          /*
           * NPT fails under the old versions of Android we test under because it performs reflection on
           * ImmutableTable, which declares static methods that refer to Collector, which is unavailable
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

      private lateinit var server: MockWebServer
    
      @BeforeEach
      fun setup(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun testPlatform() {
        assertTrue(Platform.isAndroid)
    
        if (Build.VERSION.SDK_INT >= 29) {
          assertTrue(Platform.get() is Android10Platform)
        } else {
          assertTrue(Platform.get() is AndroidPlatform)
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  8. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/platform/Platform$Companion;->alpnProtocolNames(Ljava/util/List;)Ljava/util/List;
    HSPLokhttp3/internal/platform/Platform$Companion;->isAndroid()Z
    HSPLokhttp3/internal/platform/Platform;-><clinit>()V
    HSPLokhttp3/internal/platform/Platform;-><init>()V
    HSPLokhttp3/internal/platform/Platform;->afterHandshake(Ljavax/net/ssl/SSLSocket;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top