HomeSort by relevance Sort by last modified time
    Searched refs:TestUtils (Results 1 - 25 of 250) sorted by null

1 2 3 4 5 6 7 8 910

  /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...]
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...]
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,
  /external/conscrypt/src/test/java/org/conscrypt/
TestUtils.java 24 public class TestUtils {
25 private TestUtils() {}
28 InputStream is = TestUtils.class.getResourceAsStream("/" + name);
  /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);
  /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/libs/hwui/tests/unit/
RenderNodeTests.cpp 21 #include "tests/common/TestUtils.h"
28 auto child = TestUtils::createNode(0, 0, 200, 400,
32 auto parent = TestUtils::createNode(0, 0, 200, 400,
37 TestUtils::syncHierarchyPropertiesAndDisplayList(parent);
42 TestUtils::recordNode(*parent, [](TestCanvas& canvas) {
49 TestUtils::syncHierarchyPropertiesAndDisplayList(parent);
70 auto node = TestUtils::createNode(0, 0, 200, 400,
75 TestUtils::syncHierarchyPropertiesAndDisplayList(node);
78 TestUtils::recordNode(*node, [&](TestCanvas& canvas) {
84 TestUtils::syncHierarchyPropertiesAndDisplayList(node)
    [all...]
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));
  /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/v4/tests/java/android/support/v4/view/
GravityCompatTest.java 21 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...]
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
PKIXCertPathValidatorResultTest.java 33 import org.apache.harmony.security.tests.support.cert.TestUtils;
81 TrustAnchor ta = TestUtils.getTrustAnchor();
87 TestUtils.getPolicyTree(),
102 TestUtils.getPolicyTree(),
116 TrustAnchor ta = TestUtils.getTrustAnchor();
124 TestUtils.getPolicyTree(),
137 TrustAnchor ta = TestUtils.getTrustAnchor();
156 TrustAnchor ta = TestUtils.getTrustAnchor();
180 TrustAnchor ta = TestUtils.getTrustAnchor();
207 TrustAnchor ta = TestUtils.getTrustAnchor()
    [all...]
PKIXCertPathCheckerTest.java 29 import org.apache.harmony.security.tests.support.cert.TestUtils;
52 PKIXCertPathChecker pc1 = TestUtils.getTestCertPathChecker();
64 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker();
70 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker();
75 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker();
81 PKIXCertPathChecker pc = TestUtils.getTestCertPathChecker();
PKIXCertPathBuilderResultTest.java 33 import org.apache.harmony.security.tests.support.cert.TestUtils;
90 TrustAnchor ta = TestUtils.getTrustAnchor();
98 TestUtils.getPolicyTree(),
114 TrustAnchor ta = TestUtils.getTrustAnchor();
134 TrustAnchor ta = TestUtils.getTrustAnchor();
144 TestUtils.getPolicyTree(),
163 TestUtils.getPolicyTree(),
177 TrustAnchor ta = TestUtils.getTrustAnchor();
187 TestUtils.getPolicyTree(),
197 TrustAnchor ta = TestUtils.getTrustAnchor()
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
PKIXBuilderParameters_ImplTest.java 32 import org.apache.harmony.security.tests.support.cert.TestUtils;
54 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED);
77 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED);
102 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED);
120 KeyStore ks = TestUtils.getKeyStore(false, 0);
141 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED)
    [all...]
PKIXParameters_ImplTest.java 40 import org.apache.harmony.security.tests.support.cert.TestUtils;
60 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED);
82 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED_AND_UNTRUSTED);
99 KeyStore ks = TestUtils.getKeyStore(false, 0);
119 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.UNTRUSTED);
143 KeyStore ks = TestUtils.getKeyStore(true, TestUtils.TRUSTED)
    [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) {
test_utils.cc 30 TestUtils::TestUtils() {}
37 // void TestUtils::CreateNewFile(const char* file_path) {
41 int32_t TestUtils::EncodeOneChar(UConverter* encoder, int16_t uchar) {
72 UConverter* TestUtils::GetEncoder(const char* charset_name) {
84 const char* TestUtils::Extension(const char* file_path) {
  /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);

Completed in 392 milliseconds

1 2 3 4 5 6 7 8 910