/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/ |
D | EventLogsTest.java | 102 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()); in resetLogs_poll_doesNotReturnLogs() local 103 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in resetLogs_poll_doesNotReturnLogs() 112 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(TEST_APP_PACKAGE_NAME); in resetLogs_differentPackage_poll_doesNotReturnLogs() local 113 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in resetLogs_differentPackage_poll_doesNotReturnLogs() 118 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in poll_nothingLogged_returnsNull() local 121 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_nothingLogged_returnsNull() 126 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(sContext.getPackageName()) in poll_loggedAfter_returnsNull() local 130 assertThat(eventLogs.poll(VERY_SHORT_POLL_WAIT)).isNull(); in poll_loggedAfter_returnsNull() 135 EventLogs<CustomEvent> eventLogs = CustomEvent.queryPackage(TEST_APP_PACKAGE_NAME) in poll_differentPackage_nothingLogged_returnsNull() local 138 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/ |
D | EventLibDeviceAdminReceiverTest.java | 107 EventLogs<DeviceAdminEnabledEvent> eventLogs = in enableDeviceOwner_logsEnabledEvent() local 110 assertThat(eventLogs.poll()).isNotNull(); in enableDeviceOwner_logsEnabledEvent() 123 EventLogs<DeviceAdminEnabledEvent> eventLogs = in enableProfileOwner_logsEnabledEvent() local 126 assertThat(eventLogs.poll()).isNotNull(); in enableProfileOwner_logsEnabledEvent() 138 EventLogs<DeviceAdminDisableRequestedEvent> eventLogs = in disableProfileOwner_logsDisableRequestedEvent() local 140 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in disableProfileOwner_logsDisableRequestedEvent() 149 EventLogs<DeviceAdminDisabledEvent> eventLogs = in disableProfileOwner_logsDisabledEvent() local 151 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in disableProfileOwner_logsDisabledEvent() 160 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in changePassword_logsPasswordChangedEvent() local 162 assertThat(eventLogs.poll().intent()).isEqualTo(sIntent); in changePassword_logsPasswordChangedEvent() [all …]
|
D | EventLibActivityTest.java | 70 EventLogs<ActivityCreatedEvent> eventLogs = ActivityCreatedEvent in launchEventLibActivity_logsActivityCreatedEvent() local 73 assertThat(eventLogs.poll()).isNotNull(); in launchEventLibActivity_logsActivityCreatedEvent() 84 EventLogs<ActivityCreatedEvent> eventLogs = ActivityCreatedEvent in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName() local 87 assertThat(eventLogs.poll()).isNotNull(); in launchEventLibActivity_withGeneratedActivityClass_logsActivityCreatedEventWithCorrectClassName() 101 EventLogs<ActivityStartedEvent> eventLogs = ActivityStartedEvent in startEventLibActivity_logsActivityStartedEvent() local 104 assertThat(eventLogs.poll()).isNotNull(); in startEventLibActivity_logsActivityStartedEvent() 118 EventLogs<ActivityStartedEvent> eventLogs = ActivityStartedEvent in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName() local 121 assertThat(eventLogs.poll()).isNotNull(); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName() 135 EventLogs<ActivityStoppedEvent> eventLogs = ActivityStoppedEvent in stopEventLibActivity_logsActivityStoppedEvent() local 138 assertThat(eventLogs.poll()).isNotNull(); in stopEventLibActivity_logsActivityStoppedEvent() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminChoosePrivateKeyAliasEventTest.java | 70 EventLogs<DeviceAdminChoosePrivateKeyAliasEvent> eventLogs = in whereIntent_works() local 74 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 87 EventLogs<DeviceAdminChoosePrivateKeyAliasEvent> eventLogs = in whereIntent_skipsNonMatching() local 91 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 101 EventLogs<DeviceAdminChoosePrivateKeyAliasEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 106 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 121 EventLogs<DeviceAdminChoosePrivateKeyAliasEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 126 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 135 EventLogs<DeviceAdminChoosePrivateKeyAliasEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 140 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminNetworkLogsAvailableEventTest.java | 67 EventLogs<DeviceAdminNetworkLogsAvailableEvent> eventLogs = in whereIntent_works() local 71 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 84 EventLogs<DeviceAdminNetworkLogsAvailableEvent> eventLogs = in whereIntent_skipsNonMatching() local 88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 97 EventLogs<DeviceAdminNetworkLogsAvailableEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 102 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 117 EventLogs<DeviceAdminNetworkLogsAvailableEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 122 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 131 EventLogs<DeviceAdminNetworkLogsAvailableEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 136 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminOperationSafetyStateChangedEventTest.java | 64 EventLogs<DeviceAdminOperationSafetyStateChangedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 69 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 84 EventLogs<DeviceAdminOperationSafetyStateChangedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 89 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 98 EventLogs<DeviceAdminOperationSafetyStateChangedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 103 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() 117 EventLogs<DeviceAdminOperationSafetyStateChangedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() local 122 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() 131 EventLogs<DeviceAdminOperationSafetyStateChangedEvent> eventLogs = in whereReason_works() local 135 assertThat(eventLogs.poll().reason()).isEqualTo(REASON); in whereReason_works() [all …]
|
D | DeviceAdminPasswordFailedEventTest.java | 65 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminPasswordFailedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminBugreportFailedEventTest.java | 65 EventLogs<DeviceAdminBugreportFailedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 82 EventLogs<DeviceAdminBugreportFailedEvent> eventLogs = in whereIntent_skipsNonMatching() local 86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 96 EventLogs<DeviceAdminBugreportFailedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 101 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 116 EventLogs<DeviceAdminBugreportFailedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 121 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 130 EventLogs<DeviceAdminBugreportFailedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 135 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminLockTaskModeEnteringEventTest.java | 65 EventLogs<DeviceAdminLockTaskModeEnteringEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 82 EventLogs<DeviceAdminLockTaskModeEnteringEvent> eventLogs = in whereIntent_skipsNonMatching() local 86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 95 EventLogs<DeviceAdminLockTaskModeEnteringEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 100 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 113 EventLogs<DeviceAdminLockTaskModeEnteringEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 118 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 127 EventLogs<DeviceAdminLockTaskModeEnteringEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 132 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminBugreportSharedEventTest.java | 65 EventLogs<DeviceAdminBugreportSharedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 82 EventLogs<DeviceAdminBugreportSharedEvent> eventLogs = in whereIntent_skipsNonMatching() local 86 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 96 EventLogs<DeviceAdminBugreportSharedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 101 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 116 EventLogs<DeviceAdminBugreportSharedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 121 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 130 EventLogs<DeviceAdminBugreportSharedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 135 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminUserRemovedEventTest.java | 65 EventLogs<DeviceAdminUserRemovedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminUserRemovedEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminUserRemovedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminUserRemovedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminUserRemovedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminUserStartedEventTest.java | 65 EventLogs<DeviceAdminUserStartedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminUserStartedEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminUserStartedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminUserStartedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminUserStartedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminUserAddedEventTest.java | 66 EventLogs<DeviceAdminUserAddedEvent> eventLogs = in whereIntent_works() local 70 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 83 EventLogs<DeviceAdminUserAddedEvent> eventLogs = in whereIntent_skipsNonMatching() local 87 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 96 EventLogs<DeviceAdminUserAddedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 101 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 114 EventLogs<DeviceAdminUserAddedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 119 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 128 EventLogs<DeviceAdminUserAddedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 133 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminSystemUpdatePendingEventTest.java | 66 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereIntent_works() local 70 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 84 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereIntent_skipsNonMatching() local 88 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 98 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 103 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_customValueOnLogger_works() 118 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 123 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 133 EventLogs<DeviceAdminSystemUpdatePendingEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 138 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminPasswordChangedEventTest.java | 65 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminPasswordChangedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminUserSwitchedEventTest.java | 65 EventLogs<DeviceAdminUserSwitchedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminUserSwitchedEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminUserSwitchedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminUserSwitchedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminUserSwitchedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminPasswordSucceededEventTest.java | 65 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminPasswordSucceededEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminUserStoppedEventTest.java | 65 EventLogs<DeviceAdminUserStoppedEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminUserStoppedEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminUserStoppedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminUserStoppedEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminUserStoppedEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminPasswordExpiringEventTest.java | 65 EventLogs<DeviceAdminPasswordExpiringEvent> eventLogs = in whereIntent_works() local 69 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 81 EventLogs<DeviceAdminPasswordExpiringEvent> eventLogs = in whereIntent_skipsNonMatching() local 85 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 94 EventLogs<DeviceAdminPasswordExpiringEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 99 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 112 EventLogs<DeviceAdminPasswordExpiringEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 117 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 EventLogs<DeviceAdminPasswordExpiringEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 130 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminTransferAffiliatedProfileOwnershipCompleteEventTest.java | 63 EventLogs<DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 69 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 84 EventLogs<DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 90 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 99 EventLogs<DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 105 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() 119 EventLogs<DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() local 125 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() 135 EventLogs<DeviceAdminTransferAffiliatedProfileOwnershipCompleteEvent> eventLogs = in whereUser_works() local 140 assertThat(eventLogs.poll().user()).isEqualTo(USER_HANDLE); in whereUser_works() [all …]
|
D | DeviceAdminEnabledEventTest.java | 62 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereIntent_works() local 66 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 77 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereIntent_skipsNonMatching() local 81 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 90 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 95 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 108 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 113 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 121 EventLogs<DeviceAdminEnabledEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 126 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
D | DeviceAdminLockTaskModeExitingEventTest.java | 63 EventLogs<DeviceAdminLockTaskModeExitingEvent> eventLogs = in whereIntent_works() local 67 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 80 EventLogs<DeviceAdminLockTaskModeExitingEvent> eventLogs = in whereIntent_skipsNonMatching() local 84 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 93 EventLogs<DeviceAdminLockTaskModeExitingEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_works() local 98 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_works() 111 EventLogs<DeviceAdminLockTaskModeExitingEvent> eventLogs = in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() local 116 assertThat(eventLogs.poll().deviceAdminReceiver().className()).isEqualTo( in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 124 EventLogs<DeviceAdminLockTaskModeExitingEvent> eventLogs = in whereDeviceAdminReceiver_defaultValue_works() local 129 assertThat(eventLogs.poll().deviceAdminReceiver().className()) in whereDeviceAdminReceiver_defaultValue_works() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/delegatedadminreceivers/ |
D | DelegatedAdminNetworkLogsAvailableEventTest.java | 68 EventLogs<DelegatedAdminNetworkLogsAvailableEvent> eventLogs = in whereIntent_works() local 72 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 85 EventLogs<DelegatedAdminNetworkLogsAvailableEvent> eventLogs = in whereIntent_skipsNonMatching() local 89 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 98 EventLogs<DelegatedAdminNetworkLogsAvailableEvent> eventLogs = in whereDelegatedAdminReceiver_customValueOnLogger_works() local 103 assertThat(eventLogs.poll().delegatedAdminReceiver().className()).isEqualTo( in whereDelegatedAdminReceiver_customValueOnLogger_works() 118 EventLogs<DelegatedAdminNetworkLogsAvailableEvent> eventLogs = in whereDelegatedAdminReceiver_customValueOnLogger_skipsNonMatching() local 123 assertThat(eventLogs.poll().delegatedAdminReceiver().className()).isEqualTo( in whereDelegatedAdminReceiver_customValueOnLogger_skipsNonMatching() 132 EventLogs<DelegatedAdminNetworkLogsAvailableEvent> eventLogs = in whereDelegatedAdminReceiver_defaultValue_works() local 137 assertThat(eventLogs.poll().delegatedAdminReceiver().className()) in whereDelegatedAdminReceiver_defaultValue_works() [all …]
|
D | DelegatedAdminSecurityLogsAvailableEventTest.java | 62 EventLogs<DelegatedAdminSecurityLogsAvailableEvent> eventLogs = in whereIntent_works() local 66 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_works() 78 EventLogs<DelegatedAdminSecurityLogsAvailableEvent> eventLogs = in whereIntent_skipsNonMatching() local 82 assertThat(eventLogs.poll().intent()).isEqualTo(intent); in whereIntent_skipsNonMatching() 91 EventLogs<DelegatedAdminSecurityLogsAvailableEvent> eventLogs = in whereDelegatedAdminReceiver_customValueOnLogger_works() local 96 assertThat(eventLogs.poll().delegatedAdminReceiver().className()).isEqualTo( in whereDelegatedAdminReceiver_customValueOnLogger_works() 109 EventLogs<DelegatedAdminSecurityLogsAvailableEvent> eventLogs = in whereDelegatedAdminReceiver_customValueOnLogger_skipsNonMatching() local 114 assertThat(eventLogs.poll().delegatedAdminReceiver().className()).isEqualTo( in whereDelegatedAdminReceiver_customValueOnLogger_skipsNonMatching() 122 EventLogs<DelegatedAdminSecurityLogsAvailableEvent> eventLogs = in whereDelegatedAdminReceiver_defaultValue_works() local 127 assertThat(eventLogs.poll().delegatedAdminReceiver().className()) in whereDelegatedAdminReceiver_defaultValue_works() [all …]
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/activities/ |
D | ActivityCreatedEventTest.java | 66 EventLogs<ActivityCreatedEvent> eventLogs = in whereSavedInstanceState_works() local 71 assertThat(eventLogs.poll().savedInstanceState()).isEqualTo(mSavedInstanceState); in whereSavedInstanceState_works() 87 EventLogs<ActivityCreatedEvent> eventLogs = in whereSavedInstanceState_skipsNonMatching() local 92 assertThat(eventLogs.poll().savedInstanceState()).isEqualTo(mSavedInstanceState); in whereSavedInstanceState_skipsNonMatching() 103 EventLogs<ActivityCreatedEvent> eventLogs = in wherePersistentState_works() local 108 assertThat(eventLogs.poll().persistentState()).isEqualTo(mPersistentState); in wherePersistentState_works() 125 EventLogs<ActivityCreatedEvent> eventLogs = in wherePersistentState_skipsNonMatching() local 130 assertThat(eventLogs.poll().persistentState()).isEqualTo(mPersistentState); in wherePersistentState_skipsNonMatching() 139 EventLogs<ActivityCreatedEvent> eventLogs = in whereActivity_works() local 143 assertThat(eventLogs.poll().activity().className()).isEqualTo(ACTIVITY_CLASS_NAME); in whereActivity_works() [all …]
|