Searched refs:mockInfo (Results 1 – 4 of 4) sorted by relevance
228 InputMethodInfo mockInfo = createMockInputMethodInfo(packageManager, packageName); in createMockInputMethodInfoWithSubtypes() local232 return mockInfo; in createMockInputMethodInfoWithSubtypes()237 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local238 when(mockInfo.getPackageName()).thenReturn(packageName); in createMockInputMethodInfo()239 when(mockInfo.getId()).thenReturn(DUMMY_ID); in createMockInputMethodInfo()240 when(mockInfo.loadLabel(packageManager)).thenReturn(DUMMY_LABEL); in createMockInputMethodInfo()241 when(mockInfo.getServiceInfo()).thenReturn(new ServiceInfo()); in createMockInputMethodInfo()242 when(mockInfo.getSettingsActivity()).thenReturn(DUMMY_SETTINGS_ACTIVITY); in createMockInputMethodInfo()243 return mockInfo; in createMockInputMethodInfo()
323 InputMethodInfo mockInfo = createMockInputMethodInfo(packageManager, packageName); in createMockInputMethodInfoWithSubtypes() local326 eq(mockInfo), anyBoolean())).thenReturn(subtypes); in createMockInputMethodInfoWithSubtypes()327 return mockInfo; in createMockInputMethodInfoWithSubtypes()332 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local333 when(mockInfo.getPackageName()).thenReturn(packageName); in createMockInputMethodInfo()334 when(mockInfo.loadLabel(packageManager)).thenReturn(DUMMY_LABEL); in createMockInputMethodInfo()335 when(mockInfo.getServiceInfo()).thenReturn(new ServiceInfo()); in createMockInputMethodInfo()336 when(mockInfo.getSettingsActivity()).thenReturn(DUMMY_SETTINGS_ACTIVITY); in createMockInputMethodInfo()337 return mockInfo; in createMockInputMethodInfo()
1006 InputMethodInfo mockInfo = mock(InputMethodInfo.class); in createMockInputMethodInfo() local1007 when(mockInfo.getPackageName()).thenReturn(packageName); in createMockInputMethodInfo()1008 when(mockInfo.loadLabel(packageManager)).thenReturn(DUMMY_LABEL); in createMockInputMethodInfo()1009 when(mockInfo.getServiceInfo()).thenReturn(mockServiceInfo); in createMockInputMethodInfo()1010 when(mockInfo.getSettingsActivity()).thenReturn(DUMMY_SETTINGS_ACTIVITY); in createMockInputMethodInfo()1011 when(mockInfo.getId()).thenReturn(id); in createMockInputMethodInfo()1012 when(mockInfo.isDefault(context)).thenReturn(isDefaultable); in createMockInputMethodInfo()1015 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()