/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 | 66 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/ |
D | ActivityRecordTests.java | 131 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()
|
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 | 722 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/ |
D | NotificationEntryManagerTest.java | 172 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/ |
D | NotificationManagerServiceTest.java | 486 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 …]
|
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();
|