Searched refs:mockInfo (Results 1 – 6 of 6) sorted by relevance
258 InputMethodInfo mockInfo = createMockInputMethodInfo(packageManager, packageName, in createMockInputMethodInfoWithSubtypes() local264 return mockInfo; in createMockInputMethodInfoWithSubtypes()269 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local270 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()
329 InputMethodInfo mockInfo = createMockInputMethodInfo(packageManager, packageName); in createMockInputMethodInfoWithSubtypes() local332 eq(mockInfo), anyBoolean())).thenReturn(subtypes); in createMockInputMethodInfoWithSubtypes()333 return mockInfo; in createMockInputMethodInfoWithSubtypes()338 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local339 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()
1075 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local1076 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()
81 DreamInfo mockInfo = mock(DreamInfo.class); in setDefaultShouldUpdateActiveDream() local84 mockInfo.componentName = mockName; in setDefaultShouldUpdateActiveDream()86 when(mBackend.getDreamInfos()).thenReturn(Collections.singletonList(mockInfo)); in setDefaultShouldUpdateActiveDream()
236 AudioDeviceInfo mockInfo = mock(AudioDeviceInfo.class); in getMockAudioDeviceInfo() local238 when(mockInfo.getPort()).thenReturn(mockPort); in getMockAudioDeviceInfo()240 when(mockInfo.getAddress()).thenReturn(TEST_ADDRESS); in getMockAudioDeviceInfo()241 return mockInfo; in getMockAudioDeviceInfo()
383 private void setMockAccessibilityShortcutInfo(AccessibilityShortcutInfo mockInfo) { in setMockAccessibilityShortcutInfo() argument385 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()