Home
last modified time | relevance | path

Searched refs:mSpyPackageManager (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ui/
DCarAdminUiTestActivity.java41 public PackageManager mSpyPackageManager; field in CarAdminUiTestActivity
47 mSpyPackageManager = spy(getPackageManager()); in onCreate()
55 if (mSpyPackageManager != null) { in getPackageManager()
56 return mSpyPackageManager; in getPackageManager()
DManagedDeviceTextViewTest.java46 private PackageManager mSpyPackageManager; field in ManagedDeviceTextViewTest
53 mSpyPackageManager = mCarAdminUiTestActivity.mSpyPackageManager; in setup()
126 doReturn(hasFeature).when(mSpyPackageManager) in mockHasDeviceAdminFeature()
/packages/services/Car/tests/carservice_unit_test/src/android/car/cluster/renderer/
DInstrumentClusterRenderingServiceTest.java170 .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 …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSdkSandboxTest.java121 private PackageManager mSpyPackageManager; field in SdkSandboxTest
184 mSpyPackageManager = Mockito.spy(mContext.getPackageManager()); in setup()
185 Mockito.doReturn(mSpyPackageManager).when(mContext).getPackageManager(); in setup()