Searched refs:mSpyPackageManager (Results 1 – 4 of 4) sorted by relevance
41 public PackageManager mSpyPackageManager; field in CarAdminUiTestActivity47 mSpyPackageManager = spy(getPackageManager()); in onCreate()55 if (mSpyPackageManager != null) { in getPackageManager()56 return mSpyPackageManager; in getPackageManager()
46 private PackageManager mSpyPackageManager; field in ManagedDeviceTextViewTest53 mSpyPackageManager = mCarAdminUiTestActivity.mSpyPackageManager; in setup()126 doReturn(hasFeature).when(mSpyPackageManager) in mockHasDeviceAdminFeature()
170 .when(mService.mSpyPackageManager).getPackagesForUid(userId); in setNavigationContextOwner_launchesNavigationComponent()172 .when(mService.mSpyPackageManager).checkPermission( in setNavigationContextOwner_launchesNavigationComponent()174 doReturn(createActivityResolveInfo(packageName)).when(mService.mSpyPackageManager) in setNavigationContextOwner_launchesNavigationComponent()211 doReturn(new String[]{}).when(mService.mSpyPackageManager).getPackagesForUid(userId); in setNavigationContextOwner_noPackages_doesNothing()229 .when(mService.mSpyPackageManager).getPackagesForUid(userId); in setNavigationContextOwner_clusterPermissionMissing_doesNothing()231 .when(mService.mSpyPackageManager).checkPermission( in setNavigationContextOwner_clusterPermissionMissing_doesNothing()298 .when(mService.mSpyPackageManager).getPackagesForUid(userId); in mockPackageManagerInteraction()300 .when(mService.mSpyPackageManager).checkPermission( in mockPackageManagerInteraction()302 doReturn(createActivityResolveInfo(packageName)).when(mService.mSpyPackageManager) in mockPackageManagerInteraction()561 doReturn(packageInfo).when(mService.mSpyPackageManager) in mockAuthorityForPackage()[all …]
121 private PackageManager mSpyPackageManager; field in SdkSandboxTest184 mSpyPackageManager = Mockito.spy(mContext.getPackageManager()); in setup()185 Mockito.doReturn(mSpyPackageManager).when(mContext).getPackageManager(); in setup()