Home
last modified time | relevance | path

Searched refs:ipackageManager (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java152 doReturn(pi).when(mServices.ipackageManager).getPackageInfo(packageName, 0, userId); in markPackageAsInstalled()
222 doReturn(ai).when(mServices.ipackageManager).getApplicationInfo( in setUpPackageManagerForFakeAdmin()
249 doReturn(aci).when(mServices.ipackageManager).getReceiverInfo( in setUpPackageManagerForFakeAdmin()
254 doReturn(new String[] {admin.getPackageName()}).when(mServices.ipackageManager) in setUpPackageManagerForFakeAdmin()
DDevicePolicyManagerTest.java476 verify(getServices().ipackageManager, times(1)).setApplicationEnabledSetting( in testSetActiveAdmin()
518 verify(getServices().ipackageManager, times(1)).setApplicationEnabledSetting( in testSetActiveAdmin()
1728 doReturn(pi).when(getServices().ipackageManager).getPackageInfo( in setupPackageInPackageManager()
1732 doReturn(pi.applicationInfo).when(getServices().ipackageManager).getApplicationInfo( in setupPackageInPackageManager()
1736 doReturn(true).when(getServices().ipackageManager).isPackageAvailable(packageName, userId); in setupPackageInPackageManager()
1742 doReturn(packageName).when(getServices().ipackageManager).getNameForUid(eq(uid)); in setupPackageInPackageManager()
1744 .when(getServices().ipackageManager).getPackagesForUid(eq(uid)); in setupPackageInPackageManager()
2609 verify(getServices().ipackageManager).setApplicationHiddenSettingAsUser(packageName, in testSetApplicationHiddenWithDO()
2613 verify(getServices().ipackageManager).setApplicationHiddenSettingAsUser(packageName, in testSetApplicationHiddenWithDO()
2616 verify(getServices().ipackageManager, never()).getPackageInfo(packageName, in testSetApplicationHiddenWithDO()
[all …]
DMockSystemServices.java108 public final IPackageManager ipackageManager; field in MockSystemServices
156 ipackageManager = mock(IPackageManager.class); in MockSystemServices()
DDevicePolicyManagerServiceTestable.java206 return services.ipackageManager; in getIPackageManager()
DDevicePolicyManagerServiceMigrationTest.java463 verify(getServices().ipackageManager, never()).setPackagesSuspendedAsUser( in testCompMigration_keepSuspendedAppsWhenDpcIsRPlus()