/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | HSFriendlyNameElementTest.java | 97 byte[] testData = getTestData(new String[] {TEST_OPERATOR_NAME1}); in parseBufferWithTruncatedByte() 99 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1); in parseBufferWithTruncatedByte() 100 buffer.put(testData, 0, testData.length - 1); in parseBufferWithTruncatedByte() 113 byte[] testData = getTestData(new String[] {TEST_OPERATOR_NAME1, TEST_OPERATOR_NAME2}); in parseBufferWithDefaultTestData() 114 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithDefaultTestData() 115 buffer.put(testData); in parseBufferWithDefaultTestData() 139 byte[] testData = getTestData(new String[] {text}); in parseBufferWithMaxLengthOperatoreName() 140 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithMaxLengthOperatoreName() 141 buffer.put(testData); in parseBufferWithMaxLengthOperatoreName() 163 byte[] testData = getTestData(new String[] {text}); in parseBufferWithOperatorNameLengthExceedMax() [all …]
|
D | CellularNetworkTest.java | 60 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(1, plmnsData); in parseBufferWithInvalidIEIType() 61 assertNull(CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithInvalidIEIType() 73 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(plmnsData); in parseBufferWithIncompleteData() 74 CellularNetwork.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData() 87 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI( in parseBufferWithMismatchIEISizeAndPLMNCount() 89 CellularNetwork.parse(ByteBuffer.wrap(testData)); in parseBufferWithMismatchIEISizeAndPLMNCount() 101 byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(plmnsData); in parseBufferWithTestData() 109 assertEquals(expected, CellularNetwork.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
|
D | ThreeGPPNetworkElementTest.java | 100 byte[] testData = getTestData(1, testIeiList); in parseBufferWithUnsupportedVersionNumber() 101 ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData)); in parseBufferWithUnsupportedVersionNumber() 115 byte[] testData = getTestData(ThreeGPPNetworkElement.GUD_VERSION_1, testIeiList); in parseBufferWithIncompleteData() 116 ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData, 0, testData.length - 1)); in parseBufferWithIncompleteData() 130 byte[] testData = getTestData(ThreeGPPNetworkElement.GUD_VERSION_1, testIeiList); in parseBufferWithTestData() 138 assertEquals(expected, ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData))); in parseBufferWithTestData()
|
D | DomainNameElementTest.java | 101 byte[] testData = getTestData(new String[] {TEST_DOMAIN_NAME1, TEST_DOMAIN_NAME2}); in parseBufferWithValidDomainNames() 102 ByteBuffer buffer = ByteBuffer.wrap(testData); in parseBufferWithValidDomainNames()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDexUsageTests.java | 194 TestData testData = new TestData(fooPackageName, in testRecordTooManySecondaries() local 198 assertTrue("Adding " + testData.mDexFile, record(testData)); in testRecordTooManySecondaries() 199 expectedSecondaries.add(testData); in testRecordTooManySecondaries() 201 assertFalse("Adding " + testData.mDexFile, record(testData)); in testRecordTooManySecondaries() 589 for (TestData testData : secondaries) { in assertPackageDexUsage() 590 DexUseInfo dInfo = dexUseInfoMap.get(testData.mDexFile); in assertPackageDexUsage() 592 assertEquals(testData.mUsedByOtherApps, dInfo.isUsedByOtherApps()); in assertPackageDexUsage() 593 assertEquals(testData.mOwnerUserId, dInfo.getOwnerUserId()); in assertPackageDexUsage() 595 assertTrue(dInfo.getLoaderIsas().contains(testData.mLoaderIsa)); in assertPackageDexUsage() 600 assertEquals(testData.mClassLoaderContext, dInfo.getClassLoaderContext()); in assertPackageDexUsage() [all …]
|
D | DexManagerTests.java | 590 private void assertSecondaryUse(TestData testData, PackageUseInfo pui, in assertSecondaryUse() argument 602 assertTrue(dui.getLoaderIsas().contains(testData.mLoaderIsa)); in assertSecondaryUse() 606 private void assertSecondaryUse(TestData testData, PackageUseInfo pui, in assertSecondaryUse() argument 609 Arrays.asList(testData.mClassLoader), in assertSecondaryUse() 611 assertSecondaryUse(testData, pui, secondaries, isUsedByOtherApps, ownerUserId, in assertSecondaryUse() 615 private void assertIsUsedByOtherApps(TestData testData, PackageUseInfo pui, in assertIsUsedByOtherApps() argument 617 assertIsUsedByOtherApps(testData.getBaseAndSplitDexPaths(), pui, isUsedByOtherApps); in assertIsUsedByOtherApps() 626 private void notifyDexLoad(TestData testData, List<String> dexPaths, int loaderUserId) { in notifyDexLoad() argument 629 List<String> classLoaders = Arrays.asList(testData.mClassLoader); in notifyDexLoad() 632 notifyDexLoad(testData, classLoaders, classPaths, loaderUserId); in notifyDexLoad() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | VectorDrawableTests.cpp | 257 for (const TestData& testData : sTestDataSet) { in TEST() local 261 size_t length = strlen(testData.pathString); in TEST() 262 PathParser::getPathDataFromAsciiString(&pathData, &result, testData.pathString, length); in TEST() 263 EXPECT_EQ(testData.pathData, pathData); in TEST() 277 for (const TestData& testData : sTestDataSet) { in TEST() local 279 testData.skPathLamda(&expectedPath); in TEST() 281 VectorDrawableUtils::verbsToPath(&actualPath, testData.pathData); in TEST() 287 for (const TestData& testData : sTestDataSet) { in TEST() local 289 size_t length = strlen(testData.pathString); in TEST() 292 PathParser::parseAsciiStringForSkPath(&actualPath, &result, testData.pathString, length); in TEST() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ServiceProviderVerifierTest.java | 188 String testData = "testData"; in testVerifyFingerPrintOfCertificateWithSameFingerPrintValueReturnTrue() local 190 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithSameFingerPrintValueReturnTrue() 203 String testData = "differentData"; in testVerifyFingerPrintOfCertificateWithDifferentFingerPrintValueReturnFalse() local 205 when(mX509Certificate.getEncoded()).thenReturn(testData.getBytes()); in testVerifyFingerPrintOfCertificateWithDifferentFingerPrintValueReturnFalse()
|
/frameworks/base/tests/net/java/android/net/ |
D | TcpKeepalivePacketDataTest.java | 136 TcpKeepalivePacketData testData = null; in testParcel() local 138 testData = TcpKeepalivePacketData.tcpKeepalivePacket(testInfo); in testParcel() 139 resultData = testData.toStableParcelable(); in testParcel()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputLayerTest.cpp | 198 const std::array<Entry, 24> testData = { in TEST_F() local 233 for (size_t i = 0; i < testData.size(); i++) { in TEST_F() 234 const auto& entry = testData[i]; in TEST_F()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 2887 final CaptivePortalData testData = new CaptivePortalData.Builder() in testCaptivePortalApi() local 2892 mWiFiNetworkAgent.notifyCaptivePortalDataChanged(testData); in testCaptivePortalApi() 2895 lp -> testData.equals(lp.getCaptivePortalData())); in testCaptivePortalApi() 2902 lp -> testData.equals(lp.getCaptivePortalData()) && lp.getMtu() == 1234); in testCaptivePortalApi()
|