/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 17 package android.content.pm; 110 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 115 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadLabel() 138 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument 140 Drawable dr = pm.getDrawable(packageName, icon, getApplicationInfo()); in loadIcon() 145 return loadDefaultIcon(pm); in loadIcon() 159 protected Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() argument 160 return pm.getDefaultActivityIcon(); in loadDefaultIcon() 174 public Drawable loadLogo(PackageManager pm) { in loadLogo() argument 176 Drawable d = pm.getDrawable(packageName, logo, getApplicationInfo()); in loadLogo() [all …]
|
D | IPackageManager.aidl | 18 package android.content.pm; 23 import android.content.pm.ActivityInfo; 24 import android.content.pm.ApplicationInfo; 25 import android.content.pm.ContainerEncryptionParams; 26 import android.content.pm.FeatureInfo; 27 import android.content.pm.IPackageInstallObserver; 28 import android.content.pm.IPackageDeleteObserver; 29 import android.content.pm.IPackageDataObserver; 30 import android.content.pm.IPackageMoveObserver; 31 import android.content.pm.IPackageStatsObserver; [all …]
|
D | ComponentInfo.java | 17 package android.content.pm; 78 @Override public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 85 label = pm.getText(packageName, labelRes, ai); in loadLabel() 94 label = pm.getText(packageName, ai.labelRes, ai); in loadLabel() 171 @Override protected Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() argument 172 return applicationInfo.loadIcon(pm); in loadDefaultIcon() 179 protected Drawable loadDefaultLogo(PackageManager pm) { in loadDefaultLogo() argument 180 return applicationInfo.loadLogo(pm); in loadDefaultLogo()
|
D | ApplicationInfo.java | 17 package android.content.pm; 19 import android.content.pm.PackageManager.NameNotFoundException; 535 public DisplayNameComparator(PackageManager pm) { in DisplayNameComparator() argument 536 mPM = pm; in DisplayNameComparator() 678 public CharSequence loadDescription(PackageManager pm) { in loadDescription() argument 680 CharSequence label = pm.getText(packageName, descriptionRes, this); in loadDescription() 702 @Override protected Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() argument 704 && isPackageUnavailable(pm)) { in loadDefaultIcon() 708 return pm.getDefaultActivityIcon(); in loadDefaultIcon() 711 private boolean isPackageUnavailable(PackageManager pm) { in isPackageUnavailable() argument [all …]
|
D | ResolveInfo.java | 17 package android.content.pm; 152 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 158 label = pm.getText(resolvePackageName, labelRes, null); in loadLabel() 166 label = pm.getText(ci.packageName, labelRes, ai); in loadLabel() 172 CharSequence data = ci.loadLabel(pm); in loadLabel() 189 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument 192 dr = pm.getDrawable(resolvePackageName, icon, null); in loadIcon() 200 dr = pm.getDrawable(ci.packageName, icon, ai); in loadIcon() 205 return ci.loadIcon(pm); in loadIcon() 371 public DisplayNameComparator(PackageManager pm) { in DisplayNameComparator() argument [all …]
|
D | LabeledIntent.java | 17 package android.content.pm; 134 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 139 CharSequence label = pm.getText(mSourcePackage, mLabelRes, null); in loadLabel() 152 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument 154 Drawable icon = pm.getDrawable(mSourcePackage, mIcon, null); in loadIcon()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperInfo.java | 24 import android.content.pm.ApplicationInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.ResolveInfo; 27 import android.content.pm.ServiceInfo; 28 import android.content.pm.PackageManager.NameNotFoundException; 87 PackageManager pm = context.getPackageManager(); in WallpaperInfo() local 95 parser = si.loadXmlMetaData(pm, WallpaperService.SERVICE_META_DATA); in WallpaperInfo() 101 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo() 190 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 191 return mService.loadLabel(pm); in loadLabel() [all …]
|
D | TaskStackBuilder.java | 22 import android.content.pm.ActivityInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageManager.NameNotFoundException; 165 PackageManager pm = mSourceContext.getPackageManager(); in addParentStack() local 167 ActivityInfo info = pm.getActivityInfo(sourceActivityName, 0); in addParentStack() 171 info = pm.getActivityInfo(target, 0); in addParentStack()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 23 import android.content.pm.ActivityInfo; 24 import android.content.pm.ApplicationInfo; 25 import android.content.pm.ContainerEncryptionParams; 26 import android.content.pm.FeatureInfo; 27 import android.content.pm.IPackageDataObserver; 28 import android.content.pm.IPackageDeleteObserver; 29 import android.content.pm.IPackageInstallObserver; 30 import android.content.pm.IPackageMoveObserver; 31 import android.content.pm.IPackageStatsObserver; 32 import android.content.pm.InstrumentationInfo; [all …]
|
/frameworks/base/core/java/android/speech/tts/ |
D | TtsEngines.java | 23 import android.content.pm.ApplicationInfo; 24 import android.content.pm.PackageManager; 25 import android.content.pm.PackageManager.NameNotFoundException; 26 import android.content.pm.ResolveInfo; 27 import android.content.pm.ServiceInfo; 100 PackageManager pm = mContext.getPackageManager(); in getEngineInfo() local 103 List<ResolveInfo> resolveInfos = pm.queryIntentServices(intent, in getEngineInfo() 109 return getEngineInfo(resolveInfos.get(0), pm); in getEngineInfo() 121 PackageManager pm = mContext.getPackageManager(); in getEngines() local 124 pm.queryIntentServices(intent, PackageManager.MATCH_DEFAULT_ONLY); in getEngines() [all …]
|
/frameworks/base/core/java/android/view/textservice/ |
D | SpellCheckerInfo.java | 24 import android.content.pm.PackageManager; 25 import android.content.pm.ResolveInfo; 26 import android.content.pm.ServiceInfo; 70 final PackageManager pm = context.getPackageManager(); in SpellCheckerInfo() local 76 parser = si.loadXmlMetaData(pm, SpellCheckerSession.SERVICE_META_DATA); in SpellCheckerInfo() 82 final Resources res = pm.getResourcesForApplication(si.applicationInfo); in SpellCheckerInfo() 207 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 208 if (mLabel == 0 || pm == null) return ""; in loadLabel() 209 return pm.getText(getPackageName(), mLabel, mService.serviceInfo.applicationInfo); in loadLabel() 217 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument [all …]
|
/frameworks/base/cmds/pm/ |
D | Android.mk | 7 LOCAL_MODULE := pm 12 ALL_PREBUILT += $(TARGET_OUT)/bin/pm 13 $(TARGET_OUT)/bin/pm : $(LOCAL_PATH)/pm | $(ACP)
|
D | pm | 1 # Script to start "pm" on the device, which has a very rudimentary 5 export CLASSPATH=$base/framework/pm.jar 6 exec app_process $base/bin com.android.commands.pm.Pm "$@"
|
/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
D | PowerCommand.java | 49 IPowerManager pm = IPowerManager.Stub.asInterface( in run() local 73 pm.wakeUp(SystemClock.uptimeMillis()); in run() 75 pm.setStayOnSetting(val); in run() 88 pm.reboot(false, mode, true); in run() 96 pm.shutdown(false, true); in run()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | PowerTest.java | 23 import android.content.pm.PackageManager; 54 PackageManager pm = getPackageManager(); 55 pm.setComponentEnabledSetting(new ComponentName("com.android.settings", 63 PackageManager pm = getPackageManager(); 64 pm.setComponentEnabledSetting(new ComponentName("com.android.settings",
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminInfo.java | 25 import android.content.pm.ActivityInfo; 26 import android.content.pm.ApplicationInfo; 27 import android.content.pm.PackageManager; 28 import android.content.pm.ResolveInfo; 29 import android.content.pm.PackageManager.NameNotFoundException; 235 PackageManager pm = context.getPackageManager(); in DeviceAdminInfo() local 239 parser = ai.loadXmlMetaData(pm, DeviceAdminReceiver.DEVICE_ADMIN_META_DATA); in DeviceAdminInfo() 245 Resources res = pm.getResourcesForApplication(ai.applicationInfo); in DeviceAdminInfo() 343 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 344 return mReceiver.loadLabel(pm); in loadLabel() [all …]
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ConfirmDialog.java | 22 import android.content.pm.ApplicationInfo; 23 import android.content.pm.PackageManager; 60 PackageManager pm = getPackageManager(); in onResume() local 61 ApplicationInfo app = pm.getApplicationInfo(mPackage, 0); in onResume() 64 ((ImageView) view.findViewById(R.id.icon)).setImageDrawable(app.loadIcon(pm)); in onResume() 66 getString(R.string.prompt, app.loadLabel(pm))); in onResume()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCase.java | 22 import android.content.pm.PackageManager; 34 PackageManager pm = getPackageManager(); in onStart() local 36 if (pm.getComponentEnabledSetting(cn) != PackageManager.COMPONENT_ENABLED_STATE_ENABLED) { in onStart() 38 pm.setComponentEnabledSetting(cn, in onStart()
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 19 import static android.content.pm.PackageManager.GET_SIGNATURES; 25 import android.content.pm.PackageManager; 26 import android.content.pm.PackageManager.NameNotFoundException; 27 import android.content.pm.Signature; 245 final PackageManager pm = context.getPackageManager(); in isUidValidForPolicy() local 249 pm.getPackageInfo("android", GET_SIGNATURES).signatures); in isUidValidForPolicy() 256 for (String packageName : pm.getPackagesForUid(uid)) { in isUidValidForPolicy() 258 pm.getPackageInfo(packageName, GET_SIGNATURES).signatures); in isUidValidForPolicy()
|
/frameworks/base/core/java/android/nfc/cardemulation/ |
D | ApduServiceInfo.java | 20 import android.content.pm.PackageManager; 21 import android.content.pm.ResolveInfo; 22 import android.content.pm.ServiceInfo; 23 import android.content.pm.PackageManager.NameNotFoundException; 107 public ApduServiceInfo(PackageManager pm, ResolveInfo info, boolean onHost) in ApduServiceInfo() argument 113 parser = si.loadXmlMetaData(pm, HostApduService.SERVICE_META_DATA); in ApduServiceInfo() 119 parser = si.loadXmlMetaData(pm, OffHostApduService.SERVICE_META_DATA); in ApduServiceInfo() 140 Resources res = pm.getResourcesForApplication(si.applicationInfo); in ApduServiceInfo() 262 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 263 return mService.loadLabel(pm); in loadLabel() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodInfo.java | 24 import android.content.pm.ApplicationInfo; 25 import android.content.pm.PackageManager; 26 import android.content.pm.PackageManager.NameNotFoundException; 27 import android.content.pm.ResolveInfo; 28 import android.content.pm.ServiceInfo; 136 PackageManager pm = context.getPackageManager(); in InputMethodInfo() local 142 parser = si.loadXmlMetaData(pm, InputMethod.SERVICE_META_DATA); in InputMethodInfo() 148 Resources res = pm.getResourcesForApplication(si.applicationInfo); in InputMethodInfo() 345 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument 346 return mService.loadLabel(pm); in loadLabel() [all …]
|
/frameworks/base/services/java/com/android/server/pm/ |
D | BasePermission.java | 17 package com.android.server.pm; 19 import android.content.pm.PackageParser; 20 import android.content.pm.PermissionInfo;
|
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/ |
D | SmokeTestRunner.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.ResolveInfo; 47 final PackageManager pm = getTargetContext().getPackageManager(); in getAllTests() local 48 final List<ResolveInfo> apps = ProcessErrorsTest.getLauncherActivities(pm); in getAllTests()
|
/frameworks/base/core/java/android/widget/ |
D | ExpandableListConnector.java | 597 PositionMetadata pm = getFlattenedPos(elGroupPos); in collapseGroup() local 599 if (pm == null) return false; in collapseGroup() 601 boolean retValue = collapseGroup(pm); in collapseGroup() 602 pm.recycle(); in collapseGroup() 640 PositionMetadata pm = getFlattenedPos(elGroupPos); in expandGroup() local 642 boolean retValue = expandGroup(pm); in expandGroup() 643 pm.recycle(); in expandGroup() 996 PositionMetadata pm = getRecycledOrCreate(); in obtain() local 997 pm.position = ExpandableListPosition.obtain(type, groupPos, childPos, flatListPos); in obtain() 998 pm.groupMetadata = groupMetadata; in obtain() [all …]
|
D | AppSecurityPermissions.java | 24 import android.content.pm.ApplicationInfo; 25 import android.content.pm.PackageInfo; 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 28 import android.content.pm.PermissionGroupInfo; 29 import android.content.pm.PermissionInfo; 100 public Drawable loadGroupIcon(PackageManager pm) { in loadGroupIcon() argument 102 return loadIcon(pm); in loadGroupIcon() 106 appInfo = pm.getApplicationInfo(packageName, 0); in loadGroupIcon() 107 return appInfo.loadIcon(pm); in loadGroupIcon() [all …]
|