Searched refs:ipackageManager (Results 1 – 4 of 4) sorted by relevance
81 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()
239 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 …]
258 public final IPackageManager ipackageManager; field in DpmMockContext293 ipackageManager = mock(IPackageManager.class); in DpmMockContext()
167 return context.ipackageManager; in getIPackageManager()