Home
last modified time | relevance | path

Searched refs:Event (Results 1 – 25 of 95) sorted by relevance

1234

/cts/tests/app/app/src/android/app/stubs/
DActivityCallbacksTestActivity.java29 public enum Event { enum in ActivityCallbacksTestActivity
65 private ArrayList<Pair<Source, Event>> mCollectedEvents = new ArrayList<>();
72 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_PRE_CREATE); in ActivityCallbacksTestActivity()
77 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_CREATE); in ActivityCallbacksTestActivity()
82 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_POST_CREATE); in ActivityCallbacksTestActivity()
87 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_PRE_START); in ActivityCallbacksTestActivity()
92 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_START); in ActivityCallbacksTestActivity()
97 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_POST_START); in ActivityCallbacksTestActivity()
102 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_PRE_RESUME); in ActivityCallbacksTestActivity()
107 collectEvent(Source.ACTIVITY_CALLBACK, Event.ON_RESUME); in ActivityCallbacksTestActivity()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/
DHotwordDetectorEventsStatsTest.java36 import com.android.os.hotword.HotwordDetectorEvents.Event;
121 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.REQUEST_BIND_SERVICE); in testLogHotwordDetectorEventsForDspDetection()
123 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.ON_CONNECTED); in testLogHotwordDetectorEventsForDspDetection()
125 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.REQUEST_UPDATE_STATE); in testLogHotwordDetectorEventsForDspDetection()
127 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.ON_DISCONNECTED); in testLogHotwordDetectorEventsForDspDetection()
150 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.REQUEST_BIND_SERVICE); in testLogHotwordDetectorEventsConnectedAppUpdateState()
152 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.ON_CONNECTED); in testLogHotwordDetectorEventsConnectedAppUpdateState()
154 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.REQUEST_UPDATE_STATE); in testLogHotwordDetectorEventsConnectedAppUpdateState()
156 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.APP_REQUEST_UPDATE_STATE); in testLogHotwordDetectorEventsConnectedAppUpdateState()
176 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.REQUEST_BIND_SERVICE); in testLogHotwordDetectorEventsForExternalDetection()
[all …]
DHotwordAudioEgressEventReportedStatsTest.java36 import com.android.os.hotword.HotwordAudioEgressEventReported.Event;
123 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.STARTED); in testDspStartedAndEnded()
125 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.ENDED); in testDspStartedAndEnded()
146 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.EMPTY_AUDIO_STREAM_LIST); in testDspEmptyAudiostreamList()
167 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.ILLEGAL_COPY_BUFFER_SIZE); in testDspIllegalCopyBufferSize()
169 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.STARTED); in testDspIllegalCopyBufferSize()
171 Enums.HotwordDetectorType.TRUSTED_DETECTOR_DSP, Event.ENDED); in testDspIllegalCopyBufferSize()
192 Enums.HotwordDetectorType.TRUSTED_DETECTOR_SOFTWARE, Event.STARTED); in testSoftwareDetectorStartedAndEnded()
194 Enums.HotwordDetectorType.TRUSTED_DETECTOR_SOFTWARE, Event.ENDED); in testSoftwareDetectorStartedAndEnded()
215 Enums.HotwordDetectorType.TRUSTED_DETECTOR_SOFTWARE, Event.EMPTY_AUDIO_STREAM_LIST); in testSoftwareDetectorEmptyAudiostreamList()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DMockVrListenerService.java31 private static final ArrayBlockingQueue<Event> sEventQueue = new ArrayBlockingQueue<>(4096);
33 public static ArrayBlockingQueue<Event> getPendingEvents() { in getPendingEvents()
50 public static class Event { class in MockVrListenerService
55 private Event(VrListenerService i, EventType t, Object o) { in Event() method in MockVrListenerService.Event
61 public static Event build(VrListenerService instance, EventType type, Object argument1) { in build()
62 return new Event(instance, type, argument1); in build()
65 public static Event build(VrListenerService instance, EventType type) { in build()
66 return new Event(instance, type, null); in build()
75 sEventQueue.put(Event.build(this, EventType.ONBIND, intent)); in onBind()
86 sEventQueue.put(Event.build(this, EventType.ONREBIND, intent)); in onRebind()
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_CommonDataKinds_EventTest.java19 import android.provider.ContactsContract.CommonDataKinds.Event;
25 assertGetTypeLabel(Event.TYPE_ANNIVERSARY); in testGetTypeLabel()
26 assertGetTypeLabel(Event.TYPE_BIRTHDAY); in testGetTypeLabel()
27 assertGetTypeLabel(Event.TYPE_OTHER); in testGetTypeLabel()
28 assertGetTypeLabel(Event.TYPE_CUSTOM); in testGetTypeLabel()
33 int res = Event.getTypeResource(type); in assertGetTypeLabel()
/cts/tests/app/src/android/app/cts/
DActivityCallbacksTest.java19 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_CREATE;
20 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_DESTROY;
21 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_PAUSE;
22 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_POST_CREATE;
23 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_POST_DESTROY;
24 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_POST_PAUSE;
25 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_POST_RESUME;
26 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_POST_START;
27 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_POST_STOP;
28 import static android.app.stubs.ActivityCallbacksTestActivity.Event.ON_PRE_CREATE;
[all …]
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/
DCommonComponents.java43 Event.BROADCAST_RECEIVED,
44 Event.APP_A_START_BACKGROUND_ACTIVITY_BROADCAST_RECEIVED,
45 Event.APP_A_START_WIDGET_CONFIG_ACTIVITY,
46 Event.APP_A_LAUNCHER_MOVING_TO_BACKGROUND_ACTIVITY,
49 public @interface Event { annotation in CommonComponents
DEventReceiver.java24 import android.server.wm.backgroundactivity.common.CommonComponents.Event;
39 @Event
42 public EventReceiver(@Event int event) { in EventReceiver()
49 protected void onReceiveResult(@Event int event, Bundle data) { in getNotifier()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEvents.java53 void onNewEvent(Event e); in onNewEvent()
93 Deque<Event> eventQueue = new ArrayDeque<>(); in loadEventsFromFile()
95 Event event = readEvent(fileInputStream); in loadEventsFromFile()
105 for (Event e : eventQueue) { in loadEventsFromFile()
117 private Event readEvent(FileInputStream fileInputStream) throws IOException { in readEvent()
129 return Event.fromBytes(eventBytes); in readEvent()
133 void log(Event event) { in log()
144 private void writeEventToFile(Event event) { in writeEventToFile()
168 private final Deque<Event> mEventList = new ConcurrentLinkedDeque<>();
174 public Queue<Event> getEvents() { in getEvents()
[all …]
DLocalEventQuerier.java31 public class LocalEventQuerier<E extends Event, F extends EventLogsQuery> implements EventQuerier<E…
34 private final BlockingDeque<Event> mFetchedEvents;
55 Event event = null; in poll()
87 public void onNewEvent(Event event) { in onNewEvent()
DEvent.java31 public abstract class Event implements Serializable { class
67 static Event fromBytes(byte[] bytes) throws IOException { in fromBytes()
71 return (Event) in.readObject(); in fromBytes()
DEventLogger.java24 public abstract class EventLogger<E extends Event> {
27 public static class Default<F extends Event> extends EventLogger<F> {
DQueryService.java45 Event e = querier.poll(earliestLogtime, timeoutDuration, skip);
49 private Bundle prepareReturnBundle(Event event) {
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java57 import android.app.usage.UsageEvents.Event;
598 ArrayList<UsageEvents.Event> eventList = new ArrayList<>(); in testOrderedActivityLaunchSequenceInEventLog()
600 UsageEvents.Event event = new UsageEvents.Event(); in testOrderedActivityLaunchSequenceInEventLog()
610 ArrayList<UsageEvents.Event> activityEvents = new ArrayList<>(); in testOrderedActivityLaunchSequenceInEventLog()
613 Event evt = eventList.get(j); in testOrderedActivityLaunchSequenceInEventLog()
623 assertEquals(Event.ACTIVITY_RESUMED, activityEvents.get(0).getEventType()); in testOrderedActivityLaunchSequenceInEventLog()
624 assertEquals(Event.ACTIVITY_PAUSED, activityEvents.get(1).getEventType()); in testOrderedActivityLaunchSequenceInEventLog()
625 assertEquals(Event.ACTIVITY_STOPPED, activityEvents.get(2).getEventType()); in testOrderedActivityLaunchSequenceInEventLog()
629 assertEquals(Event.ACTIVITY_RESUMED, activityEvents.get(0).getEventType()); in testOrderedActivityLaunchSequenceInEventLog()
656 ArrayList<UsageEvents.Event> eventList = new ArrayList<>(); in testActivityOnButton()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DFillEventHistoryCommonTestCase.java37 import static android.service.autofill.FillEventHistory.Event.NO_SAVE_UI_REASON_DATASET_MATCH;
38 import static android.service.autofill.FillEventHistory.Event.NO_SAVE_UI_REASON_FIELD_VALIDATION_FA…
39 import static android.service.autofill.FillEventHistory.Event.NO_SAVE_UI_REASON_HAS_EMPTY_REQUIRED;
40 import static android.service.autofill.FillEventHistory.Event.NO_SAVE_UI_REASON_NO_SAVE_INFO;
41 import static android.service.autofill.FillEventHistory.Event.NO_SAVE_UI_REASON_NO_VALUE_CHANGED;
42 import static android.service.autofill.FillEventHistory.Event.NO_SAVE_UI_REASON_WITH_DELAY_SAVE_FLA…
43 import static android.service.autofill.FillEventHistory.Event.UI_TYPE_INLINE;
44 import static android.service.autofill.FillEventHistory.Event.UI_TYPE_MENU;
64 import android.service.autofill.FillEventHistory.Event;
136 final List<Event> events = InstrumentedAutoFillService.getFillEvents(3); in testDatasetAuthenticationSelected()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/perfetto/
DPerfettoTests.java135 PerfettoUploaded.Event.PERFETTO_TRACE_BEGIN, in testPerfettoUploadedIncidentdAtoms()
136 PerfettoUploaded.Event.PERFETTO_ON_CONNECT, in testPerfettoUploadedIncidentdAtoms()
137 PerfettoUploaded.Event.PERFETTO_TRACED_ENABLE_TRACING, in testPerfettoUploadedIncidentdAtoms()
138 PerfettoUploaded.Event.PERFETTO_TRACED_START_TRACING); in testPerfettoUploadedIncidentdAtoms()
155 PerfettoUploaded.Event.PERFETTO_TRACE_BEGIN, in testSkipReportAtoms()
156 PerfettoUploaded.Event.PERFETTO_ON_CONNECT, in testSkipReportAtoms()
157 PerfettoUploaded.Event.PERFETTO_TRACED_ENABLE_TRACING, in testSkipReportAtoms()
158 PerfettoUploaded.Event.PERFETTO_TRACED_START_TRACING); in testSkipReportAtoms()
176 PerfettoUploaded.Event.PERFETTO_CMD_FW_REPORT_BEGIN, in testReportAtoms()
177 PerfettoUploaded.Event.PERFETTO_CMD_FW_REPORT_HANDOFF); in testReportAtoms()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DFillEventHistoryTest.java29 import static android.service.autofill.FillEventHistory.Event.TYPE_CONTEXT_COMMITTED;
30 import static android.service.autofill.FillEventHistory.Event.UI_TYPE_MENU;
45 import android.service.autofill.FillEventHistory.Event;
114 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in textContextCommitted_withoutDatasets()
115 FillEventHistory.Event event = events.get(0); in textContextCommitted_withoutDatasets()
150 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in testContextCommitted_idlessDatasets()
166 final List<Event> events = InstrumentedAutoFillService.getFillEvents(4); in testContextCommitted_idlessDatasets()
170 FillEventHistory.Event event = events.get(3); in testContextCommitted_idlessDatasets()
206 final List<Event> events = InstrumentedAutoFillService.getFillEvents(2); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
221 final List<Event> events = InstrumentedAutoFillService.getFillEvents(3); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
[all …]
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/truth/
DEventLogsSubject.java23 import com.android.eventlib.Event;
33 public final class EventLogsSubject<E extends Event> extends Subject {
38 public static <F extends Event> Factory<EventLogsSubject<F>, EventLogs<F>> eventLogs() { in eventLogs()
45 public static <F extends Event> EventLogsSubject<F> assertThat(@Nullable EventLogs<F> actual) { in assertThat()
/cts/tests/tests/util/src/android/util/cts/
DEventLogTest.java27 import android.util.EventLog.Event;
62 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEvent()
96 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEventWithOversizeValueLimitElision()
163 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testOversizeStringMayBeTruncated()
179 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteNullEvent()
195 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testReadDataWhenNone()
215 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG, PI_TAG, E_TAG); in testReadEvents()
232 private List<Event> getEventsAfterMarker(Object marker, int... tags) in getEventsAfterMarker()
234 List<Event> events = new ArrayList<>(); in getEventsAfterMarker()
239 for (Iterator<Event> itr = events.iterator(); itr.hasNext(); ) { in getEventsAfterMarker()
[all …]
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/
DTestWallpaperService.kt154 engineStateCallbacks.forEach { it.onEvent(EngineCallback.Event.CREATE) } in onCreate()
172 engineStateCallbacks.forEach { it.onEvent(EngineCallback.Event.DESTROY) } in onDestroy()
215 engineStateCallbacks.forEach { it.onEvent(EngineCallback.Event.SURFACE_CREATE) } in onSurfaceCreated()
326 enum class Event { CREATE, DESTROY, SURFACE_CREATE } in getColor() class
328 fun onEvent(e: Event) in getColor()
336 override fun onEvent(e: EngineCallback.Event) { in onEvent()
338 EngineCallback.Event.CREATE -> createLatch.countDown() in onEvent()
339 EngineCallback.Event.DESTROY -> destroyLatch.countDown() in onEvent()
340 EngineCallback.Event.SURFACE_CREATE -> surfaceCreateLatch.countDown() in onEvent()
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/
DSimpleBroadcastReceiver.java25 import android.server.wm.backgroundactivity.common.CommonComponents.Event;
42 eventNotifier.send(Event.BROADCAST_RECEIVED, null); in onReceive()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DFieldsClassificationTest.java46 import android.service.autofill.FillEventHistory.Event;
217 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testMiss_exactMatchAlgorithm()
254 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_exactMatchLast4Algorithm()
291 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_CreditCardAlgorithm()
329 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_useDefaultAlgorithm()
366 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in simpleHitTest()
403 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_sameValueForMultipleCategories()
452 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in manyUserData_oneDetectableField()
500 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_oneUserData_manyDetectableFields()
552 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_manyUserData_manyDetectableFields()
[all …]
/cts/tests/JobScheduler/src/android/jobscheduler/
DMockJobService.java88 new TestEnvironment.Event( in onStartJob()
89 TestEnvironment.Event.EVENT_START_JOB, params.getJobId())); in onStartJob()
453 private List<Event> mExecutedEvents = new ArrayList<>();
683 void addEvent(Event event) { in addEvent()
687 public List<Event> getExecutedEvents() { in getExecutedEvents()
691 public static class Event { class in MockJobService.TestEnvironment
697 public Event(int event, int jobId) { in Event() method in MockJobService.TestEnvironment.Event
707 if (other instanceof Event) { in equals()
708 Event otherEvent = (Event) other; in equals()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerUsageTest.java24 import android.app.usage.UsageEvents.Event;
75 final Event e = new Event(); in hasEvent()
80 if (e.getEventType() == Event.SHORTCUT_INVOCATION in hasEvent()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/events/services/
DServiceDestroyedEvent.java23 import com.android.eventlib.Event;
35 public class ServiceDestroyedEvent extends Event {

1234