/cts/tests/tests/networksecurityconfig/networksecurityconfig-invalid-pin/src/android/security/net/config/cts/ |
InvalidPinTest.java | 24 TestUtils.assertTlsConnectionFails("android.com", 443); 28 TestUtils.assertTlsConnectionSucceeds("example.com", 443); 29 TestUtils.assertTlsConnectionSucceeds("developer.android.com", 443);
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-cleartext/src/android/security/net/config/cts/ |
CleartextPermittedTest.java | 26 TestUtils.assertCleartextConnectionSucceeds("example.com", 80); 27 TestUtils.assertTlsConnectionSucceeds("example.com", 443); 31 TestUtils.assertCleartextConnectionFails("android.com", 80); 32 TestUtils.assertTlsConnectionSucceeds("android.com", 443); 34 TestUtils.assertCleartextConnectionFails("www.android.com", 80); 35 TestUtils.assertTlsConnectionSucceeds("www.android.com", 443); 40 TestUtils.assertCleartextConnectionSucceeds("developer.android.com", 80); 41 TestUtils.assertTlsConnectionSucceeds("developer.android.com", 443);
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
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...] |
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...] |
RttOperationsTest.java | 54 TestUtils.waitOnAllHandlers(getInstrumentation()); 67 TestUtils.waitOnAllHandlers(getInstrumentation()); 82 TestUtils.InvokeCounter startRttCounter = 85 startRttCounter.waitForCount(1, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); 89 TestUtils.waitOnAllHandlers(getInstrumentation()); 104 TestUtils.InvokeCounter startRttCounter = 107 startRttCounter.waitForCount(1, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); 110 TestUtils.waitOnAllHandlers(getInstrumentation()); 111 mOnRttInitiationFailedCounter.waitForCount(1, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); 128 TestUtils.InvokeCounter rttRequestResponseCounter [all...] |
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,
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-basic-domain/src/android/security/net/config/cts/ |
DomainConfigTest.java | 27 TestUtils.assertTlsConnectionSucceeds("android.com", 443); 32 TestUtils.assertTlsConnectionFails("developer.android.com", 443); 33 TestUtils.assertTlsConnectionFails("example.com", 443); 37 X509TrustManager x509tm = TestUtils.getDefaultTrustManager();
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-debug-basic-disabled/src/android/security/net/config/cts/ |
BasicDebugOverrideDisabledTest.java | 24 TestUtils.assertTlsConnectionFails("android.com", 443);
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-debug-basic-enabled/src/android/security/net/config/cts/ |
BasicDebugOverrideEnabledTest.java | 25 TestUtils.assertTlsConnectionSucceeds("android.com", 443);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
TestUtils.java | 22 public class TestUtils {
|
/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...] |
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
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...] |
/frameworks/support/compat/tests/java/android/support/v4/view/ |
GravityCompatTest.java | 24 import android.support.v4.testutils.TestUtils; 95 TestUtils.assertRectangleBounds("Left / top aligned under LTR: ", 101 TestUtils.assertRectangleBounds("Center / top aligned under LTR: ", 107 TestUtils.assertRectangleBounds("Right / top aligned under LTR: ", 113 TestUtils.assertRectangleBounds("Left / center aligned under LTR: ", 119 TestUtils.assertRectangleBounds("Center / center aligned under LTR: ", 125 TestUtils.assertRectangleBounds("Right / center aligned under LTR: ", 131 TestUtils.assertRectangleBounds("Left / bottom aligned under LTR: ", 137 TestUtils.assertRectangleBounds("Center / bottom aligned under LTR: " [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXCertPathValidatorResultTest.java | 34 import org.apache.harmony.security.tests.support.cert.TestUtils; 73 TrustAnchor ta = TestUtils.getTrustAnchor(); 79 TestUtils.getPolicyTree(), 94 TestUtils.getPolicyTree(), 108 TrustAnchor ta = TestUtils.getTrustAnchor(); 116 TestUtils.getPolicyTree(), 129 TrustAnchor ta = TestUtils.getTrustAnchor(); 147 TrustAnchor ta = TestUtils.getTrustAnchor(); 170 TrustAnchor ta = TestUtils.getTrustAnchor(); 196 TrustAnchor ta = TestUtils.getTrustAnchor() [all...] |
PKIXCertPathCheckerTest.java | 35 import org.apache.harmony.security.tests.support.cert.TestUtils; 54 PKIXCertPathChecker pc1 = TestUtils.getTestCertPathChecker(); 65 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); 70 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); 74 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker(); 78 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker();
|
PKIXCertPathBuilderResultTest.java | 28 import org.apache.harmony.security.tests.support.cert.TestUtils; 82 TrustAnchor ta = TestUtils.getTrustAnchor(); 90 TestUtils.getPolicyTree(), 105 TrustAnchor ta = TestUtils.getTrustAnchor(); 125 TrustAnchor ta = TestUtils.getTrustAnchor(); 135 TestUtils.getPolicyTree(), 154 TestUtils.getPolicyTree(), 168 TrustAnchor ta = TestUtils.getTrustAnchor(); 178 TestUtils.getPolicyTree(), 187 TrustAnchor ta = TestUtils.getTrustAnchor() [all...] |
/external/sfntly/cpp/src/test/ |
test_utils_test.cc | 32 UConverter* conv = TestUtils::GetEncoder("utf8"); 41 int32_t encoded = TestUtils::EncodeOneChar(conv, (int16_t)from[i]); 61 result = TestUtils::Extension("../data/ext/tuffy.ttf"); 65 result = TestUtils::Extension("tuffy.ttf.fake"); 69 result = TestUtils::Extension("tuffy"); 73 result = TestUtils::Extension("tuffy."); 81 TEST(TestUtils, All) {
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
WakelockAnomalyTest.java | 56 TestUtils.setUp(instrumentation); 58 TestUtils.startAnomalyApp(context, mDevice); 63 TestUtils.tearDown(InstrumentationRegistry.getInstrumentation()); 70 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); 73 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); 78 TestUtils.wait(mDevice, durationMs - TIME_OUT); 92 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); 95 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); 99 TestUtils.wait(mDevice, durationMs); 114 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs) [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/ |
AbstractSSLTest.java | 18 import static org.conscrypt.TestUtils.installConscryptAsDefaultProvider;
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-nested-domains/src/android/security/net/config/cts/ |
NestedDomainConfigTest.java | 26 TestUtils.assertTlsConnectionFails("android.com", 443); 32 TestUtils.assertTlsConnectionFails("developer.android.com", 443);
|
/frameworks/base/libs/hwui/tests/unit/ |
SnapshotTests.cpp | 21 #include <tests/common/TestUtils.h> 26 auto actualRoot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(0, 0, 100, 100)); 27 auto root = TestUtils::makeSnapshot(Matrix4::identity(), Rect(10, 10, 90, 90)); 28 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); 51 auto actualRoot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(0, 0, 100, 100)); 52 auto root = TestUtils::makeSnapshot(Matrix4::identity(), Rect(10, 10, 90, 90)); 57 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90)); 67 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
|
SkiaPipelineTests.cpp | 27 #include "tests/common/TestUtils.h" 40 auto redNode = TestUtils::createSkiaNode(0, 0, 1, 1, 53 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); 56 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); 60 auto halfGreenNode = TestUtils::createSkiaNode(0, 0, 2, 2, 75 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); 78 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); 79 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); 82 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned int)SK_ColorTRANSPARENT); 83 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN) [all...] |
RenderNodeTests.cpp | 26 #include "tests/common/TestUtils.h" 42 auto child = TestUtils::createNode(0, 0, 200, 400, 46 auto parent = TestUtils::createNode(0, 0, 200, 400, 51 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); 56 TestUtils::recordNode(*parent, [](Canvas& canvas) { 63 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); 70 auto child = TestUtils::createNode(0, 0, 200, 400, 74 auto parent = TestUtils::createNode(0, 0, 200, 400, 84 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); 91 TestUtils::recordNode(*parent, [](Canvas& canvas) [all...] |
/cts/tests/tests/telecom3/src/android/telecom/cts/ |
SelfManagedAwareInCallServiceTest.java | 30 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_ID_1; 31 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_LABEL; 32 import static android.telecom.cts.TestUtils.SELF_MANAGED_COMPONENT; 71 mShouldTestTelecom = TestUtils.shouldTestTelecom(context); 73 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); 74 TestUtils.setDefaultDialer(getInstrumentation(), PACKAGE); 78 TestUtils.waitOnAllHandlers(getInstrumentation()); 89 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); 119 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, TEST_SELF_MANAGED_HANDLE, 122 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1) [all...] |