/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 21 import android.content.pm.PackageManager; 64 @Mock private PackageManager mPackageManager; 114 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_MissingApp() 115 | PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_MissingApp() 116 | PackageManager.MATCH_SYSTEM_ONLY)).thenReturn(null); in testDisableCarrierAppsUntilPrivileged_MissingApp() 123 Mockito.eq(PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 125 Mockito.eq(PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_VISIBLE)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 127 Mockito.eq(PackageManager.SYSTEM_APP_STATE_INSTALLED)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 129 Mockito.eq(PackageManager.SYSTEM_APP_STATE_UNINSTALLED)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 138 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_NonSystemApp() [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 26 import android.content.pm.PackageManager; 57 public PackageManagerPerfTest() throws PackageManager.NameNotFoundException { in PackageManagerPerfTest() 63 PackageManager.disableApplicationInfoCache(); in setup() 64 PackageManager.disablePackageInfoCache(); in setup() 68 @DisableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) 71 final PackageManager pm = in testCheckPermissionExists() 81 @EnableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) 87 @DisableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) 90 final PackageManager pm = in testCheckPermissionDoesntExist() 100 @EnableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageVerificationStateTest.java | 19 import android.content.pm.PackageManager; 37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 53 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() 74 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall() 79 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall() 100 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall() 105 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall() 127 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough() 132 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough() 154 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_SecondSufficientIsEnough() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | ComponentTest.java | 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_ENABLED; 22 import static android.content.pm.PackageManager.GET_DISABLED_COMPONENTS; 53 private PackageManager mPackageManager; 136 PackageManager.DONT_KILL_APP); in testResolveDisabledActivity() 152 PackageManager.DONT_KILL_APP); in testResolveEnabledActivity() 165 PackageManager.DONT_KILL_APP); in testQueryDisabledActivity() 185 PackageManager.DONT_KILL_APP); in testQueryEnabledActivity() 200 PackageManager.DONT_KILL_APP); in testGetDisabledActivityInfo() [all …]
|
D | PackageManagerTests.java | 36 import android.content.pm.PackageManager.NameNotFoundException; 199 private PackageManager getPm() { in getPm() 375 if ((flags & PackageManager.INSTALL_INTERNAL) != 0) { in getInstallLoc() 610 final PackageManager pm = getPm(); in assertPermissions() 621 PackageManager.GET_PERMISSIONS in assertPermissions() 622 | PackageManager.MATCH_UNINSTALLED_PACKAGES); in assertPermissions() 677 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_GRANTED) { in assertPermissions() 681 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_DENIED) { in assertPermissions() 691 PackageManager pm = mContext.getPackageManager(); in getParsedPackage() 705 PackageManager pm = mContext.getPackageManager(); in installFromRawResource() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageParsingEquivalenceTest.kt | 19 import android.content.pm.PackageManager 38 val flags = PackageManager.GET_META_DATA or PackageManager.GET_SHARED_LIBRARY_FILES in applicationInfoEquality() 58 val flags = PackageManager.GET_ACTIVITIES or in packageInfoEquality() 59 PackageManager.GET_CONFIGURATIONS or in packageInfoEquality() 60 PackageManager.GET_GIDS or in packageInfoEquality() 61 PackageManager.GET_INSTRUMENTATION or in packageInfoEquality() 62 PackageManager.GET_META_DATA or in packageInfoEquality() 63 PackageManager.GET_PERMISSIONS or in packageInfoEquality() 64 PackageManager.GET_PROVIDERS or in packageInfoEquality() 65 PackageManager.GET_RECEIVERS or in packageInfoEquality() [all …]
|
D | AndroidPackageInfoFlagBehaviorTest.kt | 21 import android.content.pm.PackageManager in <lambda>() 78 pkgInfo(PackageManager.GET_ACTIVITIES) { listOf(it.activities) }, in <lambda>() 79 pkgInfo(PackageManager.GET_GIDS) { listOf(it.gids) }, in <lambda>() 80 pkgInfo(PackageManager.GET_INSTRUMENTATION) { listOf(it.instrumentation) }, in <lambda>() 81 pkgInfo(PackageManager.GET_META_DATA) { listOf(it.applicationInfo.metaData) }, in <lambda>() 82 pkgInfo(PackageManager.GET_PROVIDERS) { listOf(it.providers) }, in <lambda>() 83 pkgInfo(PackageManager.GET_RECEIVERS) { listOf(it.receivers) }, in <lambda>() 84 pkgInfo(PackageManager.GET_SERVICES) { listOf(it.services) }, in <lambda>() 85 pkgInfo(PackageManager.GET_SIGNATURES) { listOf(it.signatures) }, in <lambda>() 86 pkgInfo(PackageManager.GET_SIGNING_CERTIFICATES) { listOf(it.signingInfo) }, in <lambda>() [all …]
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | PackageTrackerHelperImpl.java | 24 import android.content.pm.PackageManager; 41 private final PackageManager mPackageManager; 77 throws PackageManager.NameNotFoundException { in getInstalledPackageVersion() 78 int flags = PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS; in getInstalledPackageVersion() 84 public boolean isPrivilegedApp(String packageName) throws PackageManager.NameNotFoundException { in isPrivilegedApp() 85 int flags = PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS; in isPrivilegedApp() 92 throws PackageManager.NameNotFoundException { in usesPermission() 93 int flags = PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS in usesPermission() 94 | PackageManager.GET_PERMISSIONS; in usesPermission() 109 int flags = PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS; in contentProviderRegistered() [all …]
|
D | PackageManagerHelper.java | 20 import android.content.pm.PackageManager; 30 throws PackageManager.NameNotFoundException; in getInstalledPackageVersion() 32 boolean isPrivilegedApp(String packageName) throws PackageManager.NameNotFoundException; in isPrivilegedApp() 35 throws PackageManager.NameNotFoundException; in usesPermission() 40 throws PackageManager.NameNotFoundException; in receiverRegistered()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationLegacySettingsTest.kt | 20 import android.content.pm.PackageManager 45 status = PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS_ASK in writeAndReadBackNormal() 50 0, PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS in writeAndReadBackNormal() 54 10, PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER in writeAndReadBackNormal() 67 11, PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS in writeAndReadBackNormal() 84 .isEqualTo(PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) in writeAndReadBackNormal() 86 .isEqualTo(PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER) in writeAndReadBackNormal() 92 .isEqualTo(PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) in writeAndReadBackNormal() 94 .isEqualTo(PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_NEVER) in writeAndReadBackNormal() 101 .isEqualTo(PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) in writeAndReadBackNormal()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 25 import android.content.pm.PackageManager; 96 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 100 uid) == PackageManager.PERMISSION_GRANTED) { in checkDeviceIdentifierAccess() 101 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 113 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 124 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 127 return PackageManager.PERMISSION_DENIED; in checkDeviceIdentifierAccess() 135 uid) == PackageManager.PERMISSION_GRANTED) { in checkPhoneNumberAccess() 137 return PackageManager.PERMISSION_GRANTED; in checkPhoneNumberAccess() 142 return PackageManager.PERMISSION_DENIED; in checkPhoneNumberAccess() [all …]
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | SchedulingPolicyService.java | 19 import android.content.pm.PackageManager; 93 return PackageManager.PERMISSION_DENIED; in requestPriority() 99 return PackageManager.PERMISSION_DENIED; in requestPriority() 108 return PackageManager.PERMISSION_DENIED; in requestPriority() 117 return PackageManager.PERMISSION_DENIED; in requestPriority() 119 return PackageManager.PERMISSION_GRANTED; in requestPriority() 127 return PackageManager.PERMISSION_DENIED; in requestCpusetBoost() 133 return PackageManager.PERMISSION_DENIED; in requestCpusetBoost() 147 return PackageManager.PERMISSION_GRANTED; in enableCpusetBoost() 172 return PackageManager.PERMISSION_GRANTED; in enableCpusetBoost() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/visibilitystore/ |
D | VisibilityStoreImplTest.java | 20 import static android.content.pm.PackageManager.PERMISSION_DENIED; 21 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 33 import android.content.pm.PackageManager; 65 private final Map<UserHandle, PackageManager> mMockPackageManagers = new ArrayMap<>(); 78 public PackageManager getPackageManager() { in setUp() 85 public PackageManager getPackageManager() { in setUp() 124 PackageManager mockPackageManager = getMockPackageManager(mContext.getUser()); in testDoesCallerHaveSystemAccess() 140 PackageManager mockPackageManager = getMockPackageManager(mContext.getUser()); in testSetVisibility_displayedBySystem() 250 PackageManager mockPackageManager = getMockPackageManager(mContext.getUser()); in testSetVisibility_visibleToPackages() 289 packageNameFoo, sha256CertFoo, PackageManager.CERT_INPUT_SHA256)) in testSetVisibility_visibleToPackages() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 24 import android.content.pm.PackageManager; 143 PackageManager packageManager = context.getPackageManager(); in disableCarrierAppsUntilPrivileged() 174 packageName, PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN); in disableCarrierAppsUntilPrivileged() 179 PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN); in disableCarrierAppsUntilPrivileged() 189 == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT in disableCarrierAppsUntilPrivileged() 191 == PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED in disableCarrierAppsUntilPrivileged() 198 packageName, PackageManager.SYSTEM_APP_STATE_INSTALLED); in disableCarrierAppsUntilPrivileged() 203 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, in disableCarrierAppsUntilPrivileged() 204 PackageManager.DONT_KILL_APP); in disableCarrierAppsUntilPrivileged() 224 == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT in disableCarrierAppsUntilPrivileged() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/ |
D | LegacyPermissionManagerServiceTest.java | 31 import android.content.pm.PackageManager; 110 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkDeviceIdentifierAccess_callingAppIdWithoutAccess_returnsDenied() 121 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_systemUid_returnsGranted() 130 APP_PID, APP_UID)).thenReturn(PackageManager.PERMISSION_GRANTED); in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted() 136 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted() 152 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_hasAppOp_returnsGranted() 167 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_hasDpmAccess_returnsGranted() 203 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkPhoneNumberAccess_callingAppIdWithoutAccess_returnsDenied() 216 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkPhoneNumberAccess_nullPackageName_returnsDenied() 224 APP_PID, APP_UID)).thenReturn(PackageManager.PERMISSION_GRANTED); in checkPhoneNumberAccess_hasPrivilegedPermission_returnsGranted() [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/ |
D | ComponentActivationActivity.java | 21 import android.content.pm.PackageManager; 47 final PackageManager pm = getPackageManager(); in onStart() 57 == PackageManager.COMPONENT_ENABLED_STATE_ENABLED; in onStart() 62 PackageManager.COMPONENT_ENABLED_STATE_DISABLED, in onStart() 63 PackageManager.DONT_KILL_APP); in onStart() 72 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, in onStart() 73 PackageManager.DONT_KILL_APP); in onStart()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
D | PluginEnablerImpl.java | 20 import android.content.pm.PackageManager; 28 private PackageManager mPm; 35 @VisibleForTesting public PluginEnablerImpl(Context context, PackageManager pm) { in PluginEnablerImpl() 49 final int desiredState = enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED in setDisabled() 50 : PackageManager.COMPONENT_ENABLED_STATE_DISABLED; in setDisabled() 51 mPm.setComponentEnabledSetting(component, desiredState, PackageManager.DONT_KILL_APP); in setDisabled() 62 != PackageManager.COMPONENT_ENABLED_STATE_DISABLED; in isEnabled()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/ |
D | AppSearchImplPlatformTest.java | 23 import static android.content.pm.PackageManager.PERMISSION_DENIED; 24 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 37 import android.content.pm.PackageManager; 67 private final Map<UserHandle, PackageManager> mMockPackageManagers = new ArrayMap<>(); 81 public PackageManager getPackageManager() { in setUp() 88 public PackageManager getPackageManager() { in setUp() 112 PackageManager mockPackageManager = getMockPackageManager(mContext.getUser()); in testSetSchema_existingSchemaRetainsVisibilitySetting() 116 packageNameFoo, sha256CertFoo, PackageManager.CERT_INPUT_SHA256)) in testSetSchema_existingSchemaRetainsVisibilitySetting() 219 PackageManager mockPackageManager = getMockPackageManager(mContext.getUser()); in testRemoveSchema_removedFromVisibilityStore() 223 packageNameFoo, sha256CertFoo, PackageManager.CERT_INPUT_SHA256)) in testRemoveSchema_removedFromVisibilityStore() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | PreviewInflater.java | 22 import android.content.pm.PackageManager; 88 } catch (PackageManager.NameNotFoundException|RuntimeException e) { in inflateWidgetView() 95 PackageManager packageManager = mContext.getPackageManager(); in getWidgetInfoFromService() 99 componentName, PackageManager.GET_META_DATA).metaData; in getWidgetInfoFromService() 101 } catch (PackageManager.NameNotFoundException e) { in getWidgetInfoFromService() 124 PackageManager packageManager = mContext.getPackageManager(); in getWidgetInfo() 125 int flags = PackageManager.MATCH_DEFAULT_ONLY in getWidgetInfo() 126 | PackageManager.MATCH_DIRECT_BOOT_AWARE in getWidgetInfo() 127 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE; in getWidgetInfo() 134 flags | PackageManager.GET_META_DATA, in getWidgetInfo()
|
/frameworks/libs/net/common/device/com/android/net/module/util/ |
D | DeviceConfigUtils.java | 21 import android.content.pm.PackageManager; 47 throws PackageManager.NameNotFoundException { in getPackageVersion() 162 } catch (PackageManager.NameNotFoundException e) { in isFeatureEnabled() 189 } catch (PackageManager.NameNotFoundException e) { in isFeatureEnabled() 205 throws PackageManager.NameNotFoundException { in isFeatureEnabled() 215 throws PackageManager.NameNotFoundException { in getModuleVersion() 218 final PackageManager packageManager = context.getPackageManager(); in getModuleVersion() 222 moduleName, PackageManager.MODULE_APEX_NAME); in getModuleVersion() 223 } catch (PackageManager.NameNotFoundException e) { in getModuleVersion() 236 if (modulePackageName == null) throw new PackageManager.NameNotFoundException(moduleName); in getModuleVersion() [all …]
|
/frameworks/base/core/java/android/service/voice/ |
D | VoiceInteractionServiceInfo.java | 24 import android.content.pm.PackageManager; 62 @NonNull PackageManager pm, @NonNull ComponentName comp, int userHandle) in VoiceInteractionServiceInfo() 63 throws PackageManager.NameNotFoundException { in VoiceInteractionServiceInfo() 69 throws PackageManager.NameNotFoundException { in getServiceInfoOrThrow() 72 PackageManager.GET_META_DATA in getServiceInfoOrThrow() 73 | PackageManager.MATCH_DIRECT_BOOT_AWARE in getServiceInfoOrThrow() 74 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE, in getServiceInfoOrThrow() 81 throw new PackageManager.NameNotFoundException(comp.toString()); in getServiceInfoOrThrow() 92 public VoiceInteractionServiceInfo(@NonNull PackageManager pm, @NonNull ServiceInfo si) { in VoiceInteractionServiceInfo() 149 } catch (XmlPullParserException | IOException | PackageManager.NameNotFoundException e) { in VoiceInteractionServiceInfo()
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | PackageInfoWithoutStateUtils.java | 34 import android.content.pm.PackageManager; 76 @PackageManager.PackageInfoFlags int flags, long firstInstallTime, long lastUpdateTime, in generate() 90 @PackageManager.PackageInfoFlags int flags, long firstInstallTime, long lastUpdateTime, in generateWithComponents() 104 if ((flags & PackageManager.GET_ACTIVITIES) != 0) { in generateWithComponents() 113 if (PackageManager.APP_DETAILS_ACTIVITY_CLASS_NAME.equals( in generateWithComponents() 124 if ((flags & PackageManager.GET_RECEIVERS) != 0) { in generateWithComponents() 140 if ((flags & PackageManager.GET_SERVICES) != 0) { in generateWithComponents() 156 if ((flags & PackageManager.GET_PROVIDERS) != 0) { in generateWithComponents() 173 if ((flags & PackageManager.GET_INSTRUMENTATION) != 0) { in generateWithComponents() 190 @PackageManager.PackageInfoFlags int flags, long firstInstallTime, long lastUpdateTime, in generateWithoutComponents() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SoftRestrictedPermissionPolicy.java | 24 import static android.content.pm.PackageManager.FLAG_PERMISSION_APPLY_RESTRICTION; 25 import static android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_INSTALLER_EXEMPT; 26 import static android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_SYSTEM_EXEMPT; 27 import static android.content.pm.PackageManager.FLAG_PERMISSION_RESTRICTION_UPGRADE_EXEMPT; 28 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 37 import android.content.pm.PackageManager; 86 PackageManager pm = context.getPackageManager(); in getMinimumTargetSDK() 97 } catch (PackageManager.NameNotFoundException e) { in getMinimumTargetSDK() 137 PackageManager pm = context.getPackageManager(); in forPermission() 259 PackageManager packageManager = context.getPackageManager(); [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | DefaultAppInfo.java | 25 import android.content.pm.PackageManager; 41 protected final PackageManager mPm; 44 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn) { in DefaultAppInfo() 48 public DefaultAppInfo(Context context, PackageManager pm, int uid, PackageItemInfo info) { in DefaultAppInfo() 52 public DefaultAppInfo(Context context, PackageManager pm, int uid, ComponentName cn, in DefaultAppInfo() 63 public DefaultAppInfo(Context context, PackageManager pm, int uid, PackageItemInfo info, in DefaultAppInfo() 86 } catch (PackageManager.NameNotFoundException e) { in loadLabel() 110 } catch (PackageManager.NameNotFoundException e) { in loadIcon() 119 } catch (PackageManager.NameNotFoundException e) { in loadIcon()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageItemInfo.java | 205 public @NonNull CharSequence loadLabel(@NonNull PackageManager pm) { in loadLabel() 217 public CharSequence loadUnsafeLabel(PackageManager pm) { in loadUnsafeLabel() 239 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm) { in loadSafeLabel() 252 public @NonNull CharSequence loadSafeLabel(@NonNull PackageManager pm, in loadSafeLabel() 272 public Drawable loadIcon(PackageManager pm) { in loadIcon() 289 public Drawable loadUnbadgedIcon(PackageManager pm) { in loadUnbadgedIcon() 304 public Drawable loadBanner(PackageManager pm) { in loadBanner() 325 public Drawable loadDefaultIcon(PackageManager pm) { in loadDefaultIcon() 340 protected Drawable loadDefaultBanner(PackageManager pm) { in loadDefaultBanner() 355 public Drawable loadLogo(PackageManager pm) { in loadLogo() [all …]
|