/external/conscrypt/benchmark-base/src/main/java/org/conscrypt/ |
SocketType.java | 50 Provider provider = TestUtils.getJdkProvider(); 51 SSLContext clientContext = TestUtils.newClientSslContext(provider); 52 SSLContext serverContext = TestUtils.newServerSslContext(provider); 60 Provider provider = TestUtils.getConscryptProvider(); 61 SSLContext clientContext = TestUtils.newClientSslContext(provider); 62 SSLContext serverContext = TestUtils.newServerSslContext(provider); 66 TestUtils.setUseEngineSocket(clientFactory, useEngineSocket); 67 TestUtils.setUseEngineSocket(serverFactory, useEngineSocket); 68 TestUtils.setUseEngineSocket(serverSocketFactory, useEngineSocket);
|
/frameworks/support/compat/tests/java/android/support/v4/testutils/ |
TestUtils.java | 18 package android.support.v4.testutils; 30 public class TestUtils {
|
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/ |
TestUtils.java | 18 package android.support.v4.testutils; 29 public class TestUtils {
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
BasicInCallServiceTest.java | 19 import static android.telecom.cts.TestUtils.shouldTestTelecom; 47 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); 48 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); 54 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); 80 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S,
|
SimCallManagerTest.java | 19 import static android.telecom.cts.TestUtils.ACCOUNT_ID; 20 import static android.telecom.cts.TestUtils.ACCOUNT_LABEL; 21 import static android.telecom.cts.TestUtils.COMPONENT; 22 import static android.telecom.cts.TestUtils.PACKAGE; 65 if (!TestUtils.shouldTestTelecom(mContext)) { 68 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); 71 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); 73 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); 83 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); 89 if (!TestUtils.shouldTestTelecom(mContext)) [all...] |
CallScreeningServiceTest.java | 19 import static android.telecom.cts.TestUtils.shouldTestTelecom; 46 new ComponentName(TestUtils.PACKAGE, TestUtils.COMPONENT), 47 TestUtils.ACCOUNT_ID); 50 TEST_PHONE_ACCOUNT_HANDLE, TestUtils.ACCOUNT_LABEL) 69 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); 70 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); 79 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); 102 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S [all...] |
DefaultDialerOperationsTest.java | 47 if (!TestUtils.shouldTestTelecom(mContext)) { 50 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); 53 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); 55 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); 69 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); 75 if (!TestUtils.shouldTestTelecom(mContext)) { 79 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); 80 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); 84 if (!TestUtils.shouldTestTelecom(mContext)) [all...] |
SelfManagedConnectionServiceTest.java | 30 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS; 31 import static android.telecom.cts.TestUtils.waitOnAllHandlers; 52 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_1); 53 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_2); 66 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_1); 67 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_2); 83 assertTrue(phoneAccountHandles.contains(TestUtils.TEST_SELF_MANAGED_HANDLE_1)); 84 assertTrue(phoneAccountHandles.contains(TestUtils.TEST_SELF_MANAGED_HANDLE_2)); 85 assertFalse(phoneAccountHandles.contains(TestUtils.TEST_PHONE_ACCOUNT_HANDLE)); 98 assertPhoneAccountRegistered(TestUtils.TEST_SELF_MANAGED_HANDLE_1) [all...] |
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
DefaultDialerOperationsNoPermissionsTest.java | 37 if (!TestUtils.shouldTestTelecom(mContext)) { 40 TestUtils.PACKAGE = mContext.getPackageName(); 41 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); 44 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); 46 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); 56 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); 62 if (!TestUtils.shouldTestTelecom(mContext)) { 74 if (!TestUtils.shouldTestTelecom(mContext)) { 86 if (!TestUtils.shouldTestTelecom(mContext)) { 98 if (!TestUtils.shouldTestTelecom(mContext)) [all...] |
/external/autotest/client/site_tests/desktopui_SonicExtension/ |
test_utils.py | 18 class TestUtils(object):
|
/external/vboot_reference/tests/ |
rsa_utility_tests.c | 42 static void TestUtils(void) { 210 TestUtils();
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
TestUtils.java | 29 public final class TestUtils extends Assert { 31 private TestUtils() {
|
XmlConfigTests.java | 59 SSLContext context = TestUtils.getSSLContext(source); 60 TestUtils.assertConnectionSucceeds(context, "android.com", 443); 61 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443); 62 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443); 77 SSLContext context = TestUtils.getSSLContext(source); 78 TestUtils.assertConnectionFails(context, "android.com", 443); 79 TestUtils.assertConnectionFails(context, "developer.android.com", 443); 80 TestUtils.assertUrlConnectionFails(context, "google.com", 443); 103 SSLContext context = TestUtils.getSSLContext(source); 104 TestUtils.assertConnectionSucceeds(context, "android.com", 443) [all...] |
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/ |
TestUtils.java | 34 public class TestUtils { 42 public TestUtils(Context targetContext, Context testContext, ExecutorService executor) {
|
/packages/apps/Email/tests/src/com/android/email/ |
TestUtils.java | 37 public class TestUtils extends TestCase /* It tests itself */ {
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
TestUtils.java | 31 public class TestUtils extends AndroidTestCase {
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
TestUtils.java | 28 public class TestUtils {
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
AdvertiseDataTest.java | 82 TestUtils.assertArrayEquals(new byte[0], dataFromParcel.getManufacturerSpecificData().get(manufacturerId)); 98 TestUtils.assertArrayEquals(new byte[0], dataFromParcel.getServiceData().get(uuid)); 138 TestUtils.assertArrayEquals(manufacturerData, 156 TestUtils.assertArrayEquals(serviceData, dataFromParcel.getServiceData().get(uuid));
|
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
TestUtils.java | 43 public final class TestUtils extends Assert { 45 private TestUtils() {
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/inference/ |
TestUtils.java | 35 public class TestUtils { 55 protected TestUtils() { 68 TestUtils.tTest = chiSquareTest; 91 TestUtils.chiSquareTest = chiSquareTest; 114 TestUtils.unknownDistributionChiSquareTest = unknownDistributionChiSquareTest; 137 TestUtils.oneWayAnova = oneWayAnova;
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
TestUtils.java | 17 package android.support.design.testutils; 31 public class TestUtils {
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
AppCompatBaseImageViewTest.java | 21 import static android.support.v7.testutils.TestUtilsActions.setEnabled; 34 import android.support.v7.testutils.AppCompatTintableViewActions; 35 import android.support.v7.testutils.BaseTestActivity; 36 import android.support.v7.testutils.TestUtils; 55 TestUtils.assertAllPixelsOfColor(description,
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
KeyPairGeneratorTest.java | 111 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 144 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); 152 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, 221 TestUtils.getKeyInfo(keyPair.getPrivate()).getKeySize()); 302 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); 304 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); 306 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); 329 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); 331 TestUtils.assertContentsInAnyOrder( 338 TestUtils.assertContentsInAnyOrder [all...] |
MacTest.java | 46 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME; 183 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; 197 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); 205 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, 322 SecretKey key = TestUtils.importIntoAndroidKeyStore( 351 byte[] message = TestUtils.generateLargeKatMsg(LONG_MSG_KAT_SEED, LONG_MSG_KAT_SIZE_BYTES); 379 TestUtils.buildUpon(good, badPurposes).build()); 404 KeyProtection good = TestUtils.buildUpon(getWorkingImportParams(algorithm)) 411 TestUtils.buildUpon(good).setKeyValidityStart(badStartDate).build()); 421 KeyProtection good = TestUtils.buildUpon(getWorkingImportParams(algorithm) [all...] |
SecretKeyFactoryTest.java | 45 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 67 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); 75 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, 81 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); 83 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); 85 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); 95 if (TestUtils.isHmacAlgorithm(algorithm)) { 96 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); 118 TestUtils.assertContentsInAnyOrder( 120 TestUtils.assertContentsInAnyOrder [all...] |