Home
last modified time | relevance | path

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

12345678910>>...39

/frameworks/base/core/java/android/content/pm/
DPackageItemInfo.java17 package android.content.pm;
134 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
139 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadLabel()
167 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm) { in loadSafeLabel() argument
169 String label = loadLabel(pm).toString(); in loadSafeLabel()
218 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument
219 return pm.loadItemIcon(this, getApplicationInfo()); in loadIcon()
235 public Drawable loadUnbadgedIcon(PackageManager pm) { in loadUnbadgedIcon() argument
236 return pm.loadUnbadgedItemIcon(this, getApplicationInfo()); in loadUnbadgedIcon()
250 public Drawable loadBanner(PackageManager pm) { in loadBanner() argument
[all …]
DPackageUserState.java17 package android.content.pm;
19 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
20 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED;
21 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED;
22 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER;
23 import static android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED;
24 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS;
25 import static android.content.pm.PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS;
26 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE;
27 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE;
[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.EphemeralApplicationInfo;
27 import android.content.pm.FeatureInfo;
28 import android.content.pm.IPackageInstallObserver2;
29 import android.content.pm.IPackageInstaller;
30 import android.content.pm.IPackageDeleteObserver;
31 import android.content.pm.IPackageDeleteObserver2;
[all …]
DComponentInfo.java17 package android.content.pm;
92 @Override public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
99 label = pm.getText(packageName, labelRes, ai); in loadLabel()
108 label = pm.getText(packageName, ai.labelRes, ai); in loadLabel()
221 public Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() argument
222 return applicationInfo.loadIcon(pm); in loadDefaultIcon()
228 @Override protected Drawable loadDefaultBanner(PackageManager pm) { in loadDefaultBanner() argument
229 return applicationInfo.loadBanner(pm); in loadDefaultBanner()
236 protected Drawable loadDefaultLogo(PackageManager pm) { in loadDefaultLogo() argument
237 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;
DILauncherApps.aidl17 package android.content.pm;
21 import android.content.pm.ActivityInfo;
22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.IOnAppsChangedListener;
24 import android.content.pm.ParceledListSlice;
25 import android.content.pm.ResolveInfo;
26 import android.content.pm.ShortcutInfo;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.IPackageManager;
23 import android.content.pm.PackageInfo;
24 import android.content.pm.PackageManager;
25 import android.content.pm.PackageManager.NameNotFoundException;
26 import android.content.pm.UserInfo;
106 final PackageManager pm = mContext.getPackageManager(); in buildUidDetail() local
109 detail.label = pm.getNameForUid(uid); in buildUidDetail()
110 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail()
116 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail()
[all …]
/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;
92 PackageManager pm = context.getPackageManager(); in WallpaperInfo() local
103 parser = si.loadXmlMetaData(pm, WallpaperService.SERVICE_META_DATA); in WallpaperInfo()
109 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo()
213 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
214 return mService.loadLabel(pm); in loadLabel()
[all …]
/frameworks/base/core/java/com/android/server/backup/
DPreferredActivityBackupHelper.java21 import android.content.pm.IPackageManager;
50 IPackageManager pm = AppGlobals.getPackageManager(); in getBackupPayload() local
58 return pm.getPreferredActivityBackup(UserHandle.USER_SYSTEM); in getBackupPayload()
60 return pm.getDefaultAppsBackup(UserHandle.USER_SYSTEM); in getBackupPayload()
62 return pm.getIntentFilterVerificationBackup(UserHandle.USER_SYSTEM); in getBackupPayload()
74 IPackageManager pm = AppGlobals.getPackageManager(); in applyRestoredPayload() local
82 pm.restorePreferredActivities(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
85 pm.restoreDefaultApps(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
88 pm.restoreIntentFilterVerification(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
DPermissionBackupHelper.java21 import android.content.pm.IPackageManager;
41 IPackageManager pm = AppGlobals.getPackageManager(); in getBackupPayload() local
48 return pm.getPermissionGrantBackup(UserHandle.USER_SYSTEM); in getBackupPayload()
61 IPackageManager pm = AppGlobals.getPackageManager(); in applyRestoredPayload() local
68 pm.restorePermissionGrants(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipUI.java19 import android.content.pm.PackageManager;
24 import static android.content.pm.PackageManager.FEATURE_LEANBACK;
25 import static android.content.pm.PackageManager.FEATURE_PICTURE_IN_PICTURE;
35 PackageManager pm = mContext.getPackageManager(); in start() local
36 mSupportPip = pm.hasSystemFeature(FEATURE_PICTURE_IN_PICTURE) in start()
37 && pm.hasSystemFeature(FEATURE_LEANBACK); in start()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.IPackageManager;
25 import android.content.pm.PackageInfo;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ParceledListSlice;
28 import android.content.pm.ResolveInfo;
154 final PackageManager pm = mPackageManager; in fetchAndMergeApps() local
173 List<ApplicationInfo> installedApps = pm.getInstalledApplications( in fetchAndMergeApps()
184 info.appName = app.loadLabel(pm); in fetchAndMergeApps()
186 info.icon = app.loadIcon(pm); in fetchAndMergeApps()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DBackgroundDexOptService.java17 package com.android.server.pm;
19 import static com.android.server.pm.PackageManagerService.DEBUG_DEXOPT;
132 final PackageManagerService pm, final ArraySet<String> pkgs) { in runPostBootUpdate() argument
181 pm.performDexOpt(pkg, in runPostBootUpdate()
194 final PackageManagerService pm, final ArraySet<String> pkgs) { in runIdleOptimization() argument
230 if (pm.performDexOpt(pkg, in runIdleOptimization()
256 PackageManagerService pm = (PackageManagerService)ServiceManager.getService("package"); in onStartJob() local
257 if (pm.isStorageLow()) { in onStartJob()
264 final ArraySet<String> pkgs = pm.getOptimizablePackages(); in onStartJob()
273 return runPostBootUpdate(params, pm, pkgs); in onStartJob()
[all …]
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionServiceInfo.java22 import android.content.pm.PackageManager;
23 import android.content.pm.ServiceInfo;
50 public VoiceInteractionServiceInfo(PackageManager pm, ComponentName comp) in VoiceInteractionServiceInfo() argument
52 this(pm, pm.getServiceInfo(comp, PackageManager.GET_META_DATA)); in VoiceInteractionServiceInfo()
55 public VoiceInteractionServiceInfo(PackageManager pm, ComponentName comp, int userHandle) in VoiceInteractionServiceInfo() argument
57 this(pm, getServiceInfoOrThrow(comp, userHandle)); in VoiceInteractionServiceInfo()
77 public VoiceInteractionServiceInfo(PackageManager pm, ServiceInfo si) { in VoiceInteractionServiceInfo() argument
90 parser = si.loadXmlMetaData(pm, VoiceInteractionService.SERVICE_META_DATA); in VoiceInteractionServiceInfo()
97 Resources res = pm.getResourcesForApplication(si.applicationInfo); in VoiceInteractionServiceInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest4.java16 package com.android.server.pm;
18 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertBundlesEqual;
19 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.assertWith;
20 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.list;
21 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.makeBundle;
22 import static com.android.server.pm.shortcutmanagertest.ShortcutManagerTestUtils.makePersistableBun…
/frameworks/base/services/core/java/com/android/server/webkit/
DSystemImpl.java22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.IPackageDeleteObserver;
24 import android.content.pm.PackageInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.PackageManager.NameNotFoundException;
27 import android.content.pm.UserInfo;
157 PackageManager pm = AppGlobals.getInitialApplication().getPackageManager(); in getFactoryPackageVersion() local
158 return pm.getPackageInfo(packageName, PackageManager.MATCH_FACTORY_ONLY).versionCode; in getFactoryPackageVersion()
224 PackageManager pm = AppGlobals.getInitialApplication().getPackageManager(); in uninstallAndDisablePackageForAllUsers() local
225 ApplicationInfo applicationInfo = pm.getApplicationInfo(packageName, 0); in uninstallAndDisablePackageForAllUsers()
[all …]
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.NameNotFoundException;
25 import android.content.pm.ResolveInfo;
26 import android.content.pm.ServiceInfo;
138 PackageManager pm = mContext.getPackageManager(); in getEngineInfo() local
141 List<ResolveInfo> resolveInfos = pm.queryIntentServices(intent, in getEngineInfo()
147 return getEngineInfo(resolveInfos.get(0), pm); in getEngineInfo()
159 PackageManager pm = mContext.getPackageManager(); in getEngines() local
162 pm.queryIntentServices(intent, PackageManager.MATCH_DEFAULT_ONLY); in getEngines()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DAppUtils.java22 import android.content.pm.PackageManager;
37 IUsbManager usbManager, PackageManager pm, Context context) { in getLaunchByDefaultSummary() argument
39 boolean hasPreferred = hasPreferredActivities(pm, packageName) in getLaunchByDefaultSummary()
41 int status = pm.getIntentVerificationStatusAsUser(packageName, UserHandle.myUserId()); in getLaunchByDefaultSummary()
61 public static boolean hasPreferredActivities(PackageManager pm, String packageName) { in hasPreferredActivities() argument
66 pm.getPreferredActivities(intentList, prefActList, packageName); in hasPreferredActivities()
/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/packages/EasterEgg/src/com/android/egg/neko/
DNekoActivationActivity.java19 import android.content.pm.PackageManager;
36 final PackageManager pm = getPackageManager(); in onStart() local
38 if (pm.getComponentEnabledSetting(cn) == PackageManager.COMPONENT_ENABLED_STATE_ENABLED) { in onStart()
42 pm.setComponentEnabledSetting(cn, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, in onStart()
50 pm.setComponentEnabledSetting(cn, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, in onStart()
/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;
72 final PackageManager pm = context.getPackageManager(); in SpellCheckerInfo() local
78 parser = si.loadXmlMetaData(pm, SpellCheckerSession.SERVICE_META_DATA); in SpellCheckerInfo()
84 final Resources res = pm.getResourcesForApplication(si.applicationInfo); in SpellCheckerInfo()
213 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
214 if (mLabel == 0 || pm == null) return ""; in loadLabel()
215 return pm.getText(getPackageName(), mLabel, mService.serviceInfo.applicationInfo); in loadLabel()
223 public Drawable loadIcon(PackageManager pm) { in loadIcon() argument
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java6 import android.content.pm.PackageInfo;
7 import android.content.pm.PackageManager;
8 import android.content.pm.PackageManager.NameNotFoundException;
9 import android.content.pm.UserInfo;
10 import android.content.pm.Signature;
172 public static boolean isSystemPackage(Resources resources, PackageManager pm, PackageInfo pkg) { in isSystemPackage() argument
174 sSystemSignature = new Signature[]{ getSystemSignature(pm) }; in isSystemPackage()
177 sPermissionControllerPackageName = pm.getPermissionControllerPackageName(); in isSystemPackage()
180 sServicesSystemSharedLibPackageName = pm.getServicesSystemSharedLibraryPackageName(); in isSystemPackage()
183 sSharedSystemSharedLibPackageName = pm.getSharedSystemSharedLibraryPackageName(); in isSystemPackage()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java25 import android.content.pm.ActivityInfo;
26 import android.content.pm.ApplicationInfo;
27 import android.content.pm.EphemeralApplicationInfo;
28 import android.content.pm.FeatureInfo;
29 import android.content.pm.IPackageDataObserver;
30 import android.content.pm.IPackageDeleteObserver;
31 import android.content.pm.IPackageInstallObserver;
32 import android.content.pm.IPackageStatsObserver;
33 import android.content.pm.InstrumentationInfo;
34 import android.content.pm.IntentFilterVerificationInfo;
[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)
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DPartner.java21 import android.content.pm.ApplicationInfo;
22 import android.content.pm.PackageManager;
23 import android.content.pm.PackageManager.NameNotFoundException;
24 import android.content.pm.ResolveInfo;
115 PackageManager pm = context.getPackageManager(); in get() local
117 for (ResolveInfo info : pm.queryBroadcastReceivers(intent, 0)) { in get()
124 final Resources res = pm.getResourcesForApplication(appInfo); in get()

12345678910>>...39