/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 129 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccess() 144 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings() 157 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSetupWizard() 171 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanWithHiddenNetworkScanningDisabled() 187 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanWithHiddenNetworkScanningEnabled() 240 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testScanSuccessOverwritesPreviousResults() 251 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testScanSuccessOverwritesPreviousResults() 270 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testScanFailureDoesNotOverwritePreviousResults() 281 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testScanFailureDoesNotOverwritePreviousResults() 304 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testScanRequestWhilePeviousScanRunning() [all …]
|
D | SupplicantStaNetworkHalTest.java | 20 import static org.mockito.Mockito.any; 133 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 134 verify(mISupplicantStaNetworkMock, never()).setPsk(any(byte[].class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 136 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 147 verify(mISupplicantStaNetworkMock).setPsk(any(byte[].class)); in testPskNetworkWifiConfigurationSaveLoad() 149 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskNetworkWifiConfigurationSaveLoad() 152 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskNetworkWifiConfigurationSaveLoad() 252 .getSsid(any(ISupplicantStaNetwork.getSsidCallback.class)); in testSsidLoadFailure() 270 }).when(mISupplicantStaNetworkMock).setSsid(any(ArrayList.class)); in testSsidSaveFailure() 427 }).when(mISupplicantStaNetworkMock).sendNetworkEapSimGsmAuthResponse(any(ArrayList.class)); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair() [all …]
|
D | OpenNetworkNotifierTest.java | 28 import static org.mockito.ArgumentMatchers.any; 123 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp() 127 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp() 166 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed() 176 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 189 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 204 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 223 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 243 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() 263 verify(mNotificationManager).notify(anyInt(), any()); in clearPendingNotification_clearsNotificationIfOneIsShowing() [all …]
|
D | CarrierNetworkNotifierTest.java | 28 import static org.mockito.ArgumentMatchers.any; 124 verify(mContext).registerReceiver(broadcastReceiverCaptor.capture(), any(), any(), any()); in setUp() 128 verify(mFrameworkFacade).registerContentObserver(eq(mContext), any(Uri.class), eq(true), in setUp() 167 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasCarrierNetworks_notificationDisplayed() 177 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 190 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 205 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 224 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 244 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() 264 verify(mNotificationManager).notify(anyInt(), any()); in clearPendingNotification_clearsNotificationIfOneIsShowing() [all …]
|
D | HostapdHalTest.java | 19 import static org.mockito.Matchers.any; 100 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 103 any(IServiceNotification.Stub.class))).thenReturn(true); in setUp() 104 when(mIHostapdMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 106 when(mIHostapdMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 111 when(mIHostapdMock.removeAccessPoint(any())).thenReturn(mStatusSuccess); in setUp() 169 verify(mIHostapdMock).addAccessPoint(any(), any()); in testAddAccessPointSuccess_Psk_Band2G() 202 verify(mIHostapdMock).addAccessPoint(any(), any()); in testAddAccessPointSuccess_Open_Band5G() 236 verify(mIHostapdMock).addAccessPoint(any(), any()); in testAddAccessPointSuccess_Psk_Band5G_Hidden() 274 verify(mIHostapdMock).addAccessPoint(any(), any()); in testAddAccessPointSuccess_Psk_Band2G_WithACS() [all …]
|
D | WakeupOnboardingTest.java | 25 import static org.mockito.ArgumentMatchers.any; 90 verify(mNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationIfNotOnboarded() 102 .notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in doesNotShowNotificationIfAlreadyOnboarded() 116 .notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in doesNotShowNotificationIfAlreadyShowing() 130 verify(mContext).registerReceiver(captor.capture(), any(IntentFilter.class), any(), in dismissNotificationAction_setsOnboarded() 131 any(Handler.class)); in dismissNotificationAction_setsOnboarded() 151 verify(mContext).registerReceiver(captor.capture(), any(IntentFilter.class), any(), in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake() 152 any(Handler.class)); in turnOffWifiWakeAction_setsOnboardedAndTurnsOffWifiWake() 175 verify(mContext).registerReceiver(captor.capture(), any(IntentFilter.class), any(), in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings() 176 any(Handler.class)); in openWifiSettingsAction_setsOnboardedAndOpensWifiSettings() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | LaunchParamsControllerTests.java | 33 import static org.mockito.Mockito.any; 88 eq(source), eq(options), any(), any()); in testArgumentPropagation() 106 verify(ignoredPositioner, never()).onCalculate(any(), any(), any(), any(), any(), in testEarlyExit() 107 any(), any()); in testEarlyExit() 124 verify(firstPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), any(), in testRegistration() 125 any()); in testRegistration() 133 verify(firstPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), any(), in testRegistration() 134 any()); in testRegistration() 135 verify(secondPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), any(), in testRegistration() 136 any()); in testRegistration() [all …]
|
D | ActivityStarterTests.java | 61 import static org.mockito.Mockito.any; 240 anyInt(), any()); in verifyStartActivityPreconditions() 245 any(), any(), any(), anyInt(), anyInt(), anyInt(), any(), in verifyStartActivityPreconditions() 246 anyBoolean(), anyBoolean(), any(), any(), any()); in verifyStartActivityPreconditions() 255 any()); in verifyStartActivityPreconditions() 259 eq(intent), any()); in verifyStartActivityPreconditions() 304 any(), any(), any(), anyInt(), anyInt(), anyInt(), any(), in prepareStarter() 305 anyBoolean(), anyBoolean(), any(), any(), any()); in prepareStarter() 322 doReturn(task).when(factory).create(any(), anyInt(), any(), any(), any(), any()); in prepareStarter() 326 .getLaunchStack(any(), any(), any(), anyBoolean()); in prepareStarter() [all …]
|
/frameworks/support/compat/src/androidTest/java/androidx/core/widget/ |
D | NestedScrollViewNestedScrollingParentTest.java | 21 import static org.mockito.ArgumentMatchers.any; 126 .onStartNestedScroll(any(View.class), any(View.class), anyInt(), anyInt()); in onNestedScrollAccepted_callsParentsOnNestedScrollAcceptedWithCorrectParams() 140 any(View.class), in onNestedScrollAccepted_callsParentsOnNestedScrollAcceptedWithCorrectParams() 141 any(View.class), in onNestedScrollAccepted_callsParentsOnNestedScrollAcceptedWithCorrectParams() 157 .onStartNestedScroll(any(View.class), any(View.class), anyInt(), anyInt()); in onNestedScrollAccepted_withBothOrientations_pOnNestedScrollAcceptedCalledWithVert() 166 any(View.class), in onNestedScrollAccepted_withBothOrientations_pOnNestedScrollAcceptedCalledWithVert() 167 any(View.class), in onNestedScrollAccepted_withBothOrientations_pOnNestedScrollAcceptedCalledWithVert() 171 any(View.class), in onNestedScrollAccepted_withBothOrientations_pOnNestedScrollAcceptedCalledWithVert() 172 any(View.class), in onNestedScrollAccepted_withBothOrientations_pOnNestedScrollAcceptedCalledWithVert() 189 .onStartNestedScroll(any(View.class), any(View.class), anyInt(), anyInt()); in onNestedScrollAccepted_parentRejects_parentOnNestedScrollAcceptedNotCalled() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareNativeManagerTest.java | 21 import static org.mockito.ArgumentMatchers.any; 89 when(mWifiNanIfaceMock.registerEventCallback(any())).thenReturn(mStatusOk); in setUp() 90 when(mIWifiNanIface12Mock.registerEventCallback_1_2(any())).thenReturn(mStatusOk); in setUp() 102 mManagerStatusListenerCaptor.capture(), any()); in setUp() 122 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testControlFlowWithoutInterface() 127 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface() 145 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface() 155 mInOrder.verify(mHalDeviceManager, never()).createNanIface(any(), any()); in testControlFlowWithoutInterface() 171 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testReferenceCounting() 176 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testReferenceCounting() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | MediaInserterTest.java | 19 import static org.mockito.Matchers.any; 145 verify(mMockProvider, never()).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsLessThanBufferSize() 150 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsEqualToBufferSize() 157 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsEqualToBufferSize() 162 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsMoreThanBufferSize() 169 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsMoreThanBufferSize() 179 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testFlushAllWithSomeContents() 187 verify(mMockProvider, times(4)).bulkInsert(eq(mPackageName), any(), any()); in testFlushAllWithSomeContents() 192 when(mMockProvider.bulkInsert(eq(mPackageName), any(), any())).thenReturn(1); in testInsertContentsAfterFlushAll() 205 verify(mMockProvider, times(8)).bulkInsert(eq(mPackageName), any(), any()); in testInsertContentsAfterFlushAll() [all …]
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/app/ |
D | BaseBasicsTestCase.java | 28 import static org.mockito.Matchers.any; 136 .onApplyWindowInsets(eq(content), any(WindowInsets.class)); in testOnApplyWindowInsetsReachesContent() 146 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacks() 153 verify(callback).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacks() 154 verify(callback).onPrepareActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacks() 159 verify(callback).onDestroyActionMode(any(ActionMode.class)); in testSupportActionModeCallbacks() 170 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacksInvalidate() 183 verify(callback, never()).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacksInvalidate() 184 verify(callback).onPrepareActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacksInvalidate() 194 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(false); in testSupportActionModeCallbacksWithFalseOnCreate() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 20 import static org.mockito.Mockito.any; 95 when(mResources.getColor(anyInt(), any())).thenReturn(0xFF607D8B); in setUp() 125 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared() 126 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared() 135 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNoInternetNotificationsNotShownForCellular() 141 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular() 152 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNotificationsNotShownIfNoInternetCapability() 163 .notifyAsUser(eq(tag), eq(NO_INTERNET.eventId), any(), any()); in testDuplicatedNotificationsNoInternetThenSignIn() 168 .cancelAsUser(eq(tag), eq(NO_INTERNET.eventId), any()); in testDuplicatedNotificationsNoInternetThenSignIn() 170 .notifyAsUser(eq(tag), eq(SIGN_IN.eventId), any(), any()); in testDuplicatedNotificationsNoInternetThenSignIn() [all …]
|
D | MultipathPolicyTrackerTest.java | 34 import static org.mockito.ArgumentMatchers.any; 130 any(), argThat(f -> f.hasAction(ACTION_CONFIGURATION_CHANGED)), any(), any())) in setUp() 222 any(), in testGetMultipathPreference() 229 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in testGetMultipathPreference() 256 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(12)), any(), any()); in testGetMultipathPreference_SubscriptionQuota() 273 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_UserWarningQuota() 290 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_SnoozedWarningQuota() 307 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(5)), any(), any()); in testGetMultipathPreference_SnoozedBothQuota() 322 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_SettingChanged() 330 verify(mStatsManager, times(1)).unregisterUsageCallback(any()); in testGetMultipathPreference_SettingChanged() [all …]
|
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/ |
D | FontRequestEmojiCompatConfigTest.java | 31 import static org.mockito.Matchers.any; 106 any(Context.class), any(FontRequest.class)); in testLoad_whenGetFontThrowsException() 120 any(Context.class), any(FontRequest.class)); in testLoad_providerNotFound() 196 any(Context.class), any(FontRequest.class)); in testLoad_success() 203 verify(callback, times(1)).onLoaded(any(MetadataRepo.class)); in testLoad_success() 215 any(Context.class), any(FontRequest.class)); in testLoad_retryPolicy() 223 verify(callback, never()).onLoaded(any(MetadataRepo.class)); in testLoad_retryPolicy() 224 verify(callback, times(1)).onFailed(any(Throwable.class)); in testLoad_retryPolicy() 237 any(Context.class), any(FontRequest.class)); in testLoad_keepRetryingAndGiveUp() 245 verify(callback, never()).onLoaded(any(MetadataRepo.class)); in testLoad_keepRetryingAndGiveUp() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | EditorState.java | 19 import static org.mockito.Matchers.any; 166 when(mockReplacementSpan.getSize(any(), any(), any(), any(), any())) in setByString() 169 .draw(any(), any(), any(), any(), any(), any(), any(), any(), any()); in setByString()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 26 import static org.mockito.Mockito.any; 85 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_BAD_CHARGER), any(), any()); in testShowInvalidChargerNotification_NotifyAsUser() 87 eq(SystemMessage.NOTE_POWER_LOW), any()); in testShowInvalidChargerNotification_NotifyAsUser() 95 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testDismissInvalidChargerNotification_CancelAsUser() 102 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_POWER_LOW), any(), any()); in testShowLowBatteryNotification_NotifyAsUser() 104 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testShowLowBatteryNotification_NotifyAsUser() 112 eq(SystemMessage.NOTE_POWER_LOW), any()); in testDismissLowBatteryNotification_CancelAsUser() 121 captor.capture(), any()); in testShowLowBatteryNotification_BatteryChannel() 129 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_HIGH_TEMP), any(), any()); in testShowHighTemperatureWarning_NotifyAsUser() 137 eq(SystemMessage.NOTE_HIGH_TEMP), any()); in testDismissHighTemperatureWarning_CancelAsUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/ |
D | LicenseHtmlLoaderTest.java | 20 import static org.mockito.Matchers.any; 50 doReturn(isCachedHtmlFileOutdated).when(loader).isCachedHtmlFileOutdated(any(), any()); in newLicenseHtmlLoader() 51 doReturn(generateHtmlFileSucceeded).when(loader).generateHtmlFile(any(), any()); in newLicenseHtmlLoader() 69 verify(loader).generateHtmlFile(any(), any()); in testLoadInBackground() 80 verify(loader, never()).generateHtmlFile(any(), any()); in testLoadInBackgroundWithNoVaildXmlFiles() 92 verify(loader, never()).generateHtmlFile(any(), any()); in testLoadInBackgroundWithNonOutdatedCachedHtmlFile() 104 verify(loader).generateHtmlFile(any(), any()); in testLoadInBackgroundWithGenerateHtmlFileFailed()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 24 import static org.mockito.ArgumentMatchers.any; 87 when(mFragmentService.getFragmentHostManager(any())).thenReturn(mFragmentHostManager); in setup() 110 verify(mWindowManager, never()).addView(any(), any()); in testNoRounding_NoCutout() 112 verify(mFragmentHostManager, never()).addTagListener(any(), any()); in testNoRounding_NoCutout() 114 verify(mTunerService, never()).addTunable(any(), any()); in testNoRounding_NoCutout() 127 verify(mWindowManager, times(2)).addView(any(), any()); in testRounding() 130 verify(mFragmentHostManager, times(2)).addTagListener(any(), any()); in testRounding() 132 verify(mTunerService, times(1)).addTunable(any(), any()); in testRounding() 134 verify(mTunablePaddingService, times(1)).add(any(), anyString(), anyInt(), anyInt()); in testRounding() 147 verify(mWindowManager, times(2)).addView(any(), any()); in testCutout() [all …]
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/ |
D | GuidedStepFragmentTest.java | 25 import static org.mockito.Mockito.any; 74 }).when(first).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 87 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() 94 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 95 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 96 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack() 97 nullable(Bundle.class), any(View.class)); in nextAndBack() 103 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() 111 verify(second, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 112 verify(second, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack() [all …]
|
D | GuidedStepSupportFragmentTest.java | 22 import static org.mockito.Mockito.any; 71 }).when(first).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 84 }).when(first).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() 91 verify(first, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 92 verify(first, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 93 verify(first, times(1)).onCreateView(any(LayoutInflater.class), any(ViewGroup.class), in nextAndBack() 94 nullable(Bundle.class), any(View.class)); in nextAndBack() 100 verify(first, times(1)).onGuidedActionClicked(any(GuidedAction.class)); in nextAndBack() 108 verify(second, times(1)).onCreateActions(any(List.class), nullable(Bundle.class)); in nextAndBack() 109 verify(second, times(1)).onCreateButtonActions(any(List.class), nullable(Bundle.class)); in nextAndBack() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalTest.java | 187 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 190 any(IServiceNotification.Stub.class))).thenReturn(true); in setUp() 191 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 193 when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 195 when(mISupplicantP2pIfaceMock.registerCallback(any(ISupplicantP2pIfaceCallback.class))) in setUp() 289 when(mISupplicantMockV1_1.removeInterface(any(ISupplicant.IfaceInfo.class))) in testTeardown_successV1_1() 292 verify(mISupplicantMockV1_1).removeInterface(any()); in testTeardown_successV1_1() 315 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_success() 334 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_failure() 351 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_exception() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | A2dpProfileTest.java | 19 import static org.mockito.Matchers.any; 67 }).when(mAdapter).getProfileProxy(any(Context.class), any(), eq(BluetoothProfile.A2DP)); in setUp() 76 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio() 80 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio() 84 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in supportsHighQualityAudio() 91 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled() 95 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled() 103 when(mBluetoothA2dpWrapper.getOptionalCodecsEnabled(any())).thenReturn( in isHighQualityAudioEnabled() 105 when(mBluetoothA2dp.getConnectionState(any())).thenReturn( in isHighQualityAudioEnabled() 108 when(mBluetoothA2dpWrapper.supportsOptionalCodecs(any())).thenReturn( in isHighQualityAudioEnabled() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManagerTest.java | 23 import static org.mockito.ArgumentMatchers.any; 86 when(mContext.getSystemServiceName(any())).thenReturn("test"); in setUp() 102 any(), in init_createsEncryptKeyWithCorrectAlias() 103 any()); in init_createsEncryptKeyWithCorrectAlias() 144 any(), in init_createsDecryptKeyWithCorrectAlias() 145 any()); in init_createsDecryptKeyWithCorrectAlias() 202 verify(mKeyStoreProxy, times(2)).setEntry(any(), mEntryArgumentCaptor.capture(), any()); in init_createsBothKeysWithSameMaterial() 266 any()); in getDecryptKey_getsDecryptKeyWithCorrectAlias() 291 any()); in getDecryptKey_generatesNewKeyIfOldDecryptKeyWasRemoved() 316 any()); in getDecryptKey_generatesNewKeyIfOldEncryptKeyWasRemoved() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/ |
D | PluginInstanceManagerTest.java | 20 import static org.mockito.Matchers.any; 86 when(mMockManager.getClassLoader(any(), any())) in setup() 108 verify(sMockPlugin).onCreate(any(), any()); in testGetPlugin() 113 when(mMockPm.queryIntentServices(any(), anyInt())).thenReturn( in testNoPlugins() 120 verify(mMockListener, Mockito.never()).onPluginConnected(any(), any()); in testNoPlugins() 130 verify(mMockListener).onPluginConnected(any(), any()); in testPluginCreate() 152 doThrow(new InvalidVersionException("", false)).when(mMockVersionInfo).checkVersion(any()); in testIncorrectVersion() 160 verify(mMockListener, Mockito.never()).onPluginConnected(any(), any()); in testIncorrectVersion() 162 any(), eq(UserHandle.ALL)); in testIncorrectVersion() 181 verify(mMockListener, Mockito.times(2)).onPluginConnected(any(), any()); in testReloadOnChange() [all …]
|