Home
last modified time | relevance | path

Searched refs:poll (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/
DEventLogsTest.java86 CustomEvent.queryPackage(sContext.getPackageName()).poll(); in teardown()
90 CustomEvent.queryPackage(TEST_APP_PACKAGE_NAME).poll(); in teardown()
103 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in resetLogs_poll_doesNotReturnLogs()
113 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in resetLogs_differentPackage_poll_doesNotReturnLogs()
121 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_nothingLogged_returnsNull()
130 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_loggedAfter_returnsNull()
138 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_differentPackage_nothingLogged_returnsNull()
147 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_differentPackage_loggedAfter_returnsNull()
158 assertThat(eventLogs.poll().data()).isEqualTo(DATA_2); in poll_loggedOnTwoPackages_returnsEventFromQueriedPackage()
175 assertThat(eventLogs.poll().data()).isEqualTo(DATA_1); in poll_alreadyLogged_returnsFirstEvent()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java110 assertThat(eventLogs.poll()).isNotNull(); in enableDeviceOwner_logsEnabledEvent()
126 assertThat(eventLogs.poll()).isNotNull(); in enableProfileOwner_logsEnabledEvent()
140 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in disableProfileOwner_logsDisableRequestedEvent()
151 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in disableProfileOwner_logsDisabledEvent()
162 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in changePassword_logsPasswordChangedEvent()
173 DeviceAdminPasswordChangedEvent event = eventLogs.poll(); in changePasswordWithUserHandle_logsPasswordChangedEvent()
186 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in failPassword_logsPasswordFailedEvent()
197 DeviceAdminPasswordFailedEvent event = eventLogs.poll(); in failPasswordWithUserHandle_logsPasswordFailedEvent()
210 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in succeedPassword_logsPasswordSucceededEvent()
221 DeviceAdminPasswordSucceededEvent event = eventLogs.poll(); in succeedPasswordWithUserHandle_logsPasswordSucceededEvent()
[all …]
DEventLibActivityTest.java73 assertThat(eventLogs.poll()).isNotNull(); in launchEventLibActivity_logsActivityCreatedEvent()
87 assertThat(eventLogs.poll()).isNotNull(); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName()
104 assertThat(eventLogs.poll()).isNotNull(); in startEventLibActivity_logsActivityStartedEvent()
121 assertThat(eventLogs.poll()).isNotNull(); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName()
138 assertThat(eventLogs.poll()).isNotNull(); in stopEventLibActivity_logsActivityStoppedEvent()
155 assertThat(eventLogs.poll()).isNotNull(); in stopEventLibActivity_withGeneratedActivityClass_logsActivityStoppedEventWithCorrectClassName()
172 assertThat(eventLogs.poll()).isNotNull(); in destroyEventLibActivity_logsActivityDestroyedEvent()
189 assertThat(eventLogs.poll()).isNotNull(); in destroyEventLibActivity_withGeneratedActivityClass_logsActivityDestroyedEventWithCorrectClassName()
208 assertThat(eventLogs.poll()).isNotNull(); in pauseEventLibActivity_logsActivityPausedEvent()
227 assertThat(eventLogs.poll()).isNotNull(); in pauseEventLibActivity_withGeneratedActivityClass_logsActivityPausedEventWithCorrectClassName()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListener.kt55 fun poll(): Notification? { in poll() method in com.android.bedstead.nene.notifications.NotificationListener
56 return query.poll() in poll()
62 fun poll(duration: Duration): Notification? { in poll() method in com.android.bedstead.nene.notifications.NotificationListener
63 return query.poll(duration) in poll()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyRegistryManagerTest.java112 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChangedForAllSubscriptions()
119 Pair<Integer, String> result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChangedForAllSubscriptions()
140 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChanged()
150 Pair<Integer, String> result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyCallStateChanged()
170 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyServiceStateChanged()
181 ServiceState result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyServiceStateChanged()
200 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifySignalStrengthChanged()
210 SignalStrength result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifySignalStrengthChanged()
229 queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyMessageWaitingChanged()
239 boolean result = queue.poll(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); in testNotifyMessageWaitingChanged()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminChoosePrivateKeyAliasEventTest.java74 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
91 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
106 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
126 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
140 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
159 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
173 assertThat(eventLogs.poll().uid()).isEqualTo(UID); in whereUid_works()
189 assertThat(eventLogs.poll().uid()).isEqualTo(UID); in whereUid_skipsNonMatching()
202 assertThat(eventLogs.poll().uri()).isEqualTo(URI); in whereUri_works()
218 assertThat(eventLogs.poll().uri()).isEqualTo(URI); in whereUri_skipsNonMatching()
[all …]
DDeviceAdminNetworkLogsAvailableEventTest.java71 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
102 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
122 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
136 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
155 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
168 assertThat(eventLogs.poll().batchToken()).isEqualTo(BATCH_TOKEN); in whereBatchToken_works()
182 assertThat(eventLogs.poll().batchToken()).isEqualTo(BATCH_TOKEN); in whereBatchToken_skipsNonMatching()
194 assertThat(eventLogs.poll().networkLogsCount()).isEqualTo(NETWORK_LOGS_COUNT); in whereNetworkLogsCount_works()
208 assertThat(eventLogs.poll().networkLogsCount()).isEqualTo(NETWORK_LOGS_COUNT); in whereNetworkLogsCount_skipsNonMatching()
DDeviceAdminOperationSafetyStateChangedEventTest.java69 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
89 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
103 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
122 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
135 assertThat(eventLogs.poll().reason()).isEqualTo(REASON); in whereReason_works()
149 assertThat(eventLogs.poll().reason()).isEqualTo(REASON); in whereReason_skipsNonMatching()
161 assertThat(eventLogs.poll().isSafe()).isEqualTo(IS_SAFE); in whereIsSafe_works()
175 assertThat(eventLogs.poll().isSafe()).isEqualTo(IS_SAFE); in whereIsSafe_skipsNonMatching()
DDeviceAdminPasswordFailedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().userHandle()).isEqualTo(USER_HANDLE); in whereUserHandle_works()
177 assertThat(eventLogs.poll().userHandle()).isEqualTo(USER_HANDLE); in whereUserHandle_skipsNonMatching()
DDeviceAdminBugreportFailedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
101 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
121 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
135 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
154 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
167 assertThat(eventLogs.poll().failureCode()).isEqualTo(FAILURE_CODE); in whereFailureCode_works()
181 assertThat(eventLogs.poll().failureCode()).isEqualTo(FAILURE_CODE); in whereFailureCode_skipsNonMatching()
DDeviceAdminLockTaskModeEnteringEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
100 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
118 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
132 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
149 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
162 assertThat(eventLogs.poll().pkg()).isEqualTo(PKG); in wherePkg_works()
177 assertThat(eventLogs.poll().pkg()).isEqualTo(PKG); in wherePkg_skipsNonMatching()
DDeviceAdminBugreportSharedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
101 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
121 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
135 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
154 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
167 assertThat(eventLogs.poll().bugreportHash()).isEqualTo(BUGREPORT_HASH); in whereBugreportHash_works()
181 assertThat(eventLogs.poll().bugreportHash()).isEqualTo(BUGREPORT_HASH); in whereBugreportHash_skipsNonMatching()
DDeviceAdminUserRemovedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().removedUser()).isEqualTo(USER_HANDLE); in whereRemovedUser_works()
177 assertThat(eventLogs.poll().removedUser()).isEqualTo(USER_HANDLE); in whereRemovedUser_skipsNonMatching()
DDeviceAdminUserStartedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().startedUser()).isEqualTo(USER_HANDLE); in whereStartedUser_works()
177 assertThat(eventLogs.poll().startedUser()).isEqualTo(USER_HANDLE); in whereStartedUser_skipsNonMatching()
DDeviceAdminUserAddedEventTest.java70 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
87 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
101 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
119 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
133 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
150 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
164 assertThat(eventLogs.poll().addedUser()).isEqualTo(USER_HANDLE); in whereAddedUser_works()
180 assertThat(eventLogs.poll().addedUser()).isEqualTo(USER_HANDLE); in whereAddedUser_skipsNonMatching()
DDeviceAdminSystemUpdatePendingEventTest.java70 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
103 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_customValueOnLogger_works()
123 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
138 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
157 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
172 assertThat(eventLogs.poll().receivedTime()).isEqualTo(RECEIVED_TIME); in whereReceivedTime_works()
190 assertThat(eventLogs.poll().receivedTime()).isEqualTo(RECEIVED_TIME); in whereReceivedTime_skipsNonMatching()
DDeviceAdminPasswordChangedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().userHandle()).isEqualTo(USER_HANDLE); in whereUserHandle_works()
177 assertThat(eventLogs.poll().userHandle()).isEqualTo(USER_HANDLE); in whereUserHandle_skipsNonMatching()
DDeviceAdminUserSwitchedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().switchedUser()).isEqualTo(USER_HANDLE); in whereSwitchedUser_works()
177 assertThat(eventLogs.poll().switchedUser()).isEqualTo(USER_HANDLE); in whereSwitchedUser_skipsNonMatching()
DDeviceAdminPasswordSucceededEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().userHandle()).isEqualTo(USER_HANDLE); in whereUserHandle_works()
177 assertThat(eventLogs.poll().userHandle()).isEqualTo(USER_HANDLE); in whereUserHandle_skipsNonMatching()
DDeviceAdminUserStoppedEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().stoppedUser()).isEqualTo(USER_HANDLE); in whereStoppedUser_works()
177 assertThat(eventLogs.poll().stoppedUser()).isEqualTo(USER_HANDLE); in whereStoppedUser_skipsNonMatching()
DDeviceAdminPasswordExpiringEventTest.java69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
147 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
161 assertThat(eventLogs.poll().user()).isEqualTo(USER_HANDLE); in whereUserHandle_works()
177 assertThat(eventLogs.poll().user()).isEqualTo(USER_HANDLE); in whereUserHandle_skipsNonMatching()
DDeviceAdminTransferAffiliatedProfileOwnershipCompleteEventTest.java69 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works()
90 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
105 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works()
125 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
140 assertThat(eventLogs.poll().user()).isEqualTo(USER_HANDLE); in whereUser_works()
157 assertThat(eventLogs.poll().user()).isEqualTo(USER_HANDLE); in whereUserHandle_skipsNonMatching()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/delegatedadminreceivers/
DDelegatedAdminNetworkLogsAvailableEventTest.java72 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works()
89 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching()
103 assertThat(eventLogs.poll().delegatedAdminReceiver().className()).isEqualTo( in whereDelegatedAdminReceiver_customValueOnLogger_works()
123 assertThat(eventLogs.poll().delegatedAdminReceiver().className()).isEqualTo( in whereDelegatedAdminReceiver_customValueOnLogger_skipsNonMatching()
137 assertThat(eventLogs.poll().delegatedAdminReceiver().className()) in whereDelegatedAdminReceiver_defaultValue_works()
156 assertThat(eventLogs.poll().delegatedAdminReceiver().className()) in whereDelegatedAdminReceiver_defaultValue_skipsNonMatching()
169 assertThat(eventLogs.poll().batchToken()).isEqualTo(BATCH_TOKEN); in whereBatchToken_works()
183 assertThat(eventLogs.poll().batchToken()).isEqualTo(BATCH_TOKEN); in whereBatchToken_skipsNonMatching()
195 assertThat(eventLogs.poll().networkLogsCount()).isEqualTo(NETWORK_LOGS_COUNT); in whereNetworkLogsCount_works()
209 assertThat(eventLogs.poll().networkLogsCount()).isEqualTo(NETWORK_LOGS_COUNT); in whereNetworkLogsCount_skipsNonMatching()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DEventCapturingMotionEventListener.java69 MotionEvent event = mEvents.poll(MIN_WAIT_TIME_SECONDS, SECONDS); in assertNonePropagated()
89 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
100 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
124 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in assertPropagated()
136 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
139 ev = mEvents.poll(WAIT_TIME_SECONDS, SECONDS); in getRawEvents()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/
DActivityCreatedEventTest.java71 assertThat(eventLogs.poll().savedInstanceState()).isEqualTo(mSavedInstanceState); in whereSavedInstanceState_works()
92 assertThat(eventLogs.poll().savedInstanceState()).isEqualTo(mSavedInstanceState); in whereSavedInstanceState_skipsNonMatching()
108 assertThat(eventLogs.poll().persistentState()).isEqualTo(mPersistentState); in wherePersistentState_works()
130 assertThat(eventLogs.poll().persistentState()).isEqualTo(mPersistentState); in wherePersistentState_skipsNonMatching()
143 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works()
159 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_skipsNonMatching()
173 assertThat(eventLogs.poll().taskId()).isEqualTo(TASK_ID); in whereTaskId_works()
191 assertThat(eventLogs.poll().taskId()).isEqualTo(TASK_ID); in whereTaskId_skipsNonMatching()

12345678910>>...12