Home
last modified time | relevance | path

Searched refs:packageInfo (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/java/com/android/internal/os/
DSamplingProfilerIntegration.java118 public static void writeSnapshot(final String processName, final PackageInfo packageInfo) { in writeSnapshot() argument
137 writeSnapshotFile(processName, packageInfo); in writeSnapshot()
162 private static void writeSnapshotFile(String processName, PackageInfo packageInfo) { in writeSnapshotFile() argument
181 generateSnapshotHeader(name, packageInfo, out); in writeSnapshotFile()
213 private static void generateSnapshotHeader(String processName, PackageInfo packageInfo, in generateSnapshotHeader() argument
218 if (packageInfo != null) { in generateSnapshotHeader()
219 out.println("Package: " + packageInfo.packageName); in generateSnapshotHeader()
220 out.println("Package-Version: " + packageInfo.versionCode); in generateSnapshotHeader()
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java103 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor data) { in performBackup() argument
104 if (DEBUG) Log.v(TAG, "performBackup() pkg=" + packageInfo.packageName); in performBackup()
106 File packageDir = new File(mDataDir, packageInfo.packageName); in performBackup()
175 public int clearBackupData(PackageInfo packageInfo) { in clearBackupData() argument
176 if (DEBUG) Log.v(TAG, "clearBackupData() pkg=" + packageInfo.packageName); in clearBackupData()
178 File packageDir = new File(mDataDir, packageInfo.packageName); in clearBackupData()
DIBackupTransport.aidl115 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd); in performBackup() argument
125 int clearBackupData(in PackageInfo packageInfo); in clearBackupData() argument
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DUtils.java301 PackageInfo packageInfo; in getUserAgent() local
303 packageInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0); in getUserAgent()
308 packageInfo.packageName, in getUserAgent()
309 packageInfo.versionName, in getUserAgent()
/frameworks/base/core/java/android/app/
DActivityThread.java278 LoadedApk packageInfo; field in ActivityThread.ActivityClientRecord
1194 r.packageInfo = getPackageInfoNoCheck( in handleMessage()
1412 android.content.pm.PackageInfo packageInfo = null; in maybeSnapshot() local
1424 packageInfo = pm.getPackageInfo( in maybeSnapshot()
1429 … SamplingProfilerIntegration.writeSnapshot(mBoundApplication.processName, packageInfo); in maybeSnapshot()
1556 LoadedApk packageInfo = ref != null ? ref.get() : null; in getPackageInfo() local
1560 if (packageInfo != null && (packageInfo.mResources == null in getPackageInfo()
1561 || packageInfo.mResources.getAssets().isUpToDate())) { in getPackageInfo()
1562 if (packageInfo.isSecurityViolation() in getPackageInfo()
1570 return packageInfo; in getPackageInfo()
[all …]
DContextImpl.java1969 LoadedApk packageInfo = new LoadedApk(mainThread); in createSystemContext() local
1971 packageInfo, null, null, false, null, null); in createSystemContext()
1977 static ContextImpl createAppContext(ActivityThread mainThread, LoadedApk packageInfo) { in createAppContext() argument
1978 if (packageInfo == null) throw new IllegalArgumentException("packageInfo"); in createAppContext()
1980 packageInfo, null, null, false, null, null); in createAppContext()
1984 LoadedApk packageInfo, IBinder activityToken) { in createActivityContext() argument
1985 if (packageInfo == null) throw new IllegalArgumentException("packageInfo"); in createActivityContext()
1988 packageInfo, activityToken, null, false, null, null); in createActivityContext()
1992 LoadedApk packageInfo, IBinder activityToken, UserHandle user, boolean restricted, in ContextImpl() argument
2005 mPackageInfo = packageInfo; in ContextImpl()
[all …]
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java199 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, 0); in processStillUp() local
200 String processName = packageInfo.applicationInfo.processName; in processStillUp()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java3431 PackageInfo packageInfo = null; in testGetInstalledPackagesAll() local
3438 packageInfo = pi; in testGetInstalledPackagesAll()
3442 assertNotNull("activities should not be null", packageInfo.activities); in testGetInstalledPackagesAll()
3443 assertNotNull("configPreferences should not be null", packageInfo.configPreferences); in testGetInstalledPackagesAll()
3444 assertNotNull("instrumentation should not be null", packageInfo.instrumentation); in testGetInstalledPackagesAll()
3445 assertNotNull("permissions should not be null", packageInfo.permissions); in testGetInstalledPackagesAll()
3446 assertNotNull("providers should not be null", packageInfo.providers); in testGetInstalledPackagesAll()
3447 assertNotNull("receivers should not be null", packageInfo.receivers); in testGetInstalledPackagesAll()
3448 assertNotNull("services should not be null", packageInfo.services); in testGetInstalledPackagesAll()
3449 assertNotNull("signatures should not be null", packageInfo.signatures); in testGetInstalledPackagesAll()
[all …]
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestGrouping.java154 ClassPathPackageInfo packageInfo = source.getPackageInfo(packageName); in testCaseClassesInPackage() local
156 return selectTestClasses(packageInfo.getTopLevelClassesRecursive()); in testCaseClassesInPackage()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
DSelectPrinterFragment.java543 PackageInfo packageInfo = pm.getPackageInfo(printer.getId()
545 subtitle = packageInfo.applicationInfo.loadLabel(pm);
546 icon = packageInfo.applicationInfo.loadIcon(pm);
DPrintJobConfigActivity.java2398 PackageInfo packageInfo = getPackageManager().getPackageInfo( in run() local
2400 CharSequence service = packageInfo.applicationInfo.loadLabel( in run()
2545 PackageInfo packageInfo = getPackageManager().getPackageInfo( in getView() local
2547 subtitle = packageInfo.applicationInfo.loadLabel(getPackageManager()); in getView()
2548 icon = packageInfo.applicationInfo.loadIcon(getPackageManager()); in getView()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java278 PackageInfo packageInfo = in inSystemImage() local
280 if ((packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in inSystemImage()
/frameworks/base/services/java/com/android/server/
DBackupManagerService.java366 public PackageInfo packageInfo; field in BackupManagerService.ClearParams
370 packageInfo = _info; in ClearParams()
639 (new PerformClearTask(params.transport, params.packageInfo)).run(); in handleMessage()
4749 PackageInfo packageInfo; in restoreNextAgent() local
4752 packageInfo = mPackageManager.getPackageInfo(packageName, flags); in restoreNextAgent()
4761 if (packageInfo.applicationInfo.backupAgentName == null in restoreNextAgent()
4762 || "".equals(packageInfo.applicationInfo.backupAgentName)) { in restoreNextAgent()
4773 if (metaInfo.versionCode > packageInfo.versionCode) { in restoreNextAgent()
4777 if ((packageInfo.applicationInfo.flags in restoreNextAgent()
4780 + " > installed version " + packageInfo.versionCode; in restoreNextAgent()
[all …]
/frameworks/base/docs/html/google/gcm/
Dgs.jd275 PackageInfo packageInfo = context.getPackageManager()
277 return packageInfo.versionCode;
/frameworks/base/services/java/com/android/server/accounts/
DAccountManagerService.java2666 PackageInfo packageInfo = userPackageManager.getPackageInfo(name, 0 /* flags */); in isPrivileged() local
2667 if (packageInfo != null in isPrivileged()
2668 … && (packageInfo.applicationInfo.flags & ApplicationInfo.FLAG_PRIVILEGED) != 0) { in isPrivileged()