HomeSort by relevance Sort by last modified time
    Searched refs:mockPackageManager (Results 1 - 4 of 4) 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()))
331 when(mockPackageManager.resolveActivity(any(Intent.class), anyInt())).thenReturn(resInfo);
332 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);
  /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
TelephonyTest.java 446 PackageManager mockPackageManager = mContext.getPackageManager();
447 doReturn(new String[]{TAG}).when(mockPackageManager).getPackagesForUid(anyInt());
448 doReturn(mPackageInfo).when(mockPackageManager).getPackageInfo(eq(TAG), anyInt());

Completed in 112 milliseconds