/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 26 import android.content.pm.PackageInfo; 79 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_systemApplication_returnsTrue() 95 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 114 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 136 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_targetSignatureEmpty_returnsFalse() 153 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_targetSignatureNull_returnsFalse() 169 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesNull_returnsFalse() 183 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_bothSignaturesEmpty_returnsFalse() 197 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_equalSignatures_returnsTrue() 219 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_extraSignatureInTarget_returnsTrue() [all …]
|
/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() 98 Map<Integer, PackageInfo> userPackages = mPackages.get(packageName); in enablePackageForUser() 102 PackageInfo packageInfo = userPackages.get(userId); in enablePackageForUser() 111 public PackageInfo getPackageInfoForProvider(WebViewProviderInfo info) throws in getPackageInfoForProvider() 113 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProvider() 115 PackageInfo ret = userPackages.get(PRIMARY_USER_ID); in getPackageInfoForProvider() 123 Map<Integer, PackageInfo> userPackages = mPackages.get(info.packageName); in getPackageInfoForProviderAllUsers() 140 public void setPackageInfo(PackageInfo pi) { in setPackageInfo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 26 import android.content.pm.PackageInfo; 336 PackageInfo packageInfo = new PackageInfo(); in appGetsFullBackup_noCustomBackupAgent_returnsTrue() 348 PackageInfo packageInfo = new PackageInfo(); in appGetsFullBackup_withCustomBackupAgentAndFullBackupOnlyFlag_returnsTrue() 361 PackageInfo packageInfo = new PackageInfo(); in appGetsFullBackup_withCustomBackupAgentAndWithoutFullBackupOnlyFlag_returnsFalse() 373 PackageInfo packageInfo = new PackageInfo(); in appIsKeyValueOnly_noCustomBackupAgent_returnsTrue() 385 PackageInfo packageInfo = new PackageInfo(); in appIsKeyValueOnly_withCustomBackupAgentAndFullBackupOnlyFlag_returnsTrue() 398 PackageInfo packageInfo = new PackageInfo(); in appIsKeyValueOnly_withCustomBackupAgentAndWithoutFullBackupOnlyFlag_returnsFalse() 418 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_systemApplication_returnsTrue() 432 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 451 PackageInfo packageInfo = new PackageInfo(); in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() [all …]
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupTransport.java | 22 import android.content.pm.PackageInfo; 256 public int clearBackupData(PackageInfo packageInfo) { in clearBackupData() 325 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup() 333 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup() 375 public int startRestore(long token, PackageInfo[] packages) { in startRestore() 489 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup() 498 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup() 572 public boolean isAppEligibleForBackup(PackageInfo targetPackage, boolean isFullBackup) { in isAppEligibleForBackup() 702 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup() 708 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; 67 private PackageInfo mCurrentWebViewPackage = null; 84 PackageInfo newPackage = null; in packageStateChanged() 154 PackageInfo newPackage = updateCurrentWebViewPackage(newProviderName); in changeProviderAndSetting() 164 PackageInfo updateCurrentWebViewPackage(String newProviderName) { in updateCurrentWebViewPackage() 165 PackageInfo oldPackage = null; in updateCurrentWebViewPackage() 166 PackageInfo newPackage = null; in updateCurrentWebViewPackage() 205 private void onWebViewProviderChanged(PackageInfo newPackage) { in onWebViewProviderChanged() 242 public final PackageInfo packageInfo; 244 public ProviderAndPackageInfo(WebViewProviderInfo provider, PackageInfo packageInfo) { in ProviderAndPackageInfo() [all …]
|
D | SystemInterface.java | 20 import android.content.pm.PackageInfo; 37 public int onWebViewProviderChanged(PackageInfo packageInfo); in onWebViewProviderChanged() 50 public PackageInfo getPackageInfoForProvider(WebViewProviderInfo configInfo) in getPackageInfoForProvider()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapManager.java | 26 import android.content.pm.PackageInfo; 67 boolean createIdmap(@NonNull final PackageInfo targetPackage, in createIdmap() 68 @NonNull final PackageInfo overlayPackage, int userId) { in createIdmap() 106 boolean idmapExists(@NonNull final PackageInfo overlayPackage, final int userId) { in idmapExists() 114 private boolean enforceOverlayable(@NonNull final PackageInfo overlayPackage) { in enforceOverlayable() 136 private int calculateFulfilledPolicies(@NonNull final PackageInfo targetPackage, in calculateFulfilledPolicies() 137 @NonNull final PackageInfo overlayPackage, int userId) { in calculateFulfilledPolicies() 181 private boolean matchesActorSignature(@NonNull PackageInfo targetPackage, in matchesActorSignature() 182 @NonNull PackageInfo overlayPackage, int userId) { in matchesActorSignature()
|
D | PackageManagerHelper.java | 20 import android.content.pm.PackageInfo; 33 PackageInfo getPackageInfo(@NonNull String packageName, int userId); in getPackageInfo() 35 List<PackageInfo> getOverlayPackages(int userId); in getOverlayPackages()
|
D | OverlayManagerServiceImpl.java | 33 import android.content.pm.PackageInfo; 87 private boolean mustReinitializeOverlay(@NonNull final PackageInfo theTruth, in mustReinitializeOverlay() 153 List<PackageInfo> overlayPackages = mPackageManager.getOverlayPackages(newUserId); in updateOverlaysForUser() 156 final PackageInfo overlayPackage = overlayPackages.get(i); in updateOverlaysForUser() 197 final PackageInfo overlayPackage = overlayPackages.get(i); in updateOverlaysForUser() 314 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(oi.packageName, in updateAndRefreshOverlaysForTarget() 348 PackageInfo packageInfo = mPackageManager.getPackageInfo(targetPackageName, userId); in updateAndRefreshOverlaysForTarget() 376 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in onOverlayPackageAdded() 439 final PackageInfo pkg = mPackageManager.getPackageInfo(packageName, userId); in onOverlayPackageReplaced() 503 final PackageInfo overlayPackage = mPackageManager.getPackageInfo(packageName, userId); in setEnabled() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 377 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) { in getInstallLoc() 386 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY) { in getInstallLoc() 392 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_AUTO) { in getInstallLoc() 594 PackageInfo.INSTALL_LOCATION_UNSPECIFIED); in sampleInstallFromRawResource() 610 PackageInfo pkgInfo = null; in assertPermissions() 1036 0, true, false, -1, PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY); in testManifestInstallLocationInternal() 1047 0, true, false, -1, PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL); in testManifestInstallLocationSdcard() 1053 0, true, false, -1, PackageInfo.INSTALL_LOCATION_AUTO); in testManifestInstallLocationAuto() 1059 0, true, false, -1, PackageInfo.INSTALL_LOCATION_UNSPECIFIED); in testManifestInstallLocationUnspecified() 1075 false, -1, PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY); in testManifestInstallLocationReplaceInternalSdcard() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | UserPackage.java | 20 import android.content.pm.PackageInfo; 35 private final PackageInfo mPackageInfo; 39 public UserPackage(UserInfo user, PackageInfo packageInfo) { in UserPackage() 53 PackageInfo packageInfo = null; in getPackageInfosAllUsers() 87 public static boolean hasCorrectTargetSdkVersion(PackageInfo packageInfo) { in hasCorrectTargetSdkVersion() 95 public PackageInfo getPackageInfo() { in getPackageInfo()
|
D | WebViewProviderResponse.java | 22 import android.content.pm.PackageInfo; 29 public WebViewProviderResponse(PackageInfo packageInfo, int status) { in WebViewProviderResponse() 47 packageInfo = in.readTypedObject(PackageInfo.CREATOR); in WebViewProviderResponse() 64 public final PackageInfo packageInfo;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ApexManager.java | 30 import android.content.pm.PackageInfo; 161 public abstract PackageInfo getPackageInfo(String packageName, @PackageInfoFlags int flags); in getPackageInfo() 169 abstract List<PackageInfo> getActivePackages(); in getActivePackages() 177 abstract List<PackageInfo> getFactoryPackages(); in getFactoryPackages() 185 abstract List<PackageInfo> getInactivePackages(); in getInactivePackages() 201 public static boolean isFactory(@NonNull PackageInfo packageInfo) { in isFactory() 395 private List<PackageInfo> mAllPackagesCache; 415 private static boolean isActive(PackageInfo packageInfo) { in isActive() 507 final PackageInfo packageInfo = PackageInfoWithoutStateUtils.generate( in scanApexPackagesInternalLocked() 548 public PackageInfo getPackageInfo(String packageName, in getPackageInfo() [all …]
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowApplicationPackageManager.java | 23 import android.content.pm.PackageInfo; 43 private static final Map<String, PackageInfo> sPackageInfos = new ArrayMap<>(); 44 private static final List<PackageInfo> sInstalledPackages = new ArrayList<>(); 53 public static void addInstalledPackage(String packageName, PackageInfo packageInfo) { in addInstalledPackage() 80 protected PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser() 89 protected List<PackageInfo> getInstalledPackagesAsUser(int flags, int userId) { in getInstalledPackagesAsUser()
|
D | ShadowPerformUnifiedRestoreTask.java | 22 import android.content.pm.PackageInfo; 54 @Nullable private PackageInfo mPackage; 66 @Nullable PackageInfo targetPackage, in __constructor__() 85 public PackageInfo getPackage() { in getPackage()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriterTest.java | 20 import android.content.pm.PackageInfo; 113 PackageInfo packageInfo = in testBackupManifest_withoutApkOrSignatures_writesCorrectData() 148 PackageInfo packageInfo = in testBackupManifest_withApk_writesApk() 177 PackageInfo packageInfo = in testBackupManifest_withSignatures_writesCorrectSignatures() 215 PackageInfo packageInfo = createPackageInfo(TEST_PACKAGE, null, TEST_PACKAGE_VERSION_CODE); in testBackupManifest_withoutInstallerPackage_writesEmptyInstaller() 230 PackageInfo packageInfo = in testBackupManifest_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun() 259 PackageInfo packageInfo = in testBackupWidget_writesCorrectData() 285 PackageInfo packageInfo = in testBackupWidget_withNullWidgetData_throwsNullPointerException() 301 PackageInfo packageInfo = in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException() 317 PackageInfo packageInfo = in testBackupWidget_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun() [all …]
|
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/ |
D | DelegatingTransport.java | 24 import android.content.pm.PackageInfo; 180 public int performBackup(PackageInfo packageInfo, in performBackup() 195 public int clearBackupData(PackageInfo packageInfo) throws RemoteException { in clearBackupData() 250 public int startRestore(long token, PackageInfo[] packages) throws RemoteException { in startRestore() 304 public int performFullBackup(PackageInfo targetPackage, in performFullBackup() 333 public boolean isAppEligibleForBackup(PackageInfo targetPackage, in isAppEligibleForBackup()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInfo.java | 29 public class PackageInfo implements Parcelable { class 408 public PackageInfo() { in PackageInfo() method in PackageInfo 496 public static final @android.annotation.NonNull Parcelable.Creator<PackageInfo> CREATOR 497 = new Parcelable.Creator<PackageInfo>() { 499 public PackageInfo createFromParcel(Parcel source) { 500 return new PackageInfo(source); 504 public PackageInfo[] newArray(int size) { 505 return new PackageInfo[size]; 510 private PackageInfo(Parcel source) { in PackageInfo() method in PackageInfo
|
/frameworks/base/services/backup/java/com/android/server/backup/params/ |
D | ClearParams.java | 19 import android.content.pm.PackageInfo; 26 public PackageInfo packageInfo; 31 PackageInfo packageInfo, in ClearParams()
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | PerformAdbBackupTask.java | 29 import android.content.pm.PackageInfo; 82 private PackageInfo mCurrentTarget; 124 private void addPackagesToSet(TreeMap<String, PackageInfo> set, List<String> pkgNames) { in addPackagesToSet() 128 PackageInfo info = mUserBackupManagerService.getPackageManager().getPackageInfo( in addPackagesToSet() 231 TreeMap<String, PackageInfo> packagesToBackup = new TreeMap<>(); in run() 241 List<PackageInfo> allPackages = pm.getInstalledPackages( in run() 244 PackageInfo pkg = allPackages.get(i); in run() 285 ArrayList<PackageInfo> keyValueBackupQueue = new ArrayList<>(); in run() 286 Iterator<Entry<String, PackageInfo>> iter = packagesToBackup.entrySet().iterator(); in run() 288 PackageInfo pkg = iter.next().getValue(); in run() [all …]
|
D | AppMetadataBackupWriter.java | 13 import android.content.pm.PackageInfo; 59 PackageInfo packageInfo, File manifestFile, File filesDir, boolean withApk) in backupManifest() 83 PackageInfo packageInfo, in backupManifest() 126 private byte[] getManifestBytes(PackageInfo packageInfo, boolean withApk) { in getManifestBytes() 170 PackageInfo packageInfo, File metadataFile, File filesDir, byte[] widgetData) in backupWidget() 239 public void backupApk(PackageInfo packageInfo) { in backupApk() 257 public void backupObb(@UserIdInt int userId, PackageInfo packageInfo) { in backupObb()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | DefaultPermissionGrantPolicy.java | 32 import android.content.pm.PackageInfo; 229 public int getPermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg, 236 public void updatePermissionFlags(@NonNull String permission, @NonNull PackageInfo pkg, 243 public void grantPermission(@NonNull String permission, @NonNull PackageInfo pkg, 250 public void revokePermission(@NonNull String permission, @NonNull PackageInfo pkg, 257 public boolean isGranted(@NonNull String permission, @NonNull PackageInfo pkg, 278 public @Nullable PackageInfo getPackageInfo(@NonNull String pkg) { 371 int userId, PackageInfo pkg) { in grantRuntimePermissionsForSystemPackage() 394 List<PackageInfo> packages = mContext.getPackageManager().getInstalledPackagesAsUser( in grantPermissionsToSysComponentsAndPrivApps() 396 for (PackageInfo pkg : packages) { in grantPermissionsToSysComponentsAndPrivApps() [all …]
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 29 import static android.content.pm.PackageInfo.REQUESTED_PERMISSION_GRANTED; 30 import static android.content.pm.PackageInfo.REQUESTED_PERMISSION_REQUIRED; 58 import android.content.pm.PackageInfo; 151 final PackageInfo packageInfo = in hasRestrictedNetworkPermission() 158 private static PackageInfo systemPackageInfoWithPermissions(String... permissions) { in systemPackageInfoWithPermissions() 163 private static PackageInfo vendorPackageInfoWithPermissions(String... permissions) { in vendorPackageInfoWithPermissions() 168 private static PackageInfo packageInfoWithPermissions(int permissionsFlags, in packageInfoWithPermissions() 174 final PackageInfo packageInfo = new PackageInfo(); in packageInfoWithPermissions() 194 private static PackageInfo buildPackageInfo(boolean hasSystemPermission, int uid, int userId) { in buildPackageInfo() 195 final PackageInfo pkgInfo; in buildPackageInfo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | WatchdogRollbackLoggerTest.java | 32 import android.content.pm.PackageInfo; 52 private PackageInfo mPackageInfo; 70 mPackageInfo = new PackageInfo(); in setUp() 150 PackageInfo packageInfo = new PackageInfo(); in testApexdLoggingCallsWithParents() 174 PackageInfo packageInfo = new PackageInfo(); in testApexdLoggingCallsWithNoParents()
|