/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRulesTest.java | 42 import org.mockito.invocation.InvocationOnMock; 77 public Void answer(InvocationOnMock invocation) throws Throwable { in testHelper() 78 Message message = (Message) invocation.getArguments()[2]; in testHelper() 88 public Void answer(InvocationOnMock invocation) throws Throwable { in testHelper() 89 Message message = (Message) invocation.getArguments()[7]; in testHelper() 101 public Void answer(InvocationOnMock invocation) throws Throwable { in testHelper() 102 Message message = (Message) invocation.getArguments()[1]; in testHelper() 311 public Void answer(InvocationOnMock invocation) throws Throwable { in testAID_OnlyARAM() 312 String aid = (String) invocation.getArguments()[0]; in testAID_OnlyARAM() 313 Message message = (Message) invocation.getArguments()[2]; in testAID_OnlyARAM() [all …]
|
D | IccPhoneBookInterfaceManagerTest.java | 41 import org.mockito.invocation.InvocationOnMock; 82 public Void answer(InvocationOnMock invocation) throws Throwable { in setUp() 83 Message response = (Message) invocation.getArguments()[2]; in setUp() 91 doAnswer(invocation -> { in setUp() 92 Message response = (Message) invocation.getArguments()[0]; in setUp() 127 public Void answer(InvocationOnMock invocation) throws Throwable { in testAdnEFLoadWithFailure() 128 Message response = (Message) invocation.getArguments()[2]; in testAdnEFLoadWithFailure() 150 doAnswer(invocation -> { in testAdnEFLoadByPbCacheWithFailure() 151 Message response = (Message) invocation.getArguments()[0]; in testAdnEFLoadByPbCacheWithFailure() 170 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAdnRecord() [all …]
|
D | SIMRecordsTest.java | 172 invocation -> { in setUpSetForbiddenPlmnsTests() 173 Message response = invocation.getArgument(1); in setUpSetForbiddenPlmnsTests() 181 invocation -> { in setUpSetForbiddenPlmnsTests() 182 Message response = invocation.getArgument(2); in setUpSetForbiddenPlmnsTests() 194 invocation -> { in testGetForbiddenPlmns() 195 Message response = invocation.getArgument(1); in testGetForbiddenPlmns() 217 invocation -> { in testGetForbiddenPlmnsException() 218 Message response = invocation.getArgument(1); in testGetForbiddenPlmnsException() 241 invocation -> { in testGetForbiddenPlmnsNull() 242 Message response = invocation.getArgument(1); in testGetForbiddenPlmnsNull() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | CpuPowerCalculatorTest.java | 127 doAnswer(invocation -> { in testTimerBasedModel() 128 final KernelCpuUidTimeReader.Callback<Long> callback = invocation.getArgument(0); in testTimerBasedModel() 139 doAnswer(invocation -> { in testTimerBasedModel() 140 final KernelCpuUidTimeReader.Callback<long[]> callback = invocation.getArgument(1); in testTimerBasedModel() 148 doAnswer(invocation -> { in testTimerBasedModel() 149 final KernelCpuUidTimeReader.Callback<Long> callback = invocation.getArgument(0); in testTimerBasedModel() 156 doAnswer(invocation -> { in testTimerBasedModel() 157 final KernelCpuUidTimeReader.Callback<long[]> callback = invocation.getArgument(1); in testTimerBasedModel() 164 doAnswer(invocation -> { in testTimerBasedModel() 165 final KernelCpuUidTimeReader.Callback<long[]> callback = invocation.getArgument(1); in testTimerBasedModel() [all …]
|
D | BatteryStatsCpuTimesTest.java | 265 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked() 267 invocation.getArgument(1); in testReadKernelUidCpuTimesLocked() 300 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked() 302 invocation.getArgument(1); in testReadKernelUidCpuTimesLocked() 340 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid() 342 invocation.getArgument(1); in testReadKernelUidCpuTimesLocked_isolatedUid() 375 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid() 377 invocation.getArgument(1); in testReadKernelUidCpuTimesLocked_isolatedUid() 429 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_invalidUid() 431 invocation.getArgument(1); in testReadKernelUidCpuTimesLocked_invalidUid() [all …]
|
D | SystemServicePowerCalculatorTest.java | 175 doAnswer(invocation -> { in prepareBatteryStats() 176 final KernelCpuUidTimeReader.Callback<Long> callback = invocation.getArgument(0); in prepareBatteryStats() 188 doAnswer(invocation -> { in prepareBatteryStats() 189 final KernelCpuUidTimeReader.Callback<long[]> callback = invocation.getArgument(1); in prepareBatteryStats() 197 doAnswer(invocation -> { in prepareBatteryStats() 198 final KernelCpuUidTimeReader.Callback<Long> callback = invocation.getArgument(0); in prepareBatteryStats() 206 doAnswer(invocation -> { in prepareBatteryStats() 207 final KernelCpuUidTimeReader.Callback<long[]> callback = invocation.getArgument(1); in prepareBatteryStats() 217 doAnswer(invocation -> { in prepareBatteryStats() 218 final KernelCpuUidTimeReader.Callback<long[]> callback = invocation.getArgument(1); in prepareBatteryStats()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MockWindowMagnificationConnection.java | 76 doAnswer((invocation) -> { in MockWindowMagnificationConnection() argument 77 mIMirrorWindowCallback = invocation.getArgument(0); in MockWindowMagnificationConnection() 82 doAnswer((invocation) -> { in MockWindowMagnificationConnection() argument 83 mDeathRecipient = invocation.getArgument(0); in MockWindowMagnificationConnection() 96 doAnswer((invocation) -> { in stubEnableWindowMagnification() argument 97 final int displayId = invocation.getArgument(0); in stubEnableWindowMagnification() 102 final float scale = invocation.getArgument(1); in stubEnableWindowMagnification() 104 computeMirrorWindowFrame(invocation.getArgument(2), invocation.getArgument(3)); in stubEnableWindowMagnification() 105 setAnimationCallback(invocation.getArgument(6)); in stubEnableWindowMagnification() 117 doAnswer((invocation) -> { in stubDisableWindowMagnification() argument [all …]
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | SourceTransformerTest.kt | 180 .thenAnswer { invocation -> in <lambda>() method 181 val visitor = invocation.arguments[1] as ProtoLogCallVisitor in <lambda>() 186 invocation.arguments[0] as CompilationUnit in <lambda>() 217 .thenAnswer { invocation -> in <lambda>() method 218 val visitor = invocation.arguments[1] as ProtoLogCallVisitor in <lambda>() 228 invocation.arguments[0] as CompilationUnit in <lambda>() 259 .thenAnswer { invocation -> in <lambda>() method 260 val visitor = invocation.arguments[1] as ProtoLogCallVisitor in <lambda>() 266 invocation.arguments[0] as CompilationUnit in <lambda>() 297 .thenAnswer { invocation -> in <lambda>() method [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/health/ |
D | HealthServiceWrapperTest.java | 40 import org.mockito.invocation.InvocationOnMock; 116 (invocation) -> { 117 sendAidlRegCallback(invocation, mMockedAidlHal); 118 sendAidlRegCallback(invocation, mMockedAidlHal); 119 sendAidlRegCallback(invocation, mMockedAidlHal2); 132 (invocation) -> { 135 sendNotification(invocation, true); 136 sendNotification(invocation, true); 137 sendNotification(invocation, false); 166 private static void sendNotification(InvocationOnMock invocation, boolean preexisting) [all …]
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/ |
D | TestableDeviceConfig.java | 189 invocation -> { in getProperties() 190 String key = invocation.getArgument(0); in getProperties() 191 boolean defaultValue = invocation.getArgument(1); in getProperties() 201 invocation -> { in getProperties() 202 String key = invocation.getArgument(0); in getProperties() 203 float defaultValue = invocation.getArgument(1); in getProperties() 217 invocation -> { in getProperties() 218 String key = invocation.getArgument(0); in getProperties() 219 int defaultValue = invocation.getArgument(1); in getProperties() 233 invocation -> { in getProperties() [all …]
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/testing/ |
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()
|
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationProcessorTest.java | 176 doAnswer((invocation) -> { in getMagnificationRegion_fullscreenModeNotRegistered_shouldRegisterThenUnregister() argument 177 ((Region) invocation.getArguments()[1]).set(region); in getMagnificationRegion_fullscreenModeNotRegistered_shouldRegisterThenUnregister() 194 doAnswer((invocation) -> { in getCurrentMagnificationRegion_windowModeActivated_returnRegion() argument 195 ((Region) invocation.getArguments()[1]).set(region); in getCurrentMagnificationRegion_windowModeActivated_returnRegion() 210 doAnswer((invocation) -> { in getCurrentMagnificationRegion_fullscreenModeActivated_returnRegion() argument 211 ((Region) invocation.getArguments()[1]).set(region); in getCurrentMagnificationRegion_fullscreenModeActivated_returnRegion() 480 doAnswer(invocation -> mScale).when(mScreenMagnificationController).getScale( in stubMethods() 482 doAnswer(invocation -> mCenterX).when(mScreenMagnificationController).getCenterX( in stubMethods() 484 doAnswer(invocation -> mCenterY).when(mScreenMagnificationController).getCenterY( in stubMethods() 486 doAnswer(invocation -> mIsRegistered).when(mScreenMagnificationController).isRegistered( in stubMethods() [all …]
|
/frameworks/base/tests/utils/testutils/java/android/app/test/ |
D | MockAnswerUtil.java | 19 import org.mockito.invocation.InvocationOnMock; 38 public final Object answer(InvocationOnMock invocation) throws Throwable { in answer() argument 39 Method method = invocation.getMethod(); in answer() 47 Object[] args = invocation.getArguments(); in answer()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/ |
D | MockUserSwitcherControllerWrapper.kt | 49 whenever(controller.addUserSwitchCallback(any())).then { invocation -> in <lambda>() method 50 callbacks.add(invocation.arguments.first() as UserSwitchCallback) in <lambda>() 53 whenever(controller.removeUserSwitchCallback(any())).then { invocation -> in <lambda>() method 54 callbacks.remove(invocation.arguments.first() as UserSwitchCallback) in <lambda>()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 131 doAnswer((invocation) -> mHearingAidProfile). in setUp() 133 doAnswer((invocation) -> mCsipSetCoordinatorProfile) in setUp() 164 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice() 165 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice() 177 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice() 178 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice() 190 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 191 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 205 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() 206 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
D | UserTrackerImplTest.kt | 76 `when`(context.createContextAsUser(any(), anyInt())).thenAnswer { invocation -> in <lambda>() method 77 val user = invocation.getArgument<UserHandle>(0) in <lambda>() 82 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>() method 83 val info = UserInfo(invocation.getArgument<Int>(0), "", UserInfo.FLAG_FULL) in <lambda>() 190 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>() method 191 val id = invocation.getArgument<Int>(0) in <lambda>() 215 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>() method 216 val id = invocation.getArgument<Int>(0) in <lambda>() 240 `when`(userManager.getProfiles(anyInt())).thenAnswer { invocation -> in <lambda>() method 241 val id = invocation.getArgument<Int>(0) in <lambda>() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandlerTests.java | 46 import org.mockito.invocation.InvocationOnMock; 104 doAnswer((InvocationOnMock invocation) -> { in setUp() argument 112 doAnswer((InvocationOnMock invocation) -> { in setUp() argument 126 doAnswer((InvocationOnMock invocation) -> { in setUp() argument 127 int uid = (int) invocation.getArguments()[0]; in setUp() 146 doAnswer((InvocationOnMock invocation) -> { in setUp() argument 147 String pkg = (String) invocation.getArguments()[0]; in setUp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ExponentialBackoffTest.java | 61 doAnswer(invocation -> mHandler.postDelayed((Runnable) invocation.getArguments()[0], in setUp() 62 (long) invocation.getArguments()[1]) in setUp() 64 doAnswer(invocation -> { in setUp() 65 mHandler.removeCallbacks((Runnable) invocation.getArguments()[0]); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 63 import org.mockito.invocation.InvocationOnMock; 174 public Boolean answer(InvocationOnMock invocation) throws Throwable { in setUp_baseServices() 175 Object[] args = invocation.getArguments(); in setUp_baseServices() 220 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 221 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 231 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 232 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 243 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 244 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 259 public Void answer(InvocationOnMock invocation) throws Throwable { in mockBiometricsHardwareFingerprintsAndTemplates() [all …]
|
D | LockSettingsStorageTestable.java | 27 import org.mockito.invocation.InvocationOnMock; 45 public Void answer(InvocationOnMock invocation) throws Throwable { in LockSettingsStorageTestable() 46 byte[] handle = (byte[]) invocation.getArguments()[0]; in LockSettingsStorageTestable() 60 public byte[] answer(InvocationOnMock invocation) throws Throwable { in LockSettingsStorageTestable()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/mobile/ |
D | MobileIconCarrierIdOverridesTest.java | 103 doAnswer(invocation -> { in NetworkOverrideTypedArrayMock() 104 return mInterleaved[(int) invocation.getArgument(0)]; in NetworkOverrideTypedArrayMock() 107 doAnswer(invocation -> { in NetworkOverrideTypedArrayMock() 108 return mInterleaved[(int) invocation.getArgument(0)]; in NetworkOverrideTypedArrayMock() 111 when(mMockTypedArray.length()).thenAnswer(invocation -> { in NetworkOverrideTypedArrayMock()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedKvRestoreTaskTest.java | 85 .thenAnswer(invocation -> fakeHash(invocation.getArgument(0))); in setUp() 86 doAnswer(invocation -> writeTestPairsToFile(invocation.getArgument(0))) in setUp() 90 invocation -> in setUp() 92 invocation.getArgument(0), invocation.getArgument(1))) in setUp()
|
/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/ |
D | ShellCommandTestSupport.java | 58 (Answer<String>) invocation -> argProvider.getNext()); in createShellCommandWithArgsAndOptions() 60 (Answer<String>) invocation -> argProvider.getNext()); in createShellCommandWithArgsAndOptions() 62 (Answer<String>) invocation -> argProvider.getNextRequired()); in createShellCommandWithArgsAndOptions()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | AdminSecondaryLockScreenControllerTest.java | 112 doAnswer(invocation -> { in testShow() 113 IKeyguardCallback callback = (IKeyguardCallback) invocation.getArguments()[1]; in testShow() 127 doAnswer(invocation -> { in testShow_dismissedByCallback() 128 IKeyguardCallback callback = (IKeyguardCallback) invocation.getArguments()[1]; in testShow_dismissedByCallback() 141 doAnswer(invocation -> { in testHide() 142 IKeyguardCallback callback = (IKeyguardCallback) invocation.getArguments()[1]; in testHide()
|