/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 | 163 invocation -> { in setUpSetForbiddenPlmnsTests() 164 Message response = invocation.getArgument(1); in setUpSetForbiddenPlmnsTests() 172 invocation -> { in setUpSetForbiddenPlmnsTests() 173 Message response = invocation.getArgument(2); in setUpSetForbiddenPlmnsTests() 185 invocation -> { in testGetForbiddenPlmns() 186 Message response = invocation.getArgument(1); in testGetForbiddenPlmns() 208 invocation -> { in testGetForbiddenPlmnsException() 209 Message response = invocation.getArgument(1); in testGetForbiddenPlmnsException() 232 invocation -> { in testGetForbiddenPlmnsNull() 233 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() 104 public Void answer(InvocationOnMock invocation) throws Throwable { in testAdnEFLoadWithFailure() 105 Message response = (Message) invocation.getArguments()[2]; in testAdnEFLoadWithFailure()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfig.java | 166 invocation -> { 167 String key = invocation.getArgument(0); 168 boolean defaultValue = invocation.getArgument(1); 177 invocation -> { 178 String key = invocation.getArgument(0); 179 float defaultValue = invocation.getArgument(1); 192 invocation -> { 193 String key = invocation.getArgument(0); 194 int defaultValue = invocation.getArgument(1); 207 invocation -> { [all …]
|
/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()
|
/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/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()
|
D | LocaleTrackerTest.java | 84 doAnswer(invocation -> { in setUp() 85 Message m = invocation.getArgument(1); in setUp() 225 doAnswer(invocation -> { in testToggleAirplaneModeOosPlmn() 226 Message m = invocation.getArgument(1); in testToggleAirplaneModeOosPlmn() 263 doAnswer(invocation -> { in testToggleAirplaneModeNoCellInfo() 264 Message m = invocation.getArgument(1); in testToggleAirplaneModeNoCellInfo()
|
D | PhoneSwitcherTest.java | 1138 doAnswer(invocation -> { in initializeCommandInterfacesMock() 1139 Handler handler = (Handler) invocation.getArguments()[0]; in initializeCommandInterfacesMock() 1140 int message = (int) invocation.getArguments()[1]; in initializeCommandInterfacesMock() 1141 Object obj = invocation.getArguments()[2]; in initializeCommandInterfacesMock() 1147 doAnswer(invocation -> { in initializeCommandInterfacesMock() 1148 mDataAllowed[0] = (boolean) invocation.getArguments()[0]; in initializeCommandInterfacesMock() 1153 doAnswer(invocation -> { in initializeCommandInterfacesMock() 1154 mDataAllowed[1] = (boolean) invocation.getArguments()[0]; in initializeCommandInterfacesMock() 1165 doAnswer(invocation -> { in initializeTelRegistryMock() 1167 … (SubscriptionManager.OnSubscriptionsChangedListener) invocation.getArguments()[0]; in initializeTelRegistryMock() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 59 import org.mockito.invocation.InvocationOnMock; 169 public Boolean answer(InvocationOnMock invocation) throws Throwable { in setUp_baseServices() 170 Object[] args = invocation.getArguments(); in setUp_baseServices() 208 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 209 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 220 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 221 Object[] args = invocation.getArguments(); in setUpStorageManagerMock() 233 public Void answer(InvocationOnMock invocation) throws Throwable { in setUpStorageManagerMock() 234 Object[] args = invocation.getArguments(); in setUpStorageManagerMock()
|
/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/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/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 246 invocation -> invocation.getArguments()[1] in mockSystemPropertiesToReturnDefault() 251 invocation -> invocation.getArguments()[1] in mockSystemPropertiesToReturnDefault() 256 invocation -> invocation.getArguments()[1] in mockSystemPropertiesToReturnDefault()
|
D | DevicePolicyManagerServiceMigrationTest.java | 109 doAnswer(invocation -> { in testMigration() 110 Integer userId = (Integer) invocation.getArguments()[0]; in testMigration() 111 Bundle bundle = (Bundle) invocation.getArguments()[1]; in testMigration() 222 doAnswer(invocation -> { in testMigration2_profileOwnerOnUser0() 223 Integer userId = (Integer) invocation.getArguments()[0]; in testMigration2_profileOwnerOnUser0() 224 Bundle bundle = (Bundle) invocation.getArguments()[1]; in testMigration2_profileOwnerOnUser0()
|
D | MockSystemServices.java | 214 invocation -> { in addUser() 215 final int userId1 = (int) invocation.getArguments()[0]; in addUser() 220 invocation -> { in addUser() 221 final int userId1 = (int) invocation.getArguments()[0]; in addUser() 227 invocation -> { in addUser() 228 final int userId12 = (int) invocation.getArguments()[0]; in addUser() 233 invocation -> { in addUser() 234 final int userId13 = (int) invocation.getArguments()[0]; in addUser()
|
/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()
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/shadows/ |
D | ShadowCar.java | 28 import org.mockito.invocation.InvocationOnMock; 56 public Void answer(InvocationOnMock invocation) { in createCar() 64 public Void answer(InvocationOnMock invocation) { in createCar()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/ |
D | TunablePaddingTest.java | 55 doAnswer(invocation -> { in setup() 56 tracker.getLeakInfo(invocation.getArguments()[0]).addAllocation(new Throwable()); in setup() 59 doAnswer(invocation -> { in setup() 60 tracker.getLeakInfo(invocation.getArguments()[0]).clearAllocations(); in setup()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 111 doAnswer((invocation) -> mHearingAidProfile). in setUp() 142 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice() 143 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice() 155 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice() 156 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice() 168 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 169 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded() 183 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() 184 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded() 198 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in findDevice_sameHiSyncId_foundBothDevice() [all …]
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestUtils.java | 59 return Mockito.mock(c, (Answer) invocation -> { in strictMock() 60 throw new AssertionError("Unexpected invocation: " + invocation); in strictMock()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImplTest.java | 43 import org.mockito.invocation.InvocationOnMock; 72 doAnswer((InvocationOnMock invocation) -> { in setUp() argument 73 ((WifiManager.SoftApCallback) invocation.getArgument(1)) in setUp()
|