Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java81 doReturn(pi).when(mMockContext.ipackageManager).getPackageInfo( in markPackageAsInstalled()
132 doReturn(ai).when(mMockContext.ipackageManager).getApplicationInfo( in setUpPackageManagerForFakeAdmin()
159 doReturn(aci).when(mMockContext.ipackageManager).getReceiverInfo( in setUpPackageManagerForFakeAdmin()
DDevicePolicyManagerTest.java239 verify(mContext.ipackageManager, times(1)).setApplicationEnabledSetting( in testSetActiveAdmin()
278 verify(mContext.ipackageManager, times(1)).setApplicationEnabledSetting( in testSetActiveAdmin()
1089 doReturn(pi).when(mContext.ipackageManager).getPackageInfo( in testApplicationRestrictionsManagingApp()
1944 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_DeviceAdminFeatureOff()
1962 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_ManagedProfileFeatureOff()
1988 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_nonSplitUser_firstBoot_primaryUser()
2007 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_nonSplitUser_afterDeviceSetup_primaryUser()
2026 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_splitUser_firstBoot_systemUser()
2046 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_splitUser_afterDeviceSetup_systemUser()
2066 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_splitUser_firstBoot_primaryUser()
[all …]
DDpmMockContext.java258 public final IPackageManager ipackageManager; field in DpmMockContext
293 ipackageManager = mock(IPackageManager.class); in DpmMockContext()
DDevicePolicyManagerServiceTestable.java167 return context.ipackageManager; in getIPackageManager()