/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperManagerServiceTests.java | 108 private IPackageManager mIpm = AppGlobals.getPackageManager(); field in WallpaperManagerServiceTests 184 spyOn(mIpm); in setUp() 195 reset(mIpm); in tearDown() 301 final ServiceInfo pi = mIpm.getServiceInfo(sDefaultWallpaperComponent, in testSwitchMultipleUsers() 303 doReturn(pi).when(mIpm).getServiceInfo(any(), anyInt(), anyInt()); in testSwitchMultipleUsers() 307 mIpm.queryIntentServices(intent, in testSwitchMultipleUsers() 310 doReturn(ris).when(mIpm).queryIntentServices(any(), any(), anyInt(), anyInt()); in testSwitchMultipleUsers() 311 doReturn(PackageManager.PERMISSION_GRANTED).when(mIpm).checkPermission( in testSwitchMultipleUsers() 333 final ServiceInfo pi = mIpm.getServiceInfo(sDefaultWallpaperComponent, in testSwitchThenUnlockMultipleUsers() 335 doReturn(pi).when(mIpm).getServiceInfo(any(), anyInt(), anyInt()); in testSwitchThenUnlockMultipleUsers() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ManagedServicesTest.java | 89 private IPackageManager mIpm; field in ManagedServicesTest 167 mIpm, APPROVAL_BY_COMPONENT); in setUp() 174 mIpm, approvalLevel); in testBackupAndRestore_migration() 223 mIpm, approvalLevel); in testBackupAndRestore_migration_preO() 263 mIpm, approvalLevel); in testReadXml_migrationFromSettings() 281 mIpm, approvalLevel); in testReadXml() 301 mIpm, approvalLevel); in testReadXml_appendsListOfApprovedComponents() 329 getContext(), mLock, mUserProfiles, mIpm, approvalLevel); in testReadXml_onlyRestoresForTargetUser() 350 getContext(), mLock, mUserProfiles, mIpm, APPROVAL_BY_COMPONENT); in testWriteReadXml_writeReadDefaults() 353 getContext(), mLock, mUserProfiles, mIpm, APPROVAL_BY_COMPONENT); in testWriteReadXml_writeReadDefaults() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/ |
D | AppRestrictionsHelperTest.java | 59 private @Mock IPackageManager mIpm; field in AppRestrictionsHelperTest 136 when(mIpm.getApplicationInfo(eq("app2"), anyInt(), eq(testUserId))) in testApplyUserAppsStates() 141 when(mIpm.getApplicationInfo(eq("app3"), anyInt(), eq(testUserId))) in testApplyUserAppsStates() 148 verify(mIpm, times(1)).installExistingPackageAsUser("app1", testUserId, in testApplyUserAppsStates() 151 verify(mIpm, times(1)).setApplicationHiddenSettingAsUser("app2", false, testUserId); in testApplyUserAppsStates() 287 return mIpm; in getIPackageManager()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 119 final IPackageManager mIpm; field in ApplicationsState 197 mIpm = iPackageManager; in ApplicationsState() 278 mIpm.getInstalledApplications( in doResumeIfNeededLocked() 469 info = mIpm.getApplicationInfo(packageName, 0, userId); in getEntry() 598 ApplicationInfo info = mIpm.getApplicationInfo(pkgName, in addPackage()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstallerActivity.java | 85 IPackageManager mIpm; field in PackageInstallerActivity 292 mIpm = AppGlobals.getPackageManager(); in onCreate()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | ApplicationsStateRoboTest.java | 710 when(mApplicationsState.mIpm.getInstalledApplications(anyInt(), eq(0))) in setupDoResumeIfNeededLocked() 714 when(mApplicationsState.mIpm.getInstalledApplications(anyInt(), eq(PROFILE_USERID))) in setupDoResumeIfNeededLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 239 private @Mock IPackageManager mIpm; field in NetworkPolicyManagerServiceTest 380 mNetworkManager, mIpm, mClock, mPolicyDir, true); in callSystemReady() 1968 when(mIpm.checkUidPermission(Manifest.permission.INTERNET, uid)).thenReturn( in expectHasInternetPermission()
|