/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRulesTest.java | 41 import org.mockito.invocation.InvocationOnMock; 66 public Void answer(InvocationOnMock invocation) throws Throwable { in testHelper() 67 Message message = (Message) invocation.getArguments()[2]; in testHelper() 77 public Void answer(InvocationOnMock invocation) throws Throwable { in testHelper() 78 Message message = (Message) invocation.getArguments()[7]; in testHelper() 90 public Void answer(InvocationOnMock invocation) throws Throwable { in testHelper() 91 Message message = (Message) invocation.getArguments()[1]; in testHelper() 304 public Void answer(InvocationOnMock invocation) throws Throwable { in testAID_OnlyARAM() 305 String aid = (String) invocation.getArguments()[0]; in testAID_OnlyARAM() 306 Message message = (Message) invocation.getArguments()[2]; in testAID_OnlyARAM() [all …]
|
D | SIMRecordsTest.java | 159 invocation -> { in setUpSetForbiddenPlmnsTests() 160 Message response = invocation.getArgument(1); in setUpSetForbiddenPlmnsTests() 168 invocation -> { in setUpSetForbiddenPlmnsTests() 169 Message response = invocation.getArgument(2); in setUpSetForbiddenPlmnsTests() 181 invocation -> { in testGetForbiddenPlmns() 182 Message response = invocation.getArgument(1); in testGetForbiddenPlmns() 204 invocation -> { in testGetForbiddenPlmnsException() 205 Message response = invocation.getArgument(1); in testGetForbiddenPlmnsException() 228 invocation -> { in testGetForbiddenPlmnsNull() 229 Message response = invocation.getArgument(1); in testGetForbiddenPlmnsNull() [all …]
|
D | IccPhoneBookInterfaceManagerTest.java | 34 import org.mockito.invocation.InvocationOnMock; 76 public Void answer(InvocationOnMock invocation) throws Throwable { in setUp() 77 Message response = (Message) invocation.getArguments()[2]; in setUp() 105 public Void answer(InvocationOnMock invocation) throws Throwable { in testAdnEFLoadWithFailure() 106 Message response = (Message) invocation.getArguments()[2]; in testAdnEFLoadWithFailure()
|
/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/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfig.java | 165 invocation -> { in getProperties() 166 String key = invocation.getArgument(0); in getProperties() 167 boolean defaultValue = invocation.getArgument(1); in getProperties() 177 invocation -> { in getProperties() 178 String key = invocation.getArgument(0); in getProperties() 179 float defaultValue = invocation.getArgument(1); in getProperties() 193 invocation -> { in getProperties() 194 String key = invocation.getArgument(0); in getProperties() 195 int defaultValue = invocation.getArgument(1); in getProperties() 209 invocation -> { in getProperties() [all …]
|
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockKeyStore.java | 12 import org.mockito.invocation.InvocationOnMock; 43 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 44 Object[] args = invocation.getArguments(); in createMock() 54 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 55 Object[] args = invocation.getArguments(); in createMock() 64 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 65 Object[] args = invocation.getArguments(); in createMock() 73 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 74 Object[] args = invocation.getArguments(); in createMock()
|
D | WifiThreadRunnerTest.java | 73 doAnswer(invocation -> { in callSuccess_returnExpectedValue() 74 Object[] args = invocation.getArguments(); in callSuccess_returnExpectedValue() 98 doAnswer(invocation -> { in runSuccess() 99 Object[] args = invocation.getArguments(); in runSuccess()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BatteryServiceTest.java | 33 import org.mockito.invocation.InvocationOnMock; 77 doAnswer((invocation) -> { 80 sendNotification(invocation, true); 81 sendNotification(invocation, true); 82 sendNotification(invocation, false); 110 private static void sendNotification(InvocationOnMock invocation, boolean preexisting) 112 ((IServiceNotification)invocation.getArguments()[2]).onRegistration( 114 (String)invocation.getArguments()[1],
|
/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/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 66 import org.mockito.invocation.InvocationOnMock; 177 public Boolean answer(InvocationOnMock invocation) throws Throwable { in setUp_baseServices() 178 Object[] args = invocation.getArguments(); in setUp_baseServices() 223 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 224 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 235 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 236 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 248 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 249 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 264 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/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsCpuTimesTest.java | 260 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked() 262 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked() 295 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked() 297 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked() 335 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid() 337 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked_isolatedUid() 371 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid() 373 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked_isolatedUid() 425 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_invalidUid() 427 (KernelCpuUidUserSysTimeReader.Callback<long[]>) invocation.getArguments()[0]; in testReadKernelUidCpuTimesLocked_invalidUid() [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 | 57 doAnswer(invocation -> mHandler.postDelayed((Runnable) invocation.getArguments()[0], in setUp() 58 (long) invocation.getArguments()[1]) in setUp() 60 doAnswer(invocation -> { in setUp() 61 mHandler.removeCallbacks((Runnable) invocation.getArguments()[0]); in setUp()
|
/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/java/com/android/internal/content/om/ |
D | OverlayConfig.java | 348 IdmapInvocation invocation = null; in getImmutableFrameworkOverlayIdmapInvocations() local 353 invocation = last; in getImmutableFrameworkOverlayIdmapInvocations() 357 if (invocation == null) { in getImmutableFrameworkOverlayIdmapInvocations() 358 invocation = new IdmapInvocation(enforceOverlayable, overlay.parsedConfig.policy); in getImmutableFrameworkOverlayIdmapInvocations() 359 idmapInvocations.add(invocation); in getImmutableFrameworkOverlayIdmapInvocations() 362 invocation.overlayPaths.add(overlay.parsedConfig.parsedInfo.path.getAbsolutePath()); in getImmutableFrameworkOverlayIdmapInvocations() 381 final IdmapInvocation invocation = idmapInvocations.get(i); in createImmutableFrameworkIdmapsInZygote() local 383 invocation.overlayPaths.toArray(new String[0]), in createImmutableFrameworkIdmapsInZygote() 385 invocation.policy}, in createImmutableFrameworkIdmapsInZygote() 386 invocation.enforceOverlayable); in createImmutableFrameworkIdmapsInZygote()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSectionsManagerTest.java | 96 invocation -> { in setUp() 677 when(mockEntry.getBucket()).thenAnswer(invocation -> bucketRef[0]); in mockNotification() 678 doAnswer(invocation -> { in mockNotification() 679 bucketRef[0] = invocation.getArgument(0); in mockNotification() 742 when(mNssl.getChildCount()).thenAnswer(invocation -> children.size()); in setupMockStack() 744 .thenAnswer(invocation -> { in setupMockStack() 745 Integer index = invocation.getArgument(0); in setupMockStack() 752 .thenAnswer(invocation -> children.indexOf(invocation.getArgument(0))); in setupMockStack() 753 doAnswer(invocation -> { in setupMockStack() 754 View child = invocation.getArgument(0); in setupMockStack() [all …]
|
/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 | 110 doAnswer(invocation -> { in testShow() 111 IKeyguardCallback callback = (IKeyguardCallback) invocation.getArguments()[1]; in testShow() 125 doAnswer(invocation -> { in testShow_dismissedByCallback() 126 IKeyguardCallback callback = (IKeyguardCallback) invocation.getArguments()[1]; in testShow_dismissedByCallback() 139 doAnswer(invocation -> { in testHide() 140 IKeyguardCallback callback = (IKeyguardCallback) invocation.getArguments()[1]; in testHide()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 108 doAnswer((invocation) -> mHearingAidProfile). in setUp() 139 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice() 140 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice() 152 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice() 153 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice() 165 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 166 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 180 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() 181 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() 214 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in findDevice_sameHiSyncId_foundBothDevice() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccControllerTest.java | 75 import org.mockito.invocation.InvocationOnMock; 1205 public Void answer(InvocationOnMock invocation) throws Exception { in callGetEid() 1206 EuiccConnector.GetEidCommandCallback cb = invocation in callGetEid() 1223 public Void answer(InvocationOnMock invocation) throws Exception { in callGetOtaStatus() 1224 GetOtaStatusCommandCallback cb = invocation.getArgument(1 /* resultCallback */); in callGetOtaStatus() 1240 public Void answer(InvocationOnMock invocation) throws Exception { in callStartOtaUpdatingIfNecessary() 1241 OtaStatusChangedCallback cb = invocation.getArgument(1 /* resultCallback */); in callStartOtaUpdatingIfNecessary() 1258 public Void answer(InvocationOnMock invocation) throws Exception { in callGetEuiccInfo() 1259 EuiccConnector.GetEuiccInfoCommandCallback cb = invocation in callGetEuiccInfo() 1276 public Void answer(InvocationOnMock invocation) throws Exception { in prepareGetDownloadableSubscriptionMetadataCall() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
D | FakeContextBuilder.java | 107 (Answer<ResolveInfo>) invocation -> { in build() 108 final String action = ((Intent) invocation.getArgument(0)).getAction(); in build() 115 (Answer<CharSequence>) invocation -> { in build() 116 ApplicationInfo applicationInfo = invocation.getArgument(0); in build()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/ |
D | LogicalChannelMocker.java | 33 import org.mockito.invocation.InvocationOnMock; 51 doAnswer((Answer<Void>) invocation -> { in mockOpenLogicalChannelResponse() 71 public Object answer(InvocationOnMock invocation) throws Throwable { in mockSendToLogicalChannel() 97 doAnswer((Answer<Void>) invocation -> { in mockCloseLogicalChannel()
|