Searched refs:mockPm (Results 1 – 2 of 2) sorted by relevance
77 protected void setMockedPackages(PackageManager mockPm, final Map<String, Integer> packages) { in setMockedPackages() argument89 }).when(mockPm).getPackageUidAsUser(anyString(), anyInt()); in setMockedPackages()
216 PackageManager mockPm = mock(PackageManager.class); field in AppStandbyControllerTests.MyContextWrapper223 return mockPm; in getPackageManager()404 private void setupPm(PackageManager mockPm) throws PackageManager.NameNotFoundException { in setupPm() argument453 doReturn(packages).when(mockPm).getInstalledPackagesAsUser(anyInt(), in setupPm()460 ).when(mockPm).getInstalledPackagesAsUser( in setupPm()470 doReturn(systemFrontDoorActivities).when(mockPm) in setupPm()480 doReturn(pkg.applicationInfo.uid).when(mockPm) in setupPm()482 doReturn(pkg.applicationInfo.uid).when(mockPm) in setupPm()484 doReturn(pkg.applicationInfo).when(mockPm) in setupPm()488 doReturn(PERMISSION_GRANTED).when(mockPm).checkPermission( in setupPm()[all …]