Home
last modified time | relevance | path

Searched refs:mockController2 (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFragmentTest.java296 final AbstractPreferenceController mockController2 = in updateState_skipUnavailablePrefs() local
299 when(mockController2.getPreferenceKey()).thenReturn("key2"); in updateState_skipUnavailablePrefs()
301 preferenceControllers.add(mockController2); in updateState_skipUnavailablePrefs()
303 when(mockController2.isAvailable()).thenReturn(true); in updateState_skipUnavailablePrefs()
308 verify(mockController2, times(2)).getPreferenceKey(); in updateState_skipUnavailablePrefs()
315 final AbstractPreferenceController mockController2 = in updateState_doesNotSkipControllersOfSameClass() local
318 mTestFragment.addPreferenceController(mockController2); in updateState_doesNotSkipControllersOfSameClass()
320 when(mockController2.isAvailable()).thenReturn(true); in updateState_doesNotSkipControllersOfSameClass()
325 verify(mockController2).getPreferenceKey(); in updateState_doesNotSkipControllersOfSameClass()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java810 MediaController mockController2 = createMockMediaController(/* dispatchResult== */ true); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery() local
813 .thenReturn(List.of(mockController1, mockController2, mockController3)); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()
820 verify(mockController2).dispatchMediaButtonEvent(MEDIA_KEY_EVENT); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()