Home
last modified time | relevance | path

Searched refs:events (Results 1 – 25 of 271) sorted by relevance

1234567891011

/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppEvents.kt18 import com.android.eventlib.events.activities.ActivityCreatedEvent
19 import com.android.eventlib.events.activities.ActivityCreatedEvent.ActivityCreatedEventQuery
20 import com.android.eventlib.events.activities.ActivityDestroyedEvent
21 import com.android.eventlib.events.activities.ActivityDestroyedEvent.ActivityDestroyedEventQuery
22 import com.android.eventlib.events.activities.ActivityEvents
23 import com.android.eventlib.events.activities.ActivityPausedEvent
24 import com.android.eventlib.events.activities.ActivityPausedEvent.ActivityPausedEventQuery
25 import com.android.eventlib.events.activities.ActivityRestartedEvent
26 import com.android.eventlib.events.activities.ActivityRestartedEvent.ActivityRestartedEventQuery
27 import com.android.eventlib.events.activities.ActivityResumedEvent
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminReceiverEvents.kt16 package com.android.eventlib.events.deviceadminreceivers
18 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportFailedEvent.DeviceAdmin…
19 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharedEvent.DeviceAdmin…
20 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharingDeclinedEvent.De…
21 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminChoosePrivateKeyAliasEvent.Devic…
22 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisableRequestedEvent.DeviceAdmi…
23 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisabledEvent.DeviceAdminDisable…
24 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminEnabledEvent.DeviceAdminEnabledE…
25 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeEnteringEvent.Device…
26 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeExitingEvent.DeviceA…
[all …]
/cts/tests/tests/util/src/android/util/cts/
DEventLogTest.java62 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEvent() local
63 assertEquals(5, events.size()); in testWriteEvent()
64 assertEquals(ANSWER_TAG, events.get(0).getTag()); in testWriteEvent()
65 assertEquals(12345, events.get(0).getData()); in testWriteEvent()
66 assertEquals(23456L, events.get(1).getData()); in testWriteEvent()
67 assertEquals(42.4242f, events.get(2).getData()); in testWriteEvent()
68 assertEquals("Test", events.get(3).getData()); in testWriteEvent()
70 Object[] arr = (Object[]) events.get(4).getData(); in testWriteEvent()
96 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEventWithOversizeValueLimitElision() local
97 assertEquals(7, events.size()); in testWriteEventWithOversizeValueLimitElision()
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/services/
DServiceEvents.kt16 package com.android.eventlib.events.services
18 import com.android.eventlib.events.services.ServiceBoundEvent.ServiceBoundEventQuery
19 import com.android.eventlib.events.services.ServiceConfigurationChangedEvent.ServiceConfigurationCh…
20 import com.android.eventlib.events.services.ServiceCreatedEvent.ServiceCreatedEventQuery
21 import com.android.eventlib.events.services.ServiceDestroyedEvent.ServiceDestroyedEventQuery
22 import com.android.eventlib.events.services.ServiceLowMemoryEvent.ServiceLowMemoryEventQuery
23 import com.android.eventlib.events.services.ServiceMemoryTrimmedEvent.ServiceMemoryTrimmedEventQuery
24 import com.android.eventlib.events.services.ServiceReboundEvent.ServiceReboundEventQuery
25 import com.android.eventlib.events.services.ServiceStartedEvent.ServiceStartedEventQuery
26 import com.android.eventlib.events.services.ServiceTaskRemovedEvent.ServiceTaskRemovedEventQuery
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSecurityLoggingTest.java242 final List<SecurityEvent> events = getEvents(); in testVerifyGeneratedLogs() local
244 verifyAutomaticEventsPresent(events); in testVerifyGeneratedLogs()
245 verifyKeystoreEventsPresent(events); in testVerifyGeneratedLogs()
246 verifyKeyChainEventsPresent(events); in testVerifyGeneratedLogs()
247 verifyAdminEventsPresent(events); in testVerifyGeneratedLogs()
248 verifyPasswordChangedEventsPresent(events); in testVerifyGeneratedLogs()
249 verifyAdbShellCommand(events); // Event generated from host side logic in testVerifyGeneratedLogs()
251 verifyEventsRedacted(events); in testVerifyGeneratedLogs()
260 private void verifyAutomaticEventsPresent(List<SecurityEvent> events) { in verifyAutomaticEventsPresent() argument
261 verifyOsStartupEventPresent(events); in verifyAutomaticEventsPresent()
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivity.java97 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 …]
DLoginActivity.java73 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()
103 final List<ContentCaptureEvent> events = session.getEvents(); in assertJustInitialViewsAppeared() local
104 Log.v(TAG, "events(" + events.size() + "): " + events); in assertJustInitialViewsAppeared()
112 assertThat(events.size()).isAtLeast(MIN_EVENTS + additionalEvents); in assertJustInitialViewsAppeared()
120 assertSessionResumed(events, 0); in assertJustInitialViewsAppeared()
121 assertViewTreeStarted(events, 1); in assertJustInitialViewsAppeared()
[all …]
DAssertions.java168 @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 …]
DBlankWithTitleActivity.java41 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()
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DFillEventHistoryTest.java114 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in textContextCommitted_withoutDatasets() local
115 FillEventHistory.Event event = events.get(0); in textContextCommitted_withoutDatasets()
117 assertFillEventForSaveShown(events.get(1), NULL_DATASET_ID); in textContextCommitted_withoutDatasets()
150 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in testContextCommitted_idlessDatasets() local
151 assertFillEventForDatasetShown(events.get(0), UI_TYPE_MENU); in testContextCommitted_idlessDatasets()
152 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID, UI_TYPE_MENU); in testContextCommitted_idlessDatasets()
166 final List<Event> events = InstrumentedAutoFillService.getFillEvents(4); in testContextCommitted_idlessDatasets() local
167 assertFillEventForDatasetShown(events.get(0), UI_TYPE_MENU); in testContextCommitted_idlessDatasets()
168 assertFillEventForDatasetSelected(events.get(1), NULL_DATASET_ID, UI_TYPE_MENU); in testContextCommitted_idlessDatasets()
169 assertFillEventForDatasetShown(events.get(2), UI_TYPE_MENU); in testContextCommitted_idlessDatasets()
[all …]
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
Dmain.cpp64 FrameStats drawFrames(int count, android_app *pApp, int &events, android_poll_source *&pSource, in drawFrames() argument
79 int retval = ALooper_pollOnce(0, nullptr, &events, (void **)&pSource); in drawFrames()
81 retval = ALooper_pollOnce(0, nullptr, &events, (void **)&pSource); in drawFrames()
111 FrameStats drawFramesWithTarget(int64_t targetDuration, int &events, android_app *pApp, in drawFramesWithTarget() argument
114 return drawFrames(kSamples, pApp, events, pSource, testName); in drawFramesWithTarget()
119 double calibrate(int &events, android_app *pApp, android_poll_source *&pSource) { in calibrate() argument
127 calibration[0] = drawFrames(kCalibrationSamples, pApp, events, pSource); in calibrate()
129 calibration[1] = drawFrames(kCalibrationSamples, pApp, events, pSource); in calibrate()
179 int events; in android_main() local
183 drawFrames(1, pApp, events, pSource); in android_main()
[all …]
/cts/tests/input/src/android/input/cts/
DCaptureEventActivity.kt29 private val events = LinkedBlockingQueue<InputEvent>() constant in android.input.cts.CaptureEventActivity
49 events.add(MotionEvent.obtain(ev)) in dispatchGenericMotionEvent()
54 events.add(MotionEvent.obtain(ev)) in dispatchTouchEvent()
59 events.add(KeyEvent(event)) in dispatchKeyEvent()
64 events.add(MotionEvent.obtain(ev)) in dispatchTrackballEvent()
69 return events.poll(5, TimeUnit.SECONDS) in getInputEvent()
73 return !events.isEmpty() in hasReceivedEvents()
77 val event = events.poll(100, TimeUnit.MILLISECONDS) in assertNoEvents()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/activities/
DActivityEvents.kt16 package com.android.eventlib.events.activities
23 import com.android.eventlib.events.activities.ActivityCreatedEvent.ActivityCreatedEventQuery
24 import com.android.eventlib.events.activities.ActivityDestroyedEvent.ActivityDestroyedEventQuery
25 import com.android.eventlib.events.activities.ActivityPausedEvent.ActivityPausedEventQuery
26 import com.android.eventlib.events.activities.ActivityRestartedEvent.ActivityRestartedEventQuery
27 import com.android.eventlib.events.activities.ActivityResumedEvent.ActivityResumedEventQuery
28 import com.android.eventlib.events.activities.ActivityStartedEvent.ActivityStartedEventQuery
29 import com.android.eventlib.events.activities.ActivityStoppedEvent.ActivityStoppedEventQuery
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/premade/
DEventLibService.java26 import com.android.eventlib.events.services.ServiceBoundEvent;
27 import com.android.eventlib.events.services.ServiceConfigurationChangedEvent;
28 import com.android.eventlib.events.services.ServiceCreatedEvent;
29 import com.android.eventlib.events.services.ServiceDestroyedEvent;
30 import com.android.eventlib.events.services.ServiceLowMemoryEvent;
31 import com.android.eventlib.events.services.ServiceMemoryTrimmedEvent;
32 import com.android.eventlib.events.services.ServiceReboundEvent;
33 import com.android.eventlib.events.services.ServiceStartedEvent;
34 import com.android.eventlib.events.services.ServiceTaskRemovedEvent;
35 import com.android.eventlib.events.services.ServiceUnboundEvent;
DEventLibContentSuggestionsService.java29 import com.android.eventlib.events.services.ServiceBoundEvent;
30 import com.android.eventlib.events.services.ServiceConfigurationChangedEvent;
31 import com.android.eventlib.events.services.ServiceCreatedEvent;
32 import com.android.eventlib.events.services.ServiceDestroyedEvent;
33 import com.android.eventlib.events.services.ServiceLowMemoryEvent;
34 import com.android.eventlib.events.services.ServiceMemoryTrimmedEvent;
35 import com.android.eventlib.events.services.ServiceReboundEvent;
36 import com.android.eventlib.events.services.ServiceStartedEvent;
37 import com.android.eventlib.events.services.ServiceTaskRemovedEvent;
38 import com.android.eventlib.events.services.ServiceUnboundEvent;
DEventLibDeviceAdminReceiver.kt24 import com.android.eventlib.events.broadcastreceivers.BroadcastReceivedEvent
25 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportFailedEvent
26 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharedEvent
27 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharingDeclinedEvent
28 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminChoosePrivateKeyAliasEvent
29 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisableRequestedEvent
30 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisabledEvent
31 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminEnabledEvent
32 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeEnteringEvent
33 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeExitingEvent
[all …]
DEventLibActivity.java26 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;
DEventLibDelegatedAdminReceiver.java24 import com.android.eventlib.events.delegatedadminreceivers.DelegatedAdminChoosePrivateKeyAliasEvent;
25 import com.android.eventlib.events.delegatedadminreceivers.DelegatedAdminChoosePrivateKeyAliasEvent…
26 import com.android.eventlib.events.delegatedadminreceivers.DelegatedAdminSecurityLogsAvailableEvent;
27 import com.android.eventlib.events.delegatedadminreceivers.DelegatedAdminSecurityLogsAvailableEvent…
28 import com.android.eventlib.events.deviceadminreceivers.DelegatedAdminNetworkLogsAvailableEvent;
29 import com.android.eventlib.events.deviceadminreceivers.DelegatedAdminNetworkLogsAvailableEvent.Del…
/cts/apps/CameraITS/tests/scene0/
Dtest_vibration_restriction.py70 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']]
Dtest_sensor_events.py49 events = cam.get_sensor_events()
51 len(events['gyro']), len(events['accel']),
52 len(events['mag']))
57 if not events[key]:
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/delegatedadminreceivers/
DDelegatedAdminReceiverEvents.kt16 package com.android.eventlib.events.delegatedadminreceivers
18 import com.android.eventlib.events.delegatedadminreceivers.DelegatedAdminChoosePrivateKeyAliasEvent…
19 import com.android.eventlib.events.delegatedadminreceivers.DelegatedAdminSecurityLogsAvailableEvent…
20 import com.android.eventlib.events.deviceadminreceivers.DelegatedAdminNetworkLogsAvailableEvent.Del…
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DDelegateTestUtils.java82 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/autofillservice/src/android/autofillservice/cts/commontests/
DFillEventHistoryCommonTestCase.java136 final List<Event> events = InstrumentedAutoFillService.getFillEvents(3); in testDatasetAuthenticationSelected() local
138 assertFillEventForDatasetShown(events.get(0), "clientStateKey", in testDatasetAuthenticationSelected()
140 assertFillEventForDatasetAuthenticationSelected(events.get(1), "name", in testDatasetAuthenticationSelected()
142 assertFillEventForViewEntered(events.get(2)); in testDatasetAuthenticationSelected()
182 List<Event> events = selection.getEvents(); in testAuthenticationSelected() local
184 assertFillEventForDatasetShown(events.get(0), "clientStateKey", in testAuthenticationSelected()
186 assertFillEventForAuthenticationSelected(events.get(1), NULL_DATASET_ID, in testAuthenticationSelected()
188 assertFillEventForViewEntered(events.get(2)); in testAuthenticationSelected()
189 assertFillEventForDatasetShown(events.get(3), "clientStateKey", in testAuthenticationSelected()
191 assertFillEventForDatasetSelected(events.get(4), "name", in testAuthenticationSelected()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java37 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportFailedEvent;
38 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharedEvent;
39 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminBugreportSharingDeclinedEvent;
40 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminChoosePrivateKeyAliasEvent;
41 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisableRequestedEvent;
42 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminDisabledEvent;
43 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminEnabledEvent;
44 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeEnteringEvent;
45 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminLockTaskModeExitingEvent;
46 import com.android.eventlib.events.deviceadminreceivers.DeviceAdminNetworkLogsAvailableEvent;
[all …]
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssMeasurementRegistrationTest.java138 List<GnssMeasurementsEvent> events = mMeasurementListener.getEvents(); in verifyGnssMeasurementsReceived() local
139 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in verifyGnssMeasurementsReceived()
141 if (!events.isEmpty()) { in verifyGnssMeasurementsReceived()
160 events = mMeasurementListener.getEvents(); in verifyGnssMeasurementsReceived()
161 Log.i(TAG, "Number of GnssMeasurement events received = " + events.size()); in verifyGnssMeasurementsReceived()
166 !events.isEmpty()); in verifyGnssMeasurementsReceived()

1234567891011