Home
last modified time | relevance | path

Searched refs:invocationOnMock (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DTestableDeviceConfig.java81 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/
DSettingsToPropertiesMapperTest.java79 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/
DTestableResources.java83 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/
DRescuePartyTest.java136 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 …]
DDeviceIdleControllerTest.java315 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/
DDisplayTransformManagerTest.java68 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/
DNameValueCacheTest.java89 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/
DNotificationEntryManagerTest.java140 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/
DTaskViewTest.java95 doAnswer((InvocationOnMock invocationOnMock) -> { in setUp() argument
96 final Runnable r = invocationOnMock.getArgument(0); in setUp()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java150 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/
DSensorTest.java93 doAnswer((Answer<Void>) invocationOnMock -> { in halSessionCallback_respondsToResetLockout()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DSensorTest.java93 doAnswer((Answer<Void>) invocationOnMock -> { in halSessionCallback_respondsToResetLockout()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java1598 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/
DNotificationManagerServiceTest.java792 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 …]
DManagedServicesTest.java1563 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/
DAlarmManagerServiceTest.java407 .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/
DFullScreenMagnificationControllerTest.java1170 doAnswer((Answer<Void>) invocationOnMock -> {
1171 Object[] args = invocationOnMock.getArguments();
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskTests.java665 doAnswer(invocationOnMock -> { in testComputeConfigResourceOverrides()
666 final Rect insets = invocationOnMock.<Rect>getArgument(0); in testComputeConfigResourceOverrides()
DActivityRecordTests.java227 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/
DQuotaControllerTest.java199 doAnswer((Answer<Void>) invocationOnMock -> null) in setUp()
206 (Answer<DeviceConfig.Properties>) invocationOnMock in setUp()