/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | TimeControllerTest.java | 28 import static org.mockito.ArgumentMatchers.any; 158 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in testMaybeStartTrackingJobLocked_AlreadySatisfied() 174 doReturn(true).when(mTimeController).wouldBeReadyWithConstraintLocked(any(), anyInt()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_AllReady() 194 any(), any(), any()); in runTestMaybeStartTrackingJobLocked_DelayInOrder() 197 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in runTestMaybeStartTrackingJobLocked_DelayInOrder() 200 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in runTestMaybeStartTrackingJobLocked_DelayInOrder() 228 any(), any(), any()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() 231 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() 234 .set(anyInt(), anyLong(), anyLong(), anyLong(), anyString(), any(), any(), any()); in testMaybeStartTrackingJobLocked_DelayInOrder_WithSkipping_SomeNotReady() 250 doReturn(true).when(mTimeController).wouldBeReadyWithConstraintLocked(any(), anyInt()); in testMaybeStartTrackingJobLocked_DelayReverseOrder_WithSkipping_AllReady() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 153 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testEnableScanning() 164 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testDisableScanning() 185 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccess() 186 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccess() 202 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSettings() 203 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSettings() 217 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanSuccessFromAppWithNetworkSetupWizard() 218 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanSuccessFromAppWithNetworkSetupWizard() 231 mInOrder.verify(mWifiScanner).registerScanListener(any()); in testStartScanWithHiddenNetworkScanningDisabled() 238 mInOrder.verify(mWifiScanner).startScan(any(), any(), any()); in testStartScanWithHiddenNetworkScanningDisabled() [all …]
|
D | LinkProbeManagerTest.java | 22 import static org.mockito.Mockito.any; 116 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndAcked() 117 verify(mWifiMetrics, never()).incrementLinkProbeExperimentProbeCount(any()); in testLinkProbeTriggeredAndAcked() 134 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndAcked() 160 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeTriggeredAndFailed() 177 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndFailed() 218 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded() 226 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded() 238 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenTxSucceeded() 251 verify(mWifiNative, never()).probeLink(any(), any(), any(), anyInt()); in testLinkProbeNotTriggeredWhenScreenJustTurnedOn() [all …]
|
D | SupplicantStaNetworkHalTest.java | 25 import static org.mockito.Mockito.any; 155 verify(mISupplicantStaNetworkV12).setSaePassword(any(String.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 157 .getSaePassword(any(android.hardware.wifi.supplicant.V1_2.ISupplicantStaNetwork in testSaePasswordNetworkWifiConfigurationSaveLoad() 160 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 161 verify(mISupplicantStaNetworkV12, never()).setPsk(any(byte[].class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 163 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testSaePasswordNetworkWifiConfigurationSaveLoad() 176 .getPskPassphrase(any(ISupplicantStaNetwork.getPskPassphraseCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 177 verify(mISupplicantStaNetworkMock, never()).setPsk(any(byte[].class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 179 .getPsk(any(ISupplicantStaNetwork.getPskCallback.class)); in testPskPassphraseNetworkWifiConfigurationSaveLoad() 190 verify(mISupplicantStaNetworkMock).setPsk(any(byte[].class)); in testPskNetworkWifiConfigurationSaveLoad() [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() 132 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp() 169 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasCarrierNetworks_notificationDisplayed() 179 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 192 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 207 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 226 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 246 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() [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() 131 when(mWifiConfigManager.addOrUpdateNetwork(any(), anyInt())) in setUp() 168 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed() 178 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed() 191 verify(mNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed() 206 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared() 225 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared() 245 verify(mNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareNativeManagerTest.java | 21 import static org.mockito.ArgumentMatchers.any; 92 when(mWifiNanIfaceMock.registerEventCallback(any())).thenReturn(mStatusOk); in setUp() 93 when(mIWifiNanIface12Mock.registerEventCallback_1_2(any())).thenReturn(mStatusOk); in setUp() 105 mManagerStatusListenerCaptor.capture(), any()); in setUp() 124 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testControlFlowWithoutInterface() 129 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface() 147 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface() 157 mInOrder.verify(mHalDeviceManager, never()).createNanIface(any(), any()); in testControlFlowWithoutInterface() 172 when(mHalDeviceManager.createNanIface(any(), any())).thenReturn(mWifiNanIfaceMock); in testReferenceCounting() 177 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testReferenceCounting() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetworkNotificationManagerTest.java | 21 import static org.mockito.Mockito.any; 108 when(mResources.getColor(anyInt(), any())).thenReturn(0xFF607D8B); in setUp() 117 .notifyAsUser(eq(tag), eq(PRIVATE_DNS_BROKEN.eventId), any(), any()); in verifyTitleByNetwork() 120 verify(mResources, times(1)).getString(title, eq(any())); in verifyTitleByNetwork() 167 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNotificationsShownAndCleared() 168 verify(mNotificationManager, times(1)).cancelAsUser(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared() 177 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNoInternetNotificationsNotShownForCellular() 183 verify(mNotificationManager, times(1)).notifyAsUser(eq(tag), eq(eventId), any(), any()); in testNoInternetNotificationsNotShownForCellular() 194 verify(mNotificationManager, never()).notifyAsUser(any(), anyInt(), any(), any()); in testNotificationsNotShownIfNoInternetCapability() 205 .notifyAsUser(eq(tag), eq(NO_INTERNET.eventId), any(), any()); in testDuplicatedNotificationsNoInternetThenSignIn() [all …]
|
D | MultipathPolicyTrackerTest.java | 33 import static org.mockito.ArgumentMatchers.any; 131 any(), argThat(f -> f.hasAction(ACTION_CONFIGURATION_CHANGED)), any(), any())) in setUp() 223 any(), in testGetMultipathPreference() 230 verify(mCM).registerNetworkCallback(any(), networkCallback.capture(), any()); in testGetMultipathPreference() 270 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(12)), any(), any()); in testGetMultipathPreference_SubscriptionQuota() 287 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_UserWarningQuota() 304 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_SnoozedWarningQuota() 321 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(5)), any(), any()); in testGetMultipathPreference_SnoozedBothQuota() 336 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_SettingChanged() 344 verify(mStatsManager, times(1)).unregisterUsageCallback(any()); in testGetMultipathPreference_SettingChanged() [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/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LaunchParamsControllerTests.java | 25 import static com.android.dx.mockito.inline.extended.ExtendedMockito.any; 95 eq(source), eq(options), anyInt(), any(), any()); in testArgumentPropagation() 119 verify(positioner, times(1)).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testStoredParamsRecovery() 120 eq(expected), any()); in testStoredParamsRecovery() 139 verify(ignoredPositioner, never()).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testEarlyExit() 140 any(), any()); in testEarlyExit() 157 verify(firstPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testRegistration() 158 any(), any()); in testRegistration() 166 verify(firstPositioner, times(1)).onCalculate(any(), any(), any(), any(), any(), anyInt(), in testRegistration() 167 any(), any()); in testRegistration() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 24 import static org.mockito.ArgumentMatchers.any; 127 }).when(mBiometricManager).registerEnabledOnKeyguardCallback(any()); in setup() 326 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testTriesToAuthenticate_whenBouncer() 336 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testTriesToAuthenticate_whenKeyguard() 348 verify(mFaceManager, never()).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in skipsAuthentication_whenEncryptedKeyguard() 371 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testStrongAuthExceptOnBouncer() 378 verify(mFaceManager, never()).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testStrongAuthExceptOnBouncer() 386 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testTriesToAuthenticate_whenAssistant() 398 verify(mFaceManager).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testTriesToAuthenticate_whenTrustOnAgentKeyguard_ifBypass() 408 verify(mFaceManager, never()).authenticate(any(), any(), anyInt(), any(), any(), anyInt()); in testIgnoresAuth_whenTrustAgentOnKeyguard_withoutBypass() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/ |
D | GlobalActionsLayoutTest.java | 21 import static org.mockito.ArgumentMatchers.any; 178 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_oneSeparatedOneList() 181 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_oneSeparatedOneList() 200 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_twoSeparatedItems() 202 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems() 225 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_twoSeparatedItems_reverse() 228 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_twoSeparatedItems_reverse() 250 doReturn(view1).when(mAdapter).getView(eq(0), any(), any()); in testOnUpdateList_fourInList() 253 doReturn(view2).when(mAdapter).getView(eq(1), any(), any()); in testOnUpdateList_fourInList() 256 doReturn(view3).when(mAdapter).getView(eq(2), any(), any()); in testOnUpdateList_fourInList() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | EditorState.java | 19 import static org.mockito.Matchers.any; 164 when(mockReplacementSpan.getSize(any(), any(), any(), any(), any())) in setByString() 167 .draw(any(), any(), any(), any(), any(), any(), any(), any(), any()); in setByString()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationGutsManagerTest.java | 31 import static org.mockito.ArgumentMatchers.any; 135 when(guts.post(any())).thenAnswer(invocation -> { in testOpenAndCloseGuts() 146 any(Runnable.class)); in testOpenAndCloseGuts() 163 any(Runnable.class)); in testOpenAndCloseGuts() 169 verify(row, times(1)).setGutsView(any()); in testOpenAndCloseGuts() 175 when(guts.post(any())).thenAnswer(invocation -> { in testChangeDensityOrFontScale() 186 any(Runnable.class)); in testChangeDensityOrFontScale() 210 any(Runnable.class)); in testChangeDensityOrFontScale() 213 verify(row).setGutsView(any()); in testChangeDensityOrFontScale() 225 verify(row, times(2)).setGutsView(any()); in testChangeDensityOrFontScale() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 28 import static org.mockito.ArgumentMatchers.any; 110 when(mFragmentService.getFragmentHostManager(any())).thenReturn(mFragmentHostManager); in setup() 159 verify(mWindowManager, never()).addView(any(), any()); in testNoRounding_NoCutout() 161 verify(mFragmentHostManager, never()).addTagListener(any(), any()); in testNoRounding_NoCutout() 163 verify(mTunerService, never()).addTunable(any(), any()); in testNoRounding_NoCutout() 179 verify(mWindowManager, times(2)).addView(any(), any()); in testRounding() 182 verify(mFragmentHostManager, times(2)).addTagListener(any(), any()); in testRounding() 184 verify(mTunerService, times(1)).addTunable(any(), any()); in testRounding() 186 verify(mTunablePaddingService, times(1)).add(any(), anyString(), anyInt(), anyInt()); in testRounding() 226 verify(mWindowManager, times(2)).addView(any(), any()); in testRoundingMultipleRadius() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 25 import static org.mockito.Mockito.any; 90 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_BAD_CHARGER), any(), any()); in testShowInvalidChargerNotification_NotifyAsUser() 92 eq(SystemMessage.NOTE_POWER_LOW), any()); in testShowInvalidChargerNotification_NotifyAsUser() 100 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testDismissInvalidChargerNotification_CancelAsUser() 107 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_POWER_LOW), any(), any()); in testShowLowBatteryNotification_NotifyAsUser() 109 eq(SystemMessage.NOTE_BAD_CHARGER), any()); in testShowLowBatteryNotification_NotifyAsUser() 117 eq(SystemMessage.NOTE_POWER_LOW), any()); in testDismissLowBatteryNotification_CancelAsUser() 126 captor.capture(), any()); in testShowLowBatteryNotification_BatteryChannel() 134 .notifyAsUser(anyString(), eq(SystemMessage.NOTE_HIGH_TEMP), any(), any()); in testShowHighTemperatureWarning_NotifyAsUser() 142 eq(SystemMessage.NOTE_HIGH_TEMP), any()); in testDismissHighTemperatureWarning_CancelAsUser() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManagerTest.java | 23 import static org.mockito.ArgumentMatchers.any; 101 when(mContext.getSystemServiceName(any())).thenReturn("test"); in setUp() 118 any(), in init_createsEncryptKeyWithCorrectAlias() 119 any()); in init_createsEncryptKeyWithCorrectAlias() 160 any(), in init_createsDecryptKeyWithCorrectAlias() 161 any()); in init_createsDecryptKeyWithCorrectAlias() 223 any(), in init_doesNotCreateDecryptKeyIfNoSid() 224 any()); in init_doesNotCreateDecryptKeyIfNoSid() 235 any(), in init_doesNotCreateDecryptKeyOnGateKeeperException() 236 any()); in init_doesNotCreateDecryptKeyOnGateKeeperException() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | IntentForwarderActivityTest.java | 23 import static org.mockito.ArgumentMatchers.any; 133 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_sendIntent() 166 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(false); in forwardToManagedProfile_cannotForward_sendIntent() 188 any(Intent.class), anyString(), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_noManagedProfile_sendIntent() 209 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_chooserIntent() 251 any(Intent.class), nullable(String.class), anyInt(), anyInt())).thenReturn(true); in forwardToManagedProfile_canForward_selectorIntent() 293 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_notWhitelisted() 308 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_withResolverActivity() 320 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_callIntent_call() 332 verify(mIPm).canForwardTo(any(), any(), anyInt(), anyInt()); in shouldSkipDisclosure_callIntent_callPrivileged() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | PasspointNetworkEvaluatorTest.java | 25 import static org.mockito.Mockito.any; 174 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(null); in evaluateScansWithNoMatch() 177 verify(mOnConnectableListener, never()).onConnectable(any(), any(), anyInt()); in evaluateScansWithNoMatch() 196 verify(mOnConnectableListener, never()).onConnectable(any(), any(), anyInt()); in evaulateScansWithNoInterworkingAP() 198 verify(mPasspointManager, never()).matchProvider(any(ScanResult.class)); in evaulateScansWithNoInterworkingAP() 219 when(mPasspointManager.matchProvider(any(ScanResult.class))).thenReturn(homeProvider) in evaluateScansWithNetworkMatchingHomeProvider() 221 when(mWifiConfigManager.addOrUpdateNetwork(any(WifiConfiguration.class), anyInt())) in evaluateScansWithNetworkMatchingHomeProvider() 226 verify(mOnConnectableListener).onConnectable(any(), any(), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider() 239 eq(TEST_NETWORK_ID), any(ScanResult.class), anyInt()); in evaluateScansWithNetworkMatchingHomeProvider() 241 eq(TEST_NETWORK_ID), any(ScanDetail.class)); in evaluateScansWithNetworkMatchingHomeProvider() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalTest.java | 206 when(mServiceManagerMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 209 any(IServiceNotification.Stub.class))).thenReturn(true); in setUp() 210 when(mISupplicantMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 212 when(mISupplicantP2pIfaceMock.linkToDeath(any(IHwBinder.DeathRecipient.class), in setUp() 214 when(mISupplicantP2pIfaceMock.registerCallback(any(ISupplicantP2pIfaceCallback.class))) in setUp() 308 when(mISupplicantMockV1_1.removeInterface(any(ISupplicant.IfaceInfo.class))) in testTeardown_successV1_1() 311 verify(mISupplicantMockV1_1).removeInterface(any()); in testTeardown_successV1_1() 334 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_success() 353 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_failure() 370 .when(mISupplicantP2pIfaceMock).getName(any(ISupplicantIface.getNameCallback.class)); in testGetName_exception() [all …]
|
/frameworks/libs/net/common/devicetests/com/android/testutils/ |
D | FakeDns.kt | 27 import org.mockito.Mockito.any 61 }.`when`(mockResolver).query(any() /* network */, any() /* domain */, anyInt() /* flags */, in startMocking() 62 any() /* executor */, any() /* cancellationSignal */, any() /*callback*/) in startMocking() 66 }.`when`(mockResolver).query(any() /* network */, any() /* domain */, anyInt() /* nsType */, in startMocking() 67 anyInt() /* flags */, any() /* executor */, any() /* cancellationSignal */, in startMocking() 68 any() /*callback*/) in startMocking()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/ |
D | PluginInstanceManagerTest.java | 21 import static org.mockito.Matchers.any; 95 when(mMockManager.getClassLoader(any())).thenReturn(getClass().getClassLoader()); in setup() 118 verify(sMockPlugin).onCreate(any(), any()); in testGetPlugin() 123 when(mMockPm.queryIntentServices(any(), anyInt())).thenReturn( in testNoPlugins() 130 verify(mMockListener, never()).onPluginConnected(any(), any()); in testNoPlugins() 140 verify(mMockListener).onPluginConnected(any(), any()); in testPluginCreate() 162 doThrow(new InvalidVersionException("", false)).when(mMockVersionInfo).checkVersion(any()); in testIncorrectVersion() 170 verify(mMockListener, never()).onPluginConnected(any(), any()); in testIncorrectVersion() 172 any(), eq(UserHandle.ALL)); in testIncorrectVersion() 191 verify(mMockListener, Mockito.times(2)).onPluginConnected(any(), any()); in testReloadOnChange() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/ |
D | ApduSenderTest.java | 22 import static org.mockito.ArgumentMatchers.any; 111 verify(mMockCi).iccOpenLogicalChannel(eq(AID), anyInt(), any()); in testSendEmptyCommands() 112 verify(mMockCi).iccCloseLogicalChannel(eq(channel), any()); in testSendEmptyCommands() 127 verify(mMockCi).iccOpenLogicalChannel(eq(AID), anyInt(), any()); in testOpenChannelErrorStatus() 142 eq(3), eq(0), eq("a"), any()); in testSend() 162 eq(3), eq(0), eq("a"), any()); in testSendMultiApdus() 164 eq(3), eq(1), eq("ab"), any()); in testSendMultiApdus() 166 eq(3), eq(0), eq(""), any()); in testSendMultiApdus() 168 eq(0), eq(2), eq("abcd"), any()); in testSendMultiApdus() 189 eq(3), eq(0), eq("a"), any()); in testSendMultiApdusStopEarly() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneSwitcherTest.java | 33 import static org.mockito.ArgumentMatchers.any; 153 verify(mActivePhoneSwitchHandler, never()).sendMessageAtTime(any(), anyLong()); in testRegister() 158 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() 163 verify(mActivePhoneSwitchHandler, never()).sendMessageAtTime(any(), anyLong()); in testRegister() 169 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() 188 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() 196 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() 204 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() 214 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() 224 verify(mActivePhoneSwitchHandler, times(1)).sendMessageAtTime(any(), anyLong()); in testRegister() [all …]
|