/frameworks/base/services/ |
D | art-profile-boot | 7 Lcom/android/server/pm/permission/PermissionSettings;->readPermissions(Landroid/util/ArrayMap;Lorg/… 8 Lcom/android/server/pm/permission/BasePermission;-><init>(Ljava/lang/String;Ljava/lang/String;I)V 9 Lcom/android/server/pm/permission/BasePermission;->readInt(Lorg/xmlpull/v1/XmlPullParser;Ljava/lang… 10 Lcom/android/server/pm/permission/BasePermission;->readLPw(Ljava/util/Map;Lorg/xmlpull/v1/XmlPullPa… 11 Lcom/android/server/pm/permission/PermissionsState$PermissionData;->isInstallPermission()Z 12 Lcom/android/server/pm/permission/BasePermission;->getName()Ljava/lang/String; 13 Lcom/android/server/pm/permission/PermissionsState$PermissionState;->access$100(Lcom/android/server… 14 Lcom/android/server/pm/permission/PermissionsState;->enforceValidUserId(I)V 15 Lcom/android/server/pm/permission/PermissionsState;->hasPermission(Ljava/lang/String;I)Z 16 Lcom/android/server/pm/permission/PermissionsState$PermissionData;->isGranted(I)Z [all …]
|
D | art-profile | 16 …d/content/pm/PackageManagerInternal;->filterAppAccess(Ljava/lang/String;II)Z+]Landroid/content/pm/… 93 …d/server/pm/snapshot/PackageDataSnapshot;Ljava/lang/Object;)V+]Landroid/content/IntentFilter;Landr… 94 HSPLcom/android/server/IntentResolver;->buildResolveList(Lcom/android/server/pm/Computer;Landroid/c… 98 …android/server/IntentResolver;Lcom/android/server/pm/CrossProfileIntentResolver;,Lcom/android/serv… 101 …pm/snapshot/PackageDataSnapshot;Landroid/content/Intent;Ljava/lang/String;ZI)Ljava/util/List;+]Lco… 102 HSPLcom/android/server/IntentResolver;->queryIntent(Lcom/android/server/pm/snapshot/PackageDataSnap… 103 …pm/Computer;Landroid/content/Intent;Ljava/lang/String;ZLjava/util/ArrayList;IJ)Ljava/util/List;+]L… 105 …droid/content/IntentFilter;Landroid/content/IntentFilter;,Landroid/content/pm/AuxiliaryResolveInfo… 118 …List;+]Landroid/content/Context;Landroid/app/ContextImpl;]Landroid/content/pm/PackageManager;Landr… 126 …pm/ApplicationInfo;Landroid/content/pm/ApplicationInfo;]Landroid/content/pm/IPackageManager;Lcom/a… [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | DefaultPermissionGrantPolicy.java | 17 package com.android.server.pm.permission; 31 import android.content.pm.ApplicationInfo; 32 import android.content.pm.PackageInfo; 33 import android.content.pm.PackageManager; 34 import android.content.pm.PackageManager.NameNotFoundException; 35 import android.content.pm.PackageManagerInternal; 36 import android.content.pm.PermissionInfo; 37 import android.content.pm.ProviderInfo; 38 import android.content.pm.ResolveInfo; 72 import com.android.server.pm.KnownPackages; [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | MultiInstanceHelperTest.kt | 21 import android.content.pm.LauncherApps 22 import android.content.pm.PackageManager 23 import android.content.pm.ShortcutInfo 100 val pm = mock<PackageManager>() in supportsMultiInstanceSplit_activityPropertyTrue() constant 102 whenever(pm.getProperty(eq(PROPERTY_SUPPORTS_MULTI_INSTANCE_SYSTEM_UI), in supportsMultiInstanceSplit_activityPropertyTrue() 106 whenever(pm.getProperty(eq(PROPERTY_SUPPORTS_MULTI_INSTANCE_SYSTEM_UI), in supportsMultiInstanceSplit_activityPropertyTrue() 110 val helper = MultiInstanceHelper(mContext, pm, emptyArray(), true) in supportsMultiInstanceSplit_activityPropertyTrue() 119 val pm = mock<PackageManager>() in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() constant 121 whenever(pm.getProperty(eq(PROPERTY_SUPPORTS_MULTI_INSTANCE_SYSTEM_UI), in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() 125 whenever(pm.getProperty(eq(PROPERTY_SUPPORTS_MULTI_INSTANCE_SYSTEM_UI), in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/ |
D | PackageUtil.kt | 21 import android.content.pm.ApplicationInfo 22 import android.content.pm.PackageInfo 23 import android.content.pm.PackageInstaller 24 import android.content.pm.PackageManager 50 private fun getSystemDownloadsProviderInfo(pm: PackageManager, uid: Int): ApplicationInfo? { in getSystemDownloadsProviderInfo() 52 val providerInfo = pm.resolveContentProvider(DOWNLOADS_AUTHORITY, 0) in getSystemDownloadsProviderInfo() 69 val pm = context.packageManager in getMaxTargetSdkVersionForUid() constant 70 val packages = pm.getPackagesForUid(uid) in getMaxTargetSdkVersionForUid() 75 val info = pm.getApplicationInfo(packageName!!, 0) in getMaxTargetSdkVersionForUid() 87 val pm = context.packageManager in canPackageQuery() constant [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 17 package android.content.pm; 219 public @NonNull CharSequence loadLabel(@NonNull PackageManager pm) { in loadLabel() argument 221 return loadSafeLabel(pm, DEFAULT_MAX_LABEL_SIZE_PX, SAFE_STRING_FLAG_TRIM in loadLabel() 226 return TextUtils.trimToSize(loadUnsafeLabel(pm), MAX_SAFE_LABEL_LENGTH); in loadLabel() 232 public CharSequence loadUnsafeLabel(PackageManager pm) { in loadUnsafeLabel() argument 237 CharSequence label = pm.getText(packageName, labelRes, getApplicationInfo()); in loadUnsafeLabel() 255 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm) { in loadSafeLabel() argument 256 return loadSafeLabel(pm, DEFAULT_MAX_LABEL_SIZE_PX, SAFE_STRING_FLAG_TRIM in loadSafeLabel() 269 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm, in loadSafeLabel() argument 271 Objects.requireNonNull(pm); in loadSafeLabel() [all …]
|
/frameworks/base/startop/apps/test/src/ |
D | SystemServerBenchmarks.java | 26 import android.content.pm.ApplicationInfo; 27 import android.content.pm.PackageManager; 28 import android.content.pm.PackageManager.NameNotFoundException; 60 PackageManager pm = parent.getPackageManager(); in initializeBenchmarks() local 62 pm.getInstalledApplications(PackageManager.MATCH_SYSTEM_ONLY); in initializeBenchmarks() 66 pm.getInstalledPackages(PackageManager.GET_ACTIVITIES); in initializeBenchmarks() 71 pm.getPackageInfo(packageName, 0); in initializeBenchmarks() 79 pm.getApplicationInfo(packageName, 0); in initializeBenchmarks() 86 ApplicationInfo app = pm.getApplicationInfo(packageName, 0); in initializeBenchmarks() 89 pm.getResourcesForApplication(app); in initializeBenchmarks() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/pkg/ |
D | PackageStateTest.kt | 17 package com.android.server.pm.test.pkg 20 import android.content.pm.PackageManager 21 import android.content.pm.PathPermission 22 import android.content.pm.SharedLibraryInfo 23 import android.content.pm.VersionedPackage 24 import android.content.pm.overlay.OverlayPaths 27 import com.android.internal.pm.parsing.pkg.PackageImpl 28 import com.android.internal.pm.pkg.component.ParsedActivity 29 import com.android.internal.pm.pkg.component.ParsedActivityImpl 30 import com.android.internal.pm.pkg.component.ParsedComponentImpl [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | UidDetailProvider.java | 22 import android.content.pm.ApplicationInfo; 23 import android.content.pm.IPackageManager; 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; 108 final PackageManager pm = mContext.getPackageManager(); in buildUidDetail() local 111 detail.label = pm.getNameForUid(uid); in buildUidDetail() 112 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() 118 detail.icon = pm.getDefaultActivityIcon(); in buildUidDetail() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageHandler.java | 17 package com.android.server.pm; 21 import static com.android.server.pm.PackageManagerService.CHECK_PENDING_INTEGRITY_VERIFICATION; 22 import static com.android.server.pm.PackageManagerService.CHECK_PENDING_VERIFICATION; 23 import static com.android.server.pm.PackageManagerService.DEBUG_INSTALL; 24 import static com.android.server.pm.PackageManagerService.DEFAULT_UNUSED_STATIC_SHARED_LIB_MIN_CACH… 25 import static com.android.server.pm.PackageManagerService.DEFERRED_NO_KILL_INSTALL_OBSERVER; 26 import static com.android.server.pm.PackageManagerService.DEFERRED_NO_KILL_POST_DELETE; 27 import static com.android.server.pm.PackageManagerService.DEFERRED_PENDING_KILL_INSTALL_OBSERVER; 28 import static com.android.server.pm.PackageManagerService.DOMAIN_VERIFICATION; 29 import static com.android.server.pm.PackageManagerService.ENABLE_ROLLBACK_STATUS; [all …]
|
D | ScanPartition.java | 17 package com.android.server.pm; 19 import static com.android.server.pm.PackageManagerService.SCAN_AS_APK_IN_APEX; 20 import static com.android.server.pm.PackageManagerService.SCAN_AS_FACTORY; 21 import static com.android.server.pm.PackageManagerService.SCAN_AS_ODM; 22 import static com.android.server.pm.PackageManagerService.SCAN_AS_OEM; 23 import static com.android.server.pm.PackageManagerService.SCAN_AS_PRODUCT; 24 import static com.android.server.pm.PackageManagerService.SCAN_AS_SYSTEM_EXT; 25 import static com.android.server.pm.PackageManagerService.SCAN_AS_VENDOR; 26 import static com.android.server.pm.PackageManagerService.SCAN_DROP_CACHE; 30 import android.content.pm.PackagePartitions;
|
/frameworks/base/services/core/java/com/android/server/crashrecovery/ |
D | CrashRecoveryHelper.java | 23 import android.content.pm.PackageInfo; 24 import android.content.pm.PackageManager; 25 import android.content.pm.VersionedPackage; 31 import com.android.server.pm.ApexManager; 70 PackageManager pm = mContext.getPackageManager(); in isModule() local 72 return pm.getModuleInfo(packageName, 0) != null; in isModule() 99 final PackageManager pm = mContext.getPackageManager(); in getVersionedPackage() local 100 if (pm == null || TextUtils.isEmpty(packageName)) { in getVersionedPackage() 118 PackageManager pm = mContext.getPackageManager(); in getPackageInfo() local 124 return pm.getPackageInfo(packageName, PackageManager.MATCH_ANY_USER); in getPackageInfo() [all …]
|
/frameworks/base/core/java/com/android/server/backup/ |
D | PreferredActivityBackupHelper.java | 23 import android.content.pm.IPackageManager; 24 import android.content.pm.verify.domain.DomainVerificationManager; 79 IPackageManager pm = AppGlobals.getPackageManager(); in getBackupPayload() local 86 return pm.getPreferredActivityBackup(mUserId); in getBackupPayload() 88 return pm.getDefaultAppsBackup(mUserId); in getBackupPayload() 93 return pm.getDomainVerificationBackup(mUserId); in getBackupPayload() 105 IPackageManager pm = AppGlobals.getPackageManager(); in applyRestoredPayload() local 112 pm.restorePreferredActivities(payload, mUserId); in applyRestoredPayload() 115 pm.restoreDefaultApps(payload, mUserId); in applyRestoredPayload() 121 pm.restoreDomainVerification(payload, mUserId); in applyRestoredPayload()
|
/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.PackageManager.NameNotFoundException; 27 import android.content.pm.ResolveInfo; 28 import android.content.pm.ServiceInfo; 100 final PackageManager pm = context.getPackageManager(); in WallpaperInfo() local 101 try (XmlResourceParser parser = si.loadXmlMetaData(pm, in WallpaperInfo() 108 Resources res = pm.getResourcesForApplication(si.applicationInfo); in WallpaperInfo() 148 pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in WallpaperInfo() 220 public CharSequence loadLabel(PackageManager pm) { in loadLabel() argument [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageManagerServiceBootTest.kt | 16 package com.android.server.pm in <lambda>() 18 import android.content.pm.ApplicationInfo.FLAG_SYSTEM in <lambda>() 19 import android.content.pm.ApplicationInfo.PRIVATE_FLAG_PRIVILEGED in <lambda>() 20 import android.content.pm.PackageManager in <lambda>() 24 import com.android.internal.pm.parsing.PackageParserException in <lambda>() 25 import com.android.server.pm.pkg.AndroidPackage in <lambda>() 71 val pm = createPackageManagerService() in <lambda>() constant 72 verify(rule.mocks().injector).bootstrap(pm) in <lambda>() 96 val pm = createPackageManagerService() in <lambda>() constant 98 assertThat(pm.mPackages, hasKey("a.data.package")) in <lambda>() [all …]
|
/frameworks/base/core/java/com/android/server/pm/pkg/ |
D | AndroidPackage.java | 17 package com.android.server.pm.pkg; 29 import android.content.pm.ActivityInfo; 30 import android.content.pm.ApplicationInfo; 31 import android.content.pm.ConfigurationInfo; 32 import android.content.pm.FeatureGroupInfo; 33 import android.content.pm.FeatureInfo; 34 import android.content.pm.InstrumentationInfo; 35 import android.content.pm.PackageInfo; 36 import android.content.pm.PackageManager; 37 import android.content.pm.PermissionInfo; [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/utils/ |
D | PackageUtils.java | 19 import static android.content.pm.PackageManager.FEATURE_COMPANION_DEVICE_SETUP; 20 import static android.content.pm.PackageManager.GET_CONFIGURATIONS; 21 import static android.content.pm.PackageManager.GET_PERMISSIONS; 39 import android.content.pm.FeatureInfo; 40 import android.content.pm.PackageInfo; 41 import android.content.pm.PackageManager; 42 import android.content.pm.PackageManager.PackageInfoFlags; 43 import android.content.pm.PackageManager.ResolveInfoFlags; 44 import android.content.pm.PackageManagerInternal; 45 import android.content.pm.ResolveInfo; [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | DefaultAppInfo.java | 22 import android.content.pm.ApplicationInfo; 23 import android.content.pm.ComponentInfo; 24 import android.content.pm.PackageItemInfo; 25 import android.content.pm.PackageManager; 46 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn) { in DefaultAppInfo() argument 47 this(context, pm, uid, cn, null /* summary */, true /* enabled */); in DefaultAppInfo() 50 public DefaultAppInfo(Context context, PackageManager pm, int uid, PackageItemInfo info) { in DefaultAppInfo() argument 51 this(context, pm, uid, info, null /* summary */, true /* enabled */); in DefaultAppInfo() 54 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn, in DefaultAppInfo() argument 58 mPm = pm; in DefaultAppInfo() [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 30 import android.content.pm.PackageInstaller; 31 import android.content.pm.PackageManager; 116 final PackageManager pm = in testGetAppMetadata() local 121 PersistableBundle bundle = pm.getAppMetadata(packageName); in testGetAppMetadata() 134 final PackageManager pm = in testCheckPermissionExists() local 139 int ret = pm.checkPermission(PERMISSION_NAME_EXISTS, packageName); in testCheckPermissionExists() 153 final PackageManager pm = in testCheckPermissionDoesntExist() local 158 int ret = pm.checkPermission(PERMISSION_NAME_DOESNT_EXIST, packageName); in testCheckPermissionDoesntExist() 172 final PackageManager pm = in testQueryIntentActivities() local 177 pm.queryIntentActivities(intent, 0); in testQueryIntentActivities() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationManagerInternal.java | 17 package com.android.server.pm.verify.domain; 25 import android.content.pm.IntentFilterVerificationInfo; 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 28 import android.content.pm.ResolveInfo; 29 import android.content.pm.verify.domain.DomainSet; 30 import android.content.pm.verify.domain.DomainVerificationInfo; 31 import android.content.pm.verify.domain.DomainVerificationManager; 32 import android.content.pm.verify.domain.DomainVerificationState; 40 import com.android.server.pm.Computer; [all …]
|
/frameworks/base/test-mock/api/ |
D | current.txt | 15 …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(); 194 @Deprecated public class MockPackageManager extends android.content.pm.PackageManager { 197 method @Deprecated public boolean addPermission(android.content.pm.PermissionInfo); 198 method @Deprecated public boolean addPermissionAsync(android.content.pm.PermissionInfo); 209 …le getActivityBanner(android.content.ComponentName) throws android.content.pm.PackageManager.NameN… [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/ |
D | PackageUtilsTest.java | 26 import android.content.pm.PackageManagerInternal; 27 import android.content.pm.Signature; 28 import android.content.pm.SigningDetails; 35 import com.android.server.pm.pkg.AndroidPackage; 68 PackageManagerInternal pm = mock(PackageManagerInternal.class); in isAllowlisted_true() local 75 doReturn(ap).when(pm).getPackage(ALLOWED_PACKAGE_NAMES[0]); in isAllowlisted_true() 77 assertTrue(PackageUtils.isPackageAllowlisted(context, pm, ALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_true() 92 PackageManagerInternal pm = mock(PackageManagerInternal.class); in isAllowlisted_package_disallowed() local 99 doReturn(ap).when(pm).getPackage(DISALLOWED_PACKAGE_NAMES[0]); in isAllowlisted_package_disallowed() 101 assertFalse(PackageUtils.isPackageAllowlisted(context, pm, DISALLOWED_PACKAGE_NAMES[0])); in isAllowlisted_package_disallowed() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UnarchiveActivity.java | 20 import static android.content.pm.PackageManager.GET_PERMISSIONS; 21 import static android.content.pm.PackageManager.MATCH_ARCHIVED_PACKAGES; 28 import android.content.pm.InstallSourceInfo; 29 import android.content.pm.PackageInstaller; 30 import android.content.pm.PackageManager; 97 PackageManager pm = getPackageManager(); in onCreate() local 99 String appTitle = pm.getApplicationInfo(mPackageName, in onCreate() 101 MATCH_ARCHIVED_PACKAGES)).loadLabel(pm).toString(); in onCreate() 102 String installerTitle = getResponsibleInstallerTitle(pm, in onCreate() 103 pm.getInstallSourceInfo(mPackageName)); in onCreate() [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | ActivityTile.java | 21 import android.content.pm.ActivityInfo; 22 import android.content.pm.ComponentInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.ResolveInfo; 58 final PackageManager pm = context.getApplicationContext().getPackageManager(); in getComponentInfo() local 61 pm.queryIntentActivities(intent, PackageManager.GET_META_DATA); in getComponentInfo() 75 final PackageManager pm = context.getPackageManager(); in getComponentLabel() local 79 : info.loadLabel(pm); in getComponentLabel()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | AndroidPackageUtils.java | 17 package com.android.server.pm.parsing.pkg; 21 import android.content.pm.ApplicationInfo; 22 import android.content.pm.PackageInfo; 23 import android.content.pm.PackageManager; 24 import android.content.pm.SharedLibraryInfo; 25 import android.content.pm.VersionedPackage; 26 import android.content.pm.dex.DexMetadataHelper; 27 import android.content.pm.parsing.result.ParseResult; 28 import android.content.pm.parsing.result.ParseTypeImpl; 32 import com.android.internal.pm.parsing.PackageParserException; [all …]
|