/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/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/ |
D | TestAppEvents.java | 19 import com.android.eventlib.events.activities.ActivityCreatedEvent; 20 import com.android.eventlib.events.activities.ActivityDestroyedEvent; 21 import com.android.eventlib.events.activities.ActivityEvents; 22 import com.android.eventlib.events.activities.ActivityPausedEvent; 23 import com.android.eventlib.events.activities.ActivityRestartedEvent; 24 import com.android.eventlib.events.activities.ActivityResumedEvent; 25 import com.android.eventlib.events.activities.ActivityStartedEvent; 26 import com.android.eventlib.events.activities.ActivityStoppedEvent; 27 import com.android.eventlib.events.broadcastreceivers.BroadcastReceivedEvent; 28 import com.android.eventlib.events.broadcastreceivers.BroadcastReceiverEvents; [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | LoginActivity.java | 73 final List<ContentCaptureEvent> events = assertInitialViewsAppeared(session, in assertDefaultEvents() local 75 assertInitialViewsDisappeared(events, additionalEvents); in assertDefaultEvents() 85 final List<ContentCaptureEvent> events = assertJustInitialViewsAppeared(session, in assertInitialViewsAppeared() local 87 assertViewTreeFinished(events, MIN_EVENTS - 1); in assertInitialViewsAppeared() 89 return events; in assertInitialViewsAppeared() 109 final List<ContentCaptureEvent> events = session.getEvents(); in assertJustInitialViewsAppeared() local 110 Log.v(TAG, "events(" + events.size() + "): " + events); in assertJustInitialViewsAppeared() 118 assertThat(events.size()).isAtLeast(MIN_EVENTS + additionalEvents); in assertJustInitialViewsAppeared() 126 assertSessionResumed(events, 0); in assertJustInitialViewsAppeared() 127 assertViewTreeStarted(events, 1); in assertJustInitialViewsAppeared() [all …]
|
D | Assertions.java | 168 @NonNull List<ContentCaptureEvent> events, int index, @NonNull View expectedView) { in assertViewWithUnknownParentAppeared() 169 return assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewWithUnknownParentAppeared() 179 public static void assertDecorViewAppeared(@NonNull List<ContentCaptureEvent> events, in assertDecorViewAppeared() argument 181 final ContentCaptureEvent event = assertViewAppeared(events, index); in assertDecorViewAppeared() 191 @NonNull List<ContentCaptureEvent> events, int index, @NonNull View expectedView, in assertViewWithUnknownParentAppeared() 193 final ContentCaptureEvent event = assertViewAppeared(events, index); in assertViewWithUnknownParentAppeared() 212 public static ContentCaptureEvent assertViewAppeared(@NonNull List<ContentCaptureEvent> events, in assertViewAppeared() argument 214 final ContentCaptureEvent event = getEvent(events, index, TYPE_VIEW_APPEARED); in assertViewAppeared() 223 public static void assertViewAppeared(@NonNull List<ContentCaptureEvent> events, int index, in assertViewAppeared() argument 226 final ViewNode node = assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewAppeared() [all …]
|
D | CustomViewActivity.java | 97 final List<ContentCaptureEvent> events = assertInitialViewsAppeared(session, in assertDefaultEvents() local 99 Log.v(TAG, "events(" + events.size() + "): " + events); in assertDefaultEvents() 100 assertInitialViewsDisappeared(events, additionalEvents); in assertDefaultEvents() 127 final List<ContentCaptureEvent> events = session.getEvents(); in assertJustInitialViewsAppeared() local 128 Log.v(TAG, "events(" + events.size() + "): " + events); in assertJustInitialViewsAppeared() 129 assertThat(events.size()).isAtLeast(MIN_EVENTS + additionalEvents); in assertJustInitialViewsAppeared() 132 assertSessionResumed(events, 0); in assertJustInitialViewsAppeared() 133 assertViewTreeStarted(events, 1); in assertJustInitialViewsAppeared() 134 assertDecorViewAppeared(events, 2, getDecorView()); in assertJustInitialViewsAppeared() 135 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in assertJustInitialViewsAppeared() [all …]
|
D | LoginActivityTest.java | 318 final List<ContentCaptureEvent> events = activity.assertInitialViewsAppeared(session, in testSimpleLifecycle_changeContextAfterCreate() local 321 final ContentCaptureEvent event1 = assertContextUpdated(events, LoginActivity.MIN_EVENTS); in testSimpleLifecycle_changeContextAfterCreate() 325 final ContentCaptureEvent event2 = assertContextUpdated(events, in testSimpleLifecycle_changeContextAfterCreate() 357 final List<ContentCaptureEvent> events = session.getEvents(); in testSimpleLifecycle_changeContextOnCreate() local 358 Log.v(TAG, "events(" + events.size() + "): " + events); in testSimpleLifecycle_changeContextOnCreate() 366 assertThat(events.size()).isAtLeast(11); in testSimpleLifecycle_changeContextOnCreate() 374 final ContentCaptureEvent ctxUpdatedEvent = assertContextUpdated(events, 0); in testSimpleLifecycle_changeContextOnCreate() 378 assertSessionResumed(events, 1); in testSimpleLifecycle_changeContextOnCreate() 379 assertViewTreeStarted(events, 2); in testSimpleLifecycle_changeContextOnCreate() 380 assertDecorViewAppeared(events, 3, decorView); in testSimpleLifecycle_changeContextOnCreate() [all …]
|
D | BlankWithTitleActivity.java | 41 final List<ContentCaptureEvent> events = session.getEvents(); in assertDefaultEvents() local 42 Log.v(TAG, "events(" + events.size() + "): " + events); in assertDefaultEvents() 44 new EventsAssertor(events) in assertDefaultEvents()
|
D | CustomViewActivityTest.java | 140 final List<ContentCaptureEvent> events = session.getEvents(); in testSessionLifecycleEvents() local 141 Log.v(TAG, "events(" + events.size() + "): " + events); in testSessionLifecycleEvents() 144 new EventsAssertor(events) in testSessionLifecycleEvents() 205 final List<ContentCaptureEvent> events = session.getEvents(); in testVirtualView_wrongWay() local 206 Log.v(TAG, "events(" + events.size() + "): " + events); in testVirtualView_wrongWay() 210 new EventsAssertor(events) in testVirtualView_wrongWay() 275 final List<ContentCaptureEvent> events = activity.assertInitialViewsAppeared(session, in testVirtualView_oneLevel() local 283 assertVirtualViewAppeared(events, i, mainSession, customViewId, 1, "child1"); in testVirtualView_oneLevel() 284 assertVirtualViewAppeared(events, i + 1, mainSession, customViewId, 2, "child2"); in testVirtualView_oneLevel() 285 assertViewTextChanged(events, i + 2, child2IdRef.get(), "The Times They Are a-Changin'"); in testVirtualView_oneLevel() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SecurityLoggingTest.java | 229 final List<SecurityEvent> events = getEvents(); in testVerifyGeneratedLogs() local 231 verifyAutomaticEventsPresent(events); in testVerifyGeneratedLogs() 232 verifyKeystoreEventsPresent(events); in testVerifyGeneratedLogs() 233 verifyKeyChainEventsPresent(events); in testVerifyGeneratedLogs() 234 verifyAdminEventsPresent(events); in testVerifyGeneratedLogs() 235 verifyAdbShellCommand(events); // Event generated from host side logic in testVerifyGeneratedLogs() 237 verifyEventsRedacted(events); in testVerifyGeneratedLogs() 246 private void verifyAutomaticEventsPresent(List<SecurityEvent> events) { in verifyAutomaticEventsPresent() argument 247 verifyOsStartupEventPresent(events); in verifyAutomaticEventsPresent() 248 verifyLoggingStartedEventPresent(events); in verifyAutomaticEventsPresent() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | FillEventHistoryTest.java | 111 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in textContextCommitted_withoutDatasets() local 112 assertFillEventForSaveShown(events.get(0), NULL_DATASET_ID); in textContextCommitted_withoutDatasets() 145 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in testContextCommitted_idlessDatasets() local 146 assertFillEventForDatasetShown(events.get(0)); in testContextCommitted_idlessDatasets() 147 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID); in testContextCommitted_idlessDatasets() 161 final List<Event> events = InstrumentedAutoFillService.getFillEvents(3); in testContextCommitted_idlessDatasets() local 162 assertFillEventForDatasetShown(events.get(0)); in testContextCommitted_idlessDatasets() 163 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID); in testContextCommitted_idlessDatasets() 164 assertFillEventForDatasetShown(events.get(2)); in testContextCommitted_idlessDatasets() 199 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored() local [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_vibration_restriction.py | 70 events = cam.get_sensor_events() 72 len(events['accel'])) 73 times_ms = [e['time'] / float(1e6) for e in events['accel']] 76 magnitudes = [calc_magnitude(e) for e in events['accel']] 82 events = cam.get_sensor_events() 83 magnitudes = [calc_magnitude(e) for e in events['accel']] 97 events = cam.get_sensor_events() 98 magnitudes = [calc_magnitude(e) for e in events['accel']]
|
D | test_sensor_events.py | 47 events = cam.get_sensor_events() 49 len(events['gyro']), len(events['accel']), 50 len(events['mag'])) 56 assert events[key], e_msg
|
D | test_unified_timestamps.py | 60 events = cam.get_sensor_events() 66 assert events[sensor], '%s sensor has no events!' % sensor 67 ts_sensor_first[sensor] = events[sensor][0]['time'] 68 ts_sensor_last[sensor] = events[sensor][-1]['time']
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | EventCapturingTouchListener.java | 42 private final BlockingQueue<MotionEvent> events = new LinkedBlockingQueue<>(); field in EventCapturingTouchListener 54 assertTrue(events.offer(MotionEvent.obtain(motionEvent))); in onTouch() 61 MotionEvent event = events.poll(MIN_WAIT_TIME_SECONDS, SECONDS); in assertNonePropagated() 82 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated() 89 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated() 101 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated() 113 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents() 116 ev = events.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | FillEventHistoryCommonTestCase.java | 131 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in testDatasetAuthenticationSelected() local 132 assertFillEventForDatasetShown(events.get(0), "clientStateKey", "clientStateValue"); in testDatasetAuthenticationSelected() 133 assertFillEventForDatasetAuthenticationSelected(events.get(1), "name", in testDatasetAuthenticationSelected() 174 List<Event> events = selection.getEvents(); in testAuthenticationSelected() local 175 assertFillEventForDatasetShown(events.get(0), "clientStateKey", "clientStateValue"); in testAuthenticationSelected() 176 assertFillEventForAuthenticationSelected(events.get(1), NULL_DATASET_ID, in testAuthenticationSelected() 178 assertFillEventForDatasetShown(events.get(2), "clientStateKey", "clientStateValue"); in testAuthenticationSelected() 179 assertFillEventForDatasetSelected(events.get(3), "name", in testAuthenticationSelected() 212 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() local 213 assertFillEventForDatasetShown(events.get(0), "clientStateKey", "Value1"); in testDatasetSelected_twoResponses() [all …]
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | DelegateTestUtils.java | 82 final List<NetworkEvent> events = dpm.retrieveNetworkLogs(null, batchToken); in onNetworkLogsAvailable() local 83 if (events == null || events.size() == 0) { in onNetworkLogsAvailable() 86 sNetworkEvents.addAll(events); in onNetworkLogsAvailable() 108 final List<SecurityEvent> events = dpm.retrieveSecurityLogs(null); in onSecurityLogsAvailable() local 109 if (events == null || events.size() == 0) { in onSecurityLogsAvailable() 113 Log.v(TAG, "Received " + events.size() + " events"); in onSecurityLogsAvailable() 114 sSecurityEvents.addAll(events); in onSecurityLogsAvailable()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssMeasurementRegistrationTest.java | 126 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in verifyGnssMeasurementsReceived() local 127 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in verifyGnssMeasurementsReceived() 129 if (!events.isEmpty()) { in verifyGnssMeasurementsReceived() 148 events = mMeasurementListener.getEvents(); in verifyGnssMeasurementsReceived() 149 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in verifyGnssMeasurementsReceived() 154 !events.isEmpty()); in verifyGnssMeasurementsReceived() 161 events.isEmpty()); in verifyGnssMeasurementsReceived()
|
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/ |
D | EventLibActivity.java | 26 import com.android.eventlib.events.activities.ActivityCreatedEvent; 27 import com.android.eventlib.events.activities.ActivityDestroyedEvent; 28 import com.android.eventlib.events.activities.ActivityPausedEvent; 29 import com.android.eventlib.events.activities.ActivityRestartedEvent; 30 import com.android.eventlib.events.activities.ActivityResumedEvent; 31 import com.android.eventlib.events.activities.ActivityStartedEvent; 32 import com.android.eventlib.events.activities.ActivityStoppedEvent;
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibDeviceAdminReceiverTest.java | 36 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportFailedEvent; 37 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharedEvent; 38 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharingDeclinedEvent; 39 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminChoosePrivateKeyAliasEvent; 40 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisableRequestedEvent; 41 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisabledEvent; 42 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminEnabledEvent; 43 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeEnteringEvent; 44 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeExitingEvent; 45 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminNetworkLogsAvailableEvent; [all …]
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 386 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testOrderedActivityLaunchSequenceInEventLog() local 390 while (events.hasNextEvent()) { in testOrderedActivityLaunchSequenceInEventLog() 392 assertTrue(events.getNextEvent(event)); in testOrderedActivityLaunchSequenceInEventLog() 445 UsageEvents events = mUsageStatsManager.queryEvents(startTime, endTime); in testActivityOnButton() local 448 while (events.hasNextEvent()) { in testActivityOnButton() 450 assertTrue(events.getNextEvent(event)); in testActivityOnButton() 467 Map<String,UsageStats> events = mUsageStatsManager.queryAndAggregateUsageStats( in testAppLaunchCount() local 469 UsageStats stats = events.get(mTargetPackage); in testAppLaunchCount() 474 events = mUsageStatsManager.queryAndAggregateUsageStats( in testAppLaunchCount() 476 stats = events.get(mTargetPackage); in testAppLaunchCount() [all …]
|
/cts/tests/location/location_privileged/src/android/location/cts/privileged/ |
D | GnssMeasurementRegistrationTest.java | 136 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in verifyGnssMeasurementsReceived() local 137 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in verifyGnssMeasurementsReceived() 139 if (!events.isEmpty()) { in verifyGnssMeasurementsReceived() 158 events = mMeasurementListener.getEvents(); in verifyGnssMeasurementsReceived() 159 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in verifyGnssMeasurementsReceived() 164 !events.isEmpty()); in verifyGnssMeasurementsReceived()
|
/cts/tests/sensor/sensorratepermission/EventConnectionAPI30/src/android/sensorratepermission/cts/eventconnectionapi30/ |
D | EventConnectionAPI30Test.java | 119 List<TestSensorEvent> events = mEventConnectionTestHelper.getSensorEvents( in testSamplingRateMicToggleOff() local 122 double obtainedRate = SensorRatePermissionEventConnectionTestHelper.computeAvgRate(events, in testSamplingRateMicToggleOff() 134 List<TestSensorEvent> events = mEventConnectionTestHelper.getSensorEvents( in testSamplingRateMicToggleOn() local 137 double obtainedRate = SensorRatePermissionEventConnectionTestHelper.computeAvgRate(events, in testSamplingRateMicToggleOn() 170 List<TestSensorEvent> events = listener.getCollectedEvents(); in testSamplingRateMicToggleOffOnOff() local 172 SensorRatePermissionEventConnectionTestHelper.computeAvgRate(events, in testSamplingRateMicToggleOffOnOff() 185 events = listener.getCollectedEvents(); in testSamplingRateMicToggleOffOnOff() 187 events, Long.MIN_VALUE, Long.MAX_VALUE); in testSamplingRateMicToggleOffOnOff()
|
/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()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 962 List<DirectReportSensorEvent> events = parseEntireBuffer(token, mEventPool, mByteBuffer, in runMultiModeRateIndependencyTest() local 964 checkEventRate(TEST_RUN_TIME_PERIOD_MILLISEC, events, type, rateLevel); in runMultiModeRateIndependencyTest() 1003 List<DirectReportSensorEvent> events = collectSensorEventsRealtime( in runTimestampTest() local 1005 assertTrue("Realtime event collection failed", events != null); in runTimestampTest() 1006 assertTrue("Realtime event collection got no data", events.size() > 0); in runTimestampTest() 1013 checkTimestampRelative(events, listener.getEvents()); in runTimestampTest() 1014 checkTimestampAbsolute(events); in runTimestampTest() 1070 List<DirectReportSensorEvent> events; in runReconfigureTest() local 1082 events = collectSensorEventsRealtime(memType, false /*secondary*/, in runReconfigureTest() 1087 checkEventRate(TEST_RUN_TIME_PERIOD_MILLISEC, events, type, rateLevel); in runReconfigureTest() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | FieldsClassificationTest.java | 217 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testMiss_exactMatchAlgorithm() local 218 assertFillEventForFieldsClassification(events.get(0), null); in testMiss_exactMatchAlgorithm() 254 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_exactMatchLast4Algorithm() local 255 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_exactMatchLast4Algorithm() 291 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_CreditCardAlgorithm() local 292 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "card", 1); in testHit_CreditCardAlgorithm() 329 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_useDefaultAlgorithm() local 330 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "cat", 1); in testHit_useDefaultAlgorithm() 366 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in simpleHitTest() local 367 assertFillEventForFieldsClassification(events.get(0), fieldId.get(), "myId", 1); in simpleHitTest() [all …]
|