Home
last modified time | relevance | path

Searched refs:argumentCaptor (Results 1 – 25 of 72) sorted by relevance

123

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/
H A DBroadcastDispatcherTest.kt70 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture()
144 assertSame(intentFilter, argumentCaptor.value.filter)
162 assertSame(intentFilter, argumentCaptor.value.filter)
178 assertSame(intentFilter, argumentCaptor.value.filter)
192 assertSame(intentFilter, argumentCaptor.value.filter)
203 assertSame(intentFilter, argumentCaptor.value.filter)
222 assertSame(intentFilter, argumentCaptor.value.filter)
223 assertSame(permission, argumentCaptor.value.permission)
234 assertSame(intentFilter, argumentCaptor.value.filter)
248 assertSame(intentFilter, argumentCaptor.value.filter)
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DClockEventControllerTest.kt46 import com.android.systemui.util.mockito.argumentCaptor
178 val captor = argumentCaptor<ConfigurationController.ConfigurationListener>()
199 val keyguardCaptor = argumentCaptor<KeyguardUpdateMonitorCallback>()
212 val keyguardCaptor = argumentCaptor<KeyguardUpdateMonitorCallback>()
225 val keyguardCaptor = argumentCaptor<KeyguardUpdateMonitorCallback>()
238 val keyguardCaptor = argumentCaptor<KeyguardUpdateMonitorCallback>()
248 val captor = argumentCaptor<BroadcastReceiver>()
259 val captor = argumentCaptor<KeyguardUpdateMonitorCallback>()
271 val captor = argumentCaptor<KeyguardUpdateMonitorCallback>()
281 val captor = argumentCaptor<KeyguardUpdateMonitorCallback>()
[all …]
H A DKeyguardSecurityViewFlipperControllerTest.java146 ArgumentCaptor<AsyncLayoutInflater.OnInflateFinishedListener> argumentCaptor = in asynchronouslyInflateView_setNeedsInput() local
150 verify(mAsyncLayoutInflater).inflate(anyInt(), eq(mView), argumentCaptor.capture()); in asynchronouslyInflateView_setNeedsInput()
151 argumentCaptor.getValue().onInflateFinished( in asynchronouslyInflateView_setNeedsInput()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/smartspace/
H A DLockscreenPreconditionTest.kt83 var argumentCaptor = ArgumentCaptor.forClass(DeviceProvisionedController regex
85 verify(deviceProvisionedController).addCallback(argumentCaptor.capture())
90 argumentCaptor.value.onDeviceProvisionedChanged()
109 var argumentCaptor = ArgumentCaptor.forClass(DeviceProvisionedController regex
111 verify(deviceProvisionedController).addCallback(argumentCaptor.capture())
116 argumentCaptor.value.onUserSetupChanged()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
H A DUdfpsKeyguardAccessibilityDelegateTest.kt26 import com.android.systemui.util.mockito.argumentCaptor
63 val argumentCaptor = argumentCaptor<AccessibilityNodeInfo.AccessibilityAction>() regex
64 verify(mockedNodeInfo).addAction(argumentCaptor.capture())
69 argumentCaptor.value.id
H A DFaceAuthAccessibilityDelegateTest.kt29 import com.android.systemui.util.mockito.argumentCaptor
72 val argumentCaptor = argumentCaptor<AccessibilityNodeInfo.AccessibilityAction>() regex
73 verify(mockedNodeInfo).addAction(argumentCaptor.capture())
78 argumentCaptor.value.id
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DHeaderPrivacyIconsControllerTest.kt28 import com.android.systemui.util.mockito.argumentCaptor
171 val captor = argumentCaptor<View.OnClickListener>()
184 val captor = argumentCaptor<View.OnClickListener>()
195 val receiverCaptor = argumentCaptor<BroadcastReceiver>()
205 val captor = argumentCaptor<View.OnClickListener>()
216 val receiverCaptor = argumentCaptor<BroadcastReceiver>()
226 val captor = argumentCaptor<View.OnClickListener>()
238 val broadcastReceiverCaptor = argumentCaptor<BroadcastReceiver>()
247 val broadcastReceiverCaptor = argumentCaptor<BroadcastReceiver>()
248 val intentFilterCaptor = argumentCaptor<IntentFilter>()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
H A DNoteTaskControllerTest.kt61 import com.android.systemui.util.mockito.argumentCaptor
263 val intentCaptor = argumentCaptor<Intent>()
264 val userCaptor = argumentCaptor<UserHandle>()
287 val intentCaptor = argumentCaptor<Intent>()
313 val intentCaptor = argumentCaptor<Intent>()
382 val intentCaptor = argumentCaptor<Intent>()
444 val intentCaptor = argumentCaptor<Intent>()
665 val intentCaptor = argumentCaptor<Intent>()
666 val iconCaptor = argumentCaptor<Icon>()
914 val intentCaptor = argumentCaptor<Intent>()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
H A DTemporaryViewDisplayControllerTest.kt207 val viewCaptor = argumentCaptor<View>()
321 val viewCaptor = argumentCaptor<View>()
527 val viewCaptor = argumentCaptor<View>()
575 val viewCaptor = argumentCaptor<View>()
642 val viewCaptor = argumentCaptor<View>()
677 val viewCaptor = argumentCaptor<View>()
723 val viewCaptor = argumentCaptor<View>()
768 val viewCaptor = argumentCaptor<View>()
806 val viewCaptor = argumentCaptor<View>()
847 val viewCaptor = argumentCaptor<View>()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/conditions/
H A DAssistantAttentionConditionTest.java80 final ArgumentCaptor<VisualQueryAttentionListener> argumentCaptor = in testAttentionChangedTriggersCondition() local
82 verify(mAssistManager).addVisualQueryAttentionListener(argumentCaptor.capture()); in testAttentionChangedTriggersCondition()
84 argumentCaptor.getValue().onAttentionGained(); in testAttentionChangedTriggersCondition()
87 argumentCaptor.getValue().onAttentionLost(); in testAttentionChangedTriggersCondition()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/
H A DMediaTttCommandLineHelperTest.kt30 import com.android.systemui.util.mockito.argumentCaptor
90 val routeInfoCaptor = argumentCaptor<MediaRoute2Info>()
105 val routeInfoCaptor = argumentCaptor<MediaRoute2Info>()
120 val routeInfoCaptor = argumentCaptor<MediaRoute2Info>()
148 val routeInfoCaptor = argumentCaptor<MediaRoute2Info>()
163 val routeInfoCaptor = argumentCaptor<MediaRoute2Info>()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
H A DPanelConfirmationDialogFactoryTest.kt26 import com.android.systemui.util.mockito.argumentCaptor
65 val captor: ArgumentCaptor<DialogInterface.OnClickListener> = argumentCaptor()
82 val captor: ArgumentCaptor<DialogInterface.OnClickListener> = argumentCaptor()
99 val captor: ArgumentCaptor<DialogInterface.OnCancelListener> = argumentCaptor()
H A DControlsProviderSelectorActivityTest.kt42 import com.android.systemui.util.mockito.argumentCaptor
181 val captor: ArgumentCaptor<Consumer<Boolean>> = argumentCaptor()
186 val setCaptor: ArgumentCaptor<Set<String>> = argumentCaptor()
189 val selectedComponentCaptor: ArgumentCaptor<SelectedItem> = argumentCaptor()
211 val captor: ArgumentCaptor<Consumer<Boolean>> = argumentCaptor()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
H A DQrCodeScannerKeyguardQuickAffordanceConfigTest.kt27 import com.android.systemui.util.mockito.argumentCaptor
66 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>()
84 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>()
100 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>()
116 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>()
H A DMuteQuickAffordanceConfigTest.kt30 import com.android.systemui.util.mockito.argumentCaptor
116 val ringerModeCapture = argumentCaptor<Int>()
134 val ringerModeCapture = argumentCaptor<Int>()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DFontScalingTileTest.kt79 @Captor private lateinit var argumentCaptor: ArgumentCaptor<Runnable>
146 argumentCaptor.capture(),
152 argumentCaptor.value.run()
165 argumentCaptor.capture(),
171 argumentCaptor.value.run()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DPhoneStatusBarViewControllerTest.kt108 val argumentCaptor = ArgumentCaptor.forClass( regex
114 verify(configurationController).addCallback(argumentCaptor.capture())
115 argumentCaptor.value.onDensityOrFontScaleChanged()
125 val argumentCaptor = ArgumentCaptor.forClass(OnPreDrawListener::class.java) regex
132 verify(view.viewTreeObserver).addOnPreDrawListener(argumentCaptor.capture())
133 argumentCaptor.value.onPreDraw()
/aosp14/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/mockito/
H A DKotlinMockitoHelpers.kt69 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture()
76 inline fun <reified T : Any> argumentCaptor(): ArgumentCaptor<T> =
/aosp14/frameworks/base/libs/dream/lowlight/tests/src/com/android/dream/lowlight/utils/
H A DKotlinMockitoHelpers.kt46 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture()
53 inline fun <reified T : Any> argumentCaptor(): ArgumentCaptor<T> =
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
H A DKeyguardRepositoryImplTest.kt49 import com.android.systemui.util.mockito.argumentCaptor
196 val captor = argumentCaptor<KeyguardStateController.Callback>()
258 val captor = argumentCaptor<KeyguardStateController.Callback>()
283 val captor = argumentCaptor<KeyguardStateController.Callback>()
358 val captor = argumentCaptor<WakefulnessLifecycle.Observer>()
403 val captor = argumentCaptor<ScreenLifecycle.Observer>()
457 val captor = argumentCaptor<KeyguardStateController.Callback>()
483 val captor = argumentCaptor<KeyguardUpdateMonitorCallback>()
648 val captor = argumentCaptor<AuthController.Callback>()
676 val captor = argumentCaptor<AuthController.Callback>()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DStagingManagerTest.java526 ArgumentCaptor<ApexSessionParams> argumentCaptor = in getStagedApexInfos_nonParentSession() local
529 ApexSessionParams params = argumentCaptor.getValue(); in getStagedApexInfos_nonParentSession()
551 ArgumentCaptor<ApexSessionParams> argumentCaptor = in getStagedApexInfos_parentSession() local
554 ApexSessionParams params = argumentCaptor.getValue(); in getStagedApexInfos_parentSession()
648 verify(observer, times(1)).onApexStaged(argumentCaptor.capture()); in registeredStagedApexObserverIsNotifiedOnPreRebootVerificationCompletion()
649 assertThat(argumentCaptor.getValue().stagedApexModuleNames).isEqualTo( in registeredStagedApexObserverIsNotifiedOnPreRebootVerificationCompletion()
664 verify(observer, times(1)).onApexStaged(argumentCaptor.capture()); in registeredStagedApexObserverIsNotifiedOnPreRebootVerificationCompletion()
665 assertThat(argumentCaptor.getValue().stagedApexModuleNames).isEqualTo( in registeredStagedApexObserverIsNotifiedOnPreRebootVerificationCompletion()
699 ArgumentCaptor<ApexStagedEvent> argumentCaptor = ArgumentCaptor.forClass( in registeredStagedApexObserverIsNotifiedOnSessionAbandon() local
701 verify(observer, times(1)).onApexStaged(argumentCaptor.capture()); in registeredStagedApexObserverIsNotifiedOnSessionAbandon()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
H A DControlsUiControllerImplTest.kt57 import com.android.systemui.util.mockito.argumentCaptor
212 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>()
232 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>()
260 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>()
284 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>()
318 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>()
495 val captor = argumentCaptor<ControlsListingController.ControlsListingCallback>()
501 val taskViewConsumerCaptor = argumentCaptor<Consumer<TaskView>>()
526 val taskViewConsumerCaptor = argumentCaptor<Consumer<TaskView>>()
537 val listenerCaptor = argumentCaptor<TaskView.Listener>()
[all …]
H A DPanelTaskViewControllerTest.kt35 import com.android.systemui.util.mockito.argumentCaptor
112 val intentCaptor = argumentCaptor<Intent>()
113 val optionsCaptor = argumentCaptor<ActivityOptions>()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/
H A DTaskSwitcherNotificationCoordinatorTest.kt33 import com.android.systemui.util.mockito.argumentCaptor
116 val idCancel = argumentCaptor<Int>()
120 val idNotify = argumentCaptor<Int>()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
H A DMobileTelephonyHelpers.kt25 import com.android.systemui.util.mockito.argumentCaptor
34 val callbackCaptor = argumentCaptor<TelephonyCallback>()

123