/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | DeviceStateProviderImplTest.java | 140 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in assertDefaultProviderValues() 145 verify(listener).onStateChanged(mIntegerCaptor.capture()); in assertDefaultProviderValues() 168 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in create_multipleMatchingStatesDefaultsToLowestIdentifier() 175 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_multipleMatchingStatesDefaultsToLowestIdentifier() 201 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in create_stateWithCancelOverrideRequestProperty() 233 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in create_stateWithInvalidProperty() 269 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in create_lidSwitch() 278 verify(listener, never()).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch() 282 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch() 288 verify(listener, never()).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in create_lidSwitch() [all …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | audioeffect_tests.cpp | 242 sp<AudioCapture> capture = nullptr; in TEST() local 248 capture = new AudioCapture(AUDIO_SOURCE_MIC, sampleRate, format, channelMask); in TEST() 249 ASSERT_NE(capture, nullptr) << "Unable to create Record Application"; in TEST() 250 EXPECT_EQ(NO_ERROR, capture->create()); in TEST() 251 EXPECT_EQ(NO_ERROR, capture->start()); in TEST() 252 ASSERT_NE(capture->getAudioRecordHandle(), nullptr); in TEST() 254 capture->getAudioRecordHandle())) { in TEST() 256 EXPECT_EQ(OK, capture->stop()); in TEST() 259 EXPECT_EQ(OK, capture->stop()); in TEST() 267 capture = new AudioCapture(AUDIO_SOURCE_MIC, sampleRate, format, channelMask); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationAnimationControllerTest.java | 185 mScaleCaptor.capture(), in enableWindowMagnification_disabled_expectedValuesAndInvokeCallback() 186 mCenterXCaptor.capture(), mCenterYCaptor.capture(), in enableWindowMagnification_disabled_expectedValuesAndInvokeCallback() 187 mOffsetXCaptor.capture(), mOffsetYCaptor.capture()); in enableWindowMagnification_disabled_expectedValuesAndInvokeCallback() 248 mScaleCaptor.capture(), in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() 249 mCenterXCaptor.capture(), mCenterYCaptor.capture(), in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() 250 mOffsetXCaptor.capture(), mOffsetYCaptor.capture()); in enableWindowMagnification_enabling_expectedValuesAndInvokeCallback() 303 mScaleCaptor.capture(), in enableWindowMagnificationScaleOne_enabledAndWindowlessFlagOn_AnimationAndCallbackTrue() 304 mCenterXCaptor.capture(), mCenterYCaptor.capture(), in enableWindowMagnificationScaleOne_enabledAndWindowlessFlagOn_AnimationAndCallbackTrue() 305 mOffsetXCaptor.capture(), mOffsetYCaptor.capture()); in enableWindowMagnificationScaleOne_enabledAndWindowlessFlagOn_AnimationAndCallbackTrue() 345 mScaleCaptor.capture(), in enableWindowMagnificationScaleOne_enabledAndWindowlessFlagOff_AnimationAndCallbackTrue() [all …]
|
/frameworks/base/tests/utils/testutils/tests/src/android/os/test/ |
D | TestLooperTest.java | 89 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 91 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 93 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 95 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 147 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 149 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 176 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 178 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 180 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 210 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeTwice() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RemoteAnimationControllerTest.java | 149 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testForwardsShowBackdrop() 150 finishedCaptor.capture()); in testForwardsShowBackdrop() 181 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testRun() 182 finishedCaptor.capture()); in testRun() 303 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testOneNotStarted() 304 finishedCaptor.capture()); in testOneNotStarted() 344 appsCaptor.capture(), any(), any(), any()); in testOpeningTaskWithTopFinishingActivity() 376 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testChangeToSmallerSize() 377 finishedCaptor.capture()); in testChangeToSmallerSize() 430 appsCaptor.capture(), wallpapersCaptor.capture(), nonAppsCaptor.capture(), in testChangeTolargerSize() [all …]
|
/frameworks/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/ |
D | FoldableDeviceStateProviderTest.java | 154 verify(listener).onSupportedDeviceStatesChanged(mDeviceStateArrayCaptor.capture(), in create_allMatchingStatesDefaultsToTheFirstIdentifier() 163 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_allMatchingStatesDefaultsToTheFirstIdentifier() 179 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_multipleMatchingStatesDefaultsToTheLowestIdentifier() 196 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState() 214 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hallSensorUpdatedFirstTime_switchesToMatchingState() 227 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState() 233 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState() 246 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hallSensorUpdatedSecondTime_switchesToMatchingState() 253 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hallSensorUpdatedSecondTime_switchesToMatchingState() 269 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_invalidSensorValues_onStateChangedIsNotTriggered() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/ |
D | TemporaryViewDisplayControllerTest.kt | 39 import com.android.systemui.util.mockito.capture 124 verify(windowManager).addView(any(), capture(windowParamsCaptor)) in displayView_viewAddedWithCorrectTitle() 210 verify(windowManager, times(2)).addView(capture(viewCaptor), capture(windowParamsCaptor)) in displayView_twiceWithDifferentIds_oldViewRemovedNewViewAdded() 324 verify(windowManager, times(2)).addView(capture(viewCaptor), capture(windowParamsCaptor)) in multipleViewsWithDifferentIds_moreRecentReplacesOlder() 529 verify(windowManager).addView(capture(viewCaptor), capture(windowParamsCaptor)) in lowerThenHigherPriority_higherReplacesLower() 543 verify(windowManager).addView(capture(viewCaptor), capture(windowParamsCaptor)) in lowerThenHigherPriority_higherReplacesLower() 577 verify(windowManager, times(2)).addView(capture(viewCaptor), capture(windowParamsCaptor)) in lowerThenHigherPriority_lowerPriorityRedisplayed() 590 verify(windowManager).addView(any(), capture(windowParamsCaptor)) in lowerThenHigherPriority_lowerPriorityRedisplayed() 644 verify(windowManager).addView(capture(viewCaptor), capture(windowParamsCaptor)) in higherThenLowerPriority_higherStaysDisplayed() 679 verify(windowManager).addView(capture(viewCaptor), capture(windowParamsCaptor)) in higherThenLowerPriority_lowerEventuallyDisplayed() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierActionAgentTest.java | 102 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 103 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 109 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 112 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 123 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 127 verify(mRadioActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM() 145 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 146 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 153 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() 157 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange() [all …]
|
D | CellBroadcastConfigTrackerTest.java | 113 verify(mSpyCi, times(1)).setGsmBroadcastConfig(gsmCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 124 verify(mSpyCi, times(1)).setGsmBroadcastActivation(eq(true), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 153 verify(mSpyCi, times(1)).setCdmaBroadcastConfig(cdmaCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 165 verify(mSpyCi, times(1)).setCdmaBroadcastActivation(eq(true), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 193 verify(mSpyCi, times(2)).setGsmBroadcastConfig(gsmCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 203 verify(mSpyCi, times(1)).setGsmBroadcastActivation(eq(false), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 211 verify(mSpyCi, times(2)).setCdmaBroadcastConfig(cdmaCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 221 verify(mSpyCi, times(1)).setCdmaBroadcastActivation(eq(false), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 237 verify(mSpyCi, times(3)).setGsmBroadcastConfig(gsmCaptor.capture(), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() 247 verify(mSpyCi, times(2)).setGsmBroadcastActivation(eq(true), msgCaptor.capture()); in testSetCellBroadcastIdRangesSuccess() [all …]
|
D | CarrierSignalAgentTest.java | 129 listenerArgumentCaptor.capture()); in setUp() 173 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 183 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 191 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers() 240 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 258 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 274 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 291 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 303 verify(mContext, times(broadcastCount)).sendBroadcast(intentCaptor.capture()); in testLegacyConversionSupport() 342 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | BiometricNotificationDialogFactoryTest.java | 97 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalSucceeded() 105 verify(mFingerprintManager).removeAll(anyInt(), removalCallbackArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalSucceeded() 110 verify(mActivityStarter).startActivity(mIntentArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalSucceeded() 123 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalError() 131 verify(mFingerprintManager).removeAll(anyInt(), removalCallbackArgumentCaptor.capture()); in testFingerprintReEnrollDialog_onRemovalError() 147 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFingerprintReEnrollDialog_forced() 160 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalSucceeded() 168 verify(mFaceManager).removeAll(anyInt(), removalCallbackArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalSucceeded() 173 verify(mActivityStarter).startActivity(mIntentArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalSucceeded() 186 verify(mDialog).setPositiveButton(anyInt(), mOnClickListenerArgumentCaptor.capture()); in testFaceReEnrollDialog_onRemovalError() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsCallInfoTrackerTest.java | 72 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testDialingNormalCall() 97 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testDialingEmergencyCall() 122 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall() 143 verify(mImsPhone, times(2)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall() 160 verify(mImsPhone, times(3)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall() 177 verify(mImsPhone, times(4)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall() 194 verify(mImsPhone, times(5)).updateImsCallStatus(captor.capture(), any()); in testIncomingCall() 215 verify(mImsPhone, times(1)).updateImsCallStatus(captor.capture(), any()); in testMultiCalls() 220 verify(mImsPhone, times(2)).updateImsCallStatus(captor.capture(), any()); in testMultiCalls() 238 verify(mImsPhone, times(3)).updateImsCallStatus(captor.capture(), any()); in testMultiCalls() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | DefaultScreenshotActionsProviderTest.kt | 65 verify(actionsCallback).providePreviewAction(previewActionCaptor.capture()) in previewActionAccessed_beforeScreenshotCompleted_doesNothing() 76 .provideActionButton(any(), any(), actionButtonCaptor.capture()) in actionButtonsAccessed_beforeScreenshotCompleted_doesNothing() 92 .provideActionButton(any(), any(), actionButtonCaptor.capture()) in <lambda>() 98 .startSharedTransition(intentCaptor.capture(), eq(Process.myUserHandle()), eq(false)) in <lambda>() 107 verify(actionsCallback).providePreviewAction(previewActionCaptor.capture()) in <lambda>() 110 .provideActionButton(any(), any(), actionButtonCaptor.capture()) in <lambda>() 120 .startSharedTransition(intentCaptor.capture(), eq(Process.myUserHandle()), eq(true)) in <lambda>() 133 .provideActionButton(any(), any(), actionButtonCaptor.capture()) in <lambda>() 149 .provideActionButton(any(), any(), actionButtonCaptor.capture()) in <lambda>() 168 .provideActionButton(any(), any(), actionButtonCaptor.capture()) in scrollChipClicked_afterUpdate_runsNewAction()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImplTest.java | 174 verify(mStatusBarStateController).addCallback(mStateListener.capture(), anyInt()); in setUp() 182 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 189 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 217 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_visibleWithWallpaper() 228 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_lightScrimHidesWallpaper() 242 verify(mWindowManager, never()).updateViewLayout(any(), mLayoutParameters.capture()); in attach_scrimDoesntHideWallpaper() 250 verify(mWindowManager, never()).updateViewLayout(any(), mLayoutParameters.capture()); in setScrimsVisibility_earlyReturn() 262 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_animatingKeyguardAndSurface_wallpaperVisible() 281 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setBouncerShowing_isFocusable_whenNeedsInput() 292 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setKeyguardShowing_focusable_notAltFocusable_whenNeedsInput() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest11.java | 72 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts() 99 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 103 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId() 141 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached() 165 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts() 197 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts_unpinOthers() 201 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts_unpinOthers() 233 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts() 266 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts_alreadyCached() 295 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_uncacheShortcuts() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MotionEventInjectorTest.java | 205 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 270 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 291 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected() 303 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() 309 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() 324 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_openInjectedGestureInProgress_shouldCancelAndNotifyAndPassReal() 341 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_fromMouseWithInjectedGestureInProgress_shouldNotCancelAndPassReal() 368 verify(next, times(4)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassReal() 388 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_openInjectedGestureInProgress_shouldCancelAndNotifyAndPassNew() 415 verify(next, times(4)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassNew() [all …]
|
D | AccessibilityInteractionControllerNodeRequestsTest.java | 203 mFindInfoCaptor.capture(), eq(mMockClient1InteractionId)); in testFindRootView_withOneClient_shouldReturnRootNodeAndPrefetchDescendants() 208 mPrefetchInfoListCaptor.capture(), eq(mMockClient1InteractionId)); in testFindRootView_withOneClient_shouldReturnRootNodeAndPrefetchDescendants() 238 mFindInfoCaptor.capture(), eq(mMockClient1InteractionId)); in testFindTextView_withOneClient_shouldReturnNodeAndPrefetchedSiblingsAndParent() 245 mPrefetchInfoListCaptor.capture(), eq(mMockClient1InteractionId)); in testFindTextView_withOneClient_shouldReturnNodeAndPrefetchedSiblingsAndParent() 295 mFindInfoCaptor.capture(), eq(mMockClient1InteractionId)); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 306 mFindInfoCaptor.capture(), eq(mMockClient2InteractionId)); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 314 mPrefetchInfoListCaptor.capture(), eq(mMockClient2InteractionId)); in testFindRootAndTextNodes_withTwoClients_shouldPreventClient1Prefetch() 374 .setFindAccessibilityNodeInfoResult(mFindInfoCaptor.capture(), anyInt()); in testFindRootAndTextNode_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() 385 .setPrefetchAccessibilityNodeInfoResult(mPrefetchInfoListCaptor.capture(), in testFindRootAndTextNode_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() 438 .setFindAccessibilityNodeInfoResult(mFindInfoCaptor.capture(), anyInt()); in testFindRoot_withOneClient_shouldInterruptPrefetchAndSatisfyPendingMsg() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | FingerprintAuthenticationClientTest.java | 209 verify(mBiometricContext).subscribe(mOperationContextCaptor.capture(), in authNoContext_v1() 210 mStartHalConsumerCaptor.capture(), mContextInjector.capture(), any()); in authNoContext_v1() 288 verify(mBiometricContext).subscribe(mOperationContextCaptor.capture(), in luxProbeWhenAwake() 289 mStartHalConsumerCaptor.capture(), mContextInjector.capture(), any()); in luxProbeWhenAwake() 296 verify(mHal).authenticateWithContext(eq(OP_ID), captor.capture()); in luxProbeWhenAwake() 334 verify(mBiometricContext).subscribe(mOperationContextCaptor.capture(), in luxProbeEnabledOnStart() 335 mStartHalConsumerCaptor.capture(), mContextInjector.capture(), any()); in luxProbeEnabledOnStart() 351 verify(mBiometricContext).subscribe(mOperationContextCaptor.capture(), in luxProbeDisabledOnAod() 352 mStartHalConsumerCaptor.capture(), mContextInjector.capture(), any()); in luxProbeDisabledOnAod() 359 verify(mHal).authenticateWithContext(eq(OP_ID), captor.capture()); in luxProbeDisabledOnAod() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | SensitiveContentCoordinatorTest.kt | 91 withArgCaptor<Invalidator> { verify(pipeline).addPreRenderInvalidator(capture()) } in onDynamicPrivacyChanged_invokeInvalidationListener() 94 verify(dynamicPrivacyController).addListener(capture()) in onDynamicPrivacyChanged_invokeInvalidationListener() 110 withArgCaptor<Invalidator> { verify(pipeline).addPreRenderInvalidator(capture()) } in onSensitiveStateChanged_invokeInvalidationListener() 114 .registerSensitiveStateListener(capture()) in onSensitiveStateChanged_invokeInvalidationListener() 140 val filter = withArgCaptor<NotifFilter> { verify(pipeline).addFinalizeFilter(capture()) } in screenshareSecretFilter_sensitiveInctive_noFiltersSecret() 157 val filter = withArgCaptor<NotifFilter> { verify(pipeline).addFinalizeFilter(capture()) } in screenshareSecretFilter_sensitiveActive_filtersSecret() 173 verify(pipeline).addOnBeforeRenderListListener(capture()) in onBeforeRenderList_deviceUnlocked_notifDoesNotNeedRedaction() 193 verify(pipeline).addOnBeforeRenderListListener(capture()) in onBeforeRenderList_deviceUnlocked_notifDoesNotNeedRedaction_sensitiveActive() 215 verify(pipeline).addOnBeforeRenderListListener(capture()) in onBeforeRenderList_deviceUnlocked_notifDoesNotNeedRedaction_shouldProtectNotification() 241 verify(pipeline).addOnBeforeRenderListListener(capture()) in onBeforeRenderList_deviceUnlocked_notifWouldNeedRedaction() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyItemControllerTest.kt | 62 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method 144 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testPrivacyItemsAggregated() 165 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testDistinctItems() 180 verify(callback).onPrivacyItemsChanged(capture(argCaptor)) in testSimilarItemsDifferentTimeStamp() 209 verify(privacyItemMonitor).startListening(capture(argCaptorCallback)) in testMultipleCallbacksAreUpdated() 227 verify(privacyItemMonitor).startListening(capture(argCaptorCallback)) in testRemoveCallback() 258 verify(privacyItemMonitor).startListening(capture(argCaptorCallback)) in testLogListUpdated() 263 verify(logger, atLeastOnce()).logRetrievedPrivacyItemsList(capture(captor)) in testLogListUpdated() 299 verify(privacyItemMonitor).startListening(capture(argCaptorCallback)) in testNotHeldAfterTimeIsOff() 323 verify(privacyItemMonitor).startListening(capture(argCaptorCallback)) in testElementNotRemovedBeforeHoldTime() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServiceRequestControllerTest.kt | 35 import com.android.systemui.util.mockito.capture 203 verify(tileRequestDialog).setOnCancelListener(capture(cancelListenerCaptor)) in cancelListener_dismissResult() 218 verify(tileRequestDialog).setOnCancelListener(capture(cancelListenerCaptor)) in dialogCancelled_logged() 243 verify(tileRequestDialog).setPositiveButton(anyInt(), capture(clickListenerCaptor)) in positiveActionListener_tileAddedResult() 259 verify(tileRequestDialog).setPositiveButton(anyInt(), capture(clickListenerCaptor)) in tileAdded_logged() 284 verify(tileRequestDialog).setNegativeButton(anyInt(), capture(clickListenerCaptor)) in negativeActionListener_tileNotAddedResult() 300 verify(tileRequestDialog).setNegativeButton(anyInt(), capture(clickListenerCaptor)) in tileNotAdded_logged() 319 verify(commandQueue, atLeastOnce()).addCallback(capture(captor)) in commandQueueCallback_dataPassedToDialog() 346 verify(commandQueue, atLeastOnce()).addCallback(capture(captor)) in commandQueueCallback_callbackCalled() 359 verify(commandQueue, atLeastOnce()).addCallback(capture(captor)) in interfaceThrowsRemoteException_doesntCrash() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | SensitiveContentProtectionManagerServiceNotificationTest.java | 157 verify(mProjectionManager).addCallback(mMediaProjectionCallbackCaptor.capture(), any()); in setUp() 313 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in mediaProjectionOnStart_verifyExemptedRecorderPackage() 473 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in mediaProjectionOnStart_disabledViaDevOption_noBlockedPackages() 484 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_projectionNotStarted_noop() 499 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_projectionStopped_noop() 523 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_noSensitiveNotifications_noBlockedPackages() 534 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_noNotifications_noBlockedPackages() 545 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_nullNotifications_noBlockedPackages() 561 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_nullRankingMap_noBlockedPackages() 578 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in nlsOnListenerConnected_missingRanking_noBlockedPackages() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | PanelTaskViewControllerTest.kt | 36 import com.android.systemui.util.mockito.capture 107 verify(taskView).setListener(any(), capture(listenerCaptor)) in testTaskViewOnInitializeStartsActivity() 118 /* fillInIntent */ capture(intentCaptor), in testTaskViewOnInitializeStartsActivity() 119 capture(optionsCaptor), in testTaskViewOnInitializeStartsActivity() 131 verify(taskView).setListener(any(), capture(listenerCaptor)) in testOnTaskCreated_taskViewAlpha1() 141 verify(taskView).setListener(any(), capture(listenerCaptor)) in testHideRunnableCalledWhenBackOnRoot() 157 verify(taskView).setListener(any(), capture(listenerCaptor)) in testOnTaskRemovalStarted()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/ |
D | FaceEnrollClientTest.java | 155 mOperationContextCaptor.capture(), mStartHalConsumer.capture(), in subscribeContextAndStartHal() 156 mContextInjector.capture(), any()); in subscribeContextAndStartHal() 162 verify(mHal).enrollWithContext(any(), anyByte(), any(), any(), captor.capture()); in subscribeContextAndStartHal() 183 verify(mBiometricContext).subscribe(mOperationContextCaptor.capture(), in enrollWithFaceOptionsAfterSubscribingContext() 184 mStartHalConsumer.capture(), any(), any()); in enrollWithFaceOptionsAfterSubscribingContext() 225 mAuthenticationStartedCaptor.capture()); in testAuthenticationStateListeners_onEnrollmentStartedAndStopped() 234 mAuthenticationStoppedCaptor.capture()); in testAuthenticationStateListeners_onEnrollmentStartedAndStopped() 251 mAuthenticationErrorCaptor.capture()); in testAuthenticationStateListeners_onEnrollmentError() 253 mAuthenticationStoppedCaptor.capture()); in testAuthenticationStateListeners_onEnrollmentError() 276 mAuthenticationHelpCaptor.capture()); in testAuthenticationStateListeners_onAuthenticationHelp() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/ |
D | DeviceEntryFingerprintAuthRepositoryTest.kt | 85 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in isLockedOut_whenFingerprintLockoutStateChanges_emitsNewValue() 110 .registerCallback(updateMonitorCallback.capture()) in fpRunningStateIsPropagated() 177 verify(authController).addCallback(callback.capture()) in enabledFingerprintTypeProvidesTheCorrectOutputAfterAllAuthenticatorsAreRegistered() 191 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFingerprintSuccess_successAuthenticationStatus() 209 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFingerprintFailed_failedAuthenticationStatus() 229 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFingerprintFailed_failedAuthenticationStatusWithOtherStatuses() 257 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFingerprintError_errorAuthenticationStatus() 275 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFingerprintHelp_helpAuthenticationStatus() 293 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFingerprintAcquired_acquiredAuthenticationStatus() 309 verify(keyguardUpdateMonitor).registerCallback(updateMonitorCallback.capture()) in onFaceCallbacks_fingerprintAuthenticationStatusIsUnchanged() [all …]
|