/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 202 mState.requestSize(mAppEntry.info.packageName); 214 public void onRemoveCompleted(final String packageName, final boolean succeeded) { in onRemoveCompleted() argument 222 public void onRemoveCompleted(final String packageName, final boolean succeeded) { in onRemoveCompleted() argument 230 public void packageMoved(String packageName, int returnCode) throws RemoteException { in packageMoved() argument 248 || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in initDataButtons() 327 intent.setPackage(mAppEntry.info.packageName); in handleDisableable() 373 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in initUninstallButtons() 388 enabled = nm.areNotificationsEnabledForPackage(mAppEntry.info.packageName, in initNotificationButton() 497 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onPrepareOptionsMenu() 511 uninstallPkg(mAppEntry.info.packageName, true, false); in onOptionsItemSelected() [all …]
|
D | AppOpsState.java | 251 mLabel = mInfo.packageName; in loadLabel() 255 mLabel = label != null ? label.toString() : mInfo.packageName; in loadLabel() 437 final String packageName, ApplicationInfo appInfo) { in getAppEntry() argument 438 AppEntry appEntry = appEntries.get(packageName); in getAppEntry() 442 appInfo = mPm.getApplicationInfo(packageName, in getAppEntry() 446 Log.w(TAG, "Unable to find info for package " + packageName); in getAppEntry() 452 appEntries.put(packageName, appEntry); in getAppEntry() 457 public List<AppOpEntry> buildState(OpsTemplate tpl, int uid, String packageName) { in buildState() argument 478 if (packageName != null) { in buildState() 479 pkgs = mAppOps.getOpsForPackage(uid, packageName, tpl.ops); in buildState() [all …]
|
D | ApplicationsState.java | 50 public void onPackageSizeChanged(String packageName); in onPackageSizeChanged() argument 131 this.label = info.packageName; in ensureLabel() 135 this.label = label != null ? label.toString() : info.packageName; in ensureLabel() 580 if (DEBUG) Log.i(TAG, "Using " + info.packageName + ": " + entry); in handleRebuildList() 662 final AppEntry entry = mEntriesMap.get(info.packageName); in doResumeIfNeededLocked() 693 AppEntry getEntry(String packageName) { in getEntry() argument 696 AppEntry entry = mEntriesMap.get(packageName); in getEntry() 700 if (packageName.equals(info.packageName)) { in getEntry() 720 void requestSize(String packageName) { in requestSize() argument 723 AppEntry entry = mEntriesMap.get(packageName); in requestSize() [all …]
|
D | AppOpsDetails.java | 85 String packageName = (args != null) ? args.getString(ARG_PACKAGE_NAME) : null; in retrieveAppEntry() local 86 if (packageName == null) { in retrieveAppEntry() 90 packageName = intent.getData().getSchemeSpecificPart(); in retrieveAppEntry() 94 mPackageInfo = mPm.getPackageInfo(packageName, in retrieveAppEntry() 98 Log.e(TAG, "Exception when retrieving package:" + packageName, e); in retrieveAppEntry() 102 return packageName; in retrieveAppEntry() 118 mPackageInfo.applicationInfo.uid, mPackageInfo.packageName); in refreshUi()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AppRestrictionsFragment.java | 163 String packageName; field in AppRestrictionsFragment.SelectableAppInfo 171 return packageName + ": appName=" + appName + "; activityName=" + activityName in toString() 363 String packageName = entry.getKey(); in updateUserAppList() local 367 ApplicationInfo info = ipm.getApplicationInfo(packageName, 0, userId); in updateUserAppList() 369 ipm.installExistingPackageAsUser(packageName, mUser.getIdentifier()); in updateUserAppList() 371 Log.d(TAG, "Installing " + packageName); in updateUserAppList() 379 ApplicationInfo info = ipm.getApplicationInfo(packageName, 0, userId); in updateUserAppList() 384 Log.d(TAG, "Uninstalling " + packageName); in updateUserAppList() 393 private boolean isSystemPackage(String packageName) { in isSystemPackage() argument 395 final PackageInfo pi = mPackageManager.getPackageInfo(packageName, 0); in isSystemPackage() [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 157 public static void initEffectsPreferences(final Context context, final String packageName, in initEffectsPreferences() argument 159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences() 357 public static void setParameterBoolean(final Context context, final String packageName, in setParameterBoolean() argument 360 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean() 378 setParameterInt(context, packageName, in setParameterBoolean() 387 setParameterInt(context, packageName, in setParameterBoolean() 395 packageName, audioSession, Key.eq_band_level); in setParameterBoolean() 399 setParameterInt(context, packageName, in setParameterBoolean() 528 public static Boolean getParameterBoolean(final Context context, final String packageName, in getParameterBoolean() argument 530 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean() [all …]
|
D | ControlPanelReceiver.java | 43 final String packageName = intent.getStringExtra(AudioEffect.EXTRA_PACKAGE_NAME); in onReceive() local 48 Log.v(TAG, "Package name: " + packageName); in onReceive() 52 if (packageName == null) { in onReceive() 67 final boolean isGlobalEnabled = context.getSharedPreferences(packageName, in onReceive() 72 ControlPanelEffect.openSession(context, packageName, audioSession); in onReceive() 78 ControlPanelEffect.closeSession(context, packageName, audioSession); in onReceive() 87 ControlPanelEffect.setParameterBoolean(context, packageName, audioSession, in onReceive() 97 final Boolean value = ControlPanelEffect.getParameterBoolean(context, packageName, in onReceive()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactDirectoryManager.java | 60 String packageName; field in ContactDirectoryManager.DirectoryInfo 143 String packageName = cursor.getString(1); in areTypeResourceIdsValid() local 145 String resourceName = getResourceNameById(packageName, resourceId); in areTypeResourceIdsValid() 162 private String getResourceNameById(String packageName, int resourceId) { in getResourceNameById() argument 164 Resources resources = mPackageManager.getResourcesForApplication(packageName); in getResourceNameById() 226 ret.add(provider.packageName); in getDirectoryProviderPackages() 256 for (String packageName : getDirectoryProviderPackages(mPackageManager)) { in scanAllPackages() 257 if (DEBUG) Log.d(TAG, "package=" + packageName); in scanAllPackages() 261 if (mContext.getPackageName().equals(packageName)) { in scanAllPackages() 268 packageInfo = mPackageManager.getPackageInfo(packageName, in scanAllPackages() [all …]
|
D | VoicemailPermissions.java | 71 public boolean packageHasOwnVoicemailAccess(String packageName) { in packageHasOwnVoicemailAccess() argument 72 return packageHasPermission(packageName, in packageHasOwnVoicemailAccess() 77 public boolean packageHasFullAccess(String packageName) { in packageHasFullAccess() argument 79 packageName, android.Manifest.permission.ADD_VOICEMAIL) && in packageHasFullAccess() 80 packageHasPermission(packageName, Manifest.permission.READ_WRITE_ALL_VOICEMAIL); in packageHasFullAccess() 84 private boolean packageHasPermission(String packageName, String permission) { in packageHasPermission() argument 85 return mContext.getPackageManager().checkPermission(permission, packageName) in packageHasPermission()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AllAppsList.java | 89 public void addPackage(Context context, String packageName) { in addPackage() argument 90 final List<ResolveInfo> matches = findActivitiesForPackage(context, packageName); in addPackage() 102 public void removePackage(String packageName) { in removePackage() argument 107 if (packageName.equals(component.getPackageName())) { in removePackage() 119 public void updatePackage(Context context, String packageName) { in updatePackage() argument 120 final List<ResolveInfo> matches = findActivitiesForPackage(context, packageName); in updatePackage() 127 if (packageName.equals(component.getPackageName())) { in updatePackage() 142 info.activityInfo.applicationInfo.packageName, in updatePackage() 157 if (packageName.equals(component.getPackageName())) { in updatePackage() 169 private static List<ResolveInfo> findActivitiesForPackage(Context context, String packageName) { in findActivitiesForPackage() argument [all …]
|
D | WidgetPreviewLoader.java | 307 sb.append(new ComponentName(info.activityInfo.packageName, in getObjectName() 320 return info.activityInfo.packageName; in getObjectPackage() 337 public static void removeFromDb(final CacheDb cacheDb, final String packageName) { in removeFromDb() argument 339 sInvalidPackages.add(packageName); in removeFromDb() 348 WIDGET_PREFIX + packageName + "/%", in removeFromDb() 349 SHORTCUT_PREFIX + packageName + "/%"} // args to SELECT query in removeFromDb() 352 sInvalidPackages.remove(packageName); in removeFromDb() 424 String packageName = provider.getPackageName(); in generateWidgetPreview() local 430 drawable = mPackageManager.getDrawable(packageName, previewImage, null); in generateWidgetPreview() 481 icon = mIconCache.getFullResIcon(packageName, iconId); in generateWidgetPreview()
|
D | ApplicationInfo.java | 67 final String packageName = info.activityInfo.applicationInfo.packageName; in ApplicationInfo() local 69 this.componentName = new ComponentName(packageName, info.activityInfo.name); in ApplicationInfo() 75 int appFlags = pm.getApplicationInfo(packageName, 0).flags; in ApplicationInfo() 83 firstInstallTime = pm.getPackageInfo(packageName, 0).firstInstallTime; in ApplicationInfo() 85 Log.d(TAG, "PackageManager.getApplicationInfo failed for " + packageName); in ApplicationInfo()
|
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
D | ApplicationsProvider.java | 157 public void onPackageModified(String packageName) { in onPackageModified() argument 158 postUpdatePackage(packageName); in onPackageModified() 231 private void postUpdatePackage(String packageName) { in postUpdatePackage() argument 234 msg.obj = packageName; in postUpdatePackage() 500 private synchronized void updateApplicationsList(String packageName) { in updateApplicationsList() argument 501 if (DBG) Log.d(TAG, "Updating database (packageName = " + packageName + ")..."); in updateApplicationsList() 517 removeApplications(packageName); in updateApplicationsList() 522 if (packageName != null) { in updateApplicationsList() 524 mainIntent.setPackage(packageName); in updateApplicationsList() 537 String activityPackageName = info.activityInfo.applicationInfo.packageName; in updateApplicationsList() [all …]
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | Sources.java | 139 final String packageName = intent.getData().getSchemeSpecificPart(); in onReceive() local 140 pkgList = new String[] { packageName }; in onReceive() 143 for (String packageName : pkgList) { in onReceive() 144 final boolean knownPackage = mKnownPackages.contains(packageName); in onReceive() 147 invalidateCache(packageName); in onReceive() 159 protected void invalidateCache(String packageName) { in invalidateCache() argument 161 if (TextUtils.equals(packageName, source.resPackageName)) { in invalidateCache() 209 source = new GoogleSource(auth.packageName); in queryAccounts() 211 source = new ExchangeSource(auth.packageName); in queryAccounts() 215 + ", packageName=" + auth.packageName); in queryAccounts() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockPackageManager.java | 49 public void addPackage(int packageUid, String packageName) { in addPackage() argument 50 mForward.put(packageUid, packageName); in addPackage() 51 mReverse.put(packageName, packageUid); in addPackage() 62 return new String[] { mPackages.get(0).packageName }; in getPackagesForUid() 69 public ApplicationInfo getApplicationInfo(String packageName, int flags) { in getApplicationInfo() argument 71 Integer uid = mReverse.get(packageName); in getApplicationInfo() 86 public PackageInfo getPackageInfo(String packageName, int flags) throws NameNotFoundException { in getPackageInfo() argument 88 if (info.packageName.equals(packageName)) { in getPackageInfo()
|
D | ContactDirectoryManagerTest.java | 381 info.packageName = "test.package3"; in testPackageRenamed() 382 info.providers[0].packageName = "test.package3"; in testPackageRenamed() 581 protected PackageInfo createProviderPackage(String packageName, String authority) { in createProviderPackage() argument 582 return createPackage(packageName, authority, true); in createProviderPackage() 585 protected PackageInfo createPackage(String packageName, String authority, in createPackage() argument 588 providerPackage.packageName = packageName; in createPackage() 590 providerInfo.packageName = providerPackage.packageName; in createPackage() 614 protected void assertDirectoryRow(Cursor cursor, String packageName, String authority, in assertDirectoryRow() argument 618 values.put(Directory.PACKAGE_NAME, packageName); in assertDirectoryRow()
|
D | ContactsActor.java | 84 public String packageName; field in ContactsActor 146 public ContactsActor(Context overallContext, String packageName, in ContactsActor() argument 149 context = new RestrictionMockContext(overallContext, packageName, resolver, in ContactsActor() 151 this.packageName = packageName; in ContactsActor() 290 ai.packageName = "contactsTestPackage"; in getApplicationInfo() 360 sCallingPackage = this.packageName; in ensureCallingPackage() 492 values.put(ContactsContract.Groups.RES_PACKAGE, packageName); in createGroup()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | TargetPackageInfoGetterTask.java | 31 public static PackageInfo getCachedPackageInfo(final String packageName) { in getCachedPackageInfo() argument 32 if (null == packageName) return null; in getCachedPackageInfo() 33 return sCache.get(packageName); in getCachedPackageInfo() 36 public static void removeCachedPackageInfo(final String packageName) { in removeCachedPackageInfo() argument 37 sCache.remove(packageName); in removeCachedPackageInfo() 54 protected PackageInfo doInBackground(final String... packageName) { in doInBackground() argument 58 final PackageInfo packageInfo = pm.getPackageInfo(packageName[0], 0 /* flags */); in doInBackground() 59 sCache.put(packageName[0], packageInfo); in doInBackground()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
D | ExternalAccountType.java | 105 ExternalAccountType(Context context, String packageName, boolean isExtension, in ExternalAccountType() argument 108 this.resourcePackageName = packageName; in ExternalAccountType() 109 this.syncAdapterPackageName = packageName; in ExternalAccountType() 115 parser = loadContactsXml(context, packageName); in ExternalAccountType() 151 error.append(packageName); in ExternalAccountType() 411 String packageName, String xmlAttributeName) { in resolveExternalResId() argument 422 res = context.getPackageManager().getResourcesForApplication(packageName); in resolveExternalResId() 424 Log.e(TAG, "Unable to load package " + packageName); in resolveExternalResId() 427 final int resId = res.getIdentifier(name, null, packageName); in resolveExternalResId() 429 Log.e(TAG, "Unable to load " + resourceName + " from package " + packageName); in resolveExternalResId()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallAppProgress.java | 99 mAppInfo.packageName); 210 public void packageInstalled(String packageName, int returnCode) { 222 PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName, 230 Log.w(TAG, "Replacing package:" + mAppInfo.packageName); 267 pm.installExistingPackage(mAppInfo.packageName); 268 observer.packageInstalled(mAppInfo.packageName, 271 observer.packageInstalled(mAppInfo.packageName, 287 if (mAppInfo.packageName != null) { 288 Log.i(TAG, "Finished installing "+mAppInfo.packageName);
|
D | UninstallAppProgress.java | 73 final String packageName = (String) msg.obj; 86 Log.d(TAG, "Uninstall failed because " + packageName 92 Log.d(TAG, "Uninstall failed for " + packageName + " with code " 119 public void packageDeleted(String packageName, int returnCode) { in packageDeleted() argument 122 msg.obj = packageName; in packageDeleted() 163 getPackageManager().deletePackage(mAppInfo.packageName, observer, in initView() 169 Log.i(TAG, "Finished uninstalling pkg: " + mAppInfo.packageName); in onClick()
|
/packages/apps/Settings/src/com/android/settings/ |
D | KeyguardAppWidgetPickActivity.java | 149 String packageName; field in KeyguardAppWidgetPickActivity.Item 182 if (packageName != null && className != null) { in getIntent() 184 intent.setClassName(packageName, className); in getIntent() 220 Bitmap b = getWidgetPreview(new ComponentName(packageName, className), in doInBackground() 300 String packageName = provider.getPackageName(); in getWidgetPreview() local 309 drawable = mPackageManager.getDrawable(packageName, previewImage, null); in getWidgetPreview() 333 icon = getFullResIcon(packageName, iconId); in getWidgetPreview() 396 public Drawable getFullResIcon(String packageName, int iconId) { in getFullResIcon() argument 399 resources = mPackageManager.getResourcesForApplication(packageName); in getFullResIcon() 437 item.packageName = info.provider.getPackageName(); in createItem()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
D | ExternalAccountTypeTest.java | 52 final String packageName = getTestContext().getPackageName(); in testResolveExternalResId() local 55 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, null, packageName, "")); in testResolveExternalResId() 56 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "", packageName, "")); in testResolveExternalResId() 59 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "x", packageName, "")); in testResolveExternalResId() 62 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "@", packageName, "")); in testResolveExternalResId() 63 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "@a", packageName, "")); in testResolveExternalResId() 64 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "@a/b", packageName, "")); in testResolveExternalResId() 68 "@string/test_string", packageName, "")); in testResolveExternalResId()
|
D | AccountTypeTest.java | 35 final String packageName = getTestContext().getPackageName(); in testGetResourceText() local 44 assertEquals(DEFAULT, AccountType.getResourceText(c, packageName, -1, DEFAULT)); in testGetResourceText() 49 AccountType.getResourceText(c, packageName, externalResID, DEFAULT)); in testGetResourceText() 62 final String packageName = getTestContext().getPackageName(); in testGetInviteContactActionLabel() local 69 resourcePackageName = packageName; in testGetInviteContactActionLabel() 70 syncAdapterPackageName = packageName; in testGetInviteContactActionLabel()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | LocalizedNameResolver.java | 71 return resolveAllContactsNameFromMetaData(context, auth.packageName); in resolveAllContactsName() 82 private static String resolveAllContactsNameFromMetaData(Context context, String packageName) { in resolveAllContactsNameFromMetaData() argument 85 PackageInfo pi = pm.getPackageInfo(packageName, PackageManager.GET_SERVICES in resolveAllContactsNameFromMetaData() 91 return loadAllContactsNameFromXml(context, parser, packageName); in resolveAllContactsNameFromMetaData() 102 String packageName) { in loadAllContactsNameFromXml() argument 140 resources = packageManager.getResourcesForApplication(packageName); in loadAllContactsNameFromXml()
|