Home
last modified time | relevance | path

Searched refs:PackageManager (Results 1 – 25 of 1296) sorted by relevance

12345678910>>...52

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierAppUtilsTest.java21 import android.content.pm.PackageManager;
64 private PackageManager mPackageManager;
86 mPackageManager = Mockito.mock(PackageManager.class); in setUp()
123 PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_MissingApp()
124 | PackageManager.MATCH_HIDDEN_UNTIL_INSTALLED_COMPONENTS in testDisableCarrierAppsUntilPrivileged_MissingApp()
125 | PackageManager.MATCH_SYSTEM_ONLY)).thenReturn(null); in testDisableCarrierAppsUntilPrivileged_MissingApp()
132 Mockito.eq(PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_HIDDEN)); in testDisableCarrierAppsUntilPrivileged_MissingApp()
134 Mockito.eq(PackageManager.SYSTEM_APP_STATE_HIDDEN_UNTIL_INSTALLED_VISIBLE)); in testDisableCarrierAppsUntilPrivileged_MissingApp()
136 Mockito.eq(PackageManager.SYSTEM_APP_STATE_INSTALLED)); in testDisableCarrierAppsUntilPrivileged_MissingApp()
138 Mockito.eq(PackageManager.SYSTEM_APP_STATE_UNINSTALLED)); in testDisableCarrierAppsUntilPrivileged_MissingApp()
[all …]
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/
DPackageManagerPerfTest.java26 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/core/java/com/android/server/pm/pkg/
DPackageUserStateUtils.java19 import static android.content.pm.PackageManager.MATCH_DISABLED_COMPONENTS;
20 import static android.content.pm.PackageManager.MATCH_DISABLED_UNTIL_USED_COMPONENTS;
24 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()
88 final boolean matchAnyUser = (flags & PackageManager.MATCH_ANY_USER) != 0; in isAvailable()
89 final boolean matchUninstalled = (flags & PackageManager.MATCH_UNINSTALLED_PACKAGES) != 0; in isAvailable()
98 + DebugUtils.flagsToString(PackageManager.class, "MATCH_", flags) + " " in reportIfDebug()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DComponentTest.java19 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/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageVerificationStateTest.java19 import android.content.pm.PackageManager;
39 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_OnlyRequiredVerifier_AllowedInstall()
55 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_OnlyRequiredVerifier_DeniedInstall()
76 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall()
81 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_RequiredAndOneSufficient_RequiredDeniedInstall()
102 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_REJECT); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall()
107 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndOneSufficient_SufficientDeniedInstall()
129 state.setVerifierResponse(SUFFICIENT_UID_1, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough()
134 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_OneSufficientIsEnough()
156 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW); in testPackageVerificationState_RequiredAndTwoSufficient_SecondSufficientIsEnough()
[all …]
DPackageManagerTests.java41 import android.content.pm.PackageManager;
42 import android.content.pm.PackageManager.NameNotFoundException;
208 private PackageManager getPm() { in getPm()
384 if ((flags & PackageManager.INSTALL_INTERNAL) != 0) { in getInstallLoc()
619 final PackageManager pm = getPm(); in assertPermissions()
630 PackageManager.GET_PERMISSIONS in assertPermissions()
631 | PackageManager.MATCH_UNINSTALLED_PACKAGES); in assertPermissions()
686 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_GRANTED) { in assertPermissions()
690 if (pm.checkPermission(cmd, pkg) != PackageManager.PERMISSION_DENIED) { in assertPermissions()
700 PackageManager pm = mContext.getPackageManager(); in getParsedPackage()
[all …]
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DUtils.java23 import android.content.pm.PackageManager;
24 import android.content.pm.PackageManager.ApplicationInfoFlags;
61 throws PackageManager.NameNotFoundException { in getApplicationLabel()
62 final PackageManager packageManager = context.getPackageManager(); in getApplicationLabel()
65 packageName, PackageManager.ApplicationInfoFlags.of(0), userId); in getApplicationLabel()
71 @NonNull String packageName) throws PackageManager.NameNotFoundException { in getApplicationIcon()
72 final PackageManager packageManager = context.getPackageManager(); in getApplicationIcon()
87 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getVendorHeaderIcon()
100 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in getVendorHeaderName()
112 @NonNull String packageName, int userId) throws PackageManager.NameNotFoundException { in hasVendorIcon()
[all …]
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTrackerHelperImpl.java24 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 …]
DPackageManagerHelper.java20 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/
DDomainVerificationLegacySettingsTest.kt20 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/
DSchedulingPolicyService.java19 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/pm/permission/
DLegacyPermissionManagerServiceTest.java31 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/SystemUI/src/com/android/systemui/
DActivityIntentHelper.java23 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/telephony/common/com/android/internal/telephony/
DCarrierAppUtils.java24 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/core/java/com/android/server/pm/
DInstallParams.java20 import static android.content.pm.PackageManager.INSTALL_STAGED;
21 import static android.content.pm.PackageManager.INSTALL_SUCCEEDED;
22 import static android.content.pm.PackageManager.PERMISSION_GRANTED;
35 import android.content.pm.PackageManager;
97 mInstallReason = PackageManager.INSTALL_REASON_UNKNOWN; in InstallParams()
98 mInstallScenario = PackageManager.INSTALL_SCENARIO_DEFAULT; in InstallParams()
101 mRequiredInstalledVersionCode = PackageManager.VERSION_CODE_HIGHEST; in InstallParams()
152 mInstallFlags |= PackageManager.INSTALL_INTERNAL; in overrideInstallLocation()
172 final boolean onInt = (mInstallFlags & PackageManager.INSTALL_INTERNAL) != 0; in overrideInstallLocation()
178 mInstallFlags &= ~PackageManager.INSTALL_INTERNAL; in overrideInstallLocation()
[all …]
DPackageSessionVerifier.java27 import android.content.pm.PackageManager;
111 String errorMessage = PackageManager.installStatusToString(e.error, e.getMessage()); in verify()
132 if (session.isStaged() && returnCode == PackageManager.INSTALL_SUCCEEDED) { in verifyAPK()
137 if (returnCode != PackageManager.INSTALL_SUCCEEDED) { in verifyAPK()
138 String errorMessage = PackageManager.installStatusToString(returnCode, msg); in verifyAPK()
143 callback.onResult(PackageManager.INSTALL_SUCCEEDED, null); in verifyAPK()
163 if ((session.params.installFlags & PackageManager.INSTALL_ALL_USERS) != 0) { in makeVerificationParams()
218 callback.onResult(PackageManager.INSTALL_SUCCEEDED, null); in onVerificationSuccess()
229 callback.onResult(PackageManager.INSTALL_FAILED_VERIFICATION_FAILURE, errorMessage); in onVerificationFailure()
264 if ((session.sessionParams().installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) != 0) { in verifyApex()
[all …]
/frameworks/base/services/companion/java/com/android/server/companion/
DPackageUtils.java19 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;
35 import android.content.pm.PackageManager;
36 import android.content.pm.PackageManager.PackageInfoFlags;
37 import android.content.pm.PackageManager.ResolveInfoFlags;
60 final PackageManager pm = context.getPackageManager(); in getPackageInfo()
65 } catch (PackageManager.NameNotFoundException e) { in getPackageInfo()
97 final PackageManager pm = context.getPackageManager();
134 private static boolean isPrimaryCompanionDeviceService(@NonNull PackageManager pm,
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/connectivity/
DConnectivitySubsystemsRecoveryManagerTest.java22 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/packages/EasterEgg/src/com/android/egg/
DComponentActivationActivity.java21 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/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerService.java29 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/packages/SystemUI/src/com/android/systemui/plugins/
DPluginEnablerImpl.java20 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/libs/net/common/device/com/android/net/module/util/
DDeviceConfigUtils.java21 import android.content.pm.PackageManager;
53 throws PackageManager.NameNotFoundException { in getPackageVersion()
168 } catch (PackageManager.NameNotFoundException e) { in isFeatureEnabled()
195 } catch (PackageManager.NameNotFoundException e) { in isFeatureEnabled()
211 throws PackageManager.NameNotFoundException { in isFeatureEnabled()
221 throws PackageManager.NameNotFoundException { in getModuleVersion()
224 final PackageManager packageManager = context.getPackageManager(); in getModuleVersion()
228 moduleName, PackageManager.MODULE_APEX_NAME); in getModuleVersion()
229 } catch (PackageManager.NameNotFoundException e) { in getModuleVersion()
242 if (modulePackageName == null) throw new PackageManager.NameNotFoundException(moduleName); in getModuleVersion()
[all …]
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionServiceInfo.java24 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/services/core/java/com/android/server/policy/
DSoftRestrictedPermissionPolicy.java24 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/services/core/java/com/android/server/pm/pkg/parsing/
DPackageInfoWithoutStateUtils.java34 import android.content.pm.PackageManager;
81 @PackageManager.PackageInfoFlagsBits long flags, long firstInstallTime, in generate()
96 @PackageManager.PackageInfoFlagsBits long flags, long firstInstallTime, in generateWithComponents()
110 if ((flags & PackageManager.GET_ACTIVITIES) != 0) { in generateWithComponents()
119 if (PackageManager.APP_DETAILS_ACTIVITY_CLASS_NAME.equals( in generateWithComponents()
130 if ((flags & PackageManager.GET_RECEIVERS) != 0) { in generateWithComponents()
146 if ((flags & PackageManager.GET_SERVICES) != 0) { in generateWithComponents()
162 if ((flags & PackageManager.GET_PROVIDERS) != 0) { in generateWithComponents()
179 if ((flags & PackageManager.GET_INSTRUMENTATION) != 0) { in generateWithComponents()
196 @PackageManager.PackageInfoFlagsBits long flags, long firstInstallTime, in generateWithoutComponents()
[all …]

12345678910>>...52