Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFragmentTest.java294 final AbstractPreferenceController mockController1 = in updateState_skipUnavailablePrefs() local
298 when(mockController1.getPreferenceKey()).thenReturn("key1"); in updateState_skipUnavailablePrefs()
300 preferenceControllers.add(mockController1); in updateState_skipUnavailablePrefs()
302 when(mockController1.isAvailable()).thenReturn(false); in updateState_skipUnavailablePrefs()
307 verify(mockController1).getPreferenceKey(); in updateState_skipUnavailablePrefs()
313 final AbstractPreferenceController mockController1 = in updateState_doesNotSkipControllersOfSameClass() local
317 mTestFragment.addPreferenceController(mockController1); in updateState_doesNotSkipControllersOfSameClass()
319 when(mockController1.isAvailable()).thenReturn(true); in updateState_doesNotSkipControllersOfSameClass()
324 verify(mockController1).getPreferenceKey(); in updateState_doesNotSkipControllersOfSameClass()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java809 MediaController mockController1 = createMockMediaController(/* dispatchResult== */ false); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery() local
813 .thenReturn(List.of(mockController1, mockController2, mockController3)); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()
819 verify(mockController1).dispatchMediaButtonEvent(MEDIA_KEY_EVENT); in testMediaKeyEventListenerOnKeyEvent_stopsAfterFirstDelivery()