Home
last modified time | relevance | path

Searched refs:eventLogs (Results 1 – 23 of 23) sorted by relevance

/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/
DEventLogsTest.java110 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()); in resetLogs_poll_doesNotReturnLogs() local
111 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in resetLogs_poll_doesNotReturnLogs()
120 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(TEST_APP_PACKAGE_NAME); in resetLogs_differentPackage_poll_doesNotReturnLogs() local
121 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in resetLogs_differentPackage_poll_doesNotReturnLogs()
126 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in poll_nothingLogged_returnsNull() local
129 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_nothingLogged_returnsNull()
134 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in poll_loggedAfter_returnsNull() local
138 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_loggedAfter_returnsNull()
143 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(TEST_APP_PACKAGE_NAME) in poll_differentPackage_nothingLogged_returnsNull() local
146 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_differentPackage_nothingLogged_returnsNull()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java68 EventLogs<DeviceAdminEnabledEvent> eventLogs = in enableDeviceOwner_logsEnabledEvent() local
71 assertThat(eventLogs.poll()).isNotNull(); in enableDeviceOwner_logsEnabledEvent()
83 EventLogs<DeviceAdminEnabledEvent> eventLogs = in enableProfileOwner_logsEnabledEvent() local
86 assertThat(eventLogs.poll()).isNotNull(); in enableProfileOwner_logsEnabledEvent()
98 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in disableProfileOwner_logsDisableRequestedEvent() local
100 assertThat(eventLogs.poll()).isNotNull(); in disableProfileOwner_logsDisableRequestedEvent()
109 EventLogs<DeviceAdminDisabledEvent> eventLogs = in disableProfileOwner_logsDisabledEvent() local
111 assertThat(eventLogs.poll()).isNotNull(); in disableProfileOwner_logsDisabledEvent()
120 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in changePassword_logsPasswordChangedEvent() local
122 assertThat(eventLogs.poll()).isNotNull(); in changePassword_logsPasswordChangedEvent()
[all …]
DEventLibActivityTest.java71 EventLogs<ActivityCreatedEvent> eventLogs = ActivityCreatedEvent in launchEventLibActivity_logsActivityCreatedEvent() local
74 assertThat(eventLogs.poll()).isNotNull(); in launchEventLibActivity_logsActivityCreatedEvent()
85 EventLogs<ActivityCreatedEvent> eventLogs = ActivityCreatedEvent in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName() local
88 assertThat(eventLogs.poll()).isNotNull(); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
102 EventLogs<ActivityStartedEvent> eventLogs = ActivityStartedEvent in startEventLibActivity_logsActivityStartedEvent() local
105 assertThat(eventLogs.poll()).isNotNull(); in startEventLibActivity_logsActivityStartedEvent()
119 EventLogs<ActivityStartedEvent> eventLogs = ActivityStartedEvent in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName() local
122 assertThat(eventLogs.poll()).isNotNull(); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName()
136 EventLogs<ActivityStoppedEvent> eventLogs = ActivityStoppedEvent in stopEventLibActivity_logsActivityStoppedEvent() local
139 assertThat(eventLogs.poll()).isNotNull(); in stopEventLibActivity_logsActivityStoppedEvent()
[all …]
DEventLibBroadcastReceiverTest.java64 EventLogs<BroadcastReceivedEvent> eventLogs = BroadcastReceivedEvent in receiveBroadcast_logsBroadcastReceivedEvent() local
67 assertThat(eventLogs.poll()).isNotNull(); in receiveBroadcast_logsBroadcastReceivedEvent()
77 EventLogs<BroadcastReceivedEvent> eventLogs = BroadcastReceivedEvent in receiveBroadcast_withGeneratedBroadcastReceiverClass_logsBroadcastReceivedEventWithCorrectClassName() local
80 assertThat(eventLogs.poll()).isNotNull(); in receiveBroadcast_withGeneratedBroadcastReceiverClass_logsBroadcastReceivedEventWithCorrectClassName()
90 EventLogs<BroadcastReceivedEvent> eventLogs = BroadcastReceivedEvent in receiveBroadcast_logsIntent() local
93 assertThat(eventLogs.poll()).isNotNull(); in receiveBroadcast_logsIntent()
DEventLibAppComponentFactoryTest.java64 EventLogs<ActivityCreatedEvent> eventLogs = in startActivity_activityDoesNotExist_startsLoggingActivity() local
67 assertThat(eventLogs.poll()).isNotNull(); in startActivity_activityDoesNotExist_startsLoggingActivity()
77 EventLogs<BroadcastReceivedEvent> eventLogs = BroadcastReceivedEvent in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver() local
80 assertThat(eventLogs.poll()).isNotNull(); in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminPasswordChangedEventTest.java67 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereIntent_works() local
71 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
84 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereIntent_skipsNonMatching() local
88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
97 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
102 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
115 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
120 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
128 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
133 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
DDeviceAdminSystemUpdatePendingEventTest.java68 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereIntent_works() local
72 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
87 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereIntent_skipsNonMatching() local
91 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
101 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
106 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_customValueOnLogger_works()
121 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
126 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
136 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
141 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
DDeviceAdminPasswordFailedEventTest.java67 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereIntent_works() local
71 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
84 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereIntent_skipsNonMatching() local
88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
97 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
102 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
115 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
120 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
128 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
133 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
DDeviceAdminPasswordSucceededEventTest.java67 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereIntent_works() local
71 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
84 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereIntent_skipsNonMatching() local
88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
97 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
102 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
115 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
120 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
128 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
133 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
DDeviceAdminEnabledEventTest.java64 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereIntent_works() local
68 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
80 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereIntent_skipsNonMatching() local
84 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
93 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
98 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
111 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
116 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
124 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
129 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
DDeviceAdminDisabledEventTest.java64 EventLogs<DeviceAdminDisabledEvent> eventLogs = in whereIntent_works() local
68 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
80 EventLogs<DeviceAdminDisabledEvent> eventLogs = in whereIntent_skipsNonMatching() local
84 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
93 EventLogs<DeviceAdminDisabledEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
98 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
111 EventLogs<DeviceAdminDisabledEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
116 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
124 EventLogs<DeviceAdminDisabledEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
129 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
DDeviceAdminDisableRequestedEventTest.java64 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in whereIntent_works() local
68 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
82 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in whereIntent_skipsNonMatching() local
86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
95 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local
100 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
113 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local
118 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
126 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local
131 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/broadcastreceivers/
DBroadcastReceivedEventTest.java65 EventLogs<BroadcastReceivedEvent> eventLogs = in whereIntent_works() local
69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
81 EventLogs<BroadcastReceivedEvent> eventLogs = in whereIntent_skipsNonMatching() local
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
94 EventLogs<BroadcastReceivedEvent> eventLogs = in whereBroadcastReceiver_customValueOnLogger_works() local
99 assertThat(eventLogs.poll().broadcastReceiver().className()).isEqualTo( in whereBroadcastReceiver_customValueOnLogger_works()
112 EventLogs<BroadcastReceivedEvent> eventLogs = in whereBroadcastReceiver_customValueOnLogger_skipsNonMatching() local
117 assertThat(eventLogs.poll().broadcastReceiver().className()).isEqualTo( in whereBroadcastReceiver_customValueOnLogger_skipsNonMatching()
125 EventLogs<BroadcastReceivedEvent> eventLogs = in whereBroadcastReceiver_defaultValue_works() local
130 assertThat(eventLogs.poll().broadcastReceiver().className()) in whereBroadcastReceiver_defaultValue_works()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/
DCustomEventTest.java55 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereTag_works() local
58 assertThat(eventLogs.poll().tag()).isEqualTo(TAG_1); in whereTag_works()
70 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereTag_skipsNonMatching() local
73 assertThat(eventLogs.poll().tag()).isEqualTo(TAG_2); in whereTag_skipsNonMatching()
82 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereData_works() local
85 assertThat(eventLogs.poll().data()).isEqualTo(DATA_1); in whereData_works()
97 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in whereData_skipsNonMatching() local
100 assertThat(eventLogs.poll().data()).isEqualTo(DATA_2); in whereData_skipsNonMatching()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/
DActivityCreatedEventTest.java65 EventLogs<ActivityCreatedEvent> eventLogs = in whereSavedInstanceState_works() local
70 assertThat(eventLogs.poll().savedInstanceState()).isEqualTo(mSavedInstanceState); in whereSavedInstanceState_works()
86 EventLogs<ActivityCreatedEvent> eventLogs = in whereSavedInstanceState_skipsNonMatching() local
91 assertThat(eventLogs.poll().savedInstanceState()).isEqualTo(mSavedInstanceState); in whereSavedInstanceState_skipsNonMatching()
102 EventLogs<ActivityCreatedEvent> eventLogs = in wherePersistentState_works() local
107 assertThat(eventLogs.poll().persistentState()).isEqualTo(mPersistentState); in wherePersistentState_works()
124 EventLogs<ActivityCreatedEvent> eventLogs = in wherePersistentState_skipsNonMatching() local
129 assertThat(eventLogs.poll().persistentState()).isEqualTo(mPersistentState); in wherePersistentState_skipsNonMatching()
138 EventLogs<ActivityCreatedEvent> eventLogs = in whereActivity_works() local
142 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
[all …]
DActivityDestroyedEventTest.java56 EventLogs<ActivityDestroyedEvent> eventLogs = in whereActivity_works() local
60 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
72 EventLogs<ActivityDestroyedEvent> eventLogs = in whereActivity_skipsNonMatching() local
76 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityRestartedEventTest.java56 EventLogs<ActivityRestartedEvent> eventLogs = in whereActivity_works() local
60 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
72 EventLogs<ActivityRestartedEvent> eventLogs = in whereActivity_skipsNonMatching() local
76 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityStoppedEventTest.java56 EventLogs<ActivityStoppedEvent> eventLogs = in whereActivity_works() local
60 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
72 EventLogs<ActivityStoppedEvent> eventLogs = in whereActivity_skipsNonMatching() local
76 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityPausedEventTest.java56 EventLogs<ActivityPausedEvent> eventLogs = in whereActivity_works() local
60 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
72 EventLogs<ActivityPausedEvent> eventLogs = in whereActivity_skipsNonMatching() local
76 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityResumedEventTest.java56 EventLogs<ActivityResumedEvent> eventLogs = in whereActivity_works() local
60 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
72 EventLogs<ActivityResumedEvent> eventLogs = in whereActivity_skipsNonMatching() local
76 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
DActivityStartedEventTest.java56 EventLogs<ActivityStartedEvent> eventLogs = in whereActivity_works() local
60 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
72 EventLogs<ActivityStartedEvent> eventLogs = in whereActivity_skipsNonMatching() local
76 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppAppComponentFactoryTest.java67 EventLogs<ActivityCreatedEvent> eventLogs = in startActivity_activityDoesNotExist_startsLoggingActivity() local
71 assertThat(eventLogs.poll()).isNotNull(); in startActivity_activityDoesNotExist_startsLoggingActivity()
81 EventLogs<BroadcastReceivedEvent> eventLogs = BroadcastReceivedEvent in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver() local
85 assertThat(eventLogs.poll()).isNotNull(); in sendBroadcast_receiverDoesNotExist_launchesBroadcastReceiver()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DActivityMetricsLoggerTests.java125 final List<Event> eventLogs = getEventLogsForComponents(mLogSeparator, in testAppLaunchIsLogged() local
137 assertEventLogsContainsLaunchTime(eventLogs, TEST_ACTIVITY, windowsDrawnDelayMs); in testAppLaunchIsLogged()
431 final List<Event> eventLogs = getEventLogsForComponents(mLogSeparator, in testLaunchTimeEventLogNonProcessSwitch() local
433 verifyLaunchTimeEventLogs(eventLogs, TEST_ACTIVITY, time -> assertNotEquals(0, time)); in testLaunchTimeEventLogNonProcessSwitch()
458 final List<Event> eventLogs = getEventLogsForComponents(mLogSeparator, in waitForMetricsLog() local
460 for (Event event : eventLogs) { in waitForMetricsLog()