Home
last modified time | relevance | path

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

123456

/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java203 if (mPackageManager.getPackageInfo(targetPackageName, newUserId) == null) { in updateOverlaysForUser()
305 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(oi.packageName, in updateAndRefreshOverlaysForTarget()
339 PackageInfo packageInfo = mPackageManager.getPackageInfo(targetPackageName, userId); in updateAndRefreshOverlaysForTarget()
367 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in onOverlayPackageAdded()
428 final PackageInfo pkg = mPackageManager.getPackageInfo(packageName, userId); in onOverlayPackageReplaced()
490 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in setEnabled()
521 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in setEnabledExclusive()
538 final PackageInfo disabledOverlayPackageInfo = mPackageManager.getPackageInfo( in setEnabledExclusive()
574 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in isPackageUpdatableOverlay()
592 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in setPriority()
[all …]
DOverlayManagerService.java382 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageAdded()
405 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageChanged()
446 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, userId, in onPackageReplaced()
1033 public PackageInfo getPackageInfo(@NonNull final String packageName, final int userId, in getPackageInfo() method in OverlayManagerService.PackageManagerHelper
1042 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0, userId); in getPackageInfo()
1054 public PackageInfo getPackageInfo(@NonNull final String packageName, final int userId) { in getPackageInfo() method in OverlayManagerService.PackageManagerHelper
1055 return getPackageInfo(packageName, userId, true); in getPackageInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DApexManagerTest.java81 final PackageInfo activePkgPi = mApexManager.getPackageInfo(TEST_APEX_PKG, in testGetPackageInfo_setFlagsMatchActivePackage()
87 final PackageInfo factoryPkgPi = mApexManager.getPackageInfo(TEST_APEX_PKG, in testGetPackageInfo_setFlagsMatchActivePackage()
96 PackageInfo factoryPkgPi = mApexManager.getPackageInfo(TEST_APEX_PKG, in testGetPackageInfo_setFlagsMatchFactoryPackage()
102 final PackageInfo activePkgPi = mApexManager.getPackageInfo(TEST_APEX_PKG, in testGetPackageInfo_setFlagsMatchFactoryPackage()
112 assertThat(mApexManager.getPackageInfo(TEST_APEX_PKG, 0)).isNull(); in testGetPackageInfo_setFlagsNone()
DShortcutManagerTest5.java75 PackageInfo pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
81 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
87 pi = mShortcutService.getPackageInfo( in testGetPackageInfo()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTrackerHelperImpl.java79 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, flags); in getInstalledPackageVersion()
86 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, flags); in isPrivilegedApp()
95 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, flags); in usesPermission()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java212 getPackageInfo().updateFromPackageInfo(pi); in ensurePackageInfo()
221 if (forBackup && !getPackageInfo().isBackupAllowed()) { in saveToXml()
233 getPackageInfo().saveToXml(mShortcutUser.mService, out, forBackup); in saveToXml()
286 ret.getPackageInfo().loadFromXml(parser, fromBackup); in loadFromXml()
330 getPackageInfo().dump(pw, prefix + " "); in dump()
DShortcutPackage.java605 if (getPackageInfo().isShadow()) { in findAll()
826 pi = mShortcutUser.mService.getPackageInfo( in rescanPackageIfNeeded()
843 if ((getPackageInfo().getVersionCode() == pi.getLongVersionCode()) in rescanPackageIfNeeded()
844 && (getPackageInfo().getLastUpdateTime() == pi.lastUpdateTime) in rescanPackageIfNeeded()
878 getPackageInfo().getVersionCode(), pi.getLongVersionCode())); in rescanPackageIfNeeded()
881 getPackageInfo().updateFromPackageInfo(pi); in rescanPackageIfNeeded()
882 final long newVersionCode = getPackageInfo().getVersionCode(); in rescanPackageIfNeeded()
891 if (getPackageInfo().getBackupSourceVersionCode() > newVersionCode) { in rescanPackageIfNeeded()
894 si.getId(), getPackageInfo().getBackupSourceVersionCode())); in rescanPackageIfNeeded()
1387 getPackageInfo().dump(pw, prefix + " "); in dump()
[all …]
DApexManager.java115 abstract PackageInfo getPackageInfo(String packageName, @PackageInfoFlags int flags); in getPackageInfo() method in ApexManager
382 @Nullable PackageInfo getPackageInfo(String packageName, @PackageInfoFlags int flags) { in getPackageInfo() method in ApexManager.ApexManagerImpl
665 PackageInfo getPackageInfo(String packageName, int flags) { in getPackageInfo() method in ApexManager.ApexManagerFlattenedApex
/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java198 when(mPackageManager.getPackageInfo(eq(SmsApplication.PHONE_PACKAGE_NAME), anyInt())) in setupPackageInfosForCoreApps()
205 when(mPackageManager.getPackageInfo(eq(SmsApplication.MMS_SERVICE_PACKAGE_NAME), anyInt())) in setupPackageInfosForCoreApps()
212 when(mPackageManager.getPackageInfo(eq(SmsApplication.BLUETOOTH_PACKAGE_NAME), anyInt())) in setupPackageInfosForCoreApps()
219 when(mPackageManager.getPackageInfo( in setupPackageInfosForCoreApps()
/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/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/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java290 when(mPackageManager.getPackageInfo(eq(name), anyInt())) in assertBackgroundPermission()
444 when(mPackageManager.getPackageInfo(eq(MOCK_PACKAGE1), eq(GET_PERMISSIONS))).thenReturn( in testUidFilteringDuringVpnConnectDisconnectAndUidUpdates()
495 when(mPackageManager.getPackageInfo(eq(MOCK_PACKAGE1), eq(GET_PERMISSIONS))).thenReturn( in testUidFilteringDuringPackageInstallAndUninstall()
602 when(mPackageManager.getPackageInfo(eq(packageName), anyInt())).thenReturn(packageInfo); in setPackagePermissions()
638 when(mPackageManager.getPackageInfo(eq(MOCK_PACKAGE2), anyInt())).thenReturn(packageInfo2); in testPackageInstallSharedUid()
697 when(mPackageManager.getPackageInfo(eq(MOCK_PACKAGE2), anyInt())).thenReturn(packageInfo2); in testPackageUninstallWithMultiplePackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java118 mRealTestContext.getPackageManager().getPackageInfo( in markPackageAsInstalled()
126 doReturn(pi).when(mServices.ipackageManager).getPackageInfo( in markPackageAsInstalled()
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemImpl.java149 return pm.getPackageInfo(packageName, PackageManager.MATCH_FACTORY_ONLY) in getFactoryPackageVersion()
242 return pm.getPackageInfo(configInfo.packageName, PACKAGE_FLAGS); in getPackageInfoForProvider()
/frameworks/base/core/java/android/webkit/
DUserPackage.java95 public PackageInfo getPackageInfo() { in getPackageInfo() method in UserPackage
/frameworks/base/core/java/android/content/pm/
DLauncherActivityInfo.java150 return mPm.getPackageInfo(mActivityInfo.packageName, in getFirstInstallTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDynamicCodeLoggerTests.java126 .getPackageInfo(OWNING_PACKAGE_NAME, /*flags*/ 0, OWNER_USER_ID); in setup()
263 verify(mPM, atMost(1)).getPackageInfo(OWNING_PACKAGE_NAME, /*flags*/ 0, OWNER_USER_ID); in testMultipleLoadersAndFiles()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DPackageManagerPerfTest.java86 pm.getPackageInfo(packageName, 0); in testGetPackageInfo()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java310 getPackageInfo(callingPackage, userId) in requestNotificationAccess()
352 FeatureInfo[] reqFeatures = getPackageInfo(pkg, userId).reqFeatures; in checkUsesFeature()
463 PackageInfo packageInfo = getPackageInfo(packageName, userId);
504 private PackageInfo getPackageInfo(String packageName, int userId) {
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java376 grantPermissionsToPackage(getPackageInfo(packageName), in grantPermissionsToPackage()
967 return isSystemPackage(getPackageInfo(packageName)); in isSystemPackage()
1081 String[] requestedByNonSystemPackage = getPackageInfo(pkg.packageName).requestedPermissions; in grantRuntimePermissions()
1308 return getPackageInfo(pkg, PackageManager.MATCH_SYSTEM_ONLY); in getSystemPackageInfo()
1311 private PackageInfo getPackageInfo(String pkg) { in getPackageInfo() method in DefaultPermissionGrantPolicy
1312 return getPackageInfo(pkg, 0 /* extraFlags */); in getPackageInfo()
1315 private PackageInfo getPackageInfo(String pkg, in getPackageInfo() method in DefaultPermissionGrantPolicy
1321 return mContext.getPackageManager().getPackageInfo(pkg, in getPackageInfo()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSerialReader.java83 pkg = mContext.getPackageManager().getPackageInfo(packageName, 0); in getSerial()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPackageBasedTokenUtil.java76 signatures = packageManager.getPackageInfo( in generatePackageBasedToken()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java219 existingPkgInfo = pm.getPackageInfo(packageName, in installPackage()
247 PackageParser.Package pkg = PackageUtil.getPackageInfo(this, tempFile); in installPackage()
369 PackageInfo pkgInfo = pm.getPackageInfo(packageName, 0); in uninstallPackage()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java472 pm.getPackageInfo("android", GET_SIGNATURES).signatures);
481 pm.getPackageInfo(packageName, GET_SIGNATURES).signatures);

123456