Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 305 for maxValue (0.27 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

            new Function<Supplier<Boolean>, Supplier<Boolean>>() {
              @Override
              public Supplier<Boolean> apply(Supplier<Boolean> supplier) {
                return Suppliers.memoizeWithExpiration(supplier, Long.MAX_VALUE, NANOSECONDS);
              }
            };
        testSupplierThreadSafe(memoizer);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      public void testMemoizedSupplierThreadSafe() throws Throwable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

      private inline fun <T : Any> ResponseBody.consumeSource(
        consumer: (BufferedSource) -> T,
        sizeMapper: (T) -> Int,
      ): T {
        val contentLength = contentLength()
        if (contentLength > Int.MAX_VALUE) {
          throw IOException("Cannot buffer entire body for content length: $contentLength")
        }
    
        val bytes = source().use(consumer)
        val size = sizeMapper(bytes)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        val contentLength = response.headersContentLength()
        if (contentLength == -1L) return
        val body = newFixedLengthSource(response.request.url, contentLength)
        body.skipAll(Int.MAX_VALUE, MILLISECONDS)
        body.close()
      }
    
      /** An HTTP request body. */
      private inner class KnownLengthSink : Sink {
        private val timeout = ForwardingTimeout(socket.sink.timeout())
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

            }
        }
    
        @Nested
        @DisplayName("Test Implementation Tests")
        class TestImplementationTests {
    
            @ParameterizedTest
            @ValueSource(bytes = { -1, 0, 1, 3, 7, Byte.MAX_VALUE, Byte.MIN_VALUE })
            @DisplayName("Should handle various information class values")
            void testVariousInformationClassValues(byte classValue) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

         */
        @Test
        public void testSecurityBufferIntegerOverflow() {
            byte[] buffer = createBasicNegotiateResponseBuffer();
    
            // Set security buffer offset close to Integer.MAX_VALUE to test overflow protection
            SMBUtil.writeInt2(32767, buffer, 56); // Large offset (will be added to header start)
            SMBUtil.writeInt2(1000, buffer, 58); // Some length
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/util/SMBUtilTest.java

            int result = SMBUtil.readInt4(buffer, 0);
            assertEquals((int) (input & 0xFFFFFFFFL), result);
        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE, 0x123456789ABCDEF0L })
        void testWriteReadInt8RoundTrip(long input) {
            byte[] buffer = new byte[8];
            SMBUtil.writeInt8(input, buffer, 0);
            long result = SMBUtil.readInt8(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            // Assert
            assertNotNull(transPeekNamedPipe);
            assertNull(transPeekNamedPipe.name);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, -1, Integer.MAX_VALUE, Integer.MIN_VALUE, 0xFFFF })
        @DisplayName("Constructor should handle various FID values")
        void testConstructorWithVariousFids(int fid) {
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun authenticator() {
        var authenticator: Authenticator = Authenticator { route, response -> TODO() }
      }
    
      @Test
      fun cache() {
        val cache = Cache(File("/cache/"), Integer.MAX_VALUE.toLong())
        cache.initialize()
        cache.delete()
        cache.evictAll()
        val urls: MutableIterator<String> = cache.urls()
        val writeAbortCount: Int = cache.writeAbortCount()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        // before its keepAliveDurationNs is reached.
        var earliestOldIdleAtNs = (now - keepAliveDurationNs) + 1
        var earliestOldConnection: RealConnection? = null
        var earliestEvictableIdleAtNs = Long.MAX_VALUE
        var earliestEvictableConnection: RealConnection? = null
        var inUseConnectionCount = 0
        var evictableConnectionCount = 0
        for (connection in connections) {
          connection.withLock {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnection.kt

      /** Current calls carried by this connection. */
      val calls = mutableListOf<Reference<RealCall>>()
    
      /** Timestamp when `allocations.size()` reached zero. Also assigned upon initial connection. */
      var idleAtNs = Long.MAX_VALUE
    
      /**
       * Returns true if this is an HTTP/2 connection. Such connections can be used in multiple HTTP
       * requests simultaneously.
       */
      internal val isMultiplexed: Boolean
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 14.9K bytes
    - Viewed (0)
Back to top