/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | StatsdAdServicesLoggerTest.java | 105 import static org.mockito.ArgumentMatchers.anyInt; 208 anyInt(), anyInt(), anyInt(), anyInt(), any(byte[].class))); in testLogGetTopicsReportedStats_tPlus() 213 anyInt(), any(int[].class), anyInt(), anyInt(), anyInt())); in testLogGetTopicsReportedStats_tPlus() 249 anyInt(), any(int[].class), anyInt(), anyInt(), anyInt())); in testLogGetTopicsReportedStats_tPlus_noCompatLoggingDueToKillSwitch() 276 anyInt(), anyInt(), anyInt(), anyInt(), any(byte[].class))); in testLogGetTopicsReportedStats_sMinus() 316 anyInt(), in testLogEpochComputationClassifierStats_tPlus() 318 anyInt(), in testLogEpochComputationClassifierStats_tPlus() 320 anyInt(), in testLogEpochComputationClassifierStats_tPlus() 321 anyInt(), in testLogEpochComputationClassifierStats_tPlus() 322 anyInt())); in testLogEpochComputationClassifierStats_tPlus() [all …]
|
/packages/services/Car/tests/CarServiceTest/src/com/android/car/os/ |
D | CarPerformanceManagerTest.java | 22 import static org.mockito.ArgumentMatchers.anyInt; 102 verify(mCarWatchdogDaemonHelper).setThreadPriority(anyInt(), anyInt(), anyInt(), in testSetThreadPriority() 109 .setThreadPriority(anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); in testSetThreadPriorityIllegalArgumentException() 123 anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); in testSetThreadPriorityIllegalStateException() 137 anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); in testSetThreadPriorityRemoteException() 148 anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); in testSetThreadPriorityServiceSpecificException() 160 anyInt(), anyInt(), anyInt())).thenReturn(p); in testGetThreadPriority() 172 anyInt(), anyInt(), anyInt())).thenReturn(p); in testGetThreadPriorityDefaultPolicy() 184 anyInt(), anyInt(), anyInt())).thenReturn(p); in testGetThreadPriorityInvalidPolicy() 193 anyInt(), anyInt(), anyInt())).thenReturn(p); in testGetThreadPriorityInvalidPriority() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/registration/ |
D | SourceEligibilityCheckerTest.java | 27 import static org.mockito.ArgumentMatchers.anyInt; 166 any(), anyInt(), any(), any(), anyInt(), anyLong(), anyLong())) in testIsAllowedToInsert_isAllowed() 169 any(), anyInt(), any(), any(), anyInt(), anyLong())) in testIsAllowedToInsert_isAllowed() 172 any(), anyInt(), any(), any(), anyLong(), anyLong())) in testIsAllowedToInsert_isAllowed() 189 any(), anyInt(), any(), any(), anyInt(), anyLong(), anyLong()); in testIsAllowedToInsert_isAllowed() 192 any(), anyInt(), any(), any(), anyInt(), anyLong()); in testIsAllowedToInsert_isAllowed() 195 any(), anyInt(), any(), any(), anyLong(), anyLong()); in testIsAllowedToInsert_isAllowed() 202 any(), anyInt(), any(), any(), anyInt(), anyLong(), anyLong())) in testIsAllowedToInsert_exceedsDestinationsPrivacyParam_isNotAllowed() 205 any(), anyInt(), any(), any(), anyInt(), anyLong())) in testIsAllowedToInsert_exceedsDestinationsPrivacyParam_isNotAllowed() 208 any(), anyInt(), any(), any(), anyLong(), anyLong())) in testIsAllowedToInsert_exceedsDestinationsPrivacyParam_isNotAllowed() [all …]
|
/packages/modules/Nfc/tests/cts/tests/src/android/nfc/tech/cts/ |
D | NdefFormatableTest.java | 21 import static org.mockito.Mockito.anyInt; 85 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormat() 86 when(mNfcTagMock.isNdef(anyInt())).thenReturn(true); in testFormat() 87 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormat() 91 verify(mNfcTagMock, times(1)).ndefWrite(anyInt(), mNdefMessageCaptor.capture()); in testFormat() 98 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly() 99 when(mNfcTagMock.isNdef(anyInt())).thenReturn(true); in testFormatReadOnly() 100 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly() 101 when(mNfcTagMock.ndefMakeReadOnly(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly() 105 verify(mNfcTagMock, times(1)).ndefWrite(anyInt(), mNdefMessageCaptor.capture()); in testFormatReadOnly() [all …]
|
D | NdefTest.java | 21 import static org.mockito.Mockito.anyInt; 153 when(mNfcTagMock.isNdef(anyInt())).thenReturn(true); in testGetNdefMessage() 154 when(mNfcTagMock.ndefRead(anyInt())).thenReturn(mNdefMessage); in testGetNdefMessage() 155 when(mNfcTagMock.isPresent(anyInt())).thenReturn(true); in testGetNdefMessage() 170 when(mNfcTagMock.isNdef(anyInt())).thenReturn(true); in testGetNdefMessage_notNdef() 171 when(mNfcTagMock.isPresent(anyInt())).thenReturn(true); in testGetNdefMessage_notNdef() 179 when(mNfcTagMock.isNdef(anyInt())).thenReturn(true); in testGetNdefMessage_notNdefNotPresent() 180 when(mNfcTagMock.isPresent(anyInt())).thenReturn(false); in testGetNdefMessage_notNdefNotPresent() 188 when(mNfcTagMock.isNdef(anyInt())).thenReturn(true); in testGetNdefMessage_noTagOnRead() 189 when(mNfcTagMock.ndefRead(anyInt())).thenReturn(null); in testGetNdefMessage_noTagOnRead() [all …]
|
D | MifareClassicTest.java | 22 import static org.mockito.Mockito.anyInt; 260 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testAuthenticateSectorWithKeyA() 264 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testAuthenticateSectorWithKeyA() 276 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testAuthenticateSectorWithKeyB() 280 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testAuthenticateSectorWithKeyB() 293 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testAuthenticateSectorWithKeyB_nullTransceive() 304 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn(null); in testAuthenticateSectorWithKeyB_ioException() 313 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testReadBlock() 317 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testReadBlock() 328 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testWriteBlock() [all …]
|
D | MifareUltralightTest.java | 22 import static org.mockito.Mockito.anyInt; 102 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testReadPages() 106 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testReadPages() 122 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testWritePage() 127 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testWritePage() 145 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testTransceieve() 149 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testTransceieve() 168 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 173 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout() 182 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() [all …]
|
D | NfcATest.java | 22 import static org.mockito.Mockito.anyInt; 96 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testTransceive() 101 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testTransceive() 121 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 125 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout() 134 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() 142 when(mNfcTagMock.getTimeout(anyInt())).thenReturn(250); in testGetTimeout() 150 when(mNfcTagMock.getTimeout(anyInt())).thenThrow(new RemoteException()); in testGetTimeout_serviceDead() 170 when(mNfcTagMock.isPresent(anyInt())).thenReturn(true); in testIsConnected_isConnected() 178 when(mNfcTagMock.isPresent(anyInt())).thenReturn(false); in testIsConnected_notConnected() [all …]
|
D | NfcFTest.java | 22 import static org.mockito.Mockito.anyInt; 95 when(mNfcTagMock.transceive(anyInt(), any(), anyBoolean())).thenReturn( in testTransceive() 100 verify(mNfcTagMock, times(1)).transceive(anyInt(), mTransceiveDataCaptor.capture(), in testTransceive() 120 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 124 verify(mNfcTagMock, times(1)).setTimeout(anyInt(), timeout.capture()); in testSetTimeout() 133 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() 141 when(mNfcTagMock.getTimeout(anyInt())).thenReturn(250); in testGetTimeout() 149 when(mNfcTagMock.getTimeout(anyInt())).thenThrow(new RemoteException()); in testGetTimeout_serviceDead() 169 when(mNfcTagMock.isPresent(anyInt())).thenReturn(true); in testIsConnected_isConnected() 177 when(mNfcTagMock.isPresent(anyInt())).thenReturn(false); in testIsConnected_notConnected() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | DppManagerTest.java | 64 import static org.mockito.Mockito.anyInt; 165 when(mWifiNative.removeDppUri(anyString(), anyInt())) in setUp() 169 when(mWifiNative.startDppEnrolleeInitiator(anyString(), anyInt(), anyInt())).thenReturn( in setUp() 173 when(mWifiNative.startDppConfiguratorInitiator(anyString(), anyInt(), anyInt(), anyString(), in setUp() 174 any(), any(), anyInt(), anyInt(), any())).thenReturn(true); in setUp() 183 anyString(), anyString(), anyInt())).thenReturn(mBootStrapInfo); in setUp() 186 when(mWifiNative.startDppEnrolleeResponder(anyString(), anyInt())).thenReturn(true); in setUp() 208 when(mWifiConfigManager.getConfiguredNetworkWithoutMasking(anyInt())).thenReturn(null); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 216 verify(mDppCallback, never()).onSuccess(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() 217 verify(mDppCallback, never()).onSuccessConfigReceived(anyInt()); in testStartDppAsConfiguratorInitiatorWithBadNetworkId() [all …]
|
D | DeviceConfigFacadeTest.java | 87 when(DeviceConfig.getInt(anyString(), anyString(), anyInt())) in setUp() 260 anyInt())).thenReturn(100); in testFieldUpdates() 262 anyInt())).thenReturn(0); in testFieldUpdates() 264 anyInt())).thenReturn(1000); in testFieldUpdates() 266 anyInt())).thenReturn(1500); in testFieldUpdates() 268 anyInt())).thenReturn(95); in testFieldUpdates() 270 anyInt())).thenReturn(80); in testFieldUpdates() 272 anyInt())).thenReturn(4000); in testFieldUpdates() 274 anyInt())).thenReturn(8000); in testFieldUpdates() 276 anyInt())).thenReturn(5000); in testFieldUpdates() [all …]
|
D | WifiConfigStoreTest.java | 252 when(mPackageManager.getNameForUid(anyInt())).thenReturn(TEST_CREATOR_NAME); in setupMocks() 271 when(WifiMigration.convertAndRetrieveSharedConfigStoreFile(anyInt())).thenReturn(null); in setupMocks() 272 when(WifiMigration.convertAndRetrieveUserConfigStoreFile(anyInt(), any())).thenReturn(null); in setupMocks() 315 verify(mWifiMetrics, never()).noteWifiConfigStoreWriteDuration(anyInt()); in testWriteWithNoStoreData() 337 verify(mWifiMetrics).noteWifiConfigStoreWriteDuration(anyInt()); in testForceWrite() 367 verify(mWifiMetrics, times(2)).noteWifiConfigStoreReadDuration(anyInt()); in testReadAfterWrite() 368 verify(mWifiMetrics).noteWifiConfigStoreWriteDuration(anyInt()); in testReadAfterWrite() 394 verify(sharedStoreData).deserializeData(eq(null), anyInt(), anyInt(), any()); in testReadWithNoSharedStoreFileAndUserStoreNotVisible() 396 verify(userStoreData, never()).deserializeData(any(), anyInt(), anyInt(), any()); in testReadWithNoSharedStoreFileAndUserStoreNotVisible() 423 verify(userStoreData).deserializeData(eq(null), anyInt(), anyInt(), any()); in testReadWithNoStoreFiles() [all …]
|
D | WifiServiceImplTest.java | 99 import static org.mockito.Mockito.anyInt; 581 when(mPackageManager.getPackageInfo(anyString(), anyInt())).thenReturn(mPackageInfo); in setUp() 582 when(mPackageManager.checkSignatures(anyInt(), anyInt())) in setUp() 597 when(mContext.createContextAsUser(eq(UserHandle.CURRENT), anyInt())) in setUp() 646 when(mClientModeManager.syncStartSubscriptionProvisioning(anyInt(), in setUp() 653 anyInt(), anyInt())).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 655 anyInt(), anyInt())).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 657 anyInt(), anyInt())).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 659 anyInt(), anyInt())).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 660 when(mScanRequestProxy.startScan(anyInt(), anyString())).thenReturn(true); in setUp() [all …]
|
/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/property/ |
D | CarPropertyEventCallbackControllerUnitTest.java | 22 import static org.mockito.ArgumentMatchers.anyInt; 203 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt()); in testOnEvent_changeEvent_doesNothingIfNoPropertiesAdded() 204 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt(), anyInt()); in testOnEvent_changeEvent_doesNothingIfNoPropertiesAdded() 216 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt()); in testOnEvent_changeEvent_forwardsToCallback() 217 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt(), anyInt()); in testOnEvent_changeEvent_forwardsToCallback() 235 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt()); in testOnEvent_changeEvent_forwardsMultipleEvents() 236 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt(), anyInt()); in testOnEvent_changeEvent_forwardsMultipleEvents() 251 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt()); in testOnEvent_changeEvent_skipsStaleCarPropertyValues() 252 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt(), anyInt()); in testOnEvent_changeEvent_skipsStaleCarPropertyValues() 268 verify(mCarPropertyEventCallback, never()).onErrorEvent(anyInt(), anyInt()); in testOnEvent_changeEvent_skipsCarPropertyValuesWithNonZeroUpdateRate() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | ConnectivityManagerTest.java | 53 import static org.mockito.Mockito.anyInt; 245 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRelease() 246 anyInt(), anyInt(), any(), nullable(String.class), anyInt())).thenReturn(request); in testCallbackRelease() 260 verify(callback, after(SHORT_TIMEOUT_MS).never()).onLosing(any(), anyInt()); in testCallbackRelease() 274 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling() 275 anyInt(), anyInt(), any(), nullable(String.class), anyInt())).thenReturn(req1); in testCallbackRecycling() 289 verify(callback, after(SHORT_TIMEOUT_MS).never()).onLosing(any(), anyInt()); in testCallbackRecycling() 292 when(mService.requestNetwork(anyInt(), any(), anyInt(), captor.capture(), anyInt(), any(), in testCallbackRecycling() 293 anyInt(), anyInt(), any(), nullable(String.class), anyInt())).thenReturn(req2); in testCallbackRecycling() 316 when(mService.requestNetwork(anyInt(), any(), anyInt(), any(), anyInt(), any(), anyInt(), in noDoubleCallbackRegistration() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/access/ |
D | ForegroundEnforcementAccessResolverTest.java | 28 import static org.mockito.ArgumentMatchers.anyInt; 62 .assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_flagEnforced_assertCallerForeground() 73 verify(mAppImportanceFilter, never()).assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_flagNotEnforced_dontAssertCallerForeground() 79 ExtendedMockito.doReturn(false).when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerNotSandbox_assertCallerForeground() 88 .assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_callerNotSandbox_assertCallerForeground() 94 ExtendedMockito.doReturn(true).when(() -> ProcessCompatUtils.isSdkSandboxUid(anyInt())); in testIsAllowed_callerIsSandbox_dontAssertCallerForeground() 102 verify(mAppImportanceFilter, never()).assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_callerIsSandbox_dontAssertCallerForeground() 110 .assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_isForeground_returnTrue() 121 .assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_isForeground_returnTrue() 129 .assertCallerIsInForeground(anyInt(), anyInt(), any()); in testIsAllowed_isNotForeground_returnFalse() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryOptimizeUtilsTest.java | 28 import static org.mockito.Mockito.anyInt; 105 when(mMockBackend.isAllowlisted(anyString(), anyInt())).thenReturn(false); in testGetAppOptimizationMode_returnRestricted() 106 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_returnRestricted() 114 when(mMockBackend.isAllowlisted(anyString(), anyInt())).thenReturn(true); in testGetAppOptimizationMode_returnUnrestricted() 115 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_returnUnrestricted() 123 when(mMockBackend.isAllowlisted(anyString(), anyInt())).thenReturn(false); in testGetAppOptimizationMode_returnOptimized() 124 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_returnOptimized() 132 when(mMockBackend.isAllowlisted(anyString(), anyInt())).thenReturn(true); in testGetAppOptimizationMode_unknownMode_returnOptimized() 133 when(mMockAppOpsManager.checkOpNoThrow(anyInt(), anyInt(), anyString())) in testGetAppOptimizationMode_unknownMode_returnOptimized() 141 when(mMockBackend.isAllowlisted(anyString(), anyInt())).thenReturn(true); in testIsSystemOrDefaultApp_isSystemOrDefaultApp_returnTrue() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioPolicyVolumeCallbackTest.java | 37 import static org.mockito.ArgumentMatchers.anyInt; 108 when(mMockVolumeInfoWrapper.getVolumeGroupIdForAudioZone(anyInt())) in setUp() 110 when(mMockVolumeInfoWrapper.getGroupMaxVolume(anyInt(), anyInt())) in setUp() 112 when(mMockVolumeInfoWrapper.getGroupMinVolume(anyInt(), anyInt())) in setUp() 246 .onGroupVolumeChange(anyInt(), anyInt(), anyInt(), anyInt()); in onVolumeAdjustment_withAdjustRaiseForInvalidGroup() 260 .onGroupVolumeChange(anyInt(), anyInt(), anyInt(), anyInt()); in onVolumeAdjustment_withAdjustLowerForInvalidGroup() 274 .onMuteChange(anyBoolean(), anyInt(), anyInt(), anyInt()); in onVolumeAdjustment_withAdjustMuteForInvalidGroup() 299 .onGroupVolumeChange(anyInt(), anyInt(), anyInt(), anyInt()); in onVolumeAdjustment_withAdjustSame_doesNothing() 381 when(mMockOemVolumeService.getSuggestedGroupForVolumeChange(any(), anyInt())) in onVolumeAdjustment_withOemVolumeService_withEmptyChange() 386 verify(mVolumeCallbackInternal, never()).onMuteChange(anyBoolean(), anyInt(), anyInt(), in onVolumeAdjustment_withOemVolumeService_withEmptyChange() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/ |
D | ChangeScreenLockPreferenceControllerTest.java | 21 import static org.mockito.ArgumentMatchers.anyInt; 105 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_shouldNotShowGear() 106 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in updateState_notSecureDisableKeyguard_shouldNotShowGear() 116 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureDisableKeyguard_summaryShouldShowOff() 117 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(true); in updateState_notSecureDisableKeyguard_summaryShouldShowOff() 128 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear() 129 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_shouldNotShowGear() 139 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe() 140 when(mLockPatternUtils.isLockScreenDisabled(anyInt())).thenReturn(false); in updateState_notSecureWithSwipeKeyguard_summaryShouldShowSwipe() 151 when(mLockPatternUtils.isSecure(anyInt())).thenReturn(true); in updateState_secureWithPinKeyguard_shouldShowGear() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | ImsStateCallbackControllerTest.java | 36 import static org.mockito.ArgumentMatchers.anyInt; 500 verify(mCallback0, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 501 verify(mCallback1, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 502 verify(mCallback2, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 509 verify(mCallback0, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 510 verify(mCallback1, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 511 verify(mCallback2, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 523 verify(mCallback0, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 524 verify(mCallback1, times(2)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() 525 verify(mCallback2, times(1)).onUnavailable(anyInt()); in testCarrierConfigurationChanged() [all …]
|
/packages/modules/AppSearch/testing/mockingservicestests/src/com/android/server/appsearch/stats/ |
D | MockingIsolatedStorageServiceLoggerTest.java | 58 Mockito.anyInt(), in testLogStats_start() 59 Mockito.anyInt(), in testLogStats_start() 61 Mockito.anyInt(), in testLogStats_start() 62 Mockito.anyInt(), in testLogStats_start() 63 Mockito.anyInt())); in testLogStats_start() 81 Mockito.anyInt(), in testLogStats_ready() 82 Mockito.anyInt(), in testLogStats_ready() 84 Mockito.anyInt(), in testLogStats_ready() 85 Mockito.anyInt(), in testLogStats_ready() 86 Mockito.anyInt())); in testLogStats_ready() [all …]
|
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/ |
D | AdServicesJobServiceTestCase.java | 22 import static org.mockito.ArgumentMatchers.anyInt; 65 verify(logger, never()).persistJobExecutionData(anyInt(), anyLong()); in verifyLoggingNotHappened() 66 verify(logger, never()).logExecutionStats(anyInt(), anyLong(), anyInt(), anyInt()); in verifyLoggingNotHappened() 75 verify(logger).recordJobSkipped(anyInt(), anyInt()); in verifyBackgroundJobsSkipLogged() 97 verify(logger).recordOnStopJob(any(), anyInt(), anyBoolean()); in verifyOnStopJobLogged() 115 .recordOnStartJob(anyInt()); in syncPersistJobExecutionData() 142 .recordOnStopJob(any(), anyInt(), anyBoolean()); in syncLogExecutionStats() 150 .recordJobSkipped(anyInt(), anyInt()); in syncLogExecutionStats() 158 .recordJobFinished(anyInt(), anyBoolean(), anyBoolean()); in syncLogExecutionStats() 171 verify(logger).recordOnStartJob(anyInt()); in verifyOnStartJobLogged() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/ |
D | UserPickerControllerTest.java | 29 import static org.mockito.ArgumentMatchers.anyInt; 171 .startUserForDisplay(anyInt(), anyInt(), anyInt(), anyBoolean()); in loginItself_changeUserState_finishUserPicker() 178 doReturn(snackbar).when(() -> Snackbar.make(any(View.class), any(String.class), anyInt())); in checkSnackbar_loginDriverUser_showSnackbar() 185 .startUserForDisplay(anyInt(), anyInt(), anyInt(), anyBoolean()); in checkSnackbar_loginDriverUser_showSnackbar() 197 .startUserForDisplay(anyInt(), eq(USER_ID_REAR), anyInt(), anyBoolean()); in checkSwitchUser_changeUserState_switchUser() 202 doReturn(true).when(mMockUserEventManager).stopUserUnchecked(anyInt(), anyInt()); in checkChangeUser_changeUserState_changeUser() 210 .startUserForDisplay(anyInt(), eq(USER_ID_REAR), anyInt(), anyBoolean()); in checkChangeUser_changeUserState_changeUser() 215 doReturn(true).when(mMockUserEventManager).stopUserUnchecked(anyInt(), anyInt()); in checkLoginUser_logoutState_startUser() 221 .stopUserUnchecked(anyInt(), anyInt()); in checkLoginUser_logoutState_startUser() 223 .startUserForDisplay(anyInt(), eq(USER_ID_REAR), anyInt(), anyBoolean()); in checkLoginUser_logoutState_startUser() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/toast/ |
D | CarToastUITest.java | 20 import static org.mockito.ArgumentMatchers.anyInt; 100 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt())) in setUp() 121 anyInt(), anyInt()); in showToast_notSystemNotPrivilegedNotPlatformKey_createToastNotCalled() 134 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt()); in showToast_notSystemNotPrivilegedIsPlatformKey_createToastCalled() 147 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(),anyInt()); in showToast_notSystemIsPrivilegedNotPlatformKey_createToastNotCalled() 160 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt()); in showToast_notSystemIsPrivilegedIsPlatformKey_createToastCalled() 173 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt()); in showToast_isSystemNotPrivilegedNotPlatformKey_createToastNotCalled() 192 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt()); in showToast_isSystemNotPrivilegedNotPlatformKeyAllowListed_createToastCalled() 205 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt()); in showToast_isSystemNotPrivilegedIsPlatformKey_createToastCalled() 218 any(), any(), eq(TEXT), eq(PACKAGE_NAME), anyInt(), anyInt()); in showToast_isSystemIsPrivilegedNotPlatformKey_createToastCalled() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/ |
D | CobaltOperationLoggerImplTest.java | 29 import static org.mockito.ArgumentMatchers.anyInt; 57 doNothing().when(() -> AdServicesStatsLog.write(anyInt(), anyInt(), anyInt(), anyInt())); in testLogStringBufferMaxExceeded_success() 88 doNothing().when(() -> AdServicesStatsLog.write(anyInt(), anyInt(), anyInt(), anyInt())); in testLogEventVectorBufferMaxExceeded_success() 119 doNothing().when(() -> AdServicesStatsLog.write(anyInt(), anyInt(), anyInt(), anyInt())); in testLogMaxValueExceeded_success() 150 doNothing().when(() -> AdServicesStatsLog.write(anyInt(), anyInt())); in testLogUploadFailure_success() 179 doNothing().when(() -> AdServicesStatsLog.write(anyInt(), anyInt())); in testLogUploadSuccess_success()
|