Home
last modified time | relevance | path

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

/cts/tests/tests/app/src/android/app/cts/
DShareIdentityTest.java404 TestData testData = new TestData(new CountDownLatch(1)); in testShareIdentity_explicitIdentityShared_identityAvailableToActivity() local
406 sTestIdToData.put(testId, testData); in testShareIdentity_explicitIdentityShared_identityAvailableToActivity()
412 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_explicitIdentityShared_identityAvailableToActivity()
413 assertPackageVisibility(testData); in testShareIdentity_explicitIdentityShared_identityAvailableToActivity()
420 TestData testData = new TestData(new CountDownLatch(1)); in testShareIdentity_defaultIdentityNotShared_identityNotAvailableToActivity() local
422 sTestIdToData.put(testId, testData); in testShareIdentity_defaultIdentityNotShared_identityNotAvailableToActivity()
428 testData.countDownLatch.await(10, TimeUnit.SECONDS)); in testShareIdentity_defaultIdentityNotShared_identityNotAvailableToActivity()
432 Process.INVALID_UID, testData.fromUid); in testShareIdentity_defaultIdentityNotShared_identityNotAvailableToActivity()
434 testData.fromPackage); in testShareIdentity_defaultIdentityNotShared_identityNotAvailableToActivity()
441 TestData testData = new TestData(new CountDownLatch(1)); in testShareIdentity_explicitIdentityNotShared_identityNotAvailableToActivity() local
[all …]
/cts/libs/input/src/com/android/cts/input/
DInputJsonParser.java256 HidTestData testData = new HidTestData(); in getHidTestData() local
260 testData.name = testcaseEntry.getString("name"); in getHidTestData()
265 testData.reports.add(report); in getHidTestData()
271 testData.events.add(parseInputEvent(i, source, events.getJSONObject(i))); in getHidTestData()
273 tests.add(testData); in getHidTestData()
289 HidVibratorTestData testData = new HidVibratorTestData(); in getHidVibratorTestData() local
292 testData.leftFfIndex = testcaseEntry.getInt("leftFfIndex"); in getHidVibratorTestData()
293 testData.rightFfIndex = testcaseEntry.getInt("rightFfIndex"); in getHidVibratorTestData()
298 testData.durations = new ArrayList<Long>(); in getHidVibratorTestData()
299 testData.amplitudes = new ArrayList<Integer>(); in getHidVibratorTestData()
[all …]
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceVibratorManagerTest.java156 for (UinputVibratorManagerTestData testData : tests) { in testInputVibratorManagerEvents()
158 assertTrue(testData.durations.size() > 0); in testInputVibratorManagerEvents()
160 assertTrue(testData.amplitudes.size() == 1 || testData.amplitudes.size() == 2); in testInputVibratorManagerEvents()
162 final long totalVibrations = testData.durations.size(); in testInputVibratorManagerEvents()
167 for (int i = 0; i < testData.amplitudes.size(); i++) { in testInputVibratorManagerEvents()
169 assertTrue(testData.durations.size() == testData.amplitudes.valueAt(i).size()); in testInputVibratorManagerEvents()
172 if (testData.durations.size() == 1) { in testInputVibratorManagerEvents()
173 long duration = testData.durations.get(0); in testInputVibratorManagerEvents()
174 int amplitude = testData.amplitudes.valueAt(i).get(0); in testInputVibratorManagerEvents()
179 long[] durations = testData.durations.stream() in testInputVibratorManagerEvents()
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputHidTestCase.java212 tests.removeIf(testData -> testData.events.stream().anyMatch( in testInputEvents()
215 for (HidTestData testData: tests) { in testInputEvents()
216 mCurrentTestCase = testData.name; in testInputEvents()
218 for (int i = 0; i < testData.reports.size(); i++) { in testInputEvents()
219 final String report = testData.reports.get(i); in testInputEvents()
222 verifyEvents(testData.events); in testInputEvents()
387 for (HidBatteryTestData testData : tests) { in testInputBatteryEvents()
390 for (int i = 0; i < testData.reports.size(); i++) { in testInputBatteryEvents()
391 final String report = testData.reports.get(i); in testInputBatteryEvents()
399 assertEquals("Test: " + testData.name, testData.status, batteryState.getStatus()); in testInputBatteryEvents()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DSparseIntArrayTest.java139 final int[] testData = { in testSparseIntArrayRemoveAt() local
143 for (int i = 0; i < testData.length; i++) { in testSparseIntArrayRemoveAt()
145 for (int value : testData) { in testSparseIntArrayRemoveAt()
148 int size = testData.length; in testSparseIntArrayRemoveAt()
159 for (int value : testData) { in testSparseIntArrayRemoveAt()
162 for (int i = 0; i < testData.length; i++) { in testSparseIntArrayRemoveAt()
167 for (int value : testData) { in testSparseIntArrayRemoveAt()
DSparseArrayTest.java332 TestData testData = (TestData) o; in equals()
333 return Objects.equals(data, testData.data); in equals()
/cts/tests/media/jni/
DNativeCodecTestBase.cpp369 auto* testData = new uint8_t[length]; in getRmsError() local
370 std::copy(memory.begin(), memory.end(), testData); in getRmsError()
371 auto* testDataReinterpret = reinterpret_cast<int16_t*>(testData); in getRmsError()
377 delete[] testData; in getRmsError()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DBrailleDisplayControllerTest.java257 private void setTestData(List<Bundle> testData) { in setTestData() argument
258 setTestData(mService, testData); in setTestData()
261 private static void setTestData(AccessibilityService service, List<Bundle> testData) { in setTestData() argument
263 BrailleDisplayController.setTestBrailleDisplayData(service, testData); in setTestData()
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DTvInteractiveAppServiceTest.java862 byte[] testData = new byte[1]; in testRequestSigning()
863 mSession.requestSigning(testId, testAlgo, testAlias, testData); in testRequestSigning()
870 assertArrayEquals(mCallback.mData, testData); in testRequestSigning()
881 byte[] testData = new byte[1]; in testRequestSSLSigning()
882 mSession.requestSigning(testId, testAlgo, testHost, testPort, testData); in testRequestSSLSigning()
890 assertArrayEquals(mCallback.mData, testData); in testRequestSSLSigning()
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DJavaClientTest.java258 String testData = "asdf"; in checkInOutSockets() local
259 byte[] output = testData.getBytes(); in checkInOutSockets()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSystemPaletteTest.kt807 fun testData(): List<Array<Serializable>> { in <lambda>() method
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiManagerTest.java781 SparseArray<int[]> testData = new SparseArray<>() {{ in testConvertBetweenChannelFrequencyMhz() local
788 for (int i = 0; i < testData.size(); i++) { in testConvertBetweenChannelFrequencyMhz()
789 for (int frequency : testData.valueAt(i)) { in testConvertBetweenChannelFrequencyMhz()
791 … ScanResult.convertFrequencyMhzToChannelIfSupported(frequency), testData.keyAt(i))); in testConvertBetweenChannelFrequencyMhz()