/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/ |
D | arith_test.js | 184 var testData = [ 198 for (var i = 0; i < testData.length; i++) { 199 var a = testData[i][0] >>> 0; 200 var b = testData[i][1] >>> 0; 201 var cLow = testData[i][2] >>> 0; 202 var cHigh = testData[i][3] >>> 0; 217 var testData = [ 231 for (var i = 0; i < testData.length; i++) { 232 var a = new jspb.arith.UInt64(testData[i][0], testData[i][1]); 233 var prod = a.mul(testData[i][2]); [all …]
|
/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 | 510 private void assertSecondaryUse(TestData testData, PackageUseInfo pui, in assertSecondaryUse() argument 522 assertTrue(dui.getLoaderIsas().contains(testData.mLoaderIsa)); in assertSecondaryUse() 526 private void assertSecondaryUse(TestData testData, PackageUseInfo pui, in assertSecondaryUse() argument 529 Arrays.asList(testData.mClassLoader), in assertSecondaryUse() 531 assertSecondaryUse(testData, pui, secondaries, isUsedByOtherApps, ownerUserId, in assertSecondaryUse() 535 private void assertIsUsedByOtherApps(TestData testData, PackageUseInfo pui, in assertIsUsedByOtherApps() argument 537 assertIsUsedByOtherApps(testData.getBaseAndSplitDexPaths(), pui, isUsedByOtherApps); in assertIsUsedByOtherApps() 546 private void notifyDexLoad(TestData testData, List<String> dexPaths, int loaderUserId) { in notifyDexLoad() argument 549 List<String> classLoaders = Arrays.asList(testData.mClassLoader); in notifyDexLoad() 553 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 | 138 TcpKeepalivePacketData testData = null; in testParcel() local 140 testData = TcpKeepalivePacketData.tcpKeepalivePacket(testInfo); in testParcel() 141 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()
|