/cts/tests/app/app/src/android/app/stubs/ |
D | ActivityCallbacksTestActivity.java | 29 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/apps/CtsVerifier/src/com/android/cts/verifier/vr/ |
D | MockVrListenerService.java | 31 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 …]
|
D | VrListenerVerifierActivity.java | 413 private static void assertEventIn(String message, MockVrListenerService.Event elem, in assertEventIn() 513 ArrayBlockingQueue<MockVrListenerService.Event> q = in test() 515 MockVrListenerService.Event e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test() 585 ArrayBlockingQueue<MockVrListenerService.Event> q = in test() 587 MockVrListenerService.Event e = q.poll(POLL_DELAY_MS, TimeUnit.MILLISECONDS); in test()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityCallbacksTest.java | 19 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/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTest.java | 30 import android.app.usage.UsageEvents.Event; 204 ArrayList<UsageEvents.Event> eventList = new ArrayList<>(); in testOrderedActivityLaunchSequenceInEventLog() 206 UsageEvents.Event event = new UsageEvents.Event(); in testOrderedActivityLaunchSequenceInEventLog() 216 ArrayList<UsageEvents.Event> activityEvents = new ArrayList<>(); in testOrderedActivityLaunchSequenceInEventLog() 219 Event evt = eventList.get(j); in testOrderedActivityLaunchSequenceInEventLog() 229 assertEquals(Event.ACTIVITY_RESUMED, activityEvents.get(0).getEventType()); in testOrderedActivityLaunchSequenceInEventLog() 230 assertEquals(Event.ACTIVITY_PAUSED, activityEvents.get(1).getEventType()); in testOrderedActivityLaunchSequenceInEventLog() 231 assertEquals(Event.ACTIVITY_STOPPED, activityEvents.get(2).getEventType()); in testOrderedActivityLaunchSequenceInEventLog() 235 assertEquals(Event.ACTIVITY_RESUMED, activityEvents.get(0).getEventType()); in testOrderedActivityLaunchSequenceInEventLog() 262 ArrayList<UsageEvents.Event> eventList = new ArrayList<>(); in testActivityOnButton() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_CommonDataKinds_EventTest.java | 19 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/autofillservice/src/android/autofillservice/cts/ |
D | FillEventHistoryTest.java | 36 import static android.service.autofill.FillEventHistory.Event.TYPE_CONTEXT_COMMITTED; 51 import android.service.autofill.FillEventHistory.Event; 107 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testDatasetAuthenticationSelected() 146 List<Event> events = selection.getEvents(); in testAuthenticationSelected() 179 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() 215 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() 229 final List<Event> events = selection.getEvents(); in testDatasetSelected_twoResponses() 260 final List<Event> events = selection.getEvents(); in testNoEvents_whenServiceReturnsNullResponse() 297 final List<Event> events = selection.getEvents(); in testNoEvents_whenServiceReturnsFailure() 334 final List<Event> events = selection.getEvents(); in testNoEvents_whenServiceTimesout() [all …]
|
D | FieldsClassificationTest.java | 40 import android.service.autofill.FillEventHistory.Event; 204 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testMiss_exactMatchAlgorithm() 241 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_exactMatchLast4Algorithm() 279 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_useDefaultAlgorithm() 316 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in simpleHitTest() 353 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_sameValueForMultipleCategories() 402 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in manyUserData_oneDetectableField() 450 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_oneUserData_manyDetectableFields() 502 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_manyUserData_manyDetectableFields() 561 final List<Event> events = InstrumentedAutoFillService.getFillEvents(1); in testHit_manyUserData_manyDetectableFields_differentClassificationAlgo() [all …]
|
D | Helper.java | 22 import static android.service.autofill.FillEventHistory.Event.TYPE_AUTHENTICATION_SELECTED; 23 import static android.service.autofill.FillEventHistory.Event.TYPE_CONTEXT_COMMITTED; 24 import static android.service.autofill.FillEventHistory.Event.TYPE_DATASET_AUTHENTICATION_SELECTED; 25 import static android.service.autofill.FillEventHistory.Event.TYPE_DATASET_SELECTED; 26 import static android.service.autofill.FillEventHistory.Event.TYPE_SAVE_SHOWN; 1049 private static void assertFillEvent(@NonNull FillEventHistory.Event event, in assertFillEvent() 1113 public static void assertFillEventForDatasetSelected(@NonNull FillEventHistory.Event event, in assertFillEventForDatasetSelected() 1127 public static void assertFillEventForDatasetSelected(@NonNull FillEventHistory.Event event, in assertFillEventForDatasetSelected() 1141 public static void assertFillEventForSaveShown(@NonNull FillEventHistory.Event event, in assertFillEventForSaveShown() 1153 public static void assertFillEventForSaveShown(@NonNull FillEventHistory.Event event, in assertFillEventForSaveShown() [all …]
|
D | InstrumentedAutoFillService.java | 47 import android.service.autofill.FillEventHistory.Event; 122 public static List<Event> getFillEvents(int expectedSize) throws Exception { in getFillEvents() 123 final List<Event> events = getFillEventHistory(expectedSize).getEvents(); in getFillEvents() 152 final List<Event> events = history.getEvents(); in getFillEventHistory()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | EventLogTest.java | 25 import android.util.EventLog.Event; 55 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEvent() 89 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteEventWithOversizeValueLimitElision() 156 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testOversizeStringMayBeTruncated() 172 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testWriteNullEvent() 188 List<EventLog.Event> events = getEventsAfterMarker(markerData, ANSWER_TAG); in testReadDataWhenNone() 208 List<Event> events = getEventsAfterMarker(markerData, ANSWER_TAG, PI_TAG, E_TAG); in testReadEvents() 225 private List<Event> getEventsAfterMarker(Object marker, int... tags) in getEventsAfterMarker() 227 List<Event> events = new ArrayList<>(); in getEventsAfterMarker() 232 for (Iterator<Event> itr = events.iterator(); itr.hasNext(); ) { in getEventsAfterMarker() [all …]
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerUsageTest.java | 24 import android.app.usage.UsageEvents.Event; 65 final Event e = new Event(); in hasEvent() 70 if (e.getEventType() == Event.SHORTCUT_INVOCATION in hasEvent()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | ActivityMetricsLoggerTests.java | 62 import android.util.EventLog.Event; 114 final List<Event> eventLogs = getEventLogsForComponents(mLogSeparator, in testAppLaunchIsLogged() 159 private void assertEventLogsContainsLaunchTime(List<Event> events, ComponentName componentName, in assertEventLogsContainsLaunchTime() 161 for (Event event : events) { in assertEventLogsContainsLaunchTime()
|
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | ServiceReporter.java | 203 public class Event { class in ServiceReporter 208 public Event(AppTarget target, int launchLocation, int eventType) { in Event() method in ServiceReporter.Event
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | ActivityManagerTestBase.java | 137 import android.util.EventLog.Event; 1353 protected static List<Event> getEventLogsForComponents(LogSeparator logSeparator, int... tags) { 1354 List<Event> events = new ArrayList<>(); 1365 for (Iterator<Event> itr = events.iterator(); itr.hasNext(); ) { 1366 Event event = itr.next();
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | JobSchedulerIncidentTest.java | 149 assertTrue(JobPackageHistoryProto.Event.getDescriptor().getValues() in testJobPackageHistoryProto()
|