Home
last modified time | relevance | path

Searched refs:pm (Results 1 – 25 of 630) sorted by relevance

12345678910>>...26

/frameworks/base/core/java/android/content/pm/
DPackageItemInfo.java17 package android.content.pm;
126 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
131 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadLabel()
154 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument
155 return pm.loadItemIcon(this, getApplicationInfo()); in loadIcon()
171 public Drawable loadUnbadgedIcon(PackageManager pm) { in loadUnbadgedIcon() argument
172 return pm.loadUnbadgedItemIcon(this, getApplicationInfo()); in loadUnbadgedIcon()
186 public Drawable loadBanner(PackageManager pm) { in loadBanner() argument
188 Drawable dr = pm.getDrawable(packageName, banner, getApplicationInfo()); in loadBanner()
193 return loadDefaultBanner(pm); in loadBanner()
[all …]
DIPackageManager.aidl18 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.IPackageInstallObserver2;
28 import android.content.pm.IPackageInstaller;
29 import android.content.pm.IPackageDeleteObserver;
30 import android.content.pm.IPackageDeleteObserver2;
31 import android.content.pm.IPackageDataObserver;
[all …]
DComponentInfo.java17 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()
183 public Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() argument
184 return applicationInfo.loadIcon(pm); in loadDefaultIcon()
190 @Override protected Drawable loadDefaultBanner(PackageManager pm) { in loadDefaultBanner() argument
191 return applicationInfo.loadBanner(pm); in loadDefaultBanner()
198 protected Drawable loadDefaultLogo(PackageManager pm) { in loadDefaultLogo() argument
199 return applicationInfo.loadLogo(pm); in loadDefaultLogo()
DIPackageInstaller.aidl17 package android.content.pm;
19 import android.content.pm.IPackageDeleteObserver2;
20 import android.content.pm.IPackageInstallerCallback;
21 import android.content.pm.IPackageInstallerSession;
22 import android.content.pm.PackageInstaller;
23 import android.content.pm.ParceledListSlice;
DResolveInfo.java17 package android.content.pm;
164 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
170 label = pm.getText(resolvePackageName, labelRes, null); in loadLabel()
178 label = pm.getText(ci.packageName, labelRes, ai); in loadLabel()
184 CharSequence data = ci.loadLabel(pm); in loadLabel()
201 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument
204 dr = pm.getDrawable(resolvePackageName, icon, null); in loadIcon()
212 dr = pm.getDrawable(ci.packageName, icon, ai); in loadIcon()
217 return ci.loadIcon(pm); in loadIcon()
396 public DisplayNameComparator(PackageManager pm) { in DisplayNameComparator() argument
[all …]
DLabeledIntent.java17 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/
DWallpaperInfo.java24 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 …]
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionServiceInfo.java22 import android.content.pm.PackageManager;
23 import android.content.pm.ServiceInfo;
47 public VoiceInteractionServiceInfo(PackageManager pm, ComponentName comp) in VoiceInteractionServiceInfo() argument
49 this(pm, pm.getServiceInfo(comp, PackageManager.GET_META_DATA)); in VoiceInteractionServiceInfo()
52 public VoiceInteractionServiceInfo(PackageManager pm, ComponentName comp, int userHandle) in VoiceInteractionServiceInfo() argument
54 this(pm, AppGlobals.getPackageManager().getServiceInfo(comp, in VoiceInteractionServiceInfo()
58 public VoiceInteractionServiceInfo(PackageManager pm, ServiceInfo si) { in VoiceInteractionServiceInfo() argument
67 parser = si.loadXmlMetaData(pm, VoiceInteractionService.SERVICE_META_DATA); in VoiceInteractionServiceInfo()
74 Resources res = pm.getResourcesForApplication(si.applicationInfo); in VoiceInteractionServiceInfo()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerInfo.java24 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/test-runner/src/android/test/mock/
DMockPackageManager.java24 import android.content.pm.ActivityInfo;
25 import android.content.pm.ApplicationInfo;
26 import android.content.pm.ContainerEncryptionParams;
27 import android.content.pm.FeatureInfo;
28 import android.content.pm.IPackageDataObserver;
29 import android.content.pm.IPackageDeleteObserver;
30 import android.content.pm.IPackageInstallObserver;
31 import android.content.pm.IPackageMoveObserver;
32 import android.content.pm.IPackageStatsObserver;
33 import android.content.pm.InstrumentationInfo;
[all …]
/frameworks/base/cmds/pm/
DAndroid.mk7 LOCAL_MODULE := pm
12 ALL_PREBUILT += $(TARGET_OUT)/bin/pm
13 $(TARGET_OUT)/bin/pm : $(LOCAL_PATH)/pm | $(ACP)
Dpm1 # 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/core/java/android/speech/tts/
DTtsEngines.java23 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;
139 PackageManager pm = mContext.getPackageManager(); in getEngineInfo() local
142 List<ResolveInfo> resolveInfos = pm.queryIntentServices(intent, in getEngineInfo()
148 return getEngineInfo(resolveInfos.get(0), pm); in getEngineInfo()
160 PackageManager pm = mContext.getPackageManager(); in getEngines() local
163 pm.queryIntentServices(intent, PackageManager.MATCH_DEFAULT_ONLY); in getEngines()
[all …]
/frameworks/base/docs/html/sdk/api_diff/20/
DmissingSinces.txt15 NO DOC BLOCK: android.content.pm.PackageManager Method getActivityBanner(android.content.ComponentN…
16 NO DOC BLOCK: android.content.pm.PackageManager Method getActivityBanner(android.content.Intent)
19 NO DOC BLOCK: android.content.pm.PackageManager Method getApplicationBanner(java.lang.String)
20 NO DOC BLOCK: android.content.pm.PackageManager Method getApplicationBanner(android.content.pm.Appl…
22 NO DOC BLOCK: android.test.mock.MockPackageManager Method getApplicationBanner(android.content.pm.A…
23 NO DOC BLOCK: android.content.pm.ComponentInfo Method getBannerResource()
34 NO DOC BLOCK: android.content.pm.PackageItemInfo Method loadBanner(android.content.pm.PackageManage…
44 NO DOC BLOCK: android.content.pm.PackageItemInfo Field banner
46 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_BACKUP
47 NO DOC BLOCK: android.content.pm.PackageManager Field FEATURE_CAMERA_EXTERNAL
[all …]
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java25 import android.content.pm.ActivityInfo;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ResolveInfo;
90 PackageManager pm = context.getPackageManager(); in getAllValidScorers() local
93 pm.queryBroadcastReceivers(SCORE_INTENT, 0 /* flags */, UserHandle.USER_OWNER); in getAllValidScorers()
106 if (pm.checkPermission(permission.SCORE_NETWORKS, receiverInfo.packageName) != in getAllValidScorers()
117 List<ResolveInfo> configActivities = pm.queryIntentActivities(intent, 0 /* flags */); in getAllValidScorers()
128 receiverInfo.loadLabel(pm), configurationActivityClassName)); in getAllValidScorers()
DNetworkPolicyManager.java19 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;
279 final PackageManager pm = context.getPackageManager(); in isUidValidForPolicy() local
283 pm.getPackageInfo("android", GET_SIGNATURES).signatures); in isUidValidForPolicy()
290 for (String packageName : pm.getPackagesForUid(uid)) { in isUidValidForPolicy()
292 pm.getPackageInfo(packageName, GET_SIGNATURES).signatures); in isUidValidForPolicy()
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java49 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/core/java/android/app/admin/
DDeviceAdminInfo.java25 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;
251 PackageManager pm = context.getPackageManager(); in DeviceAdminInfo() local
255 parser = ai.loadXmlMetaData(pm, DeviceAdminReceiver.DEVICE_ADMIN_META_DATA); in DeviceAdminInfo()
261 Resources res = pm.getResourcesForApplication(ai.applicationInfo); in DeviceAdminInfo()
359 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
360 return mReceiver.loadLabel(pm); in loadLabel()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java23 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/packages/SystemUI/src/com/android/systemui/
DDessertCase.java21 import android.content.pm.PackageManager;
31 PackageManager pm = getPackageManager(); in onStart() local
33 if (pm.getComponentEnabledSetting(cn) != PackageManager.COMPONENT_ENABLED_STATE_ENABLED) { in onStart()
35 pm.setComponentEnabledSetting(cn, in onStart()
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java17 package com.android.server.pm;
61 final PackageManagerService pm = in onStartJob() local
64 if (pm.isStorageLow()) { in onStartJob()
67 final ArraySet<String> pkgs = pm.getPackagesThatNeedDexOpt(); in onStartJob()
87 if (!pm.performDexOpt(pkg, null /* instruction set */, true)) { in onStartJob()
DLauncherAppsService.java17 package com.android.server.pm;
23 import android.content.pm.ActivityInfo;
24 import android.content.pm.ILauncherApps;
25 import android.content.pm.IOnAppsChangedListener;
26 import android.content.pm.IPackageManager;
27 import android.content.pm.PackageManager;
28 import android.content.pm.PackageInfo;
29 import android.content.pm.ResolveInfo;
30 import android.content.pm.UserInfo;
237 IPackageManager pm = AppGlobals.getPackageManager(); in isPackageEnabled() local
[all …]
/frameworks/base/core/java/com/android/internal/net/
DVpnConfig.java23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
25 import android.content.pm.ResolveInfo;
74 PackageManager pm = context.getPackageManager(); in getVpnLabel() local
77 List<ResolveInfo> services = pm.queryIntentServices(intent, 0 /* flags */); in getVpnLabel()
81 return services.get(0).loadLabel(pm); in getVpnLabel()
83 return pm.getApplicationInfo(packageName, 0).loadLabel(pm); in getVpnLabel()
/frameworks/base/core/java/android/hardware/soundtrigger/
DKeyphraseEnrollmentInfo.java21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.ResolveInfo;
89 public KeyphraseEnrollmentInfo(PackageManager pm) { in KeyphraseEnrollmentInfo() argument
93 List<ResolveInfo> ris = pm.queryIntentActivities( in KeyphraseEnrollmentInfo()
105 ai = pm.getApplicationInfo( in KeyphraseEnrollmentInfo()
135 parser = ai.loadXmlMetaData(pm, VOICE_KEYPHRASE_META_DATA); in KeyphraseEnrollmentInfo()
142 Resources res = pm.getResourcesForApplication(ai); in KeyphraseEnrollmentInfo()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java17 package android.content.pm;
33 import android.content.pm.PackageManager.NameNotFoundException;
34 import android.content.pm.PackageParser.PackageParserException;
625 final PackageManager pm = getPm(); in assertPermissions() local
635 pkgInfo = pm.getPackageInfo(pkg, in assertPermissions()
647 PermissionInfo pi = pm.getPermissionInfo(cmd, 0); in assertPermissions()
666 pm.getPermissionInfo(cmd, 0); in assertPermissions()
692 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_GRANTED) { in assertPermissions()
696 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_DENIED) { in assertPermissions()
707 PackageManager pm = mContext.getPackageManager(); in getParsedPackage() local
[all …]

12345678910>>...26