Home
last modified time | relevance | path

Searched refs:invocationOnMock (Results 1 – 15 of 15) 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/
DRescuePartyTest.java123 doAnswer((Answer<Void>) invocationOnMock -> { in setUp()
124 String key = invocationOnMock.getArgument(0); in setUp()
125 String value = invocationOnMock.getArgument(1); in setUp()
132 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp()
133 String key = invocationOnMock.getArgument(0); in setUp()
134 boolean defaultValue = invocationOnMock.getArgument(1); in setUp()
141 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp()
142 String key = invocationOnMock.getArgument(0); in setUp()
143 int defaultValue = invocationOnMock.getArgument(1); in setUp()
150 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/carrier/
DQSCarrierGroupControllerTest.java113 (Answer<Integer>) invocationOnMock -> invocationOnMock.getArgument(0)); in testUpdateCarrierText_sameLengths()
159 (Answer<Integer>) invocationOnMock -> 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/core/tests/coretests/src/android/provider/
DNameValueCacheTest.java87 any(), any(Bundle.class))).thenAnswer(invocationOnMock -> { in setUp()
88 Bundle incomingBundle = invocationOnMock.getArgument(5); in setUp()
106 any(), any(Bundle.class))).thenAnswer(invocationOnMock -> { in setUp()
107 Bundle incomingBundle = invocationOnMock.getArgument(5); in setUp()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java127 doAnswer((Answer<Void>) invocationOnMock -> { in setUp()
128 String key = invocationOnMock.getArgument(0); in setUp()
129 String value = invocationOnMock.getArgument(1); in setUp()
136 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp()
137 String key = invocationOnMock.getArgument(0); in setUp()
138 int defaultValue = invocationOnMock.getArgument(1); in setUp()
145 doAnswer((Answer<Long>) invocationOnMock -> { in setUp()
146 String key = invocationOnMock.getArgument(0); in setUp()
147 long defaultValue = invocationOnMock.getArgument(1); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationEntryManagerTest.java136 doAnswer(invocationOnMock -> { in setUserSentiment()
138 invocationOnMock.getArguments()[1]; in setUserSentiment()
154 doAnswer(invocationOnMock -> { in setSmartActions()
156 invocationOnMock.getArguments()[1]; in setSmartActions()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskRecordTests.java385 doAnswer(invocationOnMock -> { in testComputeConfigResourceOverrides()
386 final Rect insets = invocationOnMock.<Rect>getArgument(0); in testComputeConfigResourceOverrides()
DActivityRecordTests.java175 doAnswer((InvocationOnMock invocationOnMock) -> { in testPausingWhenVisibleFromStopped() argument
176 final ClientTransaction transaction = invocationOnMock.getArgument(0); in testPausingWhenVisibleFromStopped()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java656 answers.put("override group key", invocationOnMock -> { in getSignalExtractorSideEffects()
657 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
661 answers.put("override people", invocationOnMock -> { in getSignalExtractorSideEffects()
662 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
666 answers.put("snooze criteria", invocationOnMock -> { in getSignalExtractorSideEffects()
667 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
671 answers.put("notification channel", invocationOnMock -> { in getSignalExtractorSideEffects()
672 ((NotificationRecord) invocationOnMock.getArguments()[0]) in getSignalExtractorSideEffects()
676 answers.put("badging", invocationOnMock -> { in getSignalExtractorSideEffects()
677 NotificationRecord r = (NotificationRecord) invocationOnMock.getArguments()[0]; in getSignalExtractorSideEffects()
[all …]
DManagedServicesTest.java1331 public List<ResolveInfo> answer(InvocationOnMock invocationOnMock) in addExpectedServices()
1333 Object[] args = invocationOnMock.getArguments(); in addExpectedServices()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationControllerTest.java1018 public Void answer(InvocationOnMock invocationOnMock) throws Throwable {
1019 Object[] args = invocationOnMock.getArguments();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java1071 public Void answer(InvocationOnMock invocationOnMock) { in testNoHoldErrorMessageWhenCallDisconnected()