/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | DeviceStateProviderImplTest.java | 125 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture()); in assertDefaultProviderValues() 129 verify(listener).onStateChanged(mIntegerCaptor.capture()); in assertDefaultProviderValues() 152 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture()); in create_multipleMatchingStatesDefaultsToLowestIdentifier() 157 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_multipleMatchingStatesDefaultsToLowestIdentifier() 189 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture()); in create_lidSwitch() 196 verify(listener, never()).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch() 200 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch() 206 verify(listener, never()).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture()); in create_lidSwitch() 207 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch() 265 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture()); in create_sensor() [all …]
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooperTest.java | 88 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 90 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 92 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 94 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 146 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 148 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 175 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 177 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 179 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 209 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeTwice() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierActionAgentTest.java | 98 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 99 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 105 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 108 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 119 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 123 verify(mRadioActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 140 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 141 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 148 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 152 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() [all …]
|
D | CarrierSignalAgentTest.java | 156 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 165 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 173 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 220 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 238 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 254 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 271 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 283 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 322 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() 331 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() [all …]
|
D | RadioInterfaceCapabilityControllerTest.java | 86 handlerCaptor.capture(), whatCaptor.capture(), objCaptor.capture()); in registerForRadioAvailable() 99 .getHalDeviceCapabilities(deviceCapsMessage.capture()); in getHalDeviceCapabilities()
|
D | RILTest.java | 353 verify(mRadioProxy, atLeast(1)).getIccCardStatus(mSerialNumberCaptor.capture()); in testRadioErrorWithContinuousSystemErr() 366 verify(mRadioProxy).getIccCardStatus(mSerialNumberCaptor.capture()); in testGetIccCardStatus() 377 verify(mRadioProxy).supplyIccPinForApp(mSerialNumberCaptor.capture(), eq(pin), eq(aid)); in testSupplyIccPinForApp() 389 .supplyIccPukForApp(mSerialNumberCaptor.capture(), eq(puk), eq(newPin), eq(aid)); in testSupplyIccPukForApp() 400 mSerialNumberCaptor.capture(), eq(pin), eq(aid)); in testSupplyIccPin2ForApp() 413 .supplyIccPuk2ForApp(mSerialNumberCaptor.capture(), eq(puk), eq(newPin), eq(aid)); in testSupplyIccPuk2ForApp() 426 mSerialNumberCaptor.capture(), eq(oldPin), eq(newPin), eq(aid)); in testChangeIccPinForApp() 439 mSerialNumberCaptor.capture(), eq(oldPin2), eq(newPin2), eq(aid)); in testChangeIccPin2ForApp() 450 mSerialNumberCaptor.capture(), eq(netpin)); in testSupplyNetworkDepersonalization() 461 verify(mRadioProxy).getCurrentCalls(mSerialNumberCaptor.capture()); in testGetCurrentCalls() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RemoteAnimationControllerTest.java | 136 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testRun() 137 finishedCaptor.capture()); in testRun() 255 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testOneNotStarted() 256 finishedCaptor.capture()); in testOneNotStarted() 301 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testChangeToSmallerSize() 302 finishedCaptor.capture()); in testChangeToSmallerSize() 354 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testChangeTolargerSize() 355 finishedCaptor.capture()); in testChangeTolargerSize() 406 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testWallpaperIncluded_expectTarget() 407 finishedCaptor.capture()); in testWallpaperIncluded_expectTarget() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationAnimationControllerTest.java | 121 mScaleCaptor.capture(), in enableWindowMagnification_disabled_expectedValuesAndInvokeCallback() 122 mCenterXCaptor.capture(), mCenterYCaptor.capture()); in enableWindowMagnification_disabled_expectedValuesAndInvokeCallback() 166 verify(mSpyController, atLeast(2)).enableWindowMagnification(mScaleCaptor.capture(), in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() 167 mCenterXCaptor.capture(), mCenterYCaptor.capture()); in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() 220 mScaleCaptor.capture(), in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback() 221 mCenterXCaptor.capture(), mCenterYCaptor.capture()); in enableWindowMagnification_disabling_expectedValuesAndInvokeCallback() 274 verify(mSpyController, atLeast(2)).enableWindowMagnification(mScaleCaptor.capture(), in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback() 275 mCenterXCaptor.capture(), mCenterYCaptor.capture()); in enableWindowMagnification_enabled_expectedValuesAndInvokeCallback() 314 verify(mSpyController, atLeast(2)).enableWindowMagnification(mScaleCaptor.capture(), in deleteWindowMagnification_enabled_expectedValuesAndInvokeCallback() 315 mCenterXCaptor.capture(), mCenterYCaptor.capture()); in deleteWindowMagnification_enabled_expectedValuesAndInvokeCallback() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInteractionControllerNodeRequestsTest.java | 158 mFindInfoCaptor.capture(), eq(mMockClient1InteractionId)); in testFindRootView_withOneClient_shouldReturnRootNodeAndPrefetchDescendants() 163 mPrefetchInfoListCaptor.capture(), eq(mMockClient1InteractionId)); in testFindRootView_withOneClient_shouldReturnRootNodeAndPrefetchDescendants() 189 mFindInfoCaptor.capture(), eq(mMockClient1InteractionId)); in testFindTextView_withOneClient_shouldReturnNodeAndPrefetchedSiblings() 195 mPrefetchInfoListCaptor.capture(), eq(mMockClient1InteractionId)); in testFindTextView_withOneClient_shouldReturnNodeAndPrefetchedSiblings() 238 mFindInfoCaptor.capture(), eq(mMockClient1InteractionId)); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 249 mFindInfoCaptor.capture(), eq(mMockClient2InteractionId)); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 255 mPrefetchInfoListCaptor.capture(), eq(mMockClient2InteractionId)); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 312 .setFindAccessibilityNodeInfoResult(mFindInfoCaptor.capture(), anyInt()); in testFindRootAndTextNode_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() 323 .setPrefetchAccessibilityNodeInfoResult(mPrefetchInfoListCaptor.capture(), in testFindRootAndTextNode_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() 377 .setFindAccessibilityNodeInfoResult(mFindInfoCaptor.capture(), anyInt()); in testFindRoot_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() [all …]
|
D | MotionEventInjectorTest.java | 203 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 268 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 289 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected() 301 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() 307 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() 322 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_openInjectedGestureInProgress_shouldCancelAndNotifyAndPassReal() 339 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_fromMouseWithInjectedGestureInProgress_shouldNotCancelAndPassReal() 366 verify(next, times(4)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassReal() 386 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_openInjectedGestureInProgress_shouldCancelAndNotifyAndPassNew() 413 verify(next, times(4)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassNew() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest11.java | 70 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts() 97 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 101 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 139 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 163 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts() 195 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts_unpinOthers() 199 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts_unpinOthers() 231 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts() 264 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts_alreadyCached() 293 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_uncacheShortcuts() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | DeviceControlsTileTest.kt | 46 import com.android.systemui.util.mockito.capture 198 capture(listingCallbackCaptor) in testStateUnavailableIfNoListings() 211 capture(listingCallbackCaptor) in testStateUnavailableIfNotEnabled() 225 capture(listingCallbackCaptor) in testStateAvailableIfListings() 239 capture(listingCallbackCaptor) in testStateInactiveIfLocked() 254 capture(listingCallbackCaptor) in testMoveBetweenStates() 278 capture(listingCallbackCaptor) in handleClick_availableAndLocked_activityStarted() 291 verify(spiedContext).startActivity(intentCaptor.capture()) in handleClick_availableAndLocked_activityStarted() 299 capture(listingCallbackCaptor) in handleClick_availableAndUnlocked_activityStarted() 312 intentCaptor.capture(), in handleClick_availableAndUnlocked_activityStarted() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NotificationShadeWindowControllerImplTest.java | 104 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 111 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 139 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_visibleWithWallpaper() 150 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_lightScrimHidesWallpaper() 161 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_scrimHidesWallpaper() 174 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_animatingKeyguardAndSurface_wallpaperVisible() 193 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setBouncerShowing_isFocusable_whenNeedsInput() 204 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setKeyguardShowing_focusable_notAltFocusable_whenNeedsInput() 215 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setPanelExpanded_notFocusable_altFocusable_whenPanelIsOpen() 224 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setKeyguardShowing_notFocusable_byDefault()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsBindingControllerImplTest.kt | 56 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method 128 verify(providers[0]).maybeBindAndLoad(capture(loadSubscriberCaptor)) in testBindAndLoad_cancel() 146 verify(providers[0]).maybeBindAndLoad(capture(loadSubscriberCaptor)) in testBindAndLoad_noCancelAfterOnComplete() 166 verify(providers[0]).maybeBindAndLoad(capture(subscriberCaptor)) in testLoad_onCompleteRemovesTimeout() 185 verify(providers[0]).maybeBindAndLoad(capture(subscriberCaptor)) in testLoad_onErrorRemovesTimeout() 204 verify(providers[0]).maybeBindAndLoad(capture(loadSubscriberCaptor)) in testBindAndLoad_noCancelAfterOnError() 236 verify(providers[0]).maybeBindAndLoadSuggested(capture(subscriberCaptor)) in testLoadSuggested_onCompleteRemovesTimeout() 255 verify(providers[0]).maybeBindAndLoadSuggested(capture(subscriberCaptor)) in testLoadSuggested_onErrorRemovesTimeout() 284 capture(listStringCaptor), capture(subscriberCaptor)) in testSubscribe() 313 capture(listStringCaptor), capture(subscriberCaptor)) in testUnsubscribe_refreshing()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyItemControllerTest.kt | 77 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method 163 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testDistinctItems() 175 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testSimilarItemsDifferentTimeStamp() 227 verify(appOpsController).addCallback(any(), capture(argCaptorCallback)) in testMultipleCallbacksAreUpdated() 245 verify(appOpsController).addCallback(any(), capture(argCaptorCallback)) in testRemoveCallback() 262 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testListShouldNotHaveNull() 300 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testNotSendingLocationWhenOnlyMicCamera() 317 verify(appOpsController).addCallback(any(), capture(argCaptorCallback)) in testNotUpdated_LocationChangeWhenOnlyMicCamera() 329 verify(appOpsController).addCallback(any(), capture(argCaptorCallback)) in testLogActiveChanged() 346 verify(appOpsController).addCallback(any(), capture(argCaptorCallback)) in testLogListUpdated() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TileLayoutTest.java | 143 .layout(left1.capture(), top1.capture(), right1.capture(), bottom1.capture()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds() 149 .layout(left2.capture(), top2.capture(), right2.capture(), bottom2.capture()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManagerTest.java | 137 verify(sMockPlugin).onCreate(ArgumentCaptor.forClass(Context.class).capture(), in testPluginCreate() 138 ArgumentCaptor.forClass(Context.class).capture()); in testPluginCreate() 152 verify(mMockListener).onPluginDisconnected(ArgumentCaptor.forClass(Plugin.class).capture()); in testPluginDestroy() 183 verify(mMockListener).onPluginDisconnected(ArgumentCaptor.forClass(Plugin.class).capture()); in testReloadOnChange() 187 ArgumentCaptor.forClass(Context.class).capture(), in testReloadOnChange() 188 ArgumentCaptor.forClass(Context.class).capture()); in testReloadOnChange() 223 verify(sMockPlugin).onCreate(ArgumentCaptor.forClass(Context.class).capture(), in testNonDebuggable_whitelist() 224 ArgumentCaptor.forClass(Context.class).capture()); in testNonDebuggable_whitelist() 264 ArgumentCaptor.forClass(ComponentName.class).capture(), in testDisableWhitelisted() 265 ArgumentCaptor.forClass(int.class).capture(), in testDisableWhitelisted() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | AuthRippleControllerTest.kt | 88 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFingerprintTrigger_Ripple() 110 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFingerprintTrigger_KeyguardNotVisible_NoRipple() 131 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFingerprintTrigger_StrongAuthRequired_NoRipple() 154 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFaceTriggerBypassEnabled_Ripple() 175 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testFaceTriggerNonBypass_NoRipple() 191 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testNullFaceSensorLocationDoesNothing() 206 verify(keyguardUpdateMonitor).registerCallback(captor.capture()) in testNullFingerprintSensorLocationDoesNothing() 220 verify(configurationController).addCallback(captor.capture()) in testUpdateRippleColor()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | GestureLauncherServiceTest.java | 291 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 298 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 336 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 343 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 383 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive() 390 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive() 433 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete() 440 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete() 490 eq("power_double_tap_interval"), cameraIntervalCaptor.capture()); in testInterceptPowerKeyDown_fiveInboundPresses_cameraAndEmergencyEnabled_bothLaunch() 497 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_fiveInboundPresses_cameraAndEmergencyEnabled_bothLaunch() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/ |
D | MediaDataManagerTest.kt | 25 import com.android.systemui.util.mockito.capture 123 verify(tunerService).addTunable(capture(tunableCaptor), in setup() 200 verify(listener).onMediaDataLoaded(eq(KEY), eq(null), capture(mediaDataCaptor), eq(true), in testOnMetaDataLoaded_conservesActiveFlag() 220 verify(listener).onMediaDataLoaded(eq(KEY), eq(null), capture(mediaDataCaptor), eq(true), in testOnNotificationRemoved_withResumption() 229 .onMediaDataLoaded(eq(PACKAGE_NAME), eq(KEY), capture(mediaDataCaptor), eq(true), in testOnNotificationRemoved_withResumption() 243 .onMediaDataLoaded(eq(KEY), eq(null), capture(mediaDataCaptor), eq(true), in testOnNotificationRemoved_twoWithResumption() 255 .onMediaDataLoaded(eq(PACKAGE_NAME), eq(KEY), capture(mediaDataCaptor), eq(true), in testOnNotificationRemoved_twoWithResumption() 264 eq(PACKAGE_NAME), eq(PACKAGE_NAME), capture(mediaDataCaptor), eq(true), in testOnNotificationRemoved_twoWithResumption() 279 verify(listener).onMediaDataLoaded(eq(KEY), eq(null), capture(mediaDataCaptor), eq(true), in testOnNotificationRemoved_withResumption_butNotLocal() 306 .onMediaDataLoaded(eq(PACKAGE_NAME), eq(null), capture(mediaDataCaptor), eq(true), in testAddResumptionControls() [all …]
|
D | MediaDataCombineLatestTest.java | 110 verify(mListener).onMediaDataLoaded(eq(KEY), any(), captor.capture(), anyBoolean(), in emitEventAfterDeviceFirst() 124 verify(mListener).onMediaDataLoaded(eq(KEY), any(), captor.capture(), anyBoolean(), in emitEventAfterMediaFirst() 141 verify(mListener).onMediaDataLoaded(eq(KEY), eq(OLD_KEY), captor.capture(), anyBoolean(), in migrateKeyMediaFirst() 157 verify(mListener).onMediaDataLoaded(eq(KEY), eq(OLD_KEY), captor.capture(), anyBoolean(), in migrateKeyDeviceFirst() 175 verify(mListener).onMediaDataLoaded(eq(KEY), eq(KEY), captor.capture(), anyBoolean(), in migrateKeyMediaAfter() 193 verify(mListener).onMediaDataLoaded(eq(KEY), eq(KEY), captor.capture(), anyBoolean(), in migrateKeyDeviceAfter() 233 eq("NEW_KEY"), any(), captor.capture(), anyBoolean(), anyBoolean()); in mediaDataKeyUpdated()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayControllerTest.java | 136 verify(mWallpaperManager).addOnColorsChangedListener(mColorsListener.capture(), eq(null), in setup() 138 verify(mBroadcastDispatcher).registerReceiver(mBroadcastReceiver.capture(), any(), in setup() 140 verify(mWakefulnessLifecycle).addObserver(mWakefulnessLifecycleObserver.capture()); in setup() 142 verify(mDeviceProvisionedController).addCallback(mDeviceProvisionedListener.capture()); in setup() 148 verify(mBgExecutor).execute(registrationRunnable.capture()); in start_checksWallpaper() 164 .applyCurrentUserOverlays(themeOverlays.capture(), any(), anyInt(), any()); in onWallpaperColorsChanged_setsTheme_whenForeground() 201 .applyCurrentUserOverlays(themeOverlays.capture(), any(), anyInt(), any()); in onWallpaperColorsChanged_setsTheme_skipWhenBackground() 237 .applyCurrentUserOverlays(themeOverlays.capture(), any(), anyInt(), any()); in onWallpaperColorsChanged_preservesWallpaperPickerTheme() 263 eq(Settings.Secure.THEME_CUSTOMIZATION_OVERLAY_PACKAGES), updatedSetting.capture()); in onWallpaperColorsChanged_resetThemeIfNotPreset() 297 eq(Settings.Secure.THEME_CUSTOMIZATION_OVERLAY_PACKAGES), updatedSetting.capture()); in onWallpaperColorsChanged_ResetThemeWithDifferentWallpapers() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceControlsControllerImplTest.kt | 91 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method 129 verify(controlsListingController).addCallback(capture(listingCallbackCaptor)) in testNoCallbackWhenNoServicesAvailable() 148 verify(controlsListingController).addCallback(capture(listingCallbackCaptor)) in testSetPriorityPositionIsSetWhenFavoritesAreAvailable() 162 verify(controlsListingController).addCallback(capture(listingCallbackCaptor)) in testSetDefaultPositionIsSetWhenNoFavoritesAreAvailable() 167 capture(seedCallback) in testSetDefaultPositionIsSetWhenNoFavoritesAreAvailable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImplTest.kt | 56 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method 101 verify(mockSL).addCallback(capture(serviceListingCallbackCaptor)) in capture() 167 verify(mockCallback).onServicesUpdated(capture(captor)) in testCallbackGetsList() 171 verify(mockCallbackOther).onServicesUpdated(capture(captor)) in testCallbackGetsList() 204 verify(mockCallback).onServicesUpdated(capture(captor)) in testChangeUserSendsCorrectServiceUpdate() 223 verify(mockCallback).onServicesUpdated(capture(captor)) in testChangeUserSendsCorrectServiceUpdate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | BroadcastDispatcherTest.kt | 58 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method 124 verify(mockUBRUser0).registerReceiver(capture(argumentCaptor)) in testAddingReceiverToCorrectUBR() 129 verify(mockUBRUser1).registerReceiver(capture(argumentCaptor)) in testAddingReceiverToCorrectUBR() 142 verify(mockUBRUser0).registerReceiver(capture(argumentCaptor)) in testAddingReceiverToCorrectUBR_executor() 147 verify(mockUBRUser1).registerReceiver(capture(argumentCaptor)) in testAddingReceiverToCorrectUBR_executor() 191 verify(mockUBRUser1).registerReceiver(capture(argumentCaptor)) in testRegisterCurrentAsActualUser()
|