/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfig.java | 86 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/ |
D | RescuePartyTest.java | 97 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/ |
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/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSCarrierGroupTest.java | 63 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/ |
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/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityRecordTests.java | 137 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()
|
D | SystemServicesTestRule.java | 148 doAnswer((InvocationOnMock invocationOnMock) -> { 149 final Runnable runnable = invocationOnMock.getArgument(0);
|
D | TaskRecordTests.java | 387 doAnswer(invocationOnMock -> { in testComputeConfigResourceOverrides() 388 final Rect insets = invocationOnMock.<Rect>getArgument(0); in testComputeConfigResourceOverrides()
|
D | ActivityTestsBase.java | 753 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/ |
D | NotificationEntryManagerTest.java | 174 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/ |
D | NotificationManagerServiceTest.java | 496 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 …]
|
D | ManagedServicesTest.java | 1089 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/ |
D | MagnificationControllerTest.java | 1017 public Void answer(InvocationOnMock invocationOnMock) throws Throwable { 1018 Object[] args = invocationOnMock.getArguments();
|