Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for longp (0.05 sec)

  1. android/guava/src/com/google/common/hash/BloomFilter.java

       * {@code expectedInsertions} that was used when constructing the filter.
       *
       * @since 22.0
       */
      public long approximateElementCount() {
        long bitSize = bits.bitSize();
        long bitCount = bits.bitCount();
    
        /*
         * Each insertion is expected to reduce the # of clear bits by a factor of
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

        final ProgressListener progressListener = new ProgressListener() {
          boolean firstUpdate = true;
    
          @Override public void update(long bytesWritten, long contentLength, boolean done) {
            if (done) {
              System.out.println("completed");
            } else {
              if (firstUpdate) {
                firstUpdate = false;
                if (contentLength == -1) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

      @Throws(Exception::class)
      fun run() {
        val progressListener =
          object : ProgressListener {
            private var firstUpdate = true
    
            override fun update(
              bytesWritten: Long,
              contentLength: Long,
              done: Boolean,
            ) {
              if (done) {
                println("completed")
              } else {
                if (firstUpdate) {
                  firstUpdate = false
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  4. docs/recipes.md

              override fun contentLength(): Long = delegate.contentLength()
    
              @Throws(IOException::class)
              override fun writeTo(sink: BufferedSink) {
                val forwardingSink = object : ForwardingSink(sink) {
                  private var totalBytesWritten: Long = 0
                  private var completed = false
    
                  override fun write(source: Buffer, byteCount: Long) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  5. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

            listener.onFailure(
              this,
              IllegalStateException("Invalid content-type: ${body.contentType()}"),
              response,
            )
            return
          }
    
          // This is a long-lived response. Cancel full-call timeouts.
          call?.timeout()?.cancel()
    
          // Replace the body with a stripped one so the callbacks can't see real data.
          val response = response.stripBody()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

          if (queue.futureTasks.isEmpty()) {
            readyQueues.removeAt(i)
          }
        }
      }
    
      interface Backend {
        fun nanoTime(): Long
    
        fun coordinatorNotify(taskRunner: TaskRunner)
    
        fun coordinatorWait(
          taskRunner: TaskRunner,
          nanos: Long,
        )
    
        fun <T> decorate(queue: BlockingQueue<T>): BlockingQueue<T>
    
        fun execute(
          taskRunner: TaskRunner,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java

        }
    
        // Basic setter tests
        public void test_setCommandTimeout() throws Exception {
            final long timeout = 5000L;
            generator.setCommandTimeout(timeout);
            assertTrue(true);
        }
    
        public void test_setCommandDestroyTimeout() throws Exception {
            final long timeout = 2000L;
            generator.setCommandDestroyTimeout(timeout);
            assertTrue(true);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SystemHelper.java

        /** The product version string. */
        protected String productVersion;
    
        /** The end-of-life timestamp for the application. */
        protected long eolTime;
    
        private short systemCpuPercent;
    
        private long systemCpuCheckTime;
    
        private long systemCpuCheckInterval = 1000L;
    
        /** A map of listeners for configuration updates. */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

    ) {
      private var lastId: String? = null
    
      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
       * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the
       * data section was empty. Any number of calls to [Callback.onRetryChange] may occur while
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/reflect/Types.java

            GenericArrayType that = (GenericArrayType) obj;
            return Objects.equals(getGenericComponentType(), that.getGenericComponentType());
          }
          return false;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private static final class ParameterizedTypeImpl implements ParameterizedType, Serializable {
    
        private final @Nullable Type ownerType;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.5K bytes
    - Viewed (0)
Back to top