/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | TestSystemImpl.java | 20 import android.content.pm.PackageInfo; 36 Map<String, Map<Integer, PackageInfo>> mPackages = new HashMap(); 65 public int onWebViewProviderChanged(PackageInfo packageInfo) { in onWebViewProviderChanged() 104 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in enablePackageForUser() 108 PackageInfo packageInfo = userPackages.get(userId); in enablePackageForUser() 117 public PackageInfo getPackageInfoForProvider(WebViewProviderInfo info) throws in getPackageInfoForProvider() 119 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProvider() 121 PackageInfo ret = userPackages.get(PRIMARY_USER_ID); in getPackageInfoForProvider() 129 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProviderAllUsers() 146 public void setPackageInfo(PackageInfo pi) { in setPackageInfo() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 21 import android.content.pm.PackageInfo; 194 public int clearBackupData(PackageInfo packageInfo) { in clearBackupData() 247 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup() 255 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup() 297 public int startRestore(long token, PackageInfo[] packages) { in startRestore() 411 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup() 420 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup() 494 public boolean isAppEligibleForBackup(PackageInfo targetPackage, boolean isFullBackup) { in isAppEligibleForBackup() 615 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup() 621 public int clearBackupData(PackageInfo packageInfo) throws RemoteException { in clearBackupData() [all …]
|
/frameworks/base/core/java/com/android/internal/backup/ |
D | IBackupTransport.aidl | 22 import android.content.pm.PackageInfo; 145 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd, int flags); in performBackup() 155 int clearBackupData(in PackageInfo packageInfo); in clearBackupData() 198 int startRestore(long token, in PackageInfo[] packages); in startRestore() 237 int performFullBackup(in PackageInfo targetPackage, in ParcelFileDescriptor socket, int flags); in performFullBackup() 250 boolean isAppEligibleForBackup(in PackageInfo targetPackage, boolean isFullBackup); in isAppEligibleForBackup()
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | WebViewUpdater.java | 19 import android.content.pm.PackageInfo; 69 private PackageInfo mCurrentWebViewPackage = null; 86 PackageInfo newPackage = null; in packageStateChanged() 165 PackageInfo newPackage = updateCurrentWebViewPackage(newProviderName); in changeProviderAndSetting() 175 PackageInfo updateCurrentWebViewPackage(String newProviderName) { in updateCurrentWebViewPackage() 176 PackageInfo oldPackage = null; in updateCurrentWebViewPackage() 177 PackageInfo newPackage = null; in updateCurrentWebViewPackage() 216 private void onWebViewProviderChanged(PackageInfo newPackage) { in onWebViewProviderChanged() 253 public final PackageInfo packageInfo; 255 public ProviderAndPackageInfo(WebViewProviderInfo provider, PackageInfo packageInfo) { in ProviderAndPackageInfo() [all …]
|
D | SystemInterface.java | 20 import android.content.pm.PackageInfo; 38 public int onWebViewProviderChanged(PackageInfo packageInfo); in onWebViewProviderChanged() 53 public PackageInfo getPackageInfoForProvider(WebViewProviderInfo configInfo) in getPackageInfoForProvider()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 30 import android.content.pm.PackageInfo; 95 List<PackageInfo> overlayPackages = mPackageManager.getOverlayPackages(newUserId); in updateOverlaysForUser() 98 final PackageInfo overlayPackage = overlayPackages.get(i); in updateOverlaysForUser() 126 final PackageInfo targetPackage = 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() 220 @Nullable final PackageInfo targetPackage) { in updateAllOverlaysForTarget() 226 … final PackageInfo overlayPackage = mPackageManager.getPackageInfo(oi.packageName, userId); in updateAllOverlaysForTarget() 247 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in onOverlayPackageAdded() [all …]
|
D | IdmapManager.java | 24 import android.content.pm.PackageInfo; 51 boolean createIdmap(@NonNull final PackageInfo targetPackage, in createIdmap() 52 @NonNull final PackageInfo overlayPackage, int userId) { in createIdmap() 90 boolean idmapExists(@NonNull final PackageInfo overlayPackage, final int userId) { in idmapExists() 95 boolean isDangerous(@NonNull final PackageInfo overlayPackage, final int userId) { in isDangerous()
|
D | OverlayManagerService.java | 38 import android.content.pm.PackageInfo; 369 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() 671 private boolean isOverlayPackage(@NonNull final PackageInfo pi) { in isOverlayPackage() 826 private final SparseArray<HashMap<String, PackageInfo>> mCache = new SparseArray<>(); 833 public PackageInfo getPackageInfo(@NonNull final String packageName, final int userId, in getPackageInfo() 836 final PackageInfo cachedPi = getCachedPackageInfo(packageName, userId); in getPackageInfo() 842 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0, userId); in getPackageInfo() 854 public PackageInfo getPackageInfo(@NonNull final String packageName, final int userId) { in getPackageInfo() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 360 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) { in getInstallLoc() 369 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY) { in getInstallLoc() 375 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_AUTO) { in getInstallLoc() 597 PackageInfo.INSTALL_LOCATION_UNSPECIFIED); in sampleInstallFromRawResource() 613 PackageInfo pkgInfo = null; in assertPermissions() 1351 0, true, false, -1, PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY); in testManifestInstallLocationInternal() 1362 0, true, false, -1, PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL); in testManifestInstallLocationSdcard() 1368 0, true, false, -1, PackageInfo.INSTALL_LOCATION_AUTO); in testManifestInstallLocationAuto() 1374 0, true, false, -1, PackageInfo.INSTALL_LOCATION_UNSPECIFIED); in testManifestInstallLocationUnspecified() 1387 PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL); in testManifestInstallLocationFwdLockedFlagSdcard() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | UserPackage.java | 20 import android.content.pm.PackageInfo; 35 private final PackageInfo mPackageInfo; 37 public UserPackage(UserInfo user, PackageInfo packageInfo) { in UserPackage() 51 PackageInfo packageInfo = null; in getPackageInfosAllUsers() 85 public static boolean hasCorrectTargetSdkVersion(PackageInfo packageInfo) { in hasCorrectTargetSdkVersion() 93 public PackageInfo getPackageInfo() { in getPackageInfo()
|
D | WebViewProviderResponse.java | 19 import android.content.pm.PackageInfo; 26 public WebViewProviderResponse(PackageInfo packageInfo, int status) { in WebViewProviderResponse() 44 packageInfo = in.readTypedObject(PackageInfo.CREATOR); in WebViewProviderResponse() 59 public final PackageInfo packageInfo;
|
D | IWebViewUpdateService.aidl | 19 import android.content.pm.PackageInfo; 69 PackageInfo getCurrentWebViewPackage(); in getCurrentWebViewPackage()
|
D | WebViewFactory.java | 26 import android.content.pm.PackageInfo; 88 private static PackageInfo sPackageInfo; 139 public static PackageInfo getLoadedPackageInfo() { in getLoadedPackageInfo() 178 PackageInfo packageInfo; in loadWebViewNativeLibraryFromPackage() 262 private static void verifyPackageInfo(PackageInfo chosen, PackageInfo toUse) { in verifyPackageInfo() 294 PackageInfo donorPackage; in fixupStubApplicationInfo() 347 PackageInfo newPackageInfo = null; in getWebViewContextAndSetProvider() 492 public static int onWebViewProviderChanged(PackageInfo packageInfo) { in onWebViewProviderChanged() 573 private static String[] getWebViewNativeLibraryPaths(PackageInfo packageInfo) { in getWebViewNativeLibraryPaths() 698 private static int loadNativeLibrary(ClassLoader clazzLoader, PackageInfo packageInfo) { in loadNativeLibrary()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInfo.java | 26 public class PackageInfo implements Parcelable { class 280 public PackageInfo() { in PackageInfo() method in PackageInfo 336 public static final Parcelable.Creator<PackageInfo> CREATOR 337 = new Parcelable.Creator<PackageInfo>() { 339 public PackageInfo createFromParcel(Parcel source) { 340 return new PackageInfo(source); 344 public PackageInfo[] newArray(int size) { 345 return new PackageInfo[size]; 349 private PackageInfo(Parcel source) { in PackageInfo() method in PackageInfo
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerPresubmitTest.java | 20 import android.content.pm.PackageInfo; 68 List<PackageInfo> installedPackages = mPackageManager in testPrivAppPermissions() 70 for (PackageInfo packageInfo : installedPackages) { in testPrivAppPermissions() 80 private void testPackagePrivAppPermission(PackageInfo packageInfo) in testPackagePrivAppPermission() 102 & PackageInfo.REQUESTED_PERMISSION_GRANTED) != 0; in testPackagePrivAppPermission()
|
D | ShortcutManagerTest5.java | 24 import android.content.pm.PackageInfo; 75 PackageInfo pi = mShortcutService.getPackageInfo( in testGetPackageInfo() 131 List<PackageInfo> apks = mShortcutService.getInstalledPackages(mMyUserId); in testGetInstalledPackages() 134 for (PackageInfo pi : apks) { in testGetInstalledPackages()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 19 import android.content.pm.PackageInfo; 42 private PackageInfo genPackage(String... signatures) { in genPackage() 43 final PackageInfo pi = new PackageInfo(); in genPackage() 57 PackageInfo pi; in testSignaturesMatch()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 24 import android.content.pm.PackageInfo; 77 private List<PackageInfo> mAllPackages; 111 PackageManagerBackupAgent(PackageManager packageMgr, List<PackageInfo> packages) { in PackageManagerBackupAgent() 121 private void init(PackageManager packageMgr, List<PackageInfo> packages) { in init() 137 public static List<PackageInfo> getStorableApplications(PackageManager pm) { in getStorableApplications() 138 List<PackageInfo> pkgs; in getStorableApplications() 142 PackageInfo pkg = pkgs.get(a); in getStorableApplications() 199 PackageInfo homeInfo = null; in onBackup() 264 for (PackageInfo pkg : mAllPackages) { in onBackup() 270 PackageInfo info = null; in onBackup() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | DexManager.java | 21 import android.content.pm.PackageInfo; 174 public void load(Map<Integer, List<PackageInfo>> existingPackages) { in load() 190 public void notifyPackageInstalled(PackageInfo pi, int userId) { in notifyPackageInstalled() 237 private void cachePackageInfo(PackageInfo pi, int userId) { in cachePackageInfo() 268 private void loadInternal(Map<Integer, List<PackageInfo>> existingPackages) { in loadInternal() 272 for (Map.Entry<Integer, List<PackageInfo>> entry : existingPackages.entrySet()) { in loadInternal() 273 List<PackageInfo> packageInfoList = entry.getValue(); in loadInternal() 275 for (PackageInfo pi : packageInfoList) { in loadInternal() 338 PackageInfo pkg = null; in dexoptSecondaryDex() 382 PackageInfo pkg = null; in reconcileSecondaryDexFiles()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 30 import android.content.pm.PackageInfo; 117 List<PackageInfo> apps = mPackageManager.getInstalledPackages(GET_PERMISSIONS); in startMonitoring() 123 for (PackageInfo app : apps) { in startMonitoring() 153 private boolean hasPermission(PackageInfo app, String permission) { in hasPermission() 164 private boolean hasNetworkPermission(PackageInfo app) { in hasNetworkPermission() 168 private boolean hasRestrictedNetworkPermission(PackageInfo app) { in hasRestrictedNetworkPermission() 237 final PackageInfo app = mPackageManager.getPackageInfo(name, GET_PERMISSIONS); in highestPermissionForUid()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | SamplingProfilerIntegration.java | 19 import android.content.pm.PackageInfo; 118 public static void writeSnapshot(final String processName, final PackageInfo packageInfo) { in writeSnapshot() 162 private static void writeSnapshotFile(String processName, PackageInfo packageInfo) { in writeSnapshotFile() 213 private static void generateSnapshotHeader(String processName, PackageInfo packageInfo, in generateSnapshotHeader()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 20 import android.content.pm.PackageInfo; 94 public void updateVersionInfo(@NonNull PackageInfo pi) { in updateVersionInfo() 105 public boolean canRestoreTo(ShortcutService s, PackageInfo target) { in canRestoreTo() 127 final PackageInfo pi = s.getPackageInfoWithSignatures(packageName, packageUserId); in generateForInstalledPackageForTest() 145 final PackageInfo pi = s.getPackageInfoWithSignatures( in refreshSignature()
|
/frameworks/base/tools/obbtool/ |
D | Main.cpp | 49 class PackageInfo { class 51 PackageInfo() in PackageInfo() function in PackageInfo 92 void doAdd(const char* filename, PackageInfo* info) { in doAdd() 185 PackageInfo package_info; in main()
|
/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 23 import android.content.pm.PackageInfo; 231 ((mPerm.mExistingReqFlags & PackageInfo.REQUESTED_PERMISSION_REQUIRED) != 0); in addRevokeUIIfNecessary() 263 PackageInfo pkgInfo; in AppSecurityPermissions() 278 public AppSecurityPermissions(Context context, PackageInfo info) { in AppSecurityPermissions() 287 PackageInfo installedPkgInfo = null; in AppSecurityPermissions() 339 PackageInfo pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPermissionsForPackage() 346 private void extractPerms(PackageInfo info, Set<MyPermissionInfo> permSet, in extractPerms() 347 PackageInfo installedPkgInfo) { in extractPerms() 406 && (existingFlags&PackageInfo.REQUESTED_PERMISSION_GRANTED) == 0; in extractPerms() 548 ((newReqFlags&PackageInfo.REQUESTED_PERMISSION_REQUIRED) != 0); in isDisplayablePermission() [all …]
|
/frameworks/base/core/java/android/util/ |
D | PackageUtils.java | 21 import android.content.pm.PackageInfo; 48 final PackageInfo packageInfo; in computePackageCertSha256Digest()
|