/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 49 TestUtils.makeApplicationInfo()); in testEmptyConfigFile() 61 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() 62 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testEmptyConfigFile() 63 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443); in testEmptyConfigFile() 64 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443); in testEmptyConfigFile() 69 TestUtils.makeApplicationInfo()); in testEmptyAnchors() 80 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() 81 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyAnchors() 82 TestUtils.assertConnectionFails(context, "developer.android.com", 443); in testEmptyAnchors() 83 TestUtils.assertUrlConnectionFails(context, "google.com", 443); in testEmptyAnchors() [all …]
|
D | NetworkSecurityConfigTests.java | 129 SSLContext context = TestUtils.getSSLContext(testSource); in testEmptyConfig() 130 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyConfig() 139 … SSLContext context = TestUtils.getSSLContext(new TestConfigSource(domainMap, defaultConfig)); in testEmptyPerNetworkSecurityConfig() 140 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyPerNetworkSecurityConfig() 141 TestUtils.assertConnectionSucceeds(context, "google.com", 443); in testEmptyPerNetworkSecurityConfig() 157 = TestUtils.getSSLContext(new TestConfigSource(domainMap, getSystemStoreConfig())); in testBadPin() 158 TestUtils.assertConnectionFails(context, "android.com", 443); in testBadPin() 159 TestUtils.assertConnectionSucceeds(context, "google.com", 443); in testBadPin() 175 = TestUtils.getSSLContext(new TestConfigSource(domainMap, getEmptyConfig())); in testGoodPin() 176 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testGoodPin() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | RenderNodeTests.cpp | 42 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 45 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() 50 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 55 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 62 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 72 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() 82 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 89 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 98 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() [all …]
|
D | WebViewFunctorManagerTests.cpp | 31 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() 34 TestUtils::runOnRenderThreadUnmanaged([](renderthread::RenderThread&) { in TEST() 37 auto& counts = TestUtils::countsForFunctor(functor); in TEST() 45 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() 51 TestUtils::runOnRenderThreadUnmanaged([](renderthread::RenderThread&) { in TEST() 54 auto& counts = TestUtils::countsForFunctor(functor); in TEST() 59 TestUtils::runOnRenderThreadUnmanaged([&](auto&) { in TEST() 66 TestUtils::runOnRenderThreadUnmanaged([&](auto&) { in TEST() 75 TestUtils::runOnRenderThreadUnmanaged([](renderthread::RenderThread&) { in TEST() 86 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() [all …]
|
D | SkiaPipelineTests.cpp | 43 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST() 56 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 59 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST() 63 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST() 87 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 92 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST() 96 auto halfGreenNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST() 111 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 114 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 115 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 44 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 69 auto node = TestUtils::createSkiaNode( in drawOrderedNode() 81 auto node = TestUtils::createSkiaNode( in drawOrderedNode() 108 auto parent = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in TEST() 145 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in TEST() 147 auto rootNode = TestUtils::createSkiaNode( in TEST() 160 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0)); in TEST() 164 ASSERT_EQ(SK_ColorWHITE, TestUtils::getColor(surface, 0, 0)); in TEST() 168 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0)); in TEST() 191 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE); in TEST() [all …]
|
D | SkiaDisplayListTests.cpp | 100 TestUtils::MockFunctor functor; in TEST() 105 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() 106 auto& counts = TestUtils::countsForFunctor(functor2); in TEST() 117 TestUtils::runOnRenderThread([&](auto&) { in TEST() 129 TestUtils::runOnRenderThread([](auto&) { in TEST() 143 auto rootNode = TestUtils::createNode(0, 0, 200, 400, nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST() 165 TestUtils::MockTreeObserver observer; in RENDERTHREAD_SKIA_PIPELINE_TEST() 202 auto rootNode = TestUtils::createNode(0, 0, 200, 400, nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST() 236 TestUtils::MockTreeObserver observer; in RENDERTHREAD_SKIA_PIPELINE_TEST() 260 TestUtils::MockTreeObserver observer; in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | LinearAllocatorTests.cpp | 50 la.create<TestUtils::SignalingDtor>()->setSignal(destroyed + i); in TEST() 55 la.create<TestUtils::SignalingDtor>(destroyed + 5 + i); in TEST() 77 auto sigdtor = la.create<TestUtils::SignalingDtor>(); in TEST() 123 LsaVector<std::unique_ptr<TestUtils::SignalingDtor> > vector(stdAllocator); in TEST() 125 vector.emplace_back(new TestUtils::SignalingDtor(&destroyed)); in TEST()
|
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/message/ |
D | IkeAuthPayloadTest.java | 85 byte[] inputPacket = TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_HEX_STRING); in testDecodeIkeAuthPayload() 92 TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_SIGNATURE_HEX_STRING); in testDecodeIkeAuthPayload() 98 byte[] inputPacket = TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_HEX_STRING); in testDecodeIkeAuthPayloadWithUnsupportedMethod() 111 byte[] skpBytes = TestUtils.hexStringToByteArray(PSK_SKP_HEX_STRING); in testSignWithPrf() 112 byte[] idBytes = TestUtils.hexStringToByteArray(PSK_ID_PAYLOAD_HEX_STRING); in testSignWithPrf() 116 TestUtils.hexStringToByteArray(PSK_SIGNED_OCTETS_APPENDIX_HEX_STRING); in testSignWithPrf() 123 byte[] skpBytes = TestUtils.hexStringToByteArray(PSK_SKP_HEX_STRING); in testGetSignedOctets() 124 byte[] idBytes = TestUtils.hexStringToByteArray(PSK_ID_PAYLOAD_HEX_STRING); in testGetSignedOctets() 125 byte[] ikeInitRequest = TestUtils.hexStringToByteArray(PSK_IKE_INIT_REQUEST_HEX_STRING); in testGetSignedOctets() 126 byte[] nonceResp = TestUtils.hexStringToByteArray(PSK_NONCE_RESP_HEX_STRING); in testGetSignedOctets() [all …]
|
D | IkeEncryptedPayloadBodyTest.java | 85 TestUtils.hexStringToByteArray(IKE_AUTH_INIT_REQUEST_UNENCRYPTED_DATA); in setUp() 91 mDataToAuthenticate = TestUtils.hexStringToByteArray(hexStringToAuthenticate); in setUp() 93 TestUtils.hexStringToByteArray(IKE_AUTH_INIT_REQUEST_ENCRYPT_PADDED_DATA); in setUp() 95 TestUtils.hexStringToByteArray( in setUp() 102 mChecksum = TestUtils.hexStringToByteArray(IKE_AUTH_INIT_REQUEST_CHECKSUM); in setUp() 103 mIv = TestUtils.hexStringToByteArray(IKE_AUTH_INIT_REQUEST_IV); in setUp() 104 mPadding = TestUtils.hexStringToByteArray(IKE_AUTH_INIT_REQUEST_PADDING); in setUp() 107 byte[] encryptKeyBytes = TestUtils.hexStringToByteArray(ENCR_KEY_FROM_INIT_TO_RESP); in setUp() 112 byte[] integrityKeyBytes = TestUtils.hexStringToByteArray(INTE_KEY_FROM_INIT_TO_RESP); in setUp() 213 TestUtils.hexStringToByteArray( in testBuildAndEncodeOutboundIkeEncryptedPayloadBody()
|
D | IkeAuthPskPayloadTest.java | 67 private static final byte[] PSK = TestUtils.hexStringToByteArray(PSK_HEX_STRING); 69 TestUtils.hexStringToByteArray(PSK_IKE_INIT_REQUEST_HEX_STRING); 70 private static final byte[] NONCE = TestUtils.hexStringToByteArray(PSK_NONCE_RESP_HEX_STRING); 72 TestUtils.hexStringToByteArray(PSK_ID_INITIATOR_PAYLOAD_HEX_STRING); 73 private static final byte[] PRF_KEY = TestUtils.hexStringToByteArray(PSK_SKP_HEX_STRING); 75 TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_SIGNATURE_HEX_STRING); 90 byte[] expectedPayload = TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_HEX_STRING); in testBuildOutboundIkeAuthPskPayload() 100 byte[] payloadBody = TestUtils.hexStringToByteArray(PSK_AUTH_PAYLOAD_BODY_HEX_STRING); in buildPskPayload()
|
D | IkeSaPayloadTest.java | 175 byte[] inputPacket = TestUtils.hexStringToByteArray(ATTRIBUTE_RAW_PACKET); in testDecodeAttribute() 191 byte[] expectedBytes = TestUtils.hexStringToByteArray(ATTRIBUTE_RAW_PACKET); in testEncodeAttribute() 198 byte[] inputPacket = TestUtils.hexStringToByteArray(ENCR_TRANSFORM_RAW_PACKET); in testDecodeEncryptionTransform() 214 byte[] inputPacket = TestUtils.hexStringToByteArray(ENCR_TRANSFORM_RAW_PACKET); in testDecodeEncryptionTransformWithInvalidKeyLength() 236 byte[] expectedBytes = TestUtils.hexStringToByteArray(ENCR_TRANSFORM_RAW_PACKET); in testEncodeEncryptionTransform() 261 byte[] inputPacket = TestUtils.hexStringToByteArray(PRF_TRANSFORM_RAW_PACKET); in testDecodePrfTransform() 280 byte[] expectedBytes = TestUtils.hexStringToByteArray(PRF_TRANSFORM_RAW_PACKET); in testEncodePrfTransform() 296 byte[] inputPacket = TestUtils.hexStringToByteArray(INTEG_TRANSFORM_RAW_PACKET); in testDecodeIntegrityTransform() 312 byte[] inputPacket = TestUtils.hexStringToByteArray(INTEG_TRANSFORM_RAW_PACKET); in testDecodeIntegrityTransformWithUnrecognizedAttribute() 331 byte[] expectedBytes = TestUtils.hexStringToByteArray(INTEG_TRANSFORM_RAW_PACKET); in testEncodeIntegrityTransform() [all …]
|
D | IkeDeletePayloadTest.java | 44 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING)); in testDecodeDeleteIkePayload() 63 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_CHILD_PAYLOAD_HEX_STRING)); in testDecodeDeleteChildPayload() 77 byte[] childSpiBytes = TestUtils.hexStringToByteArray(CHILD_SPI); in testDecodeDeleteChildPayload() 86 byte[] deletePayloadBytes = TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING); in testDecodeWithInvalidProtocol() 101 byte[] deletePayloadBytes = TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING); in testDecodeWithInvalidSpiSize() 116 byte[] deletePayloadBytes = TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING); in testDecodeWithInvalidNumSpi() 131 byte[] deletePayloadBytes = TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING); in testDecodeWithInvalidNumSpiAndSpiSize()
|
D | IkeKePayloadTest.java | 98 byte[] inputPacket = TestUtils.hexStringToByteArray(KE_PAYLOAD_RAW_PACKET); in testDecodeIkeKePayload() 105 byte[] keyExchangeData = TestUtils.hexStringToByteArray(KEY_EXCHANGE_DATA_RAW_PACKET); in testDecodeIkeKePayload() 117 byte[] inputPacket = TestUtils.hexStringToByteArray(badKeyPayloadPacket); in testDecodeIkeKePayloadWithInvalidKeData() 128 byte[] inputPacket = TestUtils.hexStringToByteArray(KE_PAYLOAD_RAW_PACKET); in testEncodeIkeKePayload() 135 TestUtils.hexStringToByteArray(KE_PAYLOAD_GENERIC_HEADER + KE_PAYLOAD_RAW_PACKET); in testEncodeIkeKePayload() 172 byte[] remotePublicKey = TestUtils.hexStringToByteArray(PUBLIC_KEY_REMOTE); in testGetSharedkey() 178 byte[] expectedSharedKeyBytes = TestUtils.hexStringToByteArray(EXPECTED_SHARED_KEY); in testGetSharedkey()
|
D | IkeMessageTest.java | 119 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeIkeMessage() 130 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeMessageWithUnsupportedUncriticalPayload() 143 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testThrowUnsupportedCriticalPayloadException() 161 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeMessageWithTooShortPayloadLength() 175 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeMessageWithTooLongPayloadLength() 188 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET + "0000"); in testDecodeMessageWithExpectedBytesInTheEnd() 208 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testAttachEncodedHeader() 209 byte[] ikeBodyBytes = TestUtils.hexStringToByteArray(IKE_SA_INIT_BODY_RAW_PACKET); in testAttachEncodedHeader()
|
D | IkeHeaderTest.java | 76 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeIkeHeader() 98 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeIkeHeaderWithInvalidMajorVersion() 116 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeIkeHeaderWithInvalidExchangeType() 129 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testDecodeIkeHeaderWithInvalidPacketLength() 142 byte[] inputPacket = TestUtils.hexStringToByteArray(IKE_SA_INIT_RAW_PACKET); in testEncodeIkeHeader() 148 byte[] expectedPacket = TestUtils.hexStringToByteArray(IKE_HEADER_HEX_STRING); in testEncodeIkeHeader()
|
D | IkeNotifyPayloadTest.java | 58 byte[] inputPacket = TestUtils.hexStringToByteArray(NOTIFY_PAYLOAD_BODY_RAW_PACKET); in testDecodeNotifyPayload() 69 byte[] inputPacket = TestUtils.hexStringToByteArray(NOTIFY_PAYLOAD_BODY_RAW_PACKET); in testDecodeNotifyPayloadThrowException() 90 TestUtils.hexStringToByteArray(NAT_DETECTION_SOURCE_IP_DATA_HEX_STRING); in testGenerateNatDetectionData() 96 byte[] inputPacket = TestUtils.hexStringToByteArray(NOTIFY_PAYLOAD_BODY_RAW_PACKET); in testEncodeNotifyPayload() 103 TestUtils.hexStringToByteArray( in testEncodeNotifyPayload()
|
D | IkeIdPayloadTest.java | 52 TestUtils.hexStringToByteArray(IPV4_ADDR_ID_PAYLOAD_RESPONDER_BODY_HEX_STRING); in testDecodeIpv4AddrIdPayload() 65 TestUtils.hexStringToByteArray(IPV6_ADDR_ID_PAYLOAD_RESPONDER_BODY_HEX_STRING); in testDecodeIpv6AddrIdPayload() 78 TestUtils.hexStringToByteArray(IPV4_ADDR_ID_PAYLOAD_RESPONDER_BODY_HEX_STRING); in testDecodeUnsupportedIdType() 97 TestUtils.hexStringToByteArray(IPV4_ADDR_ID_PAYLOAD_RESPONDER_HEX_STRING); in testConstructAndEncodeIpv4AddrIdPayload() 110 TestUtils.hexStringToByteArray(IPV6_ADDR_ID_PAYLOAD_RESPONDER_HEX_STRING); in testConstructAndEncodeIpv6AddrIdPayload()
|
D | IkeCertX509CertPayloadTest.java | 98 byte[] inputPacket = TestUtils.hexStringToByteArray(CERT_PAYLOAD_BODY_HEX_STRING); in testDecodeX509Certificate() 108 byte[] inputPacket = TestUtils.hexStringToByteArray(CERT_PAYLOAD_BODY_HEX_STRING + "ffff"); in testDecodeX509CertificateWithUnexpectedTrailing() 118 byte[] inputPacket = TestUtils.hexStringToByteArray(CERT_PAYLOAD_BODY_HEX_STRING); in testDecodeGetNoX509Certificate() 129 byte[] inputPacket = TestUtils.hexStringToByteArray(CERT_PAYLOAD_BODY_HEX_STRING); in testDecodeInvalidX509Certificate()
|
/frameworks/opt/net/ike/tests/iketests/src/java/com/android/ike/ikev2/ |
D | SaRecordTest.java | 21 import com.android.ike.ikev2.message.TestUtils; 90 byte[] nonceInit = TestUtils.hexStringToByteArray(IKE_NONCE_INIT_HEX_STRING); in testCalculateSKeySeed() 91 byte[] nonceResp = TestUtils.hexStringToByteArray(IKE_NONCE_RESP_HEX_STRING); in testCalculateSKeySeed() 92 byte[] sharedDhKey = TestUtils.hexStringToByteArray(IKE_SHARED_DH_KEY_HEX_STRING); in testCalculateSKeySeed() 98 byte[] expectedSKeySeed = TestUtils.hexStringToByteArray(IKE_SKEYSEED_HEX_STRING); in testCalculateSKeySeed() 104 byte[] prfKey = TestUtils.hexStringToByteArray(IKE_SKEYSEED_HEX_STRING); in testSignWithPrfPlusForIke() 106 TestUtils.hexStringToByteArray( in testSignWithPrfPlusForIke() 120 byte[] expectedKeyMat = TestUtils.hexStringToByteArray(IKE_KEY_MAT); in testSignWithPrfPlusForIke() 126 byte[] prfKey = TestUtils.hexStringToByteArray(IKE_SK_D_HEX_STRING); in testSignWithPrfPlusForFirstChild() 128 TestUtils.hexStringToByteArray( in testSignWithPrfPlusForFirstChild() [all …]
|
D | IkeTrafficSelectorTest.java | 23 import com.android.ike.ikev2.message.TestUtils; 62 TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING + TS_IPV4_TWO_HEX_STRING); in testDecodeIkeTrafficSelectors() 94 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidTsType() 108 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol() 122 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING + "FFFF"); in testDecodeIkeTrafficSelectorWithExpectedTrailing() 135 byte[] tsBytes = TestUtils.hexStringToByteArray(TS_IPV4_ONE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidTsLength() 152 byte[] tsBytes = TestUtils.hexStringToByteArray(TX_IPV4_INVALID_PORT_RANGE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidPortRange() 165 byte[] tsBytes = TestUtils.hexStringToByteArray(TX_IPV4_INVALID_ADDRESS_RANGE_HEX_STRING); in testDecodeIkeTrafficSelectorWithInvalidAddressRange()
|
D | ChildSessionStateMachineTest.java | 35 import com.android.ike.ikev2.message.TestUtils; 93 TestUtils.hexStringToIkePayload( in setUpPayloadLists() 96 TestUtils.hexStringToIkePayload( in setUpPayloadLists() 107 byte[] spiInBytes = TestUtils.hexStringToByteArray(CURRENT_CHILD_SA_SPI_IN); in makeDummyChildSaRecord() 110 byte[] spiOutBytes = TestUtils.hexStringToByteArray(CURRENT_CHILD_SA_SPI_OUT); in makeDummyChildSaRecord()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 35 std::unordered_map<int, TestUtils::CallCounts> TestUtils::sMockFunctorCounts{}; 37 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) { in interpolateColor() 54 sp<DeferredLayerUpdater> TestUtils::createTextureLayerUpdater( in createTextureLayerUpdater() 68 sp<DeferredLayerUpdater> TestUtils::createTextureLayerUpdater( in createTextureLayerUpdater() 81 void TestUtils::drawUtf8ToCanvas(Canvas* canvas, const char* text, const Paint& paint, float x, in drawUtf8ToCanvas() 92 void TestUtils::drawUtf8ToCanvas(Canvas* canvas, const char* text, const Paint& paint, in drawUtf8ToCanvas() 99 void TestUtils::TestTask::run() { in run() 113 std::unique_ptr<uint16_t[]> TestUtils::asciiToUtf16(const char* str) { in asciiToUtf16() 122 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor() 161 SkRect TestUtils::getClipBounds(const SkCanvas* canvas) { in getClipBounds() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | MagnifierAnimation.cpp | 34 magnifier = TestUtils::createBitmap(200, 100); in createContent() 39 card = TestUtils::createNode( in createContent() 46 TestUtils::drawUtf8ToCanvas(&canvas, "Test string", paint, 10, 400); in createContent() 49 zoomImageView = TestUtils::createNode( in createContent()
|
D | TextAnimation.cpp | 30 card = TestUtils::createNode(0, 0, width, height, [](RenderProperties& props, in createContent() 38 TestUtils::drawUtf8ToCanvas(&canvas, "Test string", paint, 400, i * 100); in createContent() 45 TestUtils::drawUtf8ToCanvas(&canvas, "This is a neat circle of text!", paint, path); in createContent()
|