OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mockPackageManager
(Results
1 - 3
of
3
) sorted by null
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/
MdmPackageInfoTest.java
40
@Mock private PackageManager
mockPackageManager
;
51
when(mockContext.getPackageManager()).thenReturn(
mockPackageManager
);
52
when(
mockPackageManager
.getApplicationInfo(TEST_PACKAGE_NAME, 0))
54
when(
mockPackageManager
.getApplicationIcon(TEST_PACKAGE_NAME)).thenReturn(TEST_DRAWABLE);
55
when(
mockPackageManager
.getApplicationLabel(mApplicationInfo)).thenReturn(TEST_LABEL);
80
when(
mockPackageManager
.getApplicationInfo(TEST_PACKAGE_NAME, 0))
UtilsTest.java
76
@Mock private PackageManager
mockPackageManager
;
89
when(mockContext.getPackageManager()).thenReturn(
mockPackageManager
);
127
when(
mockPackageManager
.getPackageInfo(TEST_PACKAGE_NAME_1, 0))
138
when(
mockPackageManager
.getPackageInfo(TEST_PACKAGE_NAME_1, 0)).thenReturn(pi);
277
when(
mockPackageManager
.resolveActivity(any(Intent.class), anyInt()))
324
when(
mockPackageManager
.resolveActivity(any(Intent.class), anyInt())).thenReturn(resInfo);
325
when(
mockPackageManager
.getApplicationInfo(TEST_PACKAGE_NAME_1, 0)).thenReturn(appInfo);
/packages/apps/TV/tests/unit/src/com/android/tv/data/
ChannelTest.java
76
PackageManager
mockPackageManager
= Mockito.mock(PackageManager.class);
77
Mockito.when(
mockPackageManager
.getLeanbackLaunchIntentForPackage(
79
Mockito.when(
mockPackageManager
.getLeanbackLaunchIntentForPackage(
81
Mockito.when(
mockPackageManager
.getLeanbackLaunchIntentForPackage(
83
Mockito.when(
mockPackageManager
.getLeanbackLaunchIntentForPackage(
98
}).when(
mockPackageManager
).getActivityInfo(Mockito.<ComponentName>any(), Mockito.anyInt());
103
Mockito.when(mMockContext.getPackageManager()).thenReturn(
mockPackageManager
);
Completed in 161 milliseconds