Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DTestableDeviceConfig.java86 doAnswer((Answer<Void>) invocationOnMock -> { in apply()
87 String namespace = invocationOnMock.getArgument(0); in apply()
88 Executor executor = invocationOnMock.getArgument(1); in apply()
90 invocationOnMock.getArgument(2); in apply()
98 doAnswer((Answer<Void>) invocationOnMock -> { in apply()
99 String namespace = invocationOnMock.getArgument(0); in apply()
100 Executor executor = invocationOnMock.getArgument(1); in apply()
102 invocationOnMock.getArgument(2); in apply()
110 doAnswer((Answer<Boolean>) invocationOnMock -> { in apply()
111 String namespace = invocationOnMock.getArgument(0); in apply()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java97 doAnswer((Answer<Void>) invocationOnMock -> { in setUp()
98 String key = invocationOnMock.getArgument(0); in setUp()
99 String value = invocationOnMock.getArgument(1); in setUp()
106 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp()
107 String key = invocationOnMock.getArgument(0); in setUp()
108 boolean defaultValue = invocationOnMock.getArgument(1); in setUp()
115 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp()
116 String key = invocationOnMock.getArgument(0); in setUp()
117 int defaultValue = invocationOnMock.getArgument(1); in setUp()
124 doAnswer((Answer<Long>) invocationOnMock -> { in setUp()
[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/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSCarrierGroupTest.java63 public Integer answer(InvocationOnMock invocationOnMock) throws Throwable { in testUpdateCarrierText_sameLengths()
64 return invocationOnMock.getArgument(0); in testUpdateCarrierText_sameLengths()
111 public Integer answer(InvocationOnMock invocationOnMock) throws Throwable { in testUpdateCarrierText_differentLength()
112 return invocationOnMock.getArgument(0); in testUpdateCarrierText_differentLength()
/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/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java137 doAnswer((InvocationOnMock invocationOnMock) -> { in testPausingWhenVisibleFromStopped() argument
138 final ClientTransaction transaction = invocationOnMock.getArgument(0); in testPausingWhenVisibleFromStopped()
459 doAnswer(invocationOnMock -> { in testSizeCompatMode_FixedAspectRatioBoundsWithDecor()
460 final int rotation = invocationOnMock.<Integer>getArgument(0); in testSizeCompatMode_FixedAspectRatioBoundsWithDecor()
461 final Rect insets = invocationOnMock.<Rect>getArgument(4); in testSizeCompatMode_FixedAspectRatioBoundsWithDecor()
DSystemServicesTestRule.java148 doAnswer((InvocationOnMock invocationOnMock) -> {
149 final Runnable runnable = invocationOnMock.getArgument(0);
DTaskRecordTests.java387 doAnswer(invocationOnMock -> { in testComputeConfigResourceOverrides()
388 final Rect insets = invocationOnMock.<Rect>getArgument(0); in testComputeConfigResourceOverrides()
DActivityTestsBase.java753 doAnswer((InvocationOnMock invocationOnMock) -> { in prepareMockWindowManager() argument
754 final Runnable runnable = invocationOnMock.<Runnable>getArgument(0); in prepareMockWindowManager()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java174 doAnswer(invocationOnMock -> { in setUserSentiment()
176 invocationOnMock.getArguments()[1]; in setUserSentiment()
191 doAnswer(invocationOnMock -> { in setSmartActions()
193 invocationOnMock.getArguments()[1]; in setSmartActions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java496 answers.put("override group key", invocationOnMock -> { in getSignalExtractorSideEffects()
497 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
501 answers.put("override people", invocationOnMock -> { in getSignalExtractorSideEffects()
502 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
506 answers.put("snooze criteria", invocationOnMock -> { in getSignalExtractorSideEffects()
507 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
511 answers.put("notification channel", invocationOnMock -> { in getSignalExtractorSideEffects()
512 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
516 answers.put("badging", invocationOnMock -> { in getSignalExtractorSideEffects()
517 NotificationRecord r = (NotificationRecord) invocationOnMock.getArguments()[0]; in getSignalExtractorSideEffects()
[all …]
DManagedServicesTest.java1089 public List<ResolveInfo> answer(InvocationOnMock invocationOnMock) in addExpectedServices()
1091 Object[] args = invocationOnMock.getArguments(); in addExpectedServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationControllerTest.java1017 public Void answer(InvocationOnMock invocationOnMock) throws Throwable {
1018 Object[] args = invocationOnMock.getArguments();