/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/ |
D | QrCodeScannerKeyguardQuickAffordanceConfigTest.kt | 65 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>() in <lambda>() constant 66 verify(controller).addCallback(callbackCaptor.capture()) in <lambda>() 75 verify(controller).removeCallback(callbackCaptor.value) in <lambda>() 83 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>() in <lambda>() constant 84 verify(controller).addCallback(callbackCaptor.capture()) in <lambda>() 87 callbackCaptor.value.onQRCodeScannerActivityChanged() in <lambda>() 92 verify(controller).removeCallback(callbackCaptor.value) in <lambda>() 99 val callbackCaptor = argumentCaptor<QRCodeScannerController.Callback>() in <lambda>() constant 100 verify(controller).addCallback(callbackCaptor.capture()) in <lambda>() 103 callbackCaptor.value.onQRCodeScannerPreferenceChanged() in <lambda>() [all …]
|
D | DoNotDisturbQuickAffordanceConfigTest.kt | 237 val callbackCaptor: ArgumentCaptor<ZenModeController.Callback> = argumentCaptor() in lockScreenState_dndAvailableStartsAsTrue_changeToFalse_StateIsHidden() constant 240 verify(zenModeController).addCallback(callbackCaptor.capture()) in lockScreenState_dndAvailableStartsAsTrue_changeToFalse_StateIsHidden() 243 callbackCaptor.value.onZenAvailableChanged(false) in lockScreenState_dndAvailableStartsAsTrue_changeToFalse_StateIsHidden() 259 val callbackCaptor: ArgumentCaptor<ZenModeController.Callback> = argumentCaptor() in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible() constant 260 verify(zenModeController).addCallback(callbackCaptor.capture()) in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible() 263 callbackCaptor.value.onZenChanged(ZEN_MODE_IMPORTANT_INTERRUPTIONS) in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | UnlockedScreenOffAnimationControllerTest.kt | 133 val callbackCaptor = ArgumentCaptor.forClass(Runnable::class.java) in testAodUiShownIfNotInteractive() constant 136 verify(handler).postDelayed(callbackCaptor.capture(), anyLong()) in testAodUiShownIfNotInteractive() 138 callbackCaptor.value.run() in testAodUiShownIfNotInteractive() 148 val callbackCaptor = ArgumentCaptor.forClass(Runnable::class.java) in testAodUiShowNotInvokedIfWakingUp() constant 152 verify(handler).postDelayed(callbackCaptor.capture(), anyLong()) in testAodUiShowNotInvokedIfWakingUp() 154 callbackCaptor.value.run() in testAodUiShowNotInvokedIfWakingUp() 172 val callbackCaptor = ArgumentCaptor.forClass(Runnable::class.java) in testAodUiNotShownIfInteractive() constant 175 verify(handler).postDelayed(callbackCaptor.capture(), anyLong()) in testAodUiNotShownIfInteractive() 176 callbackCaptor.value.run() in testAodUiNotShownIfInteractive() 187 val callbackCaptor = ArgumentCaptor.forClass(Runnable::class.java) in testAodUiShownIfGloballyInteractiveButDefaultDisplayNotInteractive() constant [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/ |
D | CastAutoAddableTest.kt | 50 @Captor private lateinit var callbackCaptor: ArgumentCaptor<CastController.Callback> variable in com.android.systemui.qs.pipeline.domain.autoaddable.CastAutoAddableTest 66 verify(castController).addCallback(capture(callbackCaptor)) in <lambda>() 68 callbackCaptor.value.onCastDevicesChanged() in <lambda>() 84 verify(castController).addCallback(capture(callbackCaptor)) in <lambda>() 86 callbackCaptor.value.onCastDevicesChanged() in <lambda>() 105 verify(castController).addCallback(capture(callbackCaptor)) in <lambda>() 107 callbackCaptor.value.onCastDevicesChanged() in <lambda>() 125 verify(castController).addCallback(capture(callbackCaptor)) in <lambda>() 127 callbackCaptor.value.onCastDevicesChanged() in <lambda>()
|
D | DeviceControlsAutoAddableTest.kt | 52 @Captor private lateinit var callbackCaptor: ArgumentCaptor<DeviceControlsController.Callback> variable in com.android.systemui.qs.pipeline.domain.autoaddable.DeviceControlsAutoAddableTest 74 verify(deviceControlsController).setCallback(capture(callbackCaptor)) in <lambda>() 75 callbackCaptor.value.onControlsUpdate(position) in <lambda>() 86 verify(deviceControlsController).setCallback(capture(callbackCaptor)) in <lambda>() 87 callbackCaptor.value.onControlsUpdate(null) in <lambda>() 98 verify(deviceControlsController).setCallback(capture(callbackCaptor)) in <lambda>() 99 callbackCaptor.value.removeControlsAutoTracker() in <lambda>()
|
D | HotspotAutoAddableTest.kt | 49 @Captor private lateinit var callbackCaptor: ArgumentCaptor<HotspotController.Callback> variable in com.android.systemui.qs.pipeline.domain.autoaddable.HotspotAutoAddableTest 65 verify(hotspotController).addCallback(capture(callbackCaptor)) in <lambda>() 66 callbackCaptor.value.onHotspotChanged(/* enabled = */ true, /* numDevices = */ 5) in <lambda>() 76 verify(hotspotController).addCallback(capture(callbackCaptor)) in notEnabled_noSignal() 77 callbackCaptor.value.onHotspotChanged(/* enabled = */ false, /* numDevices = */ 0) in notEnabled_noSignal()
|
D | DataSaverAutoAddableTest.kt | 49 @Captor private lateinit var callbackCaptor: ArgumentCaptor<DataSaverController.Listener> variable in com.android.systemui.qs.pipeline.domain.autoaddable.DataSaverAutoAddableTest 65 verify(dataSaverController).addCallback(capture(callbackCaptor)) in <lambda>() 67 callbackCaptor.value.onDataSaverChanged(false) in <lambda>() 77 verify(dataSaverController).addCallback(capture(callbackCaptor)) in <lambda>() 79 callbackCaptor.value.onDataSaverChanged(true) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/credentials/ |
D | CredentialManagerTest.java | 196 ArgumentCaptor<IGetCredentialCallback> callbackCaptor = in testGetCredential_noCredential() local 205 any(), callbackCaptor.capture(), any())) in testGetCredential_noCredential() 210 callbackCaptor in testGetCredential_noCredential() 254 ArgumentCaptor<IGetCredentialCallback> callbackCaptor = in testGetCredential_success() local 263 any(), callbackCaptor.capture(), any())) in testGetCredential_success() 268 callbackCaptor.getValue().onResponse(new GetCredentialResponse(cred)); in testGetCredential_success() 344 ArgumentCaptor<ICreateCredentialCallback> callbackCaptor = in testCreateCredential_failed() local 353 any(), callbackCaptor.capture(), any())) in testCreateCredential_failed() 360 callbackCaptor.getValue().onError(CreateCredentialException.TYPE_UNKNOWN, "unknown error"); in testCreateCredential_failed() 372 ArgumentCaptor<ICreateCredentialCallback> callbackCaptor = in testCreateCredential_success() local [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/scrim/ |
D | ScrimManagerTest.java | 66 ArgumentCaptor<KeyguardStateController.Callback> callbackCaptor = in testControllerSelection() local 70 verify(mKeyguardStateController).addCallback(callbackCaptor.capture()); in testControllerSelection() 74 callbackCaptor.getValue().onKeyguardShowingChanged(); in testControllerSelection() 82 ArgumentCaptor<KeyguardStateController.Callback> callbackCaptor = in testCallback() local 86 verify(mKeyguardStateController).addCallback(callbackCaptor.capture()); in testCallback() 90 callbackCaptor.getValue().onKeyguardShowingChanged(); in testCallback()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceAnimatorTest.java | 100 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testRunAnimation() local 105 callbackCaptor.capture()); in testRunAnimation() 107 callbackCaptor.getValue().onAnimationFinished(ANIMATION_TYPE_RECENTS, mSpec); in testRunAnimation() 126 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testOverrideAnimation() local 130 callbackCaptor.capture()); in testOverrideAnimation() 133 callbackCaptor.getValue().onAnimationFinished(ANIMATION_TYPE_APP_TRANSITION, mSpec); in testOverrideAnimation() 138 callbackCaptor.capture()); in testOverrideAnimation() 139 callbackCaptor.getValue().onAnimationFinished(ANIMATION_TYPE_APP_TRANSITION, mSpec2); in testOverrideAnimation() 202 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testTransferAnimation() local 205 callbackCaptor.capture()); in testTransferAnimation() [all …]
|
D | DisplayContentDeferredUpdateTests.java | 267 ArgumentCaptor<OnStartCollect> callbackCaptor = in captureStartTransitionCollection() local 270 callbackCaptor.capture()); in captureStartTransitionCollection() 271 return callbackCaptor; in captureStartTransitionCollection() 275 ArgumentCaptor<Transition> callbackCaptor = in captureRequestedTransition() local 278 .requestStartTransition(callbackCaptor.capture(), any(), any(), any()); in captureRequestedTransition() 279 return callbackCaptor; in captureRequestedTransition()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/drawable/ |
D | LoopedAnimatable2DrawableWrapperTest.kt | 43 @Captor private lateinit var callbackCaptor: ArgumentCaptor<Animatable2.AnimationCallback> variable in com.android.systemui.util.drawable.LoopedAnimatable2DrawableWrapperTest 88 verify(drawable, times(2)).registerAnimationCallback(capture(callbackCaptor)) in callbackSurvivesClearAnimationCallbacks() 94 verify(drawable).registerAnimationCallback(capture(callbackCaptor)) in animationLooped() 96 callbackCaptor.value.onAnimationEnd(drawable) in animationLooped()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | AlarmTileTest.kt | 59 private lateinit var callbackCaptor: ArgumentCaptor<NextAlarmController.NextAlarmChangeCallback> variable in com.android.systemui.qs.tiles.AlarmTileTest 87 verify(nextAlarmController).observe(eq(tile), capture(callbackCaptor)) in setUp() 120 callbackCaptor.value.onNextAlarmChanged(null) in testInactiveAfterNullNextAlarm() 128 callbackCaptor.value.onNextAlarmChanged(null) in testActivityStartedWhenNullNextAlarm() 139 callbackCaptor.value.onNextAlarmChanged(alarmInfo) in testActiveAfterNextAlarm() 148 callbackCaptor.value.onNextAlarmChanged(alarmInfo) in testActivityStartedWhenNextAlarm()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutListSearchTest.java | 102 ArgumentCaptor<WindowManager.KeyboardShortcutsReceiver> callbackCaptor = in requestAppKeyboardShortcuts_callback_sanitisesIcons() local 105 verify(mWindowManager).requestAppKeyboardShortcuts(callbackCaptor.capture(), anyInt()); in requestAppKeyboardShortcuts_callback_sanitisesIcons() 106 callbackCaptor.getValue().onKeyboardShortcutsReceived(Collections.singletonList(group)); in requestAppKeyboardShortcuts_callback_sanitisesIcons() 121 ArgumentCaptor<WindowManager.KeyboardShortcutsReceiver> callbackCaptor = in requestImeKeyboardShortcuts_callback_sanitisesIcons() local 124 verify(mWindowManager).requestImeKeyboardShortcuts(callbackCaptor.capture(), anyInt()); in requestImeKeyboardShortcuts_callback_sanitisesIcons() 125 callbackCaptor.getValue().onKeyboardShortcutsReceived(Collections.singletonList(group)); in requestImeKeyboardShortcuts_callback_sanitisesIcons()
|
D | KeyboardShortcutsTest.java | 195 ArgumentCaptor<WindowManager.KeyboardShortcutsReceiver> callbackCaptor = in emitImeShortcuts() local 197 verify(mWindowManager).requestImeKeyboardShortcuts(callbackCaptor.capture(), eq(deviceId)); in emitImeShortcuts() 198 callbackCaptor.getValue().onKeyboardShortcutsReceived(groups); in emitImeShortcuts() 202 ArgumentCaptor<WindowManager.KeyboardShortcutsReceiver> callbackCaptor = in emitAppShortcuts() local 204 verify(mWindowManager).requestAppKeyboardShortcuts(callbackCaptor.capture(), eq(deviceId)); in emitAppShortcuts() 205 callbackCaptor.getValue().onKeyboardShortcutsReceived(groups); in emitAppShortcuts()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | KeyguardNotificationVisibilityProviderTest.java | 137 ArgumentCaptor<KeyguardStateController.Callback> callbackCaptor = in notifyListeners_onUnlockedChanged() local 139 verify(mKeyguardStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onUnlockedChanged() 140 KeyguardStateController.Callback callback = callbackCaptor.getValue(); in notifyListeners_onUnlockedChanged() 152 ArgumentCaptor<KeyguardStateController.Callback> callbackCaptor = in notifyListeners_onKeyguardShowingChanged() local 154 verify(mKeyguardStateController).addCallback(callbackCaptor.capture()); in notifyListeners_onKeyguardShowingChanged() 155 KeyguardStateController.Callback callback = callbackCaptor.getValue(); in notifyListeners_onKeyguardShowingChanged() 167 ArgumentCaptor<KeyguardUpdateMonitorCallback> callbackCaptor = in notifyListeners_onStrongAuthStateChanged() local 169 verify(mKeyguardUpdateMonitor).registerCallback(callbackCaptor.capture()); in notifyListeners_onStrongAuthStateChanged() 170 KeyguardUpdateMonitorCallback callback = callbackCaptor.getValue(); in notifyListeners_onStrongAuthStateChanged() 182 ArgumentCaptor<StatusBarStateController.StateListener> callbackCaptor = in notifyListeners_onStatusBarUpcomingStateChanged() local [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/conditions/ |
D | DreamConditionTest.java | 100 final ArgumentCaptor<KeyguardUpdateMonitorCallback> callbackCaptor = in testChange() local 106 verify(mKeyguardUpdateMonitor).registerCallback(callbackCaptor.capture()); in testChange() 109 callbackCaptor.getValue().onDreamingStateChanged(false); in testChange() 114 callbackCaptor.getValue().onDreamingStateChanged(true); in testChange()
|
/frameworks/base/services/tests/mockingservicestests/src/android/service/dreams/ |
D | DreamOverlayConnectionHandlerTest.java | 218 callbackCaptor = in captureConnectionCallback() local 220 verify(mConnection).addCallback(callbackCaptor.capture()); in captureConnectionCallback() 221 return callbackCaptor.getValue(); in captureConnectionCallback() 225 ArgumentCaptor<IDreamOverlayClientCallback> callbackCaptor = in captureClientCallback() local 227 verify(mOverlayService, atLeastOnce()).getClient(callbackCaptor.capture()); in captureClientCallback() 228 return callbackCaptor.getValue(); in captureClientCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/ |
D | MobileTelephonyHelpers.kt | 34 val callbackCaptor = argumentCaptor<TelephonyCallback>() in getTelephonyCallbacks() constant 35 verify(mockTelephonyManager).registerTelephonyCallback(any(), callbackCaptor.capture()) in getTelephonyCallbacks() 36 return callbackCaptor.allValues in getTelephonyCallbacks()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/data/repository/ |
D | NightDisplayRepositoryTest.kt | 96 val callbackCaptor = argumentCaptor<NightDisplayListener.Callback>() in nightDisplayState_matchesAutoMode() constant 101 verify(nightDisplayListener).setCallback(callbackCaptor.capture()) in nightDisplayState_matchesAutoMode() 102 val callback = callbackCaptor.value in nightDisplayState_matchesAutoMode() 125 val callbackCaptor = argumentCaptor<NightDisplayListener.Callback>() in nightDisplayState_matchesIsNightDisplayActivated() constant 130 verify(nightDisplayListener).setCallback(callbackCaptor.capture()) in nightDisplayState_matchesIsNightDisplayActivated() 131 val callback = callbackCaptor.value in nightDisplayState_matchesIsNightDisplayActivated()
|
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
D | SoundHw2CompatTest.java | 195 ArgumentCaptor<android.hardware.soundtrigger.V2_0.ISoundTriggerHwCallback> callbackCaptor = in loadGenericModel_2_0() local 211 verify(mHalDriver).loadSoundModel(modelCaptor.capture(), callbackCaptor.capture(), anyInt(), in loadGenericModel_2_0() 215 validateCallback_2_0(callbackCaptor.getValue(), canonicalCallback); in loadGenericModel_2_0() 227 ArgumentCaptor<android.hardware.soundtrigger.V2_1.ISoundTriggerHwCallback> callbackCaptor = in loadGenericModel_2_1() local 245 verify(driver_2_1).loadSoundModel_2_1(any(), callbackCaptor.capture(), anyInt(), any()); in loadGenericModel_2_1() 248 validateCallback_2_1(callbackCaptor.getValue(), canonicalCallback); in loadGenericModel_2_1() 310 ArgumentCaptor<android.hardware.soundtrigger.V2_0.ISoundTriggerHwCallback> callbackCaptor = in loadPhraseModel_2_0() local 326 verify(mHalDriver).loadPhraseSoundModel(modelCaptor.capture(), callbackCaptor.capture(), in loadPhraseModel_2_0() 330 validateCallback_2_0(callbackCaptor.getValue(), canonicalCallback); in loadPhraseModel_2_0() 341 ArgumentCaptor<android.hardware.soundtrigger.V2_1.ISoundTriggerHwCallback> callbackCaptor = in loadPhraseModel_2_1() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | PluggedInConditionTest.kt | 45 private val callbackCaptor = constant in com.android.systemui.flags.PluggedInConditionTest 84 verify(batteryController).addCallback(callbackCaptor.capture()) in testCondition_invokesRetry() 86 callbackCaptor.value.onBatteryLevelChanged(0, true, false) in testCondition_invokesRetry()
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsMmTelManagerTests.java | 79 ArgumentCaptor<IImsRegistrationCallback> callbackCaptor = in testDeprecatedCallbackValues() local 82 callbackCaptor.capture()); in testDeprecatedCallbackValues() 84 IImsRegistrationCallback cbBinder = callbackCaptor.getValue(); in testDeprecatedCallbackValues()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/window/ |
D | StatusBarWindowStateControllerTest.kt | 48 val callbackCaptor = ArgumentCaptor.forClass(CommandQueue.Callbacks::class.java) in setUp() constant 49 verify(commandQueue).addCallback(callbackCaptor.capture()) in setUp() 50 callback = callbackCaptor.value!! in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/domain/resume/ |
D | MediaResumeListenerTest.kt | 98 @Captor lateinit var callbackCaptor: ArgumentCaptor<ResumeMediaBrowser.Callback> in capture() variable in com.android.systemui.media.controls.domain.resume.MediaResumeListenerTest 129 whenever(resumeBrowserFactory.create(capture(callbackCaptor), any(), capture(userIdCaptor))) in capture() 223 whenever(resumeBrowser.testConnection()).thenAnswer { callbackCaptor.value.onError() } in capture() 286 callbackCaptor.value.addTrack(description, component, resumeBrowser) in capture() 345 callbackCaptor.value.addTrack(description, component, resumeBrowser) in capture() 380 callbackCaptor.value.addTrack(description, component, resumeBrowser) in capture() 429 callbackCaptor.value.addTrack(description, component, resumeBrowser) in capture() 504 callbackCaptor.value.addTrack(description, component, resumeBrowser) in capture() 562 whenever(resumeBrowser.testConnection()).thenAnswer { callbackCaptor.value.onError() } in capture() 579 callbackCaptor.value.addTrack(description, component, resumeBrowser) in capture() [all …]
|