/cts/tests/tests/util/src/android/util/cts/ |
D | EventLogTest.java | 55 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEvent() local 56 assertEquals(5, events.size()); in testWriteEvent() 57 assertEquals(ANSWER_TAG, events.get(0).getTag()); in testWriteEvent() 58 assertEquals(12345, events.get(0).getData()); in testWriteEvent() 59 assertEquals(23456L, events.get(1).getData()); in testWriteEvent() 60 assertEquals(42.4242f, events.get(2).getData()); in testWriteEvent() 61 assertEquals("Test", events.get(3).getData()); in testWriteEvent() 63 Object[] arr = (Object[]) events.get(4).getData(); in testWriteEvent() 89 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEventWithOversizeValueLimitElision() local 90 assertEquals(7, events.size()); in testWriteEventWithOversizeValueLimitElision() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | SecurityLoggingTest.java | 229 final List<SecurityEvent> events = getEvents(); in testVerifyGeneratedLogs() local 230 verifyAutomaticEventsPresent(events); in testVerifyGeneratedLogs() 231 verifyKeystoreEventsPresent(events); in testVerifyGeneratedLogs() 232 verifyKeyChainEventsPresent(events); in testVerifyGeneratedLogs() 233 verifyAdminEventsPresent(events); in testVerifyGeneratedLogs() 236 private void verifyAutomaticEventsPresent(List<SecurityEvent> events) { in verifyAutomaticEventsPresent() argument 237 verifyOsStartupEventPresent(events); in verifyAutomaticEventsPresent() 238 verifyLoggingStartedEventPresent(events); in verifyAutomaticEventsPresent() 239 verifyCryptoSelfTestEventPresent(events); in verifyAutomaticEventsPresent() 242 private void verifyKeyChainEventsPresent(List<SecurityEvent> events) { in verifyKeyChainEventsPresent() argument [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_sensor_events.py | 34 events = cam.get_sensor_events() 36 len(events["gyro"]), len(events["accel"]), len(events["mag"])) 40 assert len(events[key]) > 0, e_msg
|
D | test_unified_timestamps.py | 43 events = cam.get_sensor_events() 48 assert(len(events[sensor]) > 0) 49 ts_sensor_first[sensor] = events[sensor][0]["time"] 50 ts_sensor_last[sensor] = events[sensor][-1]["time"]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | FillEventHistoryTest.java | 117 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testDatasetAuthenticationSelected() local 118 assertFillEventForDatasetAuthenticationSelected(events.get(0), "name", in testDatasetAuthenticationSelected() 156 List<Event> events = selection.getEvents(); in testAuthenticationSelected() local 157 assertFillEventForAuthenticationSelected(events.get(0), NULL_DATASET_ID, in testAuthenticationSelected() 189 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() local 190 assertFillEventForDatasetSelected(events.get(0), NULL_DATASET_ID, in testDatasetSelected_twoResponses() 225 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() local 226 assertFillEventForDatasetSelected(events.get(0), "name3", in testDatasetSelected_twoResponses() 239 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() local 240 assertFillEventForDatasetSelected(events.get(0), "name3", in testDatasetSelected_twoResponses() [all …]
|
D | FieldsClassificationTest.java | 194 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in simpleHitTest() local 195 assertFillEventForFieldsClassification(events.get(0), fieldId, "myId", 1); in simpleHitTest() 236 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in manyUserData_oneDetectableField() local 239 assertFillEventForFieldsClassification(events.get(0), new FieldClassificationResult[] { in manyUserData_oneDetectableField() 243 assertFillEventForFieldsClassification(events.get(0), new FieldClassificationResult[] { in manyUserData_oneDetectableField() 280 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_oneUserData_manyDetectableFields() local 281 assertFillEventForFieldsClassification(events.get(0), in testHit_oneUserData_manyDetectableFields() 328 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_manyUserData_manyDetectableFields() local 329 assertFillEventForFieldsClassification(events.get(0), in testHit_manyUserData_manyDetectableFields() 383 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_manyUserDataPerField_manyDetectableFields() local [all …]
|
/cts/tests/tests/location/src/android/location/cts/ |
D | GnssMeasurementRegistrationTest.java | 99 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in testGnssMeasurementRegistration() local 100 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in testGnssMeasurementRegistration() 102 if (!events.isEmpty()) { in testGnssMeasurementRegistration() 121 events = mMeasurementListener.getEvents(); in testGnssMeasurementRegistration() 122 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in testGnssMeasurementRegistration() 127 !events.isEmpty()); in testGnssMeasurementRegistration()
|
D | GnssMeasurementsConstellationTest.java | 96 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in testGnssMultiConstellationSupported() local 97 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in testGnssMultiConstellationSupported() 101 !events.isEmpty()); in testGnssMultiConstellationSupported() 104 for (GnssMeasurementsEvent event : events) { in testGnssMultiConstellationSupported()
|
D | GnssMeasurementWhenNoLocationTest.java | 137 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in testGnssMeasurementWhenNoLocation() local 138 Log.i(TAG, "Number of GPS measurement events received = " + events.size()); in testGnssMeasurementWhenNoLocation() 140 if (events.isEmpty()) { in testGnssMeasurementWhenNoLocation() 149 "Location was received before " + events.size() + in testGnssMeasurementWhenNoLocation() 162 GnssMeasurementsEvent firstEvent = events.get(0); in testGnssMeasurementWhenNoLocation()
|
D | GnssNavigationMessageRegistrationTest.java | 102 List<GnssNavigationMessage> events = mTestGnssNavigationMessageListener.getEvents(); in testGnssNavigationMessageRegistration() local 103 if (!events.isEmpty()) { in testGnssNavigationMessageRegistration() 105 TestMeasurementUtil.verifyGnssNavMessageMandatoryField(mTestLocationManager, events); in testGnssNavigationMessageRegistration()
|
D | GnssMeasurementValuesTest.java | 102 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in testListenForGnssMeasurements() local 103 int eventCount = events.size(); in testListenForGnssMeasurements() 113 for (GnssMeasurementsEvent event : events) { in testListenForGnssMeasurements()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 160 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testOrderedActivityLaunchSequenceInEventLog() local 164 while (events.hasNextEvent()) { in testOrderedActivityLaunchSequenceInEventLog() 166 assertTrue(events.getNextEvent(event)); in testOrderedActivityLaunchSequenceInEventLog() 213 Map<String,UsageStats> events = mUsageStatsManager.queryAndAggregateUsageStats( in testAppLaunchCount() local 215 UsageStats stats = events.get(mTargetPackage); in testAppLaunchCount() 220 events = mUsageStatsManager.queryAndAggregateUsageStats( in testAppLaunchCount() 222 stats = events.get(mTargetPackage); in testAppLaunchCount() 229 events = mUsageStatsManager.queryAndAggregateUsageStats( in testAppLaunchCount() 231 stats = events.get(mTargetPackage); in testAppLaunchCount() 242 UsageEvents events = mUsageStatsManager.queryEvents(startTime - 1_000, endTime + 1_000); in testStandbyBucketChangeLog() local [all …]
|
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/ |
D | CameraEvictionTest.java | 201 ArrayList<ErrorLoggingService.LogEvent> events = new ArrayList<>(); in testBasicCamera2ActivityEviction() local 211 events.add(e); in testBasicCamera2ActivityEviction() 213 int[] eventList = new int[events.size()]; in testBasicCamera2ActivityEviction() 215 for (ErrorLoggingService.LogEvent e : events) { in testBasicCamera2ActivityEviction() 306 List<ErrorLoggingService.LogEvent> events = null; in testAPI1ActivityEviction() local 308 events = mErrorServiceConnection.getLog(SETUP_TIMEOUT, in testAPI1ActivityEviction() 311 if (events != null) assertOnly(TestConstants.EVENT_CAMERA_CONNECT, events); in testAPI1ActivityEviction() 451 public static void assertOnly(int event, List<ErrorLoggingService.LogEvent> events) { in assertOnly() argument 452 assertTrue("Remote camera activity never received event: " + event, events != null); in assertOnly() 453 for (ErrorLoggingService.LogEvent e : events) { in assertOnly() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/ |
D | InitialValueVerificationTest.java | 70 private static InitialValueVerification getVerification(Collection<TestSensorEvent> events, in getVerification() argument 74 verification.addSensorEvents(events); in getVerification() 80 List<TestSensorEvent> events = new ArrayList<>(); in verifyStatsWithTwoWindows() local 84 events.add(new TestSensorEvent(null /* sensor */, timestamp, 0 /* accuracy */, in verifyStatsWithTwoWindows() 91 events.add(new TestSensorEvent(null /* sensor */, timestamp, 0 /* accuracy */, in verifyStatsWithTwoWindows() 96 getVerification(events, MAX_ABSOLUTE_DELTA, INITIAL_WINDOW_LENGTH); in verifyStatsWithTwoWindows()
|
D | MagnitudeVerificationTest.java | 71 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() local 73 events.add(new TestSensorEvent(null, 0, 0, value)); in getVerification() 76 verification.addSensorEvents(events); in getVerification()
|
D | StandardDeviationVerificationTest.java | 88 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() local 90 events.add(new TestSensorEvent(null, 0, 0, value)); in getVerification() 93 verification.addSensorEvents(events); in getVerification()
|
D | EventGapVerificationTest.java | 97 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local 99 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification() 102 verification.addSensorEvents(events); in getVerification()
|
D | FrequencyVerificationTest.java | 83 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local 85 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification() 89 verification.addSensorEvents(events); in getVerification()
|
D | EventBasicVerificationTest.java | 98 Collection<TestSensorEvent> events = new ArrayList<>(values.length); in getVerification() local 100 events.add(new TestSensorEvent(eventSensor, 0, 0, value)); in getVerification() 104 verification.addSensorEvents(events); in getVerification()
|
D | EventOrderingVerificationTest.java | 91 Collection<TestSensorEvent> events = new ArrayList<>(timestamps.length); in getVerification() local 93 events.add(new TestSensorEvent(null, timestamp, 0, null)); in getVerification() 96 verification.addSensorEvents(events); in getVerification()
|
D | AbstractSensorVerification.java | 33 public synchronized void addSensorEvents(Collection<TestSensorEvent> events) { in addSensorEvents() argument 34 for (TestSensorEvent event : events) { in addSensorEvents()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 784 List<DirectReportSensorEvent> events = parseEntireBuffer(mBuffer, token); in runMultiModeRateIndependencyTest() local 785 checkEventRate(TEST_RUN_TIME_PERIOD_MILLISEC, events, type, rateLevel); in runMultiModeRateIndependencyTest() 824 List<DirectReportSensorEvent> events = collectSensorEventsRealtime( in runTimestampTest() local 826 assertTrue("Realtime event collection failed", events != null); in runTimestampTest() 827 assertTrue("Realtime event collection got no data", events.size() > 0); in runTimestampTest() 834 checkTimestampRelative(events, listener.getEvents()); in runTimestampTest() 835 checkTimestampAbsolute(events); in runTimestampTest() 891 List<DirectReportSensorEvent> events; in runReconfigureTest() local 903 events = collectSensorEventsRealtime(memType, false /*secondary*/, in runReconfigureTest() 908 checkEventRate(TEST_RUN_TIME_PERIOD_MILLISEC, events, type, rateLevel); in runReconfigureTest() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | EventCapturingTouchListener.java | 30 public final BlockingQueue<MotionEvent> events = new LinkedBlockingQueue<>(); field in EventCapturingTouchListener 34 assertTrue(events.offer(MotionEvent.obtain(motionEvent))); in onTouch()
|
/cts/apps/CameraITS/tests/sensor_fusion/ |
D | test_sensor_fusion.py | 132 events, frames = collect_data(fps, w, h, test_length) 134 events, frames, _, h = load_data() 139 cam_times = get_cam_times(events["cam"]) 142 gyro_times = [e["time"] for e in events["gyro"]] 165 cam_rots = get_cam_rotations(frames, events["facing"], h) 174 offset = get_best_alignment_offset(cam_times, cam_rots, events["gyro"]) 178 gyro_rots = get_gyro_rotations(events["gyro"], cam_times) 403 events = json.loads(f.read()) 404 n = len(events["cam"]) 410 return events, frames, w, h [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 226 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testRegisterFileDescriptorCallbackThrowsWhenFdIsNull() 292 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testFileDescriptorCallbacks() 297 if ((events & OnFileDescriptorEventListener.EVENT_ERROR) != 0) { in testFileDescriptorCallbacks() 304 if ((events & OnFileDescriptorEventListener.EVENT_OUTPUT) != 0) { in testFileDescriptorCallbacks() 317 fail("Saw unexpected events: " + events + ", mDone=" + mDone); in testFileDescriptorCallbacks() 329 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testFileDescriptorCallbacks() 333 if ((events & OnFileDescriptorEventListener.EVENT_ERROR) != 0) { in testFileDescriptorCallbacks() 340 if ((events & OnFileDescriptorEventListener.EVENT_INPUT) != 0) { in testFileDescriptorCallbacks() 357 fail("Saw unexpected events: " + events + ", mDone=" + mDone); in testFileDescriptorCallbacks() 418 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks1() argument [all …]
|