Home
last modified time | relevance | path

Searched +full:import +full:- +full:fresh (Results 1 – 25 of 453) sorted by relevance

12345678910>>...19

/external/python/cpython3/Lib/test/support/
Dimport_helper.py1 import contextlib
2 import _imp
3 import importlib
4 import importlib.util
5 import os
6 import shutil
7 import sys
8 import unittest
9 import warnings
11 from .os_helper import unlink
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DDefaultExecutor.kt2 …* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen…
7 import kotlinx.coroutines.internal.*
8 import java.util.concurrent.*
9 import kotlin.coroutines.*
16 // Opt-out flag in initializeDefaultDelay()
51 private const val FRESH = 0 constant
58 private var debugStatus: Int = FRESH
113 val tillShutdown = shutdownNanos - now in invokeOnTimeout()
146 assert { debugStatus == FRESH || debugStatus == SHUTDOWN_ACK } in ensureStarted()
147 debugStatus = FRESH in ensureStarted()
[all …]
/external/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/
DOAuth2Credentials.java34 import com.google.api.client.util.Clock;
35 import com.google.auth.Credentials;
36 import com.google.auth.RequestMetadataCallback;
37 import com.google.auth.http.AuthHttpConstants;
38 import com.google.common.annotations.VisibleForTesting;
39 import com.google.common.base.MoreObjects;
40 import com.google.common.base.Preconditions;
41 import com.google.common.collect.ImmutableList;
42 import com.google.common.collect.ImmutableMap;
43 import com.google.common.collect.Iterables;
[all …]
/external/junit/src/main/java/org/junit/rules/
DTemporaryFolder.java3 import static org.junit.Assert.fail;
5 import java.io.File;
6 import java.io.IOException;
7 import java.lang.reflect.Array;
8 import java.lang.reflect.InvocationTargetException;
9 import java.lang.reflect.Method;
11 import org.junit.Rule;
54 * Create a temporary folder which uses system default temporary-file
66 * If {@code null} then system default temporary-file directory is used.
104 * If {@code null} then system default temporary-file directory is
[all …]
/external/python/httplib2/tests/
Dtest_cache.py1 import email.utils
2 import httplib2
3 import pytest
4 import re
5 import tests
6 import time
12 # Test that can do a GET with cache and 'only-if-cached'
17 uri, "GET", headers={"cache-control": "only-if-cached"}
24 # Test that can do a GET with no cache with 'only-if-cached'
28 uri, "GET", headers={"cache-control": "only-if-cached"}
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DSmoothRateLimiter.java7 * http://www.apache.org/licenses/LICENSE-2.0
17 import static java.lang.Math.min;
18 import static java.util.concurrent.TimeUnit.SECONDS;
20 import com.google.common.annotations.GwtIncompatible;
21 import com.google.common.annotations.J2ktIncompatible;
22 import com.google.common.math.LongMath;
23 import java.util.concurrent.TimeUnit;
41 * granted only 100ms ago, then we wait for another 100ms. At this rate, serving 15 fresh permits
66 * - stored permits (if available)
68 * - fresh permits (for any remaining permits)
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DSmoothRateLimiter.java7 * http://www.apache.org/licenses/LICENSE-2.0
17 import static java.lang.Math.min;
18 import static java.util.concurrent.TimeUnit.SECONDS;
20 import com.google.common.annotations.GwtIncompatible;
21 import com.google.common.annotations.J2ktIncompatible;
22 import com.google.common.math.LongMath;
23 import java.util.concurrent.TimeUnit;
41 * granted only 100ms ago, then we wait for another 100ms. At this rate, serving 15 fresh permits
66 * - stored permits (if available)
68 * - fresh permits (for any remaining permits)
[all …]
/external/python/cpython3/Lib/unittest/test/
Dtest_functiontestcase.py1 import unittest
3 from unittest.test.support import LoggingResult
18 # setUp() was used to create a fresh sequence for each test."
43 # setUp() was used to create a fresh sequence for each test."
69 # setUp() was used to create a fresh sequence for each test."
95 # setUp() was used to create a fresh sequence for each test."
122 # will be a string (either 8-byte or unicode -- again, because the docs
129 # "Returns a one-line description of the test, or None if no description
137 # "Returns a one-line description of the test, or None if no description
/external/python/cpython2/Lib/unittest/test/
Dtest_functiontestcase.py1 import unittest
3 from unittest.test.support import LoggingResult
18 # setUp() was used to create a fresh sequence for each test."
43 # setUp() was used to create a fresh sequence for each test."
69 # setUp() was used to create a fresh sequence for each test."
95 # setUp() was used to create a fresh sequence for each test."
122 # will be a string (either 8-byte or unicode -- again, because the docs
129 # "Returns a one-line description of the test, or None if no description
137 # "Returns a one-line description of the test, or None if no description
/external/python/cpython2/Doc/library/
Dtest.rst2 :mod:`test` --- Regression tests package for Python
38 .. _writing-tests:
41 ----------------------------------------------
56 import unittest
57 from test import support
125 * Import as few modules as possible and do it as soon as possible. This
127 behavior from side-effects of importing a module.
158 Running tests using the command-line interface
159 ----------------------------------------------
162 test suite, thanks to the :option:`-m` option: :program:`python -m test.regrtest`.
[all …]
Dpprint.rst1 :mod:`pprint` --- Data pretty printer
11 --------------
13 The :mod:`pprint` module provides a capability to "pretty-print" arbitrary
18 other built-in objects which are not representable as Python constants.
57 >>> import pprint
69 ... ('parrot', ('fresh fruit',))))))))
94 >>> import pprint
139 .. _prettyprinter-objects:
142 ---------------------
202 .. _pprint-example:
[all …]
Drunpy.rst1 :mod:`runpy` --- Locating and executing Python modules
13 --------------
16 importing them first. Its main use is to implement the :option:`-m` command
30 import mechanism (refer to :pep:`302` for details) and then executed in a
31 fresh module namespace.
38 The optional dictionary argument *init_globals* may be used to pre-populate
46 code is executed (Note that this is a minimal set of variables - other
59 import mechanism).
70 Note that this manipulation of :mod:`sys` is not thread-safe. Other threads
76 The :option:`-m` option offering equivalent functionality from the
[all …]
/external/tink/java_src/src/main/java/com/google/crypto/tink/
DKeysetManager.java7 // http://www.apache.org/licenses/LICENSE-2.0
19 import com.google.crypto.tink.internal.KeyStatusTypeProtoConverter;
20 import com.google.crypto.tink.internal.Util;
21 import com.google.crypto.tink.proto.KeyData;
22 import com.google.crypto.tink.proto.KeyStatusType;
23 import com.google.crypto.tink.proto.Keyset;
24 import com.google.crypto.tink.proto.OutputPrefixType;
25 import com.google.crypto.tink.tinkkey.KeyAccess;
26 import com.google.crypto.tink.tinkkey.KeyHandle;
27 import com.google.crypto.tink.tinkkey.SecretKeyAccess;
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/downloader/
DCheckContentChangeResponse.java8 * http://www.apache.org/licenses/LICENSE-2.0
18 import com.google.auto.value.AutoValue;
19 import com.google.common.base.Optional;
31 * The optional fresh ETag that is being fetched from the url. When the value euquals {@link
49 /** Sets the fresh ETag. */
/external/tink/java_src/src/main/java/com/google/crypto/tink/integration/android/
DAndroidKeysetManager.java7 // http://www.apache.org/licenses/LICENSE-2.0
19 import android.content.Context;
20 import android.content.SharedPreferences;
21 import android.os.Build;
22 import android.preference.PreferenceManager;
23 import android.util.Log;
24 import androidx.annotation.ChecksSdkIntAtLeast;
25 import androidx.annotation.Nullable;
26 import com.google.crypto.tink.Aead;
27 import com.google.crypto.tink.BinaryKeysetReader;
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/polynomials/
DPolynomialFunctionNewtonForm.java9 * http://www.apache.org/licenses/LICENSE-2.0
19 import org.apache.commons.math.MathRuntimeException;
20 import org.apache.commons.math.analysis.UnivariateRealFunction;
21 import org.apache.commons.math.FunctionEvaluationException;
22 import org.apache.commons.math.exception.util.LocalizedFormats;
30 * p(x) = a[0] + a[1](x-c[0]) + a[2](x-c[0])(x-c[1]) + ... +
31 * a[n](x-c[0])(x-c[1])...(x-c[n-1])
34 * @version $Revision: 1073498 $ $Date: 2011-02-22 21:57:26 +0100 (mar. 22 févr. 2011) $
40 * The coefficients of the polynomial, ordered by degree -- i.e.
110 * @return a fresh copy of coefficients in Newton form formula
[all …]
DPolynomialFunctionLagrangeForm.java9 * http://www.apache.org/licenses/LICENSE-2.0
19 import org.apache.commons.math.DuplicateSampleAbscissaException;
20 import org.apache.commons.math.MathRuntimeException;
21 import org.apache.commons.math.analysis.UnivariateRealFunction;
22 import org.apache.commons.math.FunctionEvaluationException;
23 import org.apache.commons.math.exception.util.LocalizedFormats;
24 import org.apache.commons.math.util.FastMath;
35 * @version $Revision: 1073498 $ $Date: 2011-02-22 21:57:26 +0100 (mar. 22 févr. 2011) $
41 * The coefficients of the polynomial, ordered by degree -- i.e.
98 return x.length - 1; in degree()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math3/analysis/polynomials/
DPolynomialFunctionNewtonForm.java9 * http://www.apache.org/licenses/LICENSE-2.0
19 import org.apache.commons.math3.analysis.differentiation.DerivativeStructure;
20 import org.apache.commons.math3.analysis.differentiation.UnivariateDifferentiableFunction;
21 import org.apache.commons.math3.exception.DimensionMismatchException;
22 import org.apache.commons.math3.exception.NoDataException;
23 import org.apache.commons.math3.exception.NullArgumentException;
24 import org.apache.commons.math3.exception.util.LocalizedFormats;
25 import org.apache.commons.math3.util.MathUtils;
33 * p(x) = a[0] + a[1](x-c[0]) + a[2](x-c[0])(x-c[1]) + ... +
34 * a[n](x-c[0])(x-c[1])...(x-c[n-1])
[all …]
/external/autotest/server/cros/bluetooth/
Dbluetooth_adapter_controller_role_tests.py3 # Use of this source code is governed by a BSD-style license that can be
12 from __future__ import absolute_import
14 import logging
15 import threading
16 import time
18 import common
19 from autotest_lib.server.cros.bluetooth import advertisements_data
20 from autotest_lib.server.cros.bluetooth import bluetooth_adapter_tests
96 # ---------------------------------------------------------------
98 # ---------------------------------------------------------------
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py1 import builtins
2 import contextlib
3 import errno
4 import functools
5 from importlib import machinery, util, invalidate_caches
6 import marshal
7 import os
8 import os.path
9 from test.support import import_helper
10 from test.support import os_helper
[all …]
/external/oauth/core/src/main/java/net/oauth/client/
DOAuthClient.java8 * http://www.apache.org/licenses/LICENSE-2.0
19 import java.io.ByteArrayInputStream;
20 import java.io.IOException;
21 import java.io.InputStream;
22 import java.net.URISyntaxException;
23 import java.net.URL;
24 import java.util.ArrayList;
25 import java.util.Collection;
26 import java.util.Iterator;
27 import java.util.List;
[all …]
/external/jsoup/src/test/java/org/jsoup/nodes/
DElementIT.java3 import org.jsoup.Jsoup;
4 import org.jsoup.select.Elements;
5 import org.junit.jupiter.api.Test;
7 import java.util.List;
9 import static org.junit.jupiter.api.Assertions.*;
18 .append("<p>El-") in testFastReparent()
30 long runtime = System.currentTimeMillis() - start; in testFastReparent()
33 assertEquals(0, doc.body().childNodes().size()); // but on a fresh look, all gone in testFastReparent()
38 assertEquals("El-1", wrapperAcutal.children().get(0).text()); in testFastReparent()
39 assertEquals("El-" + rows, wrapperAcutal.children().get(rows - 1).text()); in testFastReparent()
[all …]
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/internal/
DExpirationHandler.java8 * http://www.apache.org/licenses/LICENSE-2.0
18 import static com.google.common.util.concurrent.Futures.immediateVoidFuture;
19 import static java.lang.Math.min;
21 import android.content.Context;
22 import android.net.Uri;
23 import androidx.annotation.VisibleForTesting;
24 import com.google.android.libraries.mobiledatadownload.Flags;
25 import com.google.android.libraries.mobiledatadownload.SilentFeedback;
26 import com.google.android.libraries.mobiledatadownload.TimeSource;
27 import com.google.android.libraries.mobiledatadownload.annotations.InstanceId;
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheControlTest.java8 * http://www.apache.org/licenses/LICENSE-2.0
18 import java.util.concurrent.TimeUnit;
19 import org.junit.Test;
21 import static org.junit.Assert.assertEquals;
22 import static org.junit.Assert.assertFalse;
23 import static org.junit.Assert.assertNull;
24 import static org.junit.Assert.assertSame;
25 import static org.junit.Assert.assertTrue;
26 import static org.junit.Assert.fail;
34 assertEquals(-1, cacheControl.maxAgeSeconds()); in emptyBuilderIsEmpty()
[all …]
/external/googleapis/google/maps/playablelocations/v3/
Dplayablelocations.proto7 // http://www.apache.org/licenses/LICENSE-2.0
19 import "google/api/annotations.proto";
20 import "google/api/field_behavior.proto";
21 import "google/maps/playablelocations/v3/resources.proto";
22 import "google/maps/playablelocations/v3/sample/resources.proto";
23 import "google/maps/unity/clientinfo.proto";
24 import "google/protobuf/duration.proto";
25 import "google/api/client.proto";
80 // - When a game starts in a new location, your game server issues a
85 // - Criterion 0: i locations for long-lived bases, or level 0 monsters, or...
[all …]

12345678910>>...19