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.java66 doAnswer((Answer<Void>) invocationOnMock -> { in setUp()
67 mSystemProperties.put(invocationOnMock.getArgument(0), in setUp()
68 invocationOnMock.getArgument(1)); in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java131 doAnswer((InvocationOnMock invocationOnMock) -> { in testPausingWhenVisibleFromStopped() argument
132 final ClientTransaction transaction = invocationOnMock.getArgument(0); in testPausingWhenVisibleFromStopped()
453 doAnswer(invocationOnMock -> { in testSizeCompatMode_FixedAspectRatioBoundsWithDecor()
454 final int rotation = invocationOnMock.<Integer>getArgument(0); in testSizeCompatMode_FixedAspectRatioBoundsWithDecor()
455 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.java722 doAnswer((InvocationOnMock invocationOnMock) -> { in prepareMockWindowManager() argument
723 final Runnable runnable = invocationOnMock.<Runnable>getArgument(0); in prepareMockWindowManager()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java172 doAnswer(invocationOnMock -> { in setUserSentiment()
174 invocationOnMock.getArguments()[1]; in setUserSentiment()
189 doAnswer(invocationOnMock -> { in setSmartActions()
191 invocationOnMock.getArguments()[1]; in setSmartActions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java486 answers.put("override group key", invocationOnMock -> { in getSignalExtractorSideEffects()
487 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
491 answers.put("override people", invocationOnMock -> { in getSignalExtractorSideEffects()
492 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
496 answers.put("snooze criteria", invocationOnMock -> { in getSignalExtractorSideEffects()
497 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
501 answers.put("notification channel", invocationOnMock -> { in getSignalExtractorSideEffects()
502 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
506 answers.put("badging", invocationOnMock -> { in getSignalExtractorSideEffects()
507 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();