/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
AppWorkaroundsUtils.java | 19 import android.content.pm.PackageInfo; 26 private PackageInfo mPackageInfo; // May be null 29 public void setPackageInfo(final PackageInfo packageInfo) { 30 mPackageInfo = packageInfo; 32 packageInfo);
|
/frameworks/base/core/java/com/android/internal/backup/ |
IBackupTransport.aidl | 21 import android.content.pm.PackageInfo; 101 * @param packageInfo The identity of the application whose data is being backed up. 115 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd); 125 int clearBackupData(in PackageInfo packageInfo); 168 int startRestore(long token, in PackageInfo[] packages);
|
LocalTransport.java | 25 import android.content.pm.PackageInfo; 63 private PackageInfo[] mRestorePackages = null; 103 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor data) { 104 if (DEBUG) Log.v(TAG, "performBackup() pkg=" + packageInfo.packageName); 106 File packageDir = new File(mDataDir, packageInfo.packageName); 175 public int clearBackupData(PackageInfo packageInfo) { 176 if (DEBUG) Log.v(TAG, "clearBackupData() pkg=" + packageInfo.packageName); 178 File packageDir = new File(mDataDir, packageInfo.packageName) [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
SamplingProfilerIntegration.java | 19 import android.content.pm.PackageInfo; 118 public static void writeSnapshot(final String processName, final PackageInfo packageInfo) { 137 writeSnapshotFile(processName, packageInfo); 160 * pass in PackageInfo to retrieve various values for snapshot header 162 private static void writeSnapshotFile(String processName, PackageInfo packageInfo) { 181 generateSnapshotHeader(name, packageInfo, out); 213 private static void generateSnapshotHeader(String processName, PackageInfo packageInfo, [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
AboutPreferences.java | 20 import android.content.pm.PackageInfo; 37 final PackageInfo packageInfo = 39 findPreference(BUILD_VERSION).setSummary(packageInfo.versionName);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
TargetPackageInfoGetterTask.java | 20 import android.content.pm.PackageInfo; 26 AsyncTask<String, Void, PackageInfo> { 28 private static final LruCache<String, PackageInfo> sCache = 29 new LruCache<String, PackageInfo>(MAX_CACHE_ENTRIES); 31 public static PackageInfo getCachedPackageInfo(final String packageName) { 41 public void onTargetPackageInfoKnown(final PackageInfo info); 54 protected PackageInfo doInBackground(final String... packageName) { 58 final PackageInfo packageInfo = pm.getPackageInfo(packageName[0], 0 /* flags */); 59 sCache.put(packageName[0], packageInfo); [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
PackageSignatureTest.java | 21 import android.content.pm.PackageInfo; 48 List<PackageInfo> allPackageInfos = packageManager.getInstalledPackages( 51 for (PackageInfo packageInfo : allPackageInfos) { 52 String packageName = packageInfo.packageName; 54 for (Signature signature : packageInfo.signatures) { 56 badPackages.add(packageInfo.packageName); 150 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 153 int numSignatures = packageInfo.signatures.length [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManager.java | 12 import android.content.pm.PackageInfo; 21 private Map<String, PackageInfo> packageList; 38 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { 61 PackageInfo info; 70 public List<PackageInfo> getInstalledPackages(int flags) { 71 return new ArrayList<PackageInfo>(packageList.values()); 154 * @param packageInfo 156 public void addPackage( PackageInfo packageInfo ) { 157 packageList.put(packageInfo.packageName, packageInfo) [all...] |
/external/doclava/src/com/google/doclava/ |
LinkReference.java | 46 /** The {@link PackageInfo} if any. */ 47 public PackageInfo packageInfo; 55 /** The name of the referenced member PackageInfo} if any. */ 272 result.packageInfo = Converter.obtainPackage(ref); 338 + (result.packageInfo != null ? result.packageInfo.name() : "") + "/class=" 376 } else if (result.packageInfo != null) { 377 result.href = result.packageInfo.htmlPage(); 379 result.href = result.packageInfo.htmlPage() [all...] |
DoclavaDiff.java | 113 PackageInfo packageInfo = new PackageInfo(pkg); 122 data.setValue(siteBase + ".link", site.linkFor(packageInfo.htmlPage())); 196 Map<String, PackageInfo> packages = site.apiInfo().getPackages(); 213 PackageInfo packageInfo = site.apiInfo().getPackages().get(pkg); 214 if (packageInfo == null) { 217 HashMap<String, ClassInfo> classes = packageInfo.allClasses();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryPackInstallBroadcastReceiver.java | 25 import android.content.pm.PackageInfo; 80 final PackageInfo packageInfo; 82 packageInfo = manager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS); 86 final ProviderInfo[] providers = packageInfo.providers;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsMockPackageManager.java | 20 import android.content.pm.PackageInfo; 41 private List<PackageInfo> mPackages; 76 public void setInstalledPackages(List<PackageInfo> packages) { 81 public List<PackageInfo> getInstalledPackages(int flags) { 86 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { 87 for (PackageInfo info : mPackages) { 104 for (PackageInfo packageInfo : mPackages) { 105 if (packageInfo.providers == null) continue; 106 for (ProviderInfo providerInfo : packageInfo.providers) [all...] |
/packages/apps/Settings/src/com/android/settings/net/ |
UidDetailProvider.java | 21 import android.content.pm.PackageInfo; 141 final PackageInfo packageInfo = pm.getPackageInfo(packageName, 0); 145 if (packageInfo.sharedUserLabel != 0) { 146 detail.label = pm.getText(packageName, packageInfo.sharedUserLabel, 147 packageInfo.applicationInfo).toString();
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/ |
RobolectricPackageManagerTest.java | 16 import android.content.pm.PackageInfo; 50 PackageInfo packageInfo = new PackageInfo(); 51 packageInfo.packageName = TEST_PACKAGE_NAME; 52 packageInfo.applicationInfo = new ApplicationInfo(); 53 packageInfo.applicationInfo.packageName = TEST_PACKAGE_NAME; 54 packageInfo.applicationInfo.name = TEST_PACKAGE_LABEL; 55 rpm.addPackage(packageInfo);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactDirectoryManager.java | 21 import android.content.pm.PackageInfo; 266 final PackageInfo packageInfo; 268 packageInfo = mPackageManager.getPackageInfo(packageName, 270 if (packageInfo == null) continue; // Just in case... 275 List<DirectoryInfo> directories = updateDirectoriesForPackage(packageInfo, true); 335 PackageInfo packageInfo = null; 338 packageInfo = mPackageManager.getPackageInfo(packageName, 342 packageInfo = new PackageInfo() [all...] |
/development/apps/Development/src/com/android/development/ |
PackageBrowser.java | 26 import android.content.pm.PackageInfo; 47 PackageInfo info; 60 List<PackageInfo> pkgs = context.getPackageManager().getInstalledPackages(0); 143 final MyPackageInfo packageInfo = mAdapter.itemForPosition(curSelection); 144 if (packageInfo != null) { 145 getPackageManager().deletePackage(packageInfo.info.packageName, 158 final String dataPath = packageInfo.info.applicationInfo.dataDir;
|
/external/clang/lib/StaticAnalyzer/Core/ |
CheckerRegistry.cpp | 48 CheckerRegistry::CheckerInfo packageInfo(NULL, opt.getName(), ""); 51 std::lower_bound(checkers.begin(), e, packageInfo, checkerNameLT);
|
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/ |
AppCompatibility.java | 24 import android.content.pm.PackageInfo; 199 PackageInfo packageInfo = mPackageManager.getPackageInfo(packageName, 0); 200 String processName = packageInfo.applicationInfo.processName;
|
/frameworks/base/core/java/android/app/ |
ActivityThread.java | 32 import android.content.pm.PackageInfo; 278 LoadedApk packageInfo; [all...] |
ContextImpl.java | [all...] |
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
TestGrouping.java | 154 ClassPathPackageInfo packageInfo = source.getPackageInfo(packageName); 156 return selectTestClasses(packageInfo.getTopLevelClassesRecursive());
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
PackageManagerTests.java | 28 import android.content.pm.PackageInfo; 352 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL) { 361 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY) { 367 if (expInstallLocation == PackageInfo.INSTALL_LOCATION_AUTO) { 599 PackageInfo.INSTALL_LOCATION_UNSPECIFIED); 615 PackageInfo pkgInfo = null; [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
ExternalAccountType.java | 20 import android.content.pm.PackageInfo; 191 PackageInfo packageInfo = pm.getPackageInfo(resPackageName, 193 for (ServiceInfo serviceInfo : packageInfo.services) {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ |
SelectPrinterFragment.java | 33 import android.content.pm.PackageInfo; 543 PackageInfo packageInfo = pm.getPackageInfo(printer.getId() 545 subtitle = packageInfo.applicationInfo.loadLabel(pm); 546 icon = packageInfo.applicationInfo.loadIcon(pm);
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
PackageManagerTest.java | 27 import android.content.pm.PackageInfo; 206 PackageInfo packageInfo = mPackageManager.getPackageInfo(PACKAGE_NAME, 208 assertEquals(PACKAGE_NAME, packageInfo.packageName); 470 final PackageInfo pkgInfo = mPackageManager.getPackageArchiveInfo(apkPath, flags);
|