Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for 50 (0.16 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      }
    
      public void testJoinSingleInterrupt() {
        TimedThread thread = TimedThread.createWithDelay(50);
        requestInterruptIn(10);
        thread.joinSuccessfully();
        assertInterrupted();
      }
    
      public void testJoinTimeoutSingleInterruptNoExpire() {
        TimedThread thread = TimedThread.createWithDelay(50);
        requestInterruptIn(10);
        thread.joinSuccessfully(LONG_DELAY_MS);
        assertInterrupted();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] bytes = newPreFilledByteArray(100);
        skipHelper(0, 0, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 1));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 0));
        skipHelper(100, -1, new ByteArrayInputStream(bytes));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

            1,
            3,
            new long[] {GREATEST - 1, GREATEST - 2, 1, 2});
      }
    
      public void testDivide() {
        assertThat(UnsignedLongs.divide(14, 5)).isEqualTo(2);
        assertThat(UnsignedLongs.divide(0, 50)).isEqualTo(0);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)).isEqualTo(1);
        assertThat(UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)).isEqualTo(0);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] bytes = newPreFilledByteArray(100);
        skipHelper(0, 0, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 1));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 0));
        skipHelper(100, -1, new ByteArrayInputStream(bytes));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (1)
  6. android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.putAll(ImmutableMap.of(10, 20, 30, 50, 60, 90));
    
        assertEquals(Integer.valueOf(20), cache.getIfPresent(10));
        assertEquals(Integer.valueOf(50), cache.getIfPresent(30));
        assertEquals(Integer.valueOf(90), cache.getIfPresent(60));
    
        cache.asMap().putAll(ImmutableMap.of(10, 50, 30, 20, 60, 70, 5, 5));
    
        assertEquals(Integer.valueOf(50), cache.getIfPresent(10));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 15K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

      private static final int[] factorials = new int[ARRAY_SIZE];
      private static final int[] slowFactorials = new int[ARRAY_SIZE];
      private static final int[] binomials = new int[ARRAY_SIZE];
    
      @Param({"50", "1000", "10000"})
      int factorialBound;
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          factorials[i] = RANDOM_SOURCE.nextInt(factorialBound);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

          return; // TODO: b/136041958 - Running very slowly on Windows CI.
        }
        final CyclicBarrier barrier =
            new CyclicBarrier(
                6 // for the setter threads
                    + 50 // for the listeners
                    + 50 // for the blocking get threads,
                    + 1); // for the main thread
        final ExecutorService executor = Executors.newFixedThreadPool(barrier.getParties());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/LinkedHashMultisetTest.java

        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateWithSize() {
        Multiset<String> multiset = LinkedHashMultiset.create(50);
        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        } else {
          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
       * probability.
       */
      static BigInteger randomNonZeroBigInteger(int numBits) {
        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.1K bytes
    - Viewed (0)
Back to top