/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierAppUtilsTest.java | 21 import android.content.pm.PackageManager; 71 private PackageManager mPackageManager; 94 mPackageManager = Mockito.mock(PackageManager.class); in setUp() 132 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_MissingApp() 133 | PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_MissingApp() 134 | PackageManager.MATCH_SYSTEM_ONLY)).thenReturn(null); in testDisableCarrierAppsUntilPrivileged_MissingApp() 143 Mockito.eq(PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 145 Mockito.eq(PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_VISIBLE)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 147 Mockito.eq(PackageManager.SYSTEM_APP_STATE_INSTALLED)); in testDisableCarrierAppsUntilPrivileged_MissingApp() 149 Mockito.eq(PackageManager.SYSTEM_APP_STATE_UNINSTALLED)); in testDisableCarrierAppsUntilPrivileged_MissingApp() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageUserStateUtils.java | 19 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS; 20 import static android.content.pm.PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS; 21 import static android.content.pm.PackageManager.MATCH_QUARANTINED_COMPONENTS; 25 import android.content.pm.PackageManager; 63 final boolean matchUninstalled = (flags & PackageManager.MATCH_KNOWN_PACKAGES) != 0; in isMatch() 72 if ((flags & PackageManager.MATCH_SYSTEM_ONLY) != 0) { in isMatch() 78 final boolean matchesUnaware = ((flags & PackageManager.MATCH_DIRECT_BOOT_UNAWARE) != 0) in isMatch() 80 final boolean matchesAware = ((flags & PackageManager.MATCH_DIRECT_BOOT_AWARE) != 0) in isMatch() 101 final boolean matchAnyUser = (flags & PackageManager.MATCH_ANY_USER) != 0; in isAvailable() 102 final boolean matchUninstalled = (flags & PackageManager.MATCH_UNINSTALLED_PACKAGES) != 0; in isAvailable() [all …]
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | PermissionFlags.kt | 21 import android.content.pm.PackageManager 365 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_USER_SET in toApiFlags() 368 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_USER_FIXED in toApiFlags() 371 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_POLICY_FIXED in toApiFlags() 374 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_SYSTEM_FIXED in toApiFlags() 377 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_GRANTED_BY_DEFAULT in toApiFlags() 383 PackageManager.FLAG_PERMISSION_REVIEW_REQUIRED in toApiFlags() 385 PackageManager.FLAG_PERMISSION_REVOKE_WHEN_REQUESTED in toApiFlags() 389 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_GRANTED in toApiFlags() 392 apiFlags = apiFlags or PackageManager.FLAG_PERMISSION_USER_SENSITIVE_WHEN_DENIED in toApiFlags() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/ |
D | PackageManagerExtComponentEnabledTest.kt | 21 import android.content.pm.PackageManager 40 @Mock private lateinit var packageManager: PackageManager 62 @PackageManager.EnabledState val componentEnabledSetting: Int, 75 PackageManager.COMPONENT_ENABLED_STATE_DEFAULT -> "STATE_DEFAULT" in enabledStateToString() 76 PackageManager.COMPONENT_ENABLED_STATE_DISABLED -> "STATE_DISABLED" in enabledStateToString() 77 PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED -> { in enabledStateToString() 80 PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER -> "STATE_DISABLED_USER" in enabledStateToString() 81 PackageManager.COMPONENT_ENABLED_STATE_ENABLED -> "STATE_ENABLED" in enabledStateToString() 92 componentEnabledSetting = PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 97 componentEnabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER, [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageVerificationStateTest.java | 19 import android.content.pm.PackageManager; 41 state.setVerifierResponse(REQUIRED_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall() 57 state.setVerifierResponse(REQUIRED_UID_1, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall() 74 state.setVerifierResponse(REQUIRED_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_TwoRequiredVerifiers_AllowedInstall() 79 state.setVerifierResponse(REQUIRED_UID_2, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_TwoRequiredVerifiers_AllowedInstall() 96 state.setVerifierResponse(REQUIRED_UID_1, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_TwoRequiredVerifiers_DeniedInstall() 105 state.setVerifierResponse(REQUIRED_UID_2, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_TwoRequiredVerifiers_DeniedInstall() 122 state.setVerifierResponse(REQUIRED_UID_1, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_TwoRequiredVerifiers_FirstDeniedInstall() 131 state.setVerifierResponse(REQUIRED_UID_2, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_TwoRequiredVerifiers_FirstDeniedInstall() 148 state.setVerifierResponse(REQUIRED_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_TwoRequiredVerifiers_SecondDeniedInstall() [all …]
|
D | PackageManagerTests.java | 41 import android.content.pm.PackageManager; 42 import android.content.pm.PackageManager.NameNotFoundException; 115 PackageManager.INSTALL_BYPASS_LOW_TARGET_SDK_BLOCK; 211 private PackageManager getPm() { in getPm() 387 if ((flags & PackageManager.INSTALL_INTERNAL) != 0) { in getInstallLoc() 622 final PackageManager pm = getPm(); in assertPermissions() 633 PackageManager.GET_PERMISSIONS in assertPermissions() 634 | PackageManager.MATCH_UNINSTALLED_PACKAGES); in assertPermissions() 689 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_GRANTED) { in assertPermissions() 693 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_DENIED) { in assertPermissions() [all …]
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/ |
D | PackageManagerPerfTest.java | 31 import android.content.pm.PackageManager; 80 public PackageManagerPerfTest() throws PackageManager.NameNotFoundException { in PackageManagerPerfTest() 108 PackageManager.disableApplicationInfoCache(); in setup() 109 PackageManager.disablePackageInfoCache(); in setup() 116 final PackageManager pm = in testGetAppMetadata() 131 @DisableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) 134 final PackageManager pm = in testCheckPermissionExists() 144 @EnableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) 150 @DisableCompatChanges(PackageManager.FILTER_APPLICATION_QUERY) 153 final PackageManager pm = in testCheckPermissionDoesntExist() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | MultiInstanceHelperTest.kt | 22 import android.content.pm.PackageManager 97 @Throws(PackageManager.NameNotFoundException::class) 100 val pm = mock<PackageManager>() in supportsMultiInstanceSplit_activityPropertyTrue() 101 val activityProp = PackageManager.Property("", true, "", "") in supportsMultiInstanceSplit_activityPropertyTrue() 105 val appProp = PackageManager.Property("", false, "", "") in supportsMultiInstanceSplit_activityPropertyTrue() 116 @Throws(PackageManager.NameNotFoundException::class) 119 val pm = mock<PackageManager>() in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() 120 val activityProp = PackageManager.Property("", false, "", "") in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() 124 val appProp = PackageManager.Property("", true, "", "") in supportsMultiInstanceSplit_activityPropertyFalseApplicationPropertyTrue() 135 @Throws(PackageManager.NameNotFoundException::class) [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; 55 private PackageManager mPackageManager; 138 PackageManager.DONT_KILL_APP); in testResolveDisabledActivity() 154 PackageManager.DONT_KILL_APP); in testResolveEnabledActivity() 167 PackageManager.DONT_KILL_APP); in testQueryDisabledActivity() 187 PackageManager.DONT_KILL_APP); in testQueryEnabledActivity() 202 PackageManager.DONT_KILL_APP); in testGetDisabledActivityInfo() [all …]
|
/frameworks/base/services/core/java/com/android/server/crashrecovery/ |
D | CrashRecoveryHelper.java | 24 import android.content.pm.PackageManager; 70 PackageManager pm = mContext.getPackageManager(); in isModule() 73 } catch (PackageManager.NameNotFoundException ignore) { in isModule() 99 final PackageManager pm = mContext.getPackageManager(); in getVersionedPackage() 106 } catch (PackageManager.NameNotFoundException e) { in getVersionedPackage() 117 throws PackageManager.NameNotFoundException { in getPackageInfo() 118 PackageManager pm = mContext.getPackageManager(); in getPackageInfo() 124 return pm.getPackageInfo(packageName, PackageManager.MATCH_ANY_USER); in getPackageInfo() 125 } catch (PackageManager.NameNotFoundException e) { in getPackageInfo() 126 return pm.getPackageInfo(packageName, PackageManager.MATCH_APEX); in getPackageInfo()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | OptPropFactoryTest.java | 29 import android.content.pm.PackageManager; 50 private PackageManager mPackageManager; 55 mPackageManager = mock(PackageManager.class); in setUp() 60 public void optProp_laziness() throws PackageManager.NameNotFoundException { in optProp_laziness() 74 public void optProp_withSetValueTrue() throws PackageManager.NameNotFoundException { in optProp_withSetValueTrue() 84 public void optProp_withSetValueFalse() throws PackageManager.NameNotFoundException { in optProp_withSetValueFalse() 95 throws PackageManager.NameNotFoundException { in optProp_withSetValueWithConditionFalse() 114 throws PackageManager.NameNotFoundException { in optProp_isUnsetWhenPropertyIsNotPresent() 124 throws PackageManager.NameNotFoundException { in optProp_shouldEnableWithOverrideAndProperty() 155 throws PackageManager.NameNotFoundException { in optProp_shouldEnableWithOptInOverrideAndOptOutProperty() [all …]
|
/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/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/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | Utils.java | 23 import android.content.pm.PackageManager; 24 import android.content.pm.PackageManager.ApplicationInfoFlags; 62 throws PackageManager.NameNotFoundException { in getApplicationLabel() 63 final PackageManager packageManager = context.getPackageManager(); in getApplicationLabel() 66 packageName, PackageManager.ApplicationInfoFlags.of(0), userId); in getApplicationLabel() 72 @NonNull String packageName) throws PackageManager.NameNotFoundException { in getApplicationIcon() 73 final PackageManager packageManager = context.getPackageManager(); in getApplicationIcon() 88 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getVendorHeaderIcon() 101 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getVendorHeaderName() 113 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in hasVendorIcon() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ActivityIntentHelper.java | 23 import android.content.pm.PackageManager; 38 private final PackageManager mPm; 81 int flags = PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA; in getTargetActivityInfo() 83 flags |= PackageManager.MATCH_DIRECT_BOOT_AWARE in getTargetActivityInfo() 84 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE; in getTargetActivityInfo() 107 int flags = PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA; in getPendingTargetActivityInfo() 109 flags |= PackageManager.MATCH_DIRECT_BOOT_AWARE in getPendingTargetActivityInfo() 110 | PackageManager.MATCH_DIRECT_BOOT_UNAWARE; in getPendingTargetActivityInfo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/permission/ |
D | LegacyPermissionManagerServiceTest.java | 31 import android.content.pm.PackageManager; 112 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkDeviceIdentifierAccess_callingAppIdWithoutAccess_returnsDenied() 123 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_systemUid_returnsGranted() 132 APP_PID, APP_UID)).thenReturn(PackageManager.PERMISSION_GRANTED); in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted() 138 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_hasPrivilegedPermission_returnsGranted() 154 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_hasAppOp_returnsGranted() 169 assertEquals(PackageManager.PERMISSION_GRANTED, result); in checkDeviceIdentifierAccess_hasDpmAccess_returnsGranted() 205 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkPhoneNumberAccess_callingAppIdWithoutAccess_returnsDenied() 218 assertEquals(PackageManager.PERMISSION_DENIED, result); in checkPhoneNumberAccess_nullPackageName_returnsDenied() 226 APP_PID, APP_UID)).thenReturn(PackageManager.PERMISSION_GRANTED); in checkPhoneNumberAccess_hasPrivilegedPermission_returnsGranted() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/ |
D | ConnectivitySubsystemsRecoveryManagerTest.java | 22 import android.content.pm.PackageManager; 47 PackageManager mPackageManager; 54 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(true); in setUp() 55 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(true); in setUp() 60 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in startTrackingWifiRestart_hasNoWifiFeature_shouldNotCrash() 69 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)).thenReturn(false); in stopTrackingWifiRestart_hasNoWifiFeature_shouldNotCrash() 78 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in startTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash() 87 when(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)).thenReturn(false); in stopTrackingTelephonyRestart_hasNoTelephonyFeature_shouldNotCrash()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSessionVerifier.java | 29 import android.content.pm.PackageManager; 114 String errorMessage = PackageManager.installStatusToString(e.error, e.getMessage()); in verify() 130 throw new PackageManagerException(PackageManager.INSTALL_FAILED_VERIFICATION_FAILURE, in getSigningDetails() 144 session.getPackageName(), PackageManager.MATCH_APEX, UserHandle.USER_SYSTEM); in checkApexSignature() 146 throw new PackageManagerException(PackageManager.INSTALL_FAILED_PACKAGE_CHANGED, in checkApexSignature() 157 throw new PackageManagerException(PackageManager.INSTALL_FAILED_VERIFICATION_FAILURE, in checkApexSignature() 176 if (session.isStaged() && returnCode == PackageManager.INSTALL_SUCCEEDED) { in verifyAPK() 181 if (returnCode != PackageManager.INSTALL_SUCCEEDED) { in verifyAPK() 182 String errorMessage = PackageManager.installStatusToString(returnCode, msg); in verifyAPK() 187 callback.onResult(PackageManager.INSTALL_SUCCEEDED, null); in verifyAPK() [all …]
|
D | InstallingSession.java | 22 import static android.content.pm.PackageManager.INSTALL_STAGED; 23 import static android.content.pm.PackageManager.INSTALL_SUCCEEDED; 24 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 40 import android.content.pm.PackageManager; 127 mInstallReason = PackageManager.INSTALL_REASON_UNKNOWN; in InstallingSession() 128 mInstallScenario = PackageManager.INSTALL_SCENARIO_DEFAULT; in InstallingSession() 131 mRequiredInstalledVersionCode = PackageManager.VERSION_CODE_HIGHEST; in InstallingSession() 199 mInstallFlags |= PackageManager.INSTALL_INTERNAL; in overrideInstallLocation() 218 final boolean onInt = (mInstallFlags & PackageManager.INSTALL_INTERNAL) != 0; in overrideInstallLocation() 224 mInstallFlags &= ~PackageManager.INSTALL_INTERNAL; in overrideInstallLocation() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
D | ScreenshotDetectionControllerTest.kt | 21 import android.content.pm.PackageManager 22 import android.content.pm.PackageManager.MATCH_ANY_USER 23 import android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS 51 @Mock lateinit var packageManager: PackageManager 98 any(PackageManager.ComponentInfoFlags::class.java) in testMaybeNotifyOfScreenshot_oneApp() 132 any(PackageManager.ComponentInfoFlags::class.java) in testMaybeNotifyOfScreenshot_multipleApps() 139 any(PackageManager.ComponentInfoFlags::class.java) in testMaybeNotifyOfScreenshot_multipleApps() 146 any(PackageManager.ComponentInfoFlags::class.java) in testMaybeNotifyOfScreenshot_multipleApps() 166 private fun includesFlagBits(@PackageManager.ComponentInfoFlagsBits mask: Int) = in includesFlagBits() 168 private fun excludesFlagBits(@PackageManager.ComponentInfoFlagsBits mask: Int) = in includesFlagBits() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | PackageManagerExt.kt | 22 import android.content.pm.PackageManager 32 fun PackageManager.isComponentActuallyEnabled(componentInfo: ComponentInfo): Boolean { in PackageManager() method 35 PackageManager.COMPONENT_ENABLED_STATE_ENABLED -> true in PackageManager() 36 PackageManager.COMPONENT_ENABLED_STATE_DISABLED -> false in PackageManager() 37 PackageManager.COMPONENT_ENABLED_STATE_DEFAULT -> componentInfo.isEnabled in PackageManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/plugins/ |
D | PluginEnablerImpl.java | 20 import android.content.pm.PackageManager; 33 private final PackageManager mPm; 41 @VisibleForTesting public PluginEnablerImpl(Context context, PackageManager pm) { in PluginEnablerImpl() 55 final int desiredState = enabled ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED in setDisabled() 56 : PackageManager.COMPONENT_ENABLED_STATE_DISABLED; in setDisabled() 57 mPm.setComponentEnabledSetting(component, desiredState, PackageManager.DONT_KILL_APP); in setDisabled() 68 != PackageManager.COMPONENT_ENABLED_STATE_DISABLED; in isEnabled()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 29 import android.content.pm.PackageManager; 101 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 105 uid) == PackageManager.PERMISSION_GRANTED) { in checkDeviceIdentifierAccess() 106 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 118 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 129 return PackageManager.PERMISSION_GRANTED; in checkDeviceIdentifierAccess() 132 return PackageManager.PERMISSION_DENIED; in checkDeviceIdentifierAccess() 140 uid) == PackageManager.PERMISSION_GRANTED) { in checkPhoneNumberAccess() 142 return PackageManager.PERMISSION_GRANTED; in checkPhoneNumberAccess() 147 return PackageManager.PERMISSION_DENIED; in checkPhoneNumberAccess() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | CarrierAppUtils.java | 24 import android.content.pm.PackageManager; 144 PackageManager packageManager = context.getPackageManager(); in disableCarrierAppsUntilPrivileged() 175 packageName, PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN); in disableCarrierAppsUntilPrivileged() 180 PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN); in disableCarrierAppsUntilPrivileged() 190 == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT in disableCarrierAppsUntilPrivileged() 192 == PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED in disableCarrierAppsUntilPrivileged() 199 packageName, PackageManager.SYSTEM_APP_STATE_INSTALLED); in disableCarrierAppsUntilPrivileged() 204 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, in disableCarrierAppsUntilPrivileged() 205 PackageManager.DONT_KILL_APP); in disableCarrierAppsUntilPrivileged() 225 == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT in disableCarrierAppsUntilPrivileged() [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; 30 import android.content.pm.PackageManager; 81 0 /* random value for pid */, callingUid) == PackageManager.PERMISSION_GRANTED; in onCreate() 97 PackageManager pm = getPackageManager(); in onCreate() 100 PackageManager.ApplicationInfoFlags.of( in onCreate() 105 } catch (PackageManager.NameNotFoundException e) { in onCreate() 110 private String getResponsibleInstallerTitle(PackageManager pm, in getResponsibleInstallerTitle() 112 throws PackageManager.NameNotFoundException { in getResponsibleInstallerTitle() 132 } catch (PackageManager.NameNotFoundException e) { in getRequestedPermissions() [all …]
|