/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | TargetApplicationGetter.java | 31 public static ApplicationInfo getCachedApplicationInfo(final String packageName) { in getCachedApplicationInfo() argument 32 if (null == packageName) return null; in getCachedApplicationInfo() 33 return sCache.get(packageName); in getCachedApplicationInfo() 35 public static void removeApplicationInfoCache(final String packageName) { in removeApplicationInfoCache() argument 36 sCache.remove(packageName); in removeApplicationInfoCache() 53 protected ApplicationInfo doInBackground(final String... packageName) { in doInBackground() argument 58 pm.getApplicationInfo(packageName[0], 0 /* flags */); in doInBackground() 59 sCache.put(packageName[0], targetAppInfo); in doInBackground()
|
D | DictionaryPackInstallBroadcastReceiver.java | 52 final String packageName = packageUri.getSchemeSpecificPart(); in onReceive() 53 if (null == packageName) return; in onReceive() 55 TargetApplicationGetter.removeApplicationInfoCache(packageName); in onReceive() 58 packageInfo = manager.getPackageInfo(packageName, PackageManager.GET_PROVIDERS); in onReceive()
|
/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 | MockPackageManager.java | 41 private ResolveInfo createResolveInfo(String packageName) { in createResolveInfo() argument 43 activityInfo.packageName = packageName; in createResolveInfo()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 177 mState.requestSize(mAppEntry.info.packageName); 189 public void onRemoveCompleted(final String packageName, final boolean succeeded) { in onRemoveCompleted() argument 197 public void onRemoveCompleted(final String packageName, final boolean succeeded) { in onRemoveCompleted() argument 205 public void packageMoved(String packageName, int returnCode) throws RemoteException { in packageMoved() argument 223 || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in initDataButtons() 309 intent.setPackage(mAppEntry.info.packageName); in initUninstallButtons() 331 if (mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in initUninstallButtons() 346 enabled = nm.areNotificationsEnabledForPackage(mAppEntry.info.packageName); in initNotificationButton() 471 public void onPackageSizeChanged(String packageName) { in onPackageSizeChanged() argument 472 if (packageName.equals(mAppEntry.info.packageName)) { in onPackageSizeChanged() [all …]
|
D | ApplicationsState.java | 49 public void onPackageSizeChanged(String packageName); in onPackageSizeChanged() argument 130 this.label = info.packageName; in ensureLabel() 134 this.label = label != null ? label.toString() : info.packageName; in ensureLabel() 537 if (DEBUG) Log.i(TAG, "Using " + info.packageName + ": " + entry); in handleRebuildList() 618 final AppEntry entry = mEntriesMap.get(info.packageName); in doResumeIfNeededLocked() 645 AppEntry getEntry(String packageName) { in getEntry() argument 648 AppEntry entry = mEntriesMap.get(packageName); in getEntry() 652 if (packageName.equals(info.packageName)) { in getEntry() 672 void requestSize(String packageName) { in requestSize() argument 675 AppEntry entry = mEntriesMap.get(packageName); in requestSize() [all …]
|
/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 | ApplicationInfo.java | 72 final String packageName = info.activityInfo.applicationInfo.packageName; in ApplicationInfo() local 74 this.componentName = new ComponentName(packageName, info.activityInfo.name); in ApplicationInfo() 80 int appFlags = pm.getApplicationInfo(packageName, 0).flags; in ApplicationInfo() 88 firstInstallTime = pm.getPackageInfo(packageName, 0).firstInstallTime; in ApplicationInfo() 90 Log.d(TAG, "PackageManager.getApplicationInfo failed for " + packageName); in ApplicationInfo()
|
D | ItemInfo.java | 117 String packageName = intent.getPackage(); in getPackageName() local 118 if (packageName == null && intent.getComponent() != null) { in getPackageName() 119 packageName = intent.getComponent().getPackageName(); in getPackageName() 121 if (packageName != null) { in getPackageName() 122 return packageName; in getPackageName()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
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()
|
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 …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
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()
|
D | ControlPanelEffect.java | 152 public static void initEffectsPreferences(final Context context, final String packageName, in initEffectsPreferences() argument 154 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences() 334 public static void setParameterBoolean(final Context context, final String packageName, in setParameterBoolean() argument 337 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean() 354 setParameterInt(context, packageName, in setParameterBoolean() 363 setParameterInt(context, packageName, in setParameterBoolean() 371 packageName, audioSession, Key.eq_band_level); in setParameterBoolean() 375 setParameterInt(context, packageName, in setParameterBoolean() 504 public static Boolean getParameterBoolean(final Context context, final String packageName, in getParameterBoolean() argument 506 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean() [all …]
|
D | Compatibility.java | 163 foo.activityInfo.packageName.equals(savedDefPackage) && in pickDefaultControlPanel() 168 } else if (foo.activityInfo.packageName.equals(updatedPackage)) { in pickDefaultControlPanel() 171 … } else if (otherPanel == null && !foo.activityInfo.packageName.equals(getPackageName())) { in pickDefaultControlPanel() 193 String defPackage = defPanel.activityInfo.packageName; in pickDefaultControlPanel() 223 … ComponentName comp = new ComponentName(foo.activityInfo.packageName, foo.activityInfo.name); in setupReceivers() 224 if (foo.activityInfo.packageName.equals(defPackage)) { in setupReceivers()
|
/packages/providers/ApplicationsProvider/tests/src/com/android/providers/applications/ |
D | MockActivityManager.java | 31 public void addLastResumeTime(String packageName, String componentName, long lastResumeTime) { in addLastResumeTime() argument 32 if (!mPackageUsageStats.containsKey(packageName)) { in addLastResumeTime() 33 PkgUsageStats stats = new PkgUsageStats(packageName, 1, 0, new HashMap<String, Long>()); in addLastResumeTime() 34 mPackageUsageStats.put(packageName, stats); in addLastResumeTime() 36 mPackageUsageStats.get(packageName).componentResumeTimes.put(componentName, lastResumeTime); in addLastResumeTime()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
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()
|
D | ExternalAccountTypeTest.java | 51 final String packageName = getTestContext().getPackageName(); in testResolveExternalResId() local 54 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, null, packageName, "")); in testResolveExternalResId() 55 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "", packageName, "")); in testResolveExternalResId() 58 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "x", packageName, "")); in testResolveExternalResId() 61 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "@", packageName, "")); in testResolveExternalResId() 62 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "@a", packageName, "")); in testResolveExternalResId() 63 assertEquals(-1, ExternalAccountType.resolveExternalResId(c, "@a/b", packageName, "")); in testResolveExternalResId() 67 "@string/test_string", packageName, "")); in testResolveExternalResId() 84 String packageName = getContext().getPackageName(); in testNoMetadata() local 86 packageName, false); in testNoMetadata()
|
/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/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallAppProgress.java | 70 final String packageName = (String) msg.obj; 79 Log.d(TAG, "Uninstall failed because " + packageName 85 Log.d(TAG, "Uninstall failed for " + packageName + " with code " 111 public void packageDeleted(String packageName, int returnCode) { in packageDeleted() argument 114 msg.obj = packageName; in packageDeleted() 155 getPackageManager().deletePackage(mAppInfo.packageName, observer, 0); in initView() 160 Log.i(TAG, "Finished uninstalling pkg: " + mAppInfo.packageName); in onClick()
|
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
D | ApplicationsProvider.java | 156 public void onPackageModified(String packageName) { in onPackageModified() argument 157 postUpdatePackage(packageName); in onPackageModified() 230 private void postUpdatePackage(String packageName) { in postUpdatePackage() argument 233 msg.obj = packageName; in postUpdatePackage() 491 private synchronized void updateApplicationsList(String packageName) { in updateApplicationsList() argument 492 if (DBG) Log.d(TAG, "Updating database (packageName = " + packageName + ")..."); in updateApplicationsList() 508 removeApplications(packageName); in updateApplicationsList() 513 if (packageName != null) { in updateApplicationsList() 515 mainIntent.setPackage(packageName); in updateApplicationsList() 528 String activityPackageName = info.activityInfo.applicationInfo.packageName; in updateApplicationsList() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/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()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | PackagesMonitor.java | 60 String packageName = intent.getData().getSchemeSpecificPart(); in onReceiveAsync() local 62 PicasaSource.onPackageAdded(context, packageName); in onReceiveAsync() 64 PicasaSource.onPackageRemoved(context, packageName); in onReceiveAsync() 66 PicasaSource.onPackageChanged(context, packageName); in onReceiveAsync()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserDetailsSettings.java | 186 String pkgName = info.packageName; in insertAppInfo() 189 AppState appState = appStateMap.get(info.packageName); in insertAppInfo() 215 info = mIPm.getPackageInfo(resolveInfo.activityInfo.packageName, in refreshApps() 222 mAppStates.put(resolveInfo.activityInfo.packageName, in refreshApps() 226 if (mSystemAppGroup.findPreference(info.packageName) != null) { in refreshApps() 231 if (mInstalledAppGroup.findPreference(info.packageName) != null) { in refreshApps() 242 String packageName = preference.getKey(); in onPreferenceChange() local 246 mIPm.setApplicationEnabledSetting(packageName, newState, 0, mUserId); in onPreferenceChange() 248 Log.e(TAG, "Unable to change enabled state of package " + packageName in onPreferenceChange()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | ExternalAccountType.java | 104 ExternalAccountType(Context context, String packageName, boolean isExtension, in ExternalAccountType() argument 107 this.resourcePackageName = packageName; in ExternalAccountType() 108 this.syncAdapterPackageName = packageName; in ExternalAccountType() 114 parser = loadContactsXml(context, packageName); in ExternalAccountType() 150 error.append(packageName); in ExternalAccountType() 418 String packageName, String xmlAttributeName) { in resolveExternalResId() argument 429 res = context.getPackageManager().getResourcesForApplication(packageName); in resolveExternalResId() 431 Log.e(TAG, "Unable to load package " + packageName); in resolveExternalResId() 434 final int resId = res.getIdentifier(name, null, packageName); in resolveExternalResId() 436 Log.e(TAG, "Unable to load " + resourceName + " from package " + packageName); in resolveExternalResId()
|
/packages/apps/Settings/src/com/android/settings/ |
D | UsageStats.java | 69 String alabel = mAppLabelList.get(a.packageName).toString(); in compare() 70 String blabel = mAppLabelList.get(b.packageName).toString(); in compare() 133 ApplicationInfo appInfo = mPm.getApplicationInfo(ps.packageName, 0); in UsageStatsAdapter() 136 label = ps.packageName; in UsageStatsAdapter() 138 mAppLabelMap.put(ps.packageName, label); in UsageStatsAdapter() 185 CharSequence label = mAppLabelMap.get(pkgStats.packageName); in getView()
|