Home
last modified time | relevance | path

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

12345678910>>...64

/frameworks/base/core/java/android/content/pm/
DPackageItemInfo.java17 package android.content.pm;
196 public @NonNull CharSequence loadLabel(@NonNull PackageManager pm) { in loadLabel() argument
198 return loadSafeLabel(pm, DEFAULT_MAX_LABEL_SIZE_PX, SAFE_STRING_FLAG_TRIM in loadLabel()
201 return loadUnsafeLabel(pm); in loadLabel()
206 public CharSequence loadUnsafeLabel(PackageManager pm) { in loadUnsafeLabel() argument
211 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadUnsafeLabel()
228 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm) { in loadSafeLabel() argument
229 return loadSafeLabel(pm, DEFAULT_MAX_LABEL_SIZE_PX, SAFE_STRING_FLAG_TRIM in loadSafeLabel()
241 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm, in loadSafeLabel() argument
243 Preconditions.checkNotNull(pm); in loadSafeLabel()
[all …]
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;
24 import android.content.pm.VersionedPackage;
DIPackageManager.aidl18 package android.content.pm;
23 import android.content.pm.ActivityInfo;
24 import android.content.pm.ApplicationInfo;
25 import android.content.pm.ChangedPackages;
26 import android.content.pm.InstantAppInfo;
27 import android.content.pm.FeatureInfo;
28 import android.content.pm.IDexModuleRegisterCallback;
29 import android.content.pm.IPackageInstaller;
30 import android.content.pm.IPackageDeleteObserver;
31 import android.content.pm.IPackageDeleteObserver2;
[all …]
DILauncherApps.aidl17 package android.content.pm;
23 import android.content.pm.ActivityInfo;
24 import android.content.pm.ApplicationInfo;
25 import android.content.pm.IOnAppsChangedListener;
26 import android.content.pm.LauncherApps;
27 import android.content.pm.IPackageInstallerCallback;
28 import android.content.pm.PackageInstaller;
29 import android.content.pm.ParceledListSlice;
30 import android.content.pm.ResolveInfo;
31 import android.content.pm.ShortcutInfo;
DComponentInfo.java17 package android.content.pm;
101 @Override public CharSequence loadUnsafeLabel(PackageManager pm) { in loadUnsafeLabel() argument
108 label = pm.getText(packageName, labelRes, ai); in loadUnsafeLabel()
117 label = pm.getText(packageName, ai.labelRes, ai); in loadUnsafeLabel()
236 public Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() argument
237 return applicationInfo.loadIcon(pm); in loadDefaultIcon()
243 @Override protected Drawable loadDefaultBanner(PackageManager pm) { in loadDefaultBanner() argument
244 return applicationInfo.loadBanner(pm); in loadDefaultBanner()
251 protected Drawable loadDefaultLogo(PackageManager pm) { in loadDefaultLogo() argument
252 return applicationInfo.loadLogo(pm); in loadDefaultLogo()
/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;
30 import android.content.pm.PackageInfo;
44 import com.android.server.pm.dex.DexManager;
45 import com.android.server.pm.dex.DexoptOptions;
180 final PackageManagerService pm, final ArraySet<String> pkgs) { in runPostBootUpdate() argument
188 postBootUpdate(jobParams, pm, pkgs); in runPostBootUpdate()
195 private void postBootUpdate(JobParameters jobParams, PackageManagerService pm, in postBootUpdate() argument
238 int result = pm.performDexOptWithStatus(new DexoptOptions( in postBootUpdate()
252 final PackageManagerService pm, final ArraySet<String> pkgs) { in runIdleOptimization() argument
[all …]
DPackageDexOptimizer.java17 package com.android.server.pm;
19 import static android.content.pm.ApplicationInfo.HIDDEN_API_ENFORCEMENT_DISABLED;
21 import static com.android.server.pm.Installer.DEXOPT_BOOTCOMPLETE;
22 import static com.android.server.pm.Installer.DEXOPT_DEBUGGABLE;
23 import static com.android.server.pm.Installer.DEXOPT_ENABLE_HIDDEN_API_CHECKS;
24 import static com.android.server.pm.Installer.DEXOPT_FORCE;
25 import static com.android.server.pm.Installer.DEXOPT_GENERATE_APP_IMAGE;
26 import static com.android.server.pm.Installer.DEXOPT_GENERATE_COMPACT_DEX;
27 import static com.android.server.pm.Installer.DEXOPT_IDLE_BACKGROUND_JOB;
28 import static com.android.server.pm.Installer.DEXOPT_PROFILE_GUIDED;
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/os/
DPackageManagerPerfTest.java21 import android.content.pm.PackageManager;
49 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionExists() local
53 int ret = pm.checkPermission(PERMISSION_NAME_EXISTS, packageName); in testCheckPermissionExists()
60 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist() local
64 int ret = pm.checkPermission(PERMISSION_NAME_DOESNT_EXIST, packageName); in testCheckPermissionDoesntExist()
71 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testQueryIntentActivities() local
75 pm.queryIntentActivities(intent, 0); in testQueryIntentActivities()
82 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetPackageInfo() local
86 pm.getPackageInfo(packageName, 0); in testGetPackageInfo()
93 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetApplicationInfo() local
[all …]
/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;
107 final PackageManager pm = mContext.getPackageManager(); in buildUidDetail() local
110 detail.label = pm.getNameForUid(uid); in buildUidDetail()
111 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail()
117 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail()
[all …]
/frameworks/base/test-mock/api/
Dcurrent.txt15 …ctor public MockContentProvider(android.content.Context, String, String, android.content.pm.PathPe…
17 …Testing(android.content.ContentProvider, android.content.Context, android.content.pm.ProviderInfo);
46 …method public android.content.Context createContextForSplit(String) throws android.content.pm.Pack…
49 …d.content.Context createPackageContext(String, int) throws android.content.pm.PackageManager.NameN…
63 method public android.content.pm.ApplicationInfo getApplicationInfo();
84 method public android.content.pm.PackageManager getPackageManager();
191 @Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
194 method @Deprecated public boolean addPermission(android.content.pm.PermissionInfo);
195 method @Deprecated public boolean addPermissionAsync(android.content.pm.PermissionInfo);
206 …le getActivityBanner(android.content.ComponentName) throws android.content.pm.PackageManager.NameN…
[all …]
Dsystem-current.txt13 @Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
14 …method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsC…
18 … method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
22 method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
23 …method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerif…
27 …method public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotF…
28 …method public int installExistingPackage(String, int) throws android.content.pm.PackageManager.Nam…
29 …method public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModule…
30 …method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissio…
/frameworks/base/core/java/android/app/
DWallpaperInfo.java24 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;
99 final PackageManager pm = context.getPackageManager(); in WallpaperInfo() local
102 parser = si.loadXmlMetaData(pm, WallpaperService.SERVICE_META_DATA); in WallpaperInfo()
108 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo()
214 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument
215 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()
/frameworks/base/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java26 import static android.content.pm.PackageManager.FLAG_PERMISSION_APPLY_RESTRICTION;
27 import static android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT;
28 import static android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT;
29 import static android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT;
37 import android.content.pm.ApplicationInfo;
38 import android.content.pm.PackageManager;
90 PackageManager pm = context.getPackageManager(); in getMinimumTargetSDK() local
94 String[] uidPkgs = pm.getPackagesForUid(appInfo.uid); in getMinimumTargetSDK()
100 uidPkgInfo = pm.getApplicationInfoAsUser(uidPkg, 0, user); in getMinimumTargetSDK()
140 PackageManager pm = context.getPackageManager(); in forPermission() local
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DApplicationPackageManagerTest.java23 import android.content.pm.ApplicationInfo;
24 import android.content.pm.IPackageManager;
25 import android.content.pm.PackageInfo;
153 IPackageManager pm = Mockito.mock(IPackageManager.class); in testGetCandidateVolumes_systemApp() local
160 appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
165 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
170 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
175 candidates = appPkgMgr.getPackageCandidateVolumes(sysAppInfo, storageManager, pm); in testGetCandidateVolumes_systemApp()
183 IPackageManager pm = Mockito.mock(IPackageManager.class); in testGetCandidateVolumes_3rdParty_internalOnly() local
184 Mockito.when(pm.isPackageDeviceAdminOnAnyUser(Mockito.anyString())).thenReturn(false); in testGetCandidateVolumes_3rdParty_internalOnly()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DDefaultAppInfo.java22 import android.content.pm.ApplicationInfo;
23 import android.content.pm.ComponentInfo;
24 import android.content.pm.PackageItemInfo;
25 import android.content.pm.PackageManager;
44 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn) { in DefaultAppInfo() argument
45 this(context, pm, uid, cn, null /* summary */, true /* enabled */); in DefaultAppInfo()
48 public DefaultAppInfo(Context context, PackageManager pm, int uid, PackageItemInfo info) { in DefaultAppInfo() argument
49 this(context, pm, uid, info, null /* summary */, true /* enabled */); in DefaultAppInfo()
52 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn, in DefaultAppInfo() argument
56 mPm = pm; in DefaultAppInfo()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java24 import android.content.pm.ApplicationInfo;
25 import android.content.pm.PackageManager;
26 import android.content.pm.PackageParser;
27 import android.content.pm.PackageParser.PackageParserException;
100 final PackageManager pm = pContext.getPackageManager(); in initSnippetForInstalledApp() local
101 Drawable icon = appInfo.loadIcon(pm); in initSnippetForInstalledApp()
107 appInfo.loadLabel(pm), in initSnippetForInstalledApp()
175 PackageManager pm = context.getPackageManager(); in getMaxTargetSdkVersionForUid() local
176 final String[] packages = pm.getPackagesForUid(uid); in getMaxTargetSdkVersionForUid()
181 ApplicationInfo info = pm.getApplicationInfo(packageName, 0); in getMaxTargetSdkVersionForUid()
/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/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/core/java/com/android/server/search/
DSearchables.java25 import android.content.pm.ActivityInfo;
26 import android.content.pm.ApplicationInfo;
27 import android.content.pm.IPackageManager;
28 import android.content.pm.PackageManager;
29 import android.content.pm.PackageManagerInternal;
30 import android.content.pm.ResolveInfo;
127 final PackageManagerInternal pm = in getSearchableInfo() local
129 if (pm.canAccessComponent(Binder.getCallingUid(), result.getSearchActivity(), in getSearchableInfo()
188 final PackageManagerInternal pm = in getSearchableInfo() local
190 if (pm.canAccessComponent(Binder.getCallingUid(), result.getSearchActivity(), in getSearchableInfo()
[all …]
/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;
164 final PackageManager pm = mPackageManager; in fetchAndMergeApps() local
183 List<ApplicationInfo> installedApps = pm.getInstalledApplications( in fetchAndMergeApps()
194 info.appName = app.loadLabel(pm); in fetchAndMergeApps()
196 info.icon = app.loadIcon(pm); in fetchAndMergeApps()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageBackwardCompatibilityTest.java17 package android.content.pm;
19 import static android.content.pm.PackageBuilder.builder;
20 import static android.content.pm.SharedLibraryNames.ANDROID_TEST_BASE;
21 import static android.content.pm.SharedLibraryNames.ANDROID_TEST_MOCK;
22 import static android.content.pm.SharedLibraryNames.ANDROID_TEST_RUNNER;
23 import static android.content.pm.SharedLibraryNames.ORG_APACHE_HTTP_LEGACY;
25 import android.content.pm.PackageBackwardCompatibility.RemoveUnnecessaryAndroidTestBaseLibrary;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSlicePermissionActivity.java26 import android.content.pm.PackageItemInfo;
27 import android.content.pm.PackageManager;
28 import android.content.pm.PackageManager.NameNotFoundException;
56 PackageManager pm = getPackageManager(); in onCreate() local
57 CharSequence app1 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate()
58 mCallingPkg, 0).loadSafeLabel(pm, PackageItemInfo.DEFAULT_MAX_LABEL_SIZE_PX, in onCreate()
61 CharSequence app2 = BidiFormatter.getInstance().unicodeWrap(pm.getApplicationInfo( in onCreate()
62 mProviderPkg, 0).loadSafeLabel(pm, PackageItemInfo.DEFAULT_MAX_LABEL_SIZE_PX, in onCreate()
/frameworks/base/core/java/android/os/
DGraphicsEnvironment.java24 import android.content.pm.ApplicationInfo;
25 import android.content.pm.PackageInfo;
26 import android.content.pm.PackageManager;
27 import android.content.pm.ResolveInfo;
101 final PackageManager pm = context.getPackageManager(); in setup() local
104 setupGpuLayers(context, coreSettings, pm, packageName); in setup()
107 setupAngle(context, coreSettings, pm, packageName); in setup()
110 if (!chooseDriver(context, coreSettings, pm, packageName)) { in setup()
113 getVulkanVersion(pm)); in setup()
161 private static int getVulkanVersion(PackageManager pm) { in getVulkanVersion() argument
[all …]
/frameworks/base/core/java/android/speech/tts/
DTtsEngines.java24 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;
140 PackageManager pm = mContext.getPackageManager(); in getEngineInfo() local
143 List<ResolveInfo> resolveInfos = pm.queryIntentServices(intent, in getEngineInfo()
149 return getEngineInfo(resolveInfos.get(0), pm); in getEngineInfo()
162 PackageManager pm = mContext.getPackageManager(); in getEngines() local
165 pm.queryIntentServices(intent, PackageManager.MATCH_DEFAULT_ONLY); in getEngines()
[all …]

12345678910>>...64