Home
last modified time | relevance | path

Searched refs:mIpm (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java115 private IPackageManager mIpm = AppGlobals.getPackageManager(); field in WallpaperManagerServiceTests
191 spyOn(mIpm); in setUp()
202 reset(mIpm); in tearDown()
308 final ServiceInfo pi = mIpm.getServiceInfo(sDefaultWallpaperComponent, in testSwitchMultipleUsers()
310 doReturn(pi).when(mIpm).getServiceInfo(any(), anyInt(), anyInt()); in testSwitchMultipleUsers()
314 mIpm.queryIntentServices(intent, in testSwitchMultipleUsers()
317 doReturn(ris).when(mIpm).queryIntentServices(any(), any(), anyInt(), anyInt()); in testSwitchMultipleUsers()
318 doReturn(PackageManager.PERMISSION_GRANTED).when(mIpm).checkPermission( in testSwitchMultipleUsers()
340 final ServiceInfo pi = mIpm.getServiceInfo(sDefaultWallpaperComponent, in testSwitchThenUnlockMultipleUsers()
342 doReturn(pi).when(mIpm).getServiceInfo(any(), anyInt(), anyInt()); in testSwitchThenUnlockMultipleUsers()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DManagedServicesTest.java88 private IPackageManager mIpm; field in ManagedServicesTest
171 mIpm, APPROVAL_BY_COMPONENT); in setUp()
178 mIpm, approvalLevel); in testBackupAndRestore_migration()
227 mIpm, approvalLevel); in testBackupAndRestore_migration_preO()
267 mIpm, approvalLevel); in testReadXml_migrationFromSettings()
285 mUserProfiles, mIpm, approvalLevel); in testReadXml_noLongerMigrateFromSettings()
315 mIpm, approvalLevel); in testReadXml()
335 mIpm, approvalLevel); in testReadXml_appendsListOfApprovedComponents()
363 getContext(), mLock, mUserProfiles, mIpm, approvalLevel); in testReadXml_onlyRestoresForTargetUser()
384 getContext(), mLock, mUserProfiles, mIpm, approvalLevel); in testReadXml_restoresUserSet()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java59 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/
DApplicationsState.java119 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/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java260 private @Mock IPackageManager mIpm; field in NetworkPolicyManagerServiceTest
403 mNetworkManager, mIpm, mClock, mPolicyDir, true); in callSystemReady()
2110 when(mIpm.checkUidPermission(Manifest.permission.INTERNET, uid)).thenReturn( in expectHasInternetPermission()
2115 when(mIpm.checkUidPermission(CONNECTIVITY_USE_RESTRICTED_NETWORKS, uid)).thenReturn( in expectHasUseRestrictedNetworksPermission()
2117 when(mIpm.checkUidPermission(NETWORK_STACK, uid)).thenReturn( in expectHasUseRestrictedNetworksPermission()
2119 when(mIpm.checkUidPermission(PERMISSION_MAINLINE_NETWORK_STACK, uid)).thenReturn( in expectHasUseRestrictedNetworksPermission()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java91 IPackageManager mIpm; field in PackageInstallerActivity
309 mIpm = AppGlobals.getPackageManager(); in onCreate()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DApplicationsStateRoboTest.java710 when(mApplicationsState.mIpm.getInstalledApplications(anyInt(), eq(0))) in setupDoResumeIfNeededLocked()
714 when(mApplicationsState.mIpm.getInstalledApplications(anyInt(), eq(PROFILE_USERID))) in setupDoResumeIfNeededLocked()