Home
last modified time | relevance | path

Searched refs:testData (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/
Darith_test.js184 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/
DHSFriendlyNameElementTest.java97 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 …]
DCellularNetworkTest.java60 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()
DThreeGPPNetworkElementTest.java100 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()
DDomainNameElementTest.java101 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/
DPackageDexUsageTests.java194 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 …]
DDexManagerTests.java510 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/
DVectorDrawableTests.cpp257 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/
DServiceProviderVerifierTest.java188 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/
DTcpKeepalivePacketDataTest.java138 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/
DOutputLayerTest.cpp198 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()