Home
last modified time | relevance | path

Searched refs:mockInfo (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/
DEnabledKeyboardPreferenceControllerTest.java258 InputMethodInfo mockInfo = createMockInputMethodInfo(packageManager, packageName, in createMockInputMethodInfoWithSubtypes() local
264 return mockInfo; in createMockInputMethodInfoWithSubtypes()
269 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local
270 when(mockInfo.getPackageName()).thenReturn(packageName); in createMockInputMethodInfo()
271 when(mockInfo.getId()).thenReturn(PLACEHOLDER_ID); in createMockInputMethodInfo()
272 when(mockInfo.loadLabel(packageManager)).thenReturn(PLACEHOLDER_LABEL); in createMockInputMethodInfo()
273 when(mockInfo.getServiceInfo()).thenReturn(new ServiceInfo()); in createMockInputMethodInfo()
274 when(mockInfo.getSettingsActivity()).thenReturn(settingsName); in createMockInputMethodInfo()
275 return mockInfo; in createMockInputMethodInfo()
DInputMethodUtilTest.java329 InputMethodInfo mockInfo = createMockInputMethodInfo(packageManager, packageName); in createMockInputMethodInfoWithSubtypes() local
332 eq(mockInfo), anyBoolean())).thenReturn(subtypes); in createMockInputMethodInfoWithSubtypes()
333 return mockInfo; in createMockInputMethodInfoWithSubtypes()
338 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local
339 when(mockInfo.getPackageName()).thenReturn(packageName); in createMockInputMethodInfo()
340 when(mockInfo.loadLabel(packageManager)).thenReturn(PLACEHOLDER_LABEL); in createMockInputMethodInfo()
341 when(mockInfo.getServiceInfo()).thenReturn(new ServiceInfo()); in createMockInputMethodInfo()
342 when(mockInfo.getSettingsActivity()).thenReturn(PLACEHOLDER_SETTINGS_ACTIVITY); in createMockInputMethodInfo()
343 return mockInfo; in createMockInputMethodInfo()
DKeyboardManagementPreferenceControllerTest.java1075 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local
1076 when(mockInfo.getPackageName()).thenReturn(packageName); in createMockInputMethodInfo()
1077 when(mockInfo.loadLabel(packageManager)).thenReturn(PLACEHOLDER_LABEL); in createMockInputMethodInfo()
1078 when(mockInfo.getServiceInfo()).thenReturn(mockServiceInfo); in createMockInputMethodInfo()
1079 when(mockInfo.getSettingsActivity()).thenReturn(PLACEHOLDER_SETTINGS_ACTIVITY); in createMockInputMethodInfo()
1080 when(mockInfo.getId()).thenReturn(id); in createMockInputMethodInfo()
1081 when(mockInfo.isDefault(context)).thenReturn(isDefaultable); in createMockInputMethodInfo()
1085 return mockInfo; in createMockInputMethodInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/
DCurrentDreamPickerTest.java81 DreamInfo mockInfo = mock(DreamInfo.class); in setDefaultShouldUpdateActiveDream() local
84 mockInfo.componentName = mockName; in setDefaultShouldUpdateActiveDream()
86 when(mBackend.getDreamInfos()).thenReturn(Collections.singletonList(mockInfo)); in setDefaultShouldUpdateActiveDream()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioDeviceInfoTest.java236 AudioDeviceInfo mockInfo = mock(AudioDeviceInfo.class); in getMockAudioDeviceInfo() local
238 when(mockInfo.getPort()).thenReturn(mockPort); in getMockAudioDeviceInfo()
240 when(mockInfo.getAddress()).thenReturn(TEST_ADDRESS); in getMockAudioDeviceInfo()
241 return mockInfo; in getMockAudioDeviceInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilitySettingsTest.java383 private void setMockAccessibilityShortcutInfo(AccessibilityShortcutInfo mockInfo) { in setMockAccessibilityShortcutInfo() argument
385 when(mockInfo.getActivityInfo()).thenReturn(activityInfo); in setMockAccessibilityShortcutInfo()
387 when(mockInfo.loadSummary(any())).thenReturn(DEFAULT_SUMMARY); in setMockAccessibilityShortcutInfo()
388 when(mockInfo.loadDescription(any())).thenReturn(DEFAULT_DESCRIPTION); in setMockAccessibilityShortcutInfo()
389 when(mockInfo.getComponentName()).thenReturn(COMPONENT_NAME); in setMockAccessibilityShortcutInfo()