Home
last modified time | relevance | path

Searched refs:getPackageInfo (Results 1 – 25 of 94) sorted by relevance

1234

/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java127 mPackageManager.getPackageInfo(overlayPackage.overlayTarget, newUserId); in updateOverlaysForUser()
152 if (mPackageManager.getPackageInfo(targetPackageName, newUserId) == null) { in updateOverlaysForUser()
171 final PackageInfo targetPackage = mPackageManager.getPackageInfo(packageName, userId); in onTargetPackageAdded()
181 final PackageInfo targetPackage = mPackageManager.getPackageInfo(packageName, userId); in onTargetPackageChanged()
202 final PackageInfo targetPackage = mPackageManager.getPackageInfo(packageName, userId); in onTargetPackageUpgraded()
226 … final PackageInfo overlayPackage = mPackageManager.getPackageInfo(oi.packageName, userId); in updateAllOverlaysForTarget()
247 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in onOverlayPackageAdded()
255 mPackageManager.getPackageInfo(overlayPackage.overlayTarget, userId); in onOverlayPackageAdded()
310 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in setEnabled()
323 mPackageManager.getPackageInfo(oi.targetPackageName, userId); in setEnabled()
[all …]
DOverlayManagerService.java369 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageAdded()
387 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageChanged()
420 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageUpgraded()
833 public PackageInfo getPackageInfo(@NonNull final String packageName, final int userId, in getPackageInfo() method in OverlayManagerService.PackageManagerHelper
842 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0, userId); in getPackageInfo()
854 public PackageInfo getPackageInfo(@NonNull final String packageName, final int userId) { in getPackageInfo() method in OverlayManagerService.PackageManagerHelper
855 return getPackageInfo(packageName, userId, true); in getPackageInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest5.java75 PackageInfo pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
80 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
85 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DPackageManagerWrapperImpl.java102 public PackageInfo getPackageInfo(String packageName, int i) throws NameNotFoundException { in getPackageInfo() method in PackageManagerWrapperImpl
103 return mPm.getPackageInfo(packageName, i); in getPackageInfo()
DPackageManagerWrapper.java111 PackageInfo getPackageInfo(String packageName, int i) throws NameNotFoundException; in getPackageInfo() method
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java194 getPackageInfo().updateVersionInfo(pi); in ensureVersionInfo()
211 getPackageInfo().saveToXml(out); in saveToXml()
264 ret.getPackageInfo().loadFromXml(parser, fromBackup); in loadFromXml()
308 getPackageInfo().dump(pw, prefix + " "); in dump()
DShortcutPackage.java521 if (getPackageInfo().isShadow()) { in findAll()
637 pi = mShortcutUser.mService.getPackageInfo( in rescanPackageIfNeeded()
654 if ((getPackageInfo().getVersionCode() == pi.versionCode) in rescanPackageIfNeeded()
655 && (getPackageInfo().getLastUpdateTime() == pi.lastUpdateTime) in rescanPackageIfNeeded()
688 getPackageInfo().getVersionCode(), pi.versionCode)); in rescanPackageIfNeeded()
691 getPackageInfo().updateVersionInfo(pi); in rescanPackageIfNeeded()
1175 getPackageInfo().dump(pw, prefix + " "); in dump()
1257 getPackageInfo().saveToXml(out); in saveToXml()
1368 ret.getPackageInfo().loadFromXml(parser, fromBackup); in loadFromXml()
DShortcutPackageItem.java84 public ShortcutPackageInfo getPackageInfo() { in getPackageInfo() method in ShortcutPackageItem
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateServiceImpl.java110 userPackages.get(UserHandle.USER_SYSTEM).getPackageInfo())) { in existsValidNonFallbackProvider()
267 if (userPackage.getPackageInfo() != null && userPackage.isEnabledPackage()) { in isDisabledForAllUsers()
DSystemImpl.java161 return pm.getPackageInfo(packageName, PackageManager.MATCH_FACTORY_ONLY).versionCode; in getFactoryPackageVersion()
271 return pm.getPackageInfo(configInfo.packageName, PACKAGE_FLAGS); in getPackageInfoForProvider()
/frameworks/base/tests/SharedLibrary/lib/src/com/google/android/test/shared_library/
DSharedLibraryMain.java45 pi = context.getPackageManager().getPackageInfo(LIBRARY_PACKAGE, 0); in getVersion()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java105 mRealTestContext.getPackageManager().getPackageInfo( in markPackageAsInstalled()
113 doReturn(pi).when(mMockContext.ipackageManager).getPackageInfo( in markPackageAsInstalled()
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DAndroidPackageInfoFetcher.java75 PackageInfo packageInfo = mContext.getPackageManager().getPackageInfo( in getStatements()
DUtils.java101 Signature[] signatures = context.getPackageManager().getPackageInfo(packageName, in getCertFingerprintsFromPackageManager()
/frameworks/base/test-runner/src/android/test/
DClassPathPackageInfo.java49 info.add(source.getPackageInfo(name)); in getSubpackages()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java337 pm.getPackageInfo("android", GET_SIGNATURES).signatures); in isUidValidForPolicy()
346 pm.getPackageInfo(packageName, GET_SIGNATURES).signatures); in isUidValidForPolicy()
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java148 return mPm.getPackageInfo(mActivityInfo.packageName, in getFirstInstallTime()
DPackageManagerInternal.java145 public abstract PackageInfo getPackageInfo(String packageName, in getPackageInfo() method in PackageManagerInternal
/frameworks/base/core/java/android/webkit/
DUserPackage.java93 public PackageInfo getPackageInfo() { in getPackageInfo() method in UserPackage
DWebViewFactory.java180 packageInfo = packageManager.getPackageInfo(packageName, in loadWebViewNativeLibraryFromPackage()
296 donorPackage = pm.getPackageInfo( in fixupStubApplicationInfo()
351 newPackageInfo = pm.getPackageInfo( in getWebViewContextAndSetProvider()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java286 getPackageInfo(callingPackage, userId) in requestNotificationAccess()
325 FeatureInfo[] reqFeatures = getPackageInfo(pkg, userId).reqFeatures; in checkUsesFeature()
436 PackageInfo packageInfo = getPackageInfo(packageName, userId);
474 private PackageInfo getPackageInfo(String packageName, int userId) {
/frameworks/support/compat/tests/java/android/support/v4/provider/
DFontsContractCompatTest.java77 PackageInfo info = manager.getPackageInfo(
358 when(packageManager.getPackageInfo(anyString(), anyInt())).thenReturn(packageInfo); in testGetProvider_duplicateCerts()
413 when(packageManager.getPackageInfo(anyString(), anyInt())).thenReturn(packageInfo); in setupPackageManager()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java197 when(mPm.getPackageInfo(eq(pkg), anyInt())).thenReturn(packageInfo); in addSystemAppsWithRequiredAccounts()
217 when(mPm.getPackageInfo(eq(pkgName), anyInt())).thenReturn(packageInfo); in addInstalledApp()
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DPackageValidator.java102 packageInfo = packageManager.getPackageInfo( in isCallerAllowed()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java95 Signature[] sigs = pm.getPackageInfo(pkg, PackageManager.MATCH_SYSTEM_ONLY in getSignatureSets()
220 pInfo = mPm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES in bindBestPackageLocked()

1234