Home
last modified time | relevance | path

Searched refs:PackageInfo (Results 1 – 25 of 219) sorted by relevance

123456789

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java26 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/backup/utils/
DAppBackupUtilsTest.java26 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/services/tests/servicestests/src/com/android/server/webkit/
DTestSystemImpl.java20 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/core/java/android/app/backup/
DBackupTransport.java22 import android.content.pm.PackageInfo;
247 public int clearBackupData(PackageInfo packageInfo) { in clearBackupData()
315 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup()
323 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup()
365 public int startRestore(long token, PackageInfo[] packages) { in startRestore()
479 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup()
488 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup()
562 public boolean isAppEligibleForBackup(PackageInfo targetPackage, boolean isFullBackup) { in isAppEligibleForBackup()
692 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup()
698 public int clearBackupData(PackageInfo packageInfo) throws RemoteException { in clearBackupData()
[all …]
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdater.java19 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 …]
DSystemInterface.java20 import android.content.pm.PackageInfo;
37 public int onWebViewProviderChanged(PackageInfo packageInfo); in onWebViewProviderChanged()
50 public PackageInfo getPackageInfoForProvider(WebViewProviderInfo configInfo) in getPackageInfoForProvider()
/frameworks/base/core/java/com/android/internal/backup/
DIBackupTransport.aidl22 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/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java372 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) { in getInstallLoc()
381 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY) { in getInstallLoc()
387 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_AUTO) { in getInstallLoc()
590 PackageInfo.INSTALL_LOCATION_UNSPECIFIED); in sampleInstallFromRawResource()
606 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/services/core/java/com/android/server/pm/
DApexManager.java32 import android.content.pm.PackageInfo;
115 abstract PackageInfo getPackageInfo(String packageName, @PackageInfoFlags int flags); in getPackageInfo()
123 abstract List<PackageInfo> getActivePackages(); in getActivePackages()
131 abstract List<PackageInfo> getFactoryPackages(); in getFactoryPackages()
139 abstract List<PackageInfo> getInactivePackages(); in getInactivePackages()
256 private List<PackageInfo> mAllPackagesCache;
268 private static boolean isActive(PackageInfo packageInfo) { in isActive()
278 private static boolean isFactory(PackageInfo packageInfo) { in isFactory()
353 final PackageInfo packageInfo = in populateAllPackagesCacheIfNeeded()
382 @Nullable PackageInfo getPackageInfo(String packageName, @PackageInfoFlags int flags) { in getPackageInfo()
[all …]
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowApplicationPackageManager.java22 import android.content.pm.PackageInfo;
39 private static final Map<String, PackageInfo> sPackageInfos = new ArrayMap<>();
40 private static final List<PackageInfo> sInstalledPackages = new ArrayList<>();
48 public static void addInstalledPackage(String packageName, PackageInfo packageInfo) { in addInstalledPackage()
62 protected PackageInfo getPackageInfoAsUser(String packageName, int flags, int userId) in getPackageInfoAsUser()
71 protected List<PackageInfo> getInstalledPackagesAsUser(int flags, int userId) { in getInstalledPackagesAsUser()
DShadowPerformUnifiedRestoreTask.java22 import android.content.pm.PackageInfo;
51 @Nullable private PackageInfo mPackage;
63 @Nullable PackageInfo targetPackage, in __constructor__()
82 public PackageInfo getPackage() { in getPackage()
/frameworks/base/core/java/android/webkit/
DUserPackage.java20 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()
DWebViewProviderResponse.java20 import android.content.pm.PackageInfo;
27 public WebViewProviderResponse(PackageInfo packageInfo, int status) { in WebViewProviderResponse()
45 packageInfo = in.readTypedObject(PackageInfo.CREATOR); in WebViewProviderResponse()
61 public final PackageInfo packageInfo;
DWebViewFactory.java26 import android.content.pm.PackageInfo;
64 private static PackageInfo sPackageInfo;
165 public static PackageInfo getLoadedPackageInfo() { in getLoadedPackageInfo()
210 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in loadWebViewNativeLibraryFromPackage()
302 private static void verifyPackageInfo(PackageInfo chosen, PackageInfo toUse) in verifyPackageInfo()
351 PackageInfo newPackageInfo = null; in getWebViewContextAndSetProvider()
455 public static int onWebViewProviderChanged(PackageInfo packageInfo) { in onWebViewProviderChanged()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java20 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/core/java/com/android/server/om/
DIdmapManager.java25 import android.content.pm.PackageInfo;
71 boolean createIdmap(@NonNull final PackageInfo targetPackage, in createIdmap()
72 @NonNull final PackageInfo overlayPackage, int userId) { in createIdmap()
121 boolean idmapExists(@NonNull final PackageInfo overlayPackage, final int userId) { in idmapExists()
148 private boolean enforceOverlayable(@NonNull final PackageInfo overlayPackage) { in enforceOverlayable()
170 private int calculateFulfilledPolicies(@NonNull final PackageInfo targetPackage, in calculateFulfilledPolicies()
171 @NonNull final PackageInfo overlayPackage, int userId) { in calculateFulfilledPolicies()
DOverlayManagerServiceImpl.java34 import android.content.pm.PackageInfo;
86 private static boolean mustReinitializeOverlay(@NonNull final PackageInfo theTruth, in mustReinitializeOverlay()
148 List<PackageInfo> overlayPackages = mPackageManager.getOverlayPackages(newUserId); in updateOverlaysForUser()
151 final PackageInfo overlayPackage = overlayPackages.get(i); in updateOverlaysForUser()
188 final PackageInfo overlayPackage = overlayPackages.get(i); 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()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageInfo.java29 public class PackageInfo implements Parcelable { class
407 public PackageInfo() { in PackageInfo() method in PackageInfo
492 public static final @android.annotation.NonNull Parcelable.Creator<PackageInfo> CREATOR
493 = new Parcelable.Creator<PackageInfo>() {
495 public PackageInfo createFromParcel(Parcel source) {
496 return new PackageInfo(source);
500 public PackageInfo[] newArray(int size) {
501 return new PackageInfo[size];
506 private PackageInfo(Parcel source) { in PackageInfo() method in PackageInfo
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformAdbBackupTask.java29 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 …]
DAppMetadataBackupWriter.java13 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/backup/java/com/android/server/backup/params/
DClearParams.java19 import android.content.pm.PackageInfo;
26 public PackageInfo packageInfo;
31 PackageInfo packageInfo, in ClearParams()
DRestoreParams.java22 import android.content.pm.PackageInfo;
32 @Nullable public final PackageInfo packageInfo;
46 PackageInfo packageInfo, in createForSinglePackage()
133 @Nullable PackageInfo packageInfo, in RestoreParams()
/frameworks/base/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java42 import android.content.pm.PackageInfo;
194 PackageInfo phonePackageInfo = new PackageInfo(); in setupPackageInfosForCoreApps()
201 PackageInfo mmsPackageInfo = new PackageInfo(); in setupPackageInfosForCoreApps()
208 PackageInfo bluetoothPackageInfo = new PackageInfo(); in setupPackageInfosForCoreApps()
215 PackageInfo telephonyProviderPackageInfo = new PackageInfo(); in setupPackageInfosForCoreApps()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DExternalResources.java22 import android.content.pm.PackageInfo;
48 public static Resources injectExternalResources(PackageInfo packageInfo) { in injectExternalResources()
153 private static PackageInfo createPackageInfo(String packageName) { in createPackageInfo()
154 PackageInfo packageInfo = new PackageInfo(); in createPackageInfo()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java28 import android.content.pm.PackageInfo;
123 PackageInfo packageInfo = pm.getPackageInfoAsUser(packageName, in appIsRunningAndEligibleForBackupWithTransport()
191 public static boolean appGetsFullBackup(PackageInfo pkg) { in appGetsFullBackup()
205 public static boolean appIsKeyValueOnly(PackageInfo pkg) { in appIsKeyValueOnly()
227 public static boolean signaturesMatch(Signature[] storedSigs, PackageInfo target, in signaturesMatch()

123456789