/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfig.java | 81 doAnswer((Answer<Void>) invocationOnMock -> { in setUpMockBehaviors() 82 String namespace = invocationOnMock.getArgument(0); in setUpMockBehaviors() 83 Executor executor = invocationOnMock.getArgument(1); in setUpMockBehaviors() 85 invocationOnMock.getArgument(2); in setUpMockBehaviors() 93 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUpMockBehaviors() 94 String namespace = invocationOnMock.getArgument(0); in setUpMockBehaviors() 95 String name = invocationOnMock.getArgument(1); in setUpMockBehaviors() 96 String value = invocationOnMock.getArgument(2); in setUpMockBehaviors() 110 doAnswer((Answer<String>) invocationOnMock -> { in setUpMockBehaviors() 111 String namespace = invocationOnMock.getArgument(0); in setUpMockBehaviors() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | SettingsToPropertiesMapperTest.java | 79 doAnswer((Answer<Void>) invocationOnMock -> { in setUp() 80 String key = invocationOnMock.getArgument(0); in setUp() 81 String value = invocationOnMock.getArgument(1); in setUp() 88 doAnswer((Answer<String>) invocationOnMock -> { in setUp() 89 String key = invocationOnMock.getArgument(0); in setUp() 97 doAnswer((Answer<String>) invocationOnMock -> { in setUp() 98 String key = invocationOnMock.getArgument(1); in setUp()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableResources.java | 83 private Object answer(InvocationOnMock invocationOnMock) throws Throwable { in answer() argument 85 int id = invocationOnMock.getArgument(0); in answer() 100 return invocationOnMock.callRealMethod(); in answer()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | RescuePartyTest.java | 136 doAnswer((Answer<Void>) invocationOnMock -> { in setUp() 137 String key = invocationOnMock.getArgument(0); in setUp() 138 String value = invocationOnMock.getArgument(1); in setUp() 145 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp() 146 String key = invocationOnMock.getArgument(0); in setUp() 147 boolean defaultValue = invocationOnMock.getArgument(1); in setUp() 154 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp() 155 String key = invocationOnMock.getArgument(0); in setUp() 156 int defaultValue = invocationOnMock.getArgument(1); in setUp() 163 doAnswer((Answer<Long>) invocationOnMock -> { in setUp() [all …]
|
D | DeviceIdleControllerTest.java | 315 doAnswer((Answer<Void>) invocationOnMock -> null) in setUp() 319 doAnswer((Answer<DeviceConfig.Properties>) invocationOnMock in setUp()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/display/color/ |
D | DisplayTransformManagerTest.java | 68 doAnswer((Answer<Void>) invocationOnMock -> { in setUp() 69 mSystemProperties.put(invocationOnMock.getArgument(0), in setUp() 70 invocationOnMock.getArgument(1)); in setUp()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | NameValueCacheTest.java | 89 any(), any(Bundle.class))).thenAnswer(invocationOnMock -> { in setUp() 90 Bundle incomingBundle = invocationOnMock.getArgument(4); in setUp() 109 any(), any(Bundle.class))).thenAnswer(invocationOnMock -> { in setUp() 110 Bundle incomingBundle = invocationOnMock.getArgument(4); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | NotificationEntryManagerTest.java | 140 doAnswer(invocationOnMock -> { in setUserSentiment() 142 invocationOnMock.getArguments()[1]; in setUserSentiment() 158 doAnswer(invocationOnMock -> { in setSmartActions() 160 invocationOnMock.getArguments()[1]; in setSmartActions() 391 doAnswer(invocationOnMock -> { in testUpdatePendingNotification_rankingUpdated() 393 invocationOnMock.getArguments()[1]; in testUpdatePendingNotification_rankingUpdated()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ |
D | TaskViewTest.java | 95 doAnswer((InvocationOnMock invocationOnMock) -> { in setUp() argument 96 final Runnable r = invocationOnMock.getArgument(0); in setUp()
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | PackageWatchdogTest.java | 150 doAnswer((Answer<Void>) invocationOnMock -> { in setUp() 151 String key = invocationOnMock.getArgument(0); in setUp() 152 String value = invocationOnMock.getArgument(1); in setUp() 159 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp() 160 String key = invocationOnMock.getArgument(0); in setUp() 161 int defaultValue = invocationOnMock.getArgument(1); in setUp() 168 doAnswer((Answer<Long>) invocationOnMock -> { in setUp() 169 String key = invocationOnMock.getArgument(0); in setUp() 170 long defaultValue = invocationOnMock.getArgument(1); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/ |
D | SensorTest.java | 93 doAnswer((Answer<Void>) invocationOnMock -> { in halSessionCallback_respondsToResetLockout()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/ |
D | SensorTest.java | 93 doAnswer((Answer<Void>) invocationOnMock -> { in halSessionCallback_respondsToResetLockout()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 1598 doAnswer(invocationOnMock -> { in sendGenericNotification() 1600 invocationOnMock.getArguments()[1]; in sendGenericNotification() 1602 (String) invocationOnMock.getArguments()[0], in sendGenericNotification() 1624 doAnswer(invocationOnMock -> { in sendConvoNotification() 1626 invocationOnMock.getArguments()[1]; in sendConvoNotification() 1628 (String) invocationOnMock.getArguments()[0], in sendConvoNotification()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 792 answers.put("override group key", invocationOnMock -> { in getSignalExtractorSideEffects() 793 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects() 797 answers.put("override people", invocationOnMock -> { in getSignalExtractorSideEffects() 798 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects() 802 answers.put("snooze criteria", invocationOnMock -> { in getSignalExtractorSideEffects() 803 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects() 807 answers.put("notification channel", invocationOnMock -> { in getSignalExtractorSideEffects() 808 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects() 812 answers.put("badging", invocationOnMock -> { in getSignalExtractorSideEffects() 813 NotificationRecord r = (NotificationRecord) invocationOnMock.getArguments()[0]; in getSignalExtractorSideEffects() [all …]
|
D | ManagedServicesTest.java | 1563 public List<ResolveInfo> answer(InvocationOnMock invocationOnMock) in addExpectedServices() 1565 Object[] args = invocationOnMock.getArguments(); in addExpectedServices()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | AlarmManagerServiceTest.java | 407 .thenAnswer((Answer<Long>) invocationOnMock -> { in setUp() 408 Object[] args = invocationOnMock.getArguments(); in setUp() 412 .thenAnswer((Answer<Integer>) invocationOnMock -> { in setUp() 413 Object[] args = invocationOnMock.getArguments(); in setUp() 416 doAnswer((Answer<Void>) invocationOnMock -> null) in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationControllerTest.java | 1170 doAnswer((Answer<Void>) invocationOnMock -> { 1171 Object[] args = invocationOnMock.getArguments();
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskTests.java | 665 doAnswer(invocationOnMock -> { in testComputeConfigResourceOverrides() 666 final Rect insets = invocationOnMock.<Rect>getArgument(0); in testComputeConfigResourceOverrides()
|
D | ActivityRecordTests.java | 227 doAnswer((InvocationOnMock invocationOnMock) -> { in testPausingWhenVisibleFromStopped() argument 228 final ClientTransaction transaction = invocationOnMock.getArgument(0); in testPausingWhenVisibleFromStopped()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | QuotaControllerTest.java | 199 doAnswer((Answer<Void>) invocationOnMock -> null) in setUp() 206 (Answer<DeviceConfig.Properties>) invocationOnMock in setUp()
|