Home
last modified time | relevance | path

Searched refs:packageName (Results 1 – 25 of 123) sorted by relevance

12345

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DTargetApplicationGetter.java30 public static ApplicationInfo getCachedApplicationInfo(final String packageName) { in getCachedApplicationInfo() argument
31 if (null == packageName) return null; in getCachedApplicationInfo()
32 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()
DDictionaryPackInstallBroadcastReceiver.java52 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/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java202 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()
496 } else if (mPackageInfo == null || mDpm.packageHasActiveAdmins(mPackageInfo.packageName)) { in onPrepareOptionsMenu()
510 uninstallPkg(mAppEntry.info.packageName, true, false); in onOptionsItemSelected()
[all …]
DApplicationsState.java50 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()
551 if (DEBUG) Log.i(TAG, "Using " + info.packageName + ": " + entry); in handleRebuildList()
630 final AppEntry entry = mEntriesMap.get(info.packageName); in doResumeIfNeededLocked()
657 AppEntry getEntry(String packageName) { in getEntry() argument
660 AppEntry entry = mEntriesMap.get(packageName); in getEntry()
664 if (packageName.equals(info.packageName)) { in getEntry()
684 void requestSize(String packageName) { in requestSize() argument
687 AppEntry entry = mEntriesMap.get(packageName); in requestSize()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java49 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()
DMockPackageManager.java41 private ResolveInfo createResolveInfo(String packageName) { in createResolveInfo() argument
43 activityInfo.packageName = packageName; in createResolveInfo()
/packages/apps/Launcher2/src/com/android/launcher2/
DAllAppsList.java89 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 …]
DUserInitializeReceiver.java42 final String packageName = resources.getResourcePackageName(R.array.wallpapers); in onReceive() local
44 addWallpapers(resources, packageName, R.array.wallpapers, list); in onReceive()
45 addWallpapers(resources, packageName, R.array.extra_wallpapers, list); in onReceive()
60 private void addWallpapers(Resources resources, String packageName, int resid, in addWallpapers() argument
64 int res = resources.getIdentifier(extra, "drawable", packageName); in addWallpapers()
DApplicationInfo.java67 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()
DItemInfo.java125 String packageName = intent.getPackage(); in getPackageName() local
126 if (packageName == null && intent.getComponent() != null) { in getPackageName()
127 packageName = intent.getComponent().getPackageName(); in getPackageName()
129 if (packageName != null) { in getPackageName()
130 return packageName; in getPackageName()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailPermissions.java71 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()
DContactDirectoryManager.java60 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/
DControlPanelReceiver.java43 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()
DControlPanelEffect.java157 public static void initEffectsPreferences(final Context context, final String packageName, in initEffectsPreferences() argument
159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences()
355 public static void setParameterBoolean(final Context context, final String packageName, in setParameterBoolean() argument
358 final SharedPreferences prefs = context.getSharedPreferences(packageName, in setParameterBoolean()
375 setParameterInt(context, packageName, in setParameterBoolean()
384 setParameterInt(context, packageName, in setParameterBoolean()
392 packageName, audioSession, Key.eq_band_level); in setParameterBoolean()
396 setParameterInt(context, packageName, in setParameterBoolean()
525 public static Boolean getParameterBoolean(final Context context, final String packageName, in getParameterBoolean() argument
527 final SharedPreferences prefs = context.getSharedPreferences(packageName, in getParameterBoolean()
[all …]
DCompatibility.java163 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/
DMockActivityManager.java31 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/account/
DAccountTypeTest.java36 final String packageName = getTestContext().getPackageName(); in testGetResourceText() local
45 assertEquals(DEFAULT, AccountType.getResourceText(c, packageName, -1, DEFAULT)); in testGetResourceText()
50 AccountType.getResourceText(c, packageName, externalResID, DEFAULT)); in testGetResourceText()
63 final String packageName = getTestContext().getPackageName(); in testGetInviteContactActionLabel() local
70 resourcePackageName = packageName; in testGetInviteContactActionLabel()
71 syncAdapterPackageName = packageName; in testGetInviteContactActionLabel()
DExternalAccountTypeTest.java51 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/
DSources.java139 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/ApplicationsProvider/src/com/android/providers/applications/
DApplicationsProvider.java156 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/
DLocalizedNameResolver.java71 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/PackageInstaller/src/com/android/packageinstaller/
DUninstallAppProgress.java73 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()
DInstallAppProgress.java96 mAppInfo.packageName);
207 public void packageInstalled(String packageName, int returnCode) {
219 PackageInfo pi = pm.getPackageInfo(mAppInfo.packageName,
227 Log.w(TAG, "Replacing package:" + mAppInfo.packageName);
263 pm.installExistingPackage(mAppInfo.packageName);
264 observer.packageInstalled(mAppInfo.packageName,
267 observer.packageInstalled(mAppInfo.packageName,
283 if (mAppInfo.packageName != null) {
284 Log.i(TAG, "Finished installing "+mAppInfo.packageName);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPackagesMonitor.java62 String packageName = intent.getData().getSchemeSpecificPart(); in onReceiveAsync() local
64 PicasaSource.onPackageAdded(context, packageName); in onReceiveAsync()
66 PicasaSource.onPackageRemoved(context, packageName); in onReceiveAsync()
68 PicasaSource.onPackageChanged(context, packageName); in onReceiveAsync()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DExternalAccountType.java105 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()
419 String packageName, String xmlAttributeName) { in resolveExternalResId() argument
430 res = context.getPackageManager().getResourcesForApplication(packageName); in resolveExternalResId()
432 Log.e(TAG, "Unable to load package " + packageName); in resolveExternalResId()
435 final int resId = res.getIdentifier(name, null, packageName); in resolveExternalResId()
437 Log.e(TAG, "Unable to load " + resourceName + " from package " + packageName); in resolveExternalResId()

12345