/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/ |
D | InputManagerMockHelper.java | 22 import static org.mockito.Mockito.doAnswer; 66 doAnswer(this::handleNativeOpenInputDevice).when(mNativeWrapperMock).openUinputMouse( in InputManagerMockHelper() 68 doAnswer(this::handleNativeOpenInputDevice).when(mNativeWrapperMock).openUinputDpad( in InputManagerMockHelper() 70 doAnswer(this::handleNativeOpenInputDevice).when(mNativeWrapperMock).openUinputKeyboard( in InputManagerMockHelper() 72 doAnswer(this::handleNativeOpenInputDevice).when(mNativeWrapperMock).openUinputTouchscreen( in InputManagerMockHelper() 75 doAnswer(inv -> { in InputManagerMockHelper() 80 doAnswer(inv -> mDevices.get(inv.getArgument(0))) in InputManagerMockHelper() 82 doAnswer(inv -> mUniqueIdAssociationByPort.put(inv.getArgument(0), in InputManagerMockHelper() 85 doAnswer(inv -> mUniqueIdAssociationByPort.remove(inv.getArgument(0))).when( in InputManagerMockHelper()
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
D | TestableDeviceConfigAndOtherStaticMocksTest.java | 111 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 115 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 119 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 123 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 149 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 153 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 157 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 161 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
|
D | MultipleStaticMocksTest.java | 102 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 106 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 110 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 114 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 140 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 144 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 148 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors() 152 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationProcessorTest.java | 33 import static org.mockito.Mockito.doAnswer; 176 doAnswer((invocation) -> { in getMagnificationRegion_fullscreenModeNotRegistered_shouldRegisterThenUnregister() method 194 doAnswer((invocation) -> { in getCurrentMagnificationRegion_windowModeActivated_returnRegion() method 210 doAnswer((invocation) -> { in getCurrentMagnificationRegion_fullscreenModeActivated_returnRegion() method 514 doAnswer(invocation -> mScale).when(mScreenMagnificationController).getScale( in stubMethods() 516 doAnswer(invocation -> mCenterX).when(mScreenMagnificationController).getCenterX( in stubMethods() 518 doAnswer(invocation -> mCenterY).when(mScreenMagnificationController).getCenterY( in stubMethods() 520 doAnswer(invocation -> mIsRegistered).when(mScreenMagnificationController).isRegistered( in stubMethods() 522 doAnswer(invocation -> mIsActivated).when(mScreenMagnificationController).isActivated( in stubMethods() 532 doAnswer(enableMagnificationStubAnswer).when( in stubMethods() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRulesTest.java | 24 import static org.mockito.Mockito.doAnswer; 75 doAnswer(new Answer<Void>() { in testHelper() 86 doAnswer(new Answer<Void>() { in testHelper() 99 doAnswer(new Answer<Void>() { in testHelper() 309 doAnswer(new Answer<Void>() { in testAID_OnlyARAM() 328 doAnswer(new Answer<Void>() { in testAID_OnlyARAM() 341 doAnswer(new Answer<Void>() { in testAID_OnlyARAM() 369 doAnswer(new Answer<Void>() { in testAID_OnlyARAD() 389 doAnswer(new Answer<Void>() { in testAID_OnlyARAD() 402 doAnswer(new Answer<Void>() { in testAID_OnlyARAD() [all …]
|
D | IccFileHandlerTest.java | 28 import static org.mockito.Mockito.doAnswer; 101 doAnswer( in loadEFLinearFixed_WithNullPath() 120 doAnswer( in loadEFLinearFixed() 139 doAnswer( in loadEFImgLinearFixed() 158 doAnswer( in getEFLinearRecordSize_WithNullPath() 177 doAnswer( in getEFLinearRecordSize() 196 doAnswer( in getEFTransparentRecordSize() 217 doAnswer( in loadEFLinearFixedAll_FileNotFoundAtGetRecord() 242 doAnswer( in loadEFLinearFixedAll_FileNotFoundAtReadRecord() 273 doAnswer( in loadEFLinearFixedAll_ExceptionAtGetRecord() [all …]
|
D | IccPhoneBookInterfaceManagerTest.java | 24 import static org.mockito.Mockito.doAnswer; 81 doAnswer(new Answer<Void>() { in setUp() 92 doAnswer(invocation -> { in setUp() 126 doAnswer(new Answer<Void>() { in testAdnEFLoadWithFailure() 151 doAnswer(invocation -> { in testAdnEFLoadByPbCacheWithFailure() 169 doAnswer(new Answer<Void>() { in testUpdateAdnRecord() 202 doAnswer(invocation -> { in testUpdateAdnRecordByPbCache()
|
D | SIMRecordsTest.java | 27 import static org.mockito.Mockito.doAnswer; 179 doAnswer( in setUpSetForbiddenPlmnsTests() 188 doAnswer( in setUpSetForbiddenPlmnsTests() 201 doAnswer( in testGetForbiddenPlmns() 224 doAnswer( in testGetForbiddenPlmnsException() 248 doAnswer( in testGetForbiddenPlmnsNull() 269 doAnswer( in testGetForbiddenPlmnsEmptyList() 292 doAnswer( in testGetForbiddenPlmnsInvalidLength() 378 doAnswer( in testSetSmssTpmrValue() 399 doAnswer( in testSetSmssTpmrNegativevalue() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | MockExecutorHandler.kt | 26 import org.mockito.Mockito.doAnswer in <lambda>() 42 doAnswer { invocation: InvocationOnMock -> in <lambda>() 49 doAnswer { invocation: InvocationOnMock -> in <lambda>() 69 doAnswer { invocation: InvocationOnMock -> in <lambda>() 89 doAnswer { invocation: InvocationOnMock -> in <lambda>()
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | CrashRecoveryTest.java | 21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 156 doAnswer((Answer<Void>) invocationOnMock -> { in setUp() 165 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp() 174 doAnswer((Answer<Long>) invocationOnMock -> { in setUp() 183 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp() 445 doAnswer((Answer<Boolean>) invocationOnMock -> { in mockCrashRecoveryProperties() 450 doAnswer((Answer<Void>) invocationOnMock -> { in mockCrashRecoveryProperties() 457 doAnswer((Answer<Boolean>) invocationOnMock -> { in mockCrashRecoveryProperties() 462 doAnswer((Answer<Void>) invocationOnMock -> { in mockCrashRecoveryProperties() 468 doAnswer((Answer<Long>) invocationOnMock -> { in mockCrashRecoveryProperties() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 21 import static org.mockito.Mockito.doAnswer; 133 doAnswer((invocation) -> mHearingAidProfile). in setUp() 135 doAnswer((invocation) -> mCsipSetCoordinatorProfile) in setUp() 166 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice() 167 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice() 179 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice() 180 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice() 192 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 193 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 207 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PhonePipKeepClearAlgorithmTest.java | 22 import static org.mockito.Mockito.doAnswer; 113 doAnswer(invocation -> { in adjust_withCollidingRestrictedKeepClearArea_moveBounds() 131 doAnswer(invocation -> { in adjust_withNonCollidingRestrictedKeepClearArea_boundsUnchanged() 150 doAnswer(invocation -> { in adjust_withCollidingRestrictedKeepClearArea_whileStashed_boundsUnchanged() 169 doAnswer(invocation -> { in adjust_withNonCollidingRestrictedKeepClearArea_whileStashed_boundsUnchanged() 188 doAnswer(invocation -> { in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity() 208 doAnswer(invocation -> { in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity() 230 doAnswer(invocation -> { in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity() 252 doAnswer(invocation -> { in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity() 273 doAnswer(invocation -> { in adjust_whileStashed_aboveDisplayBounds_alignsToBottomInset() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/ |
D | FaceInternalEnumerateClientTest.java | 24 import static org.mockito.Mockito.doAnswer; 95 doAnswer(invocation -> { in setUp() 103 doAnswer(invocation -> { in internalCleanupClient_noTemplatesRemaining() 119 doAnswer(invocation -> { in internalCleanupClient_nullIdentifier_remainingOne() 135 doAnswer(invocation -> { in internalCleanupClient_nullIdentifier_noTemplatesRemaining() 152 doAnswer(invocation -> { in internalCleanupClient_templatesRemaining() 170 doAnswer(invocation -> { in internalCleanupClient_differentIdentifier_noTemplatesRemaining()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | CpuPowerCalculatorTest.java | 26 import static org.mockito.Mockito.doAnswer; 135 doAnswer(invocation -> { in testTimerBasedModel() 147 doAnswer(invocation -> { in testTimerBasedModel() 156 doAnswer(invocation -> { in testTimerBasedModel() 164 doAnswer(invocation -> { in testTimerBasedModel() 172 doAnswer(invocation -> { in testTimerBasedModel() 235 doAnswer(invocation -> { in testMeasuredEnergyBasedModel() 244 doAnswer(invocation -> { in testMeasuredEnergyBasedModel() 318 doAnswer(invocation -> { in testTimerBasedModel_byProcessState() 333 doAnswer(invocation -> { in testTimerBasedModel_byProcessState() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | LetterboxBackgroundProviderTest.kt | 39 import org.mockito.Mockito.doAnswer in <lambda>() 70 doAnswer { invocation -> in <lambda>() 72 return@doAnswer Unit in <lambda>() 76 doAnswer { in <lambda>() 78 return@doAnswer Unit in <lambda>()
|
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/ |
D | RemoteProvisioningRegistrationTest.java | 28 import static org.mockito.Mockito.doAnswer; 101 doAnswer( in getKeySuccess() 117 doAnswer( in getKeyHandlesArbitraryException() 145 doAnswer( in getKeyMapsRkpErrorsCorrectly() 163 doAnswer( in getKeyCancelDuringProxyOperation() 194 doAnswer( in getKeyRejectsDuplicateCallback() 212 doAnswer( in getKeyCancelAfterCompleteFails() 245 doAnswer( in storeUpgradedKeySuccess() 262 doAnswer( in storeUpgradedKeyFails() 296 doAnswer( in storeUpgradedKeyDuplicateCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | AdminSecondaryLockScreenControllerTest.java | 25 import static org.mockito.Mockito.doAnswer; 125 doAnswer(invocation -> { in testShow() 139 doAnswer(answerVoid(Runnable::run)).when(mHandler).post(any(Runnable.class)); in testShow_dismissedByCallback() 140 doAnswer(invocation -> { in testShow_dismissedByCallback() 154 doAnswer(invocation -> { in testHide() 189 doAnswer(answerVoid(Runnable::run)).when(mHandler) in testDismissed_onCreateKeyguardSurface_timeout()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MockMagnificationConnection.java | 24 import static org.mockito.Mockito.doAnswer; 76 doAnswer((invocation) -> { in MockMagnificationConnection() method 82 doAnswer((invocation) -> { in MockMagnificationConnection() method 96 doAnswer((invocation) -> { in stubEnableWindowMagnification() method 117 doAnswer((invocation) -> { in stubDisableWindowMagnification() method
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandlerTests.java | 24 import static org.mockito.Mockito.doAnswer; 104 doAnswer((InvocationOnMock invocation) -> { in setUp() method 112 doAnswer((InvocationOnMock invocation) -> { in setUp() method 126 doAnswer((InvocationOnMock invocation) -> { in setUp() method 146 doAnswer((InvocationOnMock invocation) -> { in setUp() method
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | BackupManagerServiceTestUtils.java | 22 import static org.mockito.Mockito.doAnswer; 129 doAnswer(backupEnabled.getter).when(backupManagerService).isBackupEnabled(); in setUpBackupManagerServiceBasics() 130 doAnswer(backupEnabled.setter).when(backupManagerService).setBackupEnabled(anyBoolean()); in setUpBackupManagerServiceBasics() 133 doAnswer(backupEnabled.getter).when(backupManagerService).isBackupRunning(); in setUpBackupManagerServiceBasics() 134 doAnswer(backupRunning.setter).when(backupManagerService).setBackupRunning(anyBoolean()); in setUpBackupManagerServiceBasics()
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/shadows/ |
D | ShadowCar.java | 19 import static org.mockito.Mockito.doAnswer; 54 doAnswer(new Answer<Void>() { in createCar() 62 doAnswer(new Answer<Void>() { in createCar()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsStorageTestable.java | 20 import static org.mockito.Mockito.doAnswer; 44 doAnswer(new Answer<Void>() { in LockSettingsStorageTestable() 59 doAnswer(new Answer<byte[]>() { in LockSettingsStorageTestable()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/ |
D | LogicalChannelMocker.java | 23 import static org.mockito.Mockito.doAnswer; 52 doAnswer((Answer<Void>) invocation -> { in mockOpenLogicalChannelResponse() 69 doAnswer(new Answer() { in mockSendToLogicalChannel() 105 doAnswer((Answer<Void>) invocation -> { in mockCloseLogicalChannel()
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/ |
D | TestableDeviceConfig.java | 19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 85 doAnswer((Answer<Void>) invocationOnMock -> { in setUpMockBehaviors() 97 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUpMockBehaviors() 108 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUpMockBehaviors() 116 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUpMockBehaviors() 130 doAnswer((Answer<String>) invocationOnMock -> { in setUpMockBehaviors() 136 doAnswer((Answer<Properties>) invocationOnMock -> { in setUpMockBehaviors()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | RescuePartyTest.java | 24 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer; 167 doAnswer((Answer<Void>) invocationOnMock -> { in setUp() 176 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp() 185 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp() 194 doAnswer((Answer<Long>) invocationOnMock -> { in setUp() 204 doAnswer((Answer<Boolean>) invocationOnMock -> true) in setUp() 207 doAnswer((Answer<Void>) invocationOnMock -> null) in setUp() 209 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp() 221 doAnswer((Answer<PackageWatchdog>) invocationOnMock -> mMockPackageWatchdog) in setUp() 1092 doAnswer((Answer<Boolean>) invocationOnMock -> { in mockCrashRecoveryProperties() [all …]
|