Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for devices (0.24 sec)

  1. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * {@code ExecutorService} imposes a small locking overhead on each task submission in order to
       * implement shutdown and termination behavior.
       *
       * <p>The implementation deviates from the {@code ExecutorService} specification with regards to
       * the {@code shutdownNow} method. First, "best-effort" with regards to canceling running tasks is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/InetAddresses.java

    /**
     * Static utility methods pertaining to {@link InetAddress} instances.
     *
     * <p><b>Important note:</b> Unlike {@code InetAddress.getByName()}, the methods of this class never
     * cause DNS services to be accessed. For this reason, you should prefer these methods as much as
     * possible over their JDK equivalents whenever you are expecting to handle only IP address string
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/collect/SortedLists.java

       *
       * <p>If there are elements in the list which compare as equal to the key, the choice of {@link
       * KeyPresentBehavior} decides which index is returned. If no elements compare as equal to the
       * key, the choice of {@link KeyAbsentBehavior} decides which index is returned.
       *
       * <p>This method runs in log(n) time on random-access lists, which offer near-constant-time
       * access to each list element.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Stopwatch.java

     * behavior of the stopwatch.
     *
     * <p><b>Note:</b> This class is not thread-safe.
     *
     * <p><b>Warning for Android users:</b> a stopwatch with default behavior may not continue to keep
     * time while the device is asleep. Instead, create one like this:
     *
     * <pre>{@code
     * Stopwatch.createStarted(
     *      new Ticker() {
     *        public long read() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

              protected char @Nullable [] escape(int cp) {
                return ('a' <= cp && cp <= 'z') ? new char[] {Character.toUpperCase((char) cp)} : null;
              }
              // Inefficient implementation that defines all letters as escapable.
              @Override
              protected int nextEscapeIndex(CharSequence csq, int index, int end) {
                while (index < end && !Character.isLetter(csq.charAt(index))) {
                  index++;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

        int bytesToCopy = bufferSize - buffer.position();
        for (int i = 0; i < bytesToCopy; i++) {
          buffer.put(readBuffer.get());
        }
        munch(); // buffer becomes empty here, since chunkSize divides bufferSize
    
        // Now process directly from the rest of the input buffer
        while (readBuffer.remaining() >= chunkSize) {
          process(readBuffer);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Service.java

    import java.util.concurrent.TimeoutException;
    
    /**
     * An object with an operational state, plus asynchronous {@link #startAsync()} and {@link
     * #stopAsync()} lifecycle methods to transition between states. Example services include
     * webservers, RPC servers and timers.
     *
     * <p>The normal lifecycle of a service is:
     *
     * <ul>
     *   <li>{@linkplain State#NEW NEW} -&gt;
     *   <li>{@linkplain State#STARTING STARTING} -&gt;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 10.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

    import java.util.concurrent.TimeoutException;
    import java.util.concurrent.atomic.AtomicReference;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    
    /**
     * Base class for JSR166 Junit TCK tests. Defines some constants, utility methods and classes, as
     * well as a simple framework for helping to make sure that assertions failing in generated threads
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

      private final ImmutableList<Service> services;
    
      /**
       * Constructs a new instance for managing the given services.
       *
       * @param services The services to manage
       * @throws IllegalArgumentException if not all services are {@linkplain State#NEW new} or if there
       *     are any duplicate services.
       */
      public ServiceManager(Iterable<? extends Service> services) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 30.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

       */
      public void testTransitionRace() throws TimeoutException {
        for (int k = 0; k < 1000; k++) {
          List<Service> services = Lists.newArrayList();
          for (int i = 0; i < 5; i++) {
            services.add(new SnappyShutdownService(i));
          }
          ServiceManager manager = new ServiceManager(services);
          manager.startAsync().awaitHealthy();
          manager.stopAsync().awaitStopped(10, TimeUnit.SECONDS);
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.9K bytes
    - Viewed (0)
Back to top