/cts/tests/tests/permission2/src/android/permission2/cts/ |
PermissionPolicyTest.java | 21 import android.content.pm.PackageManager; 49 PackageManager packageManager = getContext().getPackageManager(); 50 PackageInfo packageInfo = packageManager.getPackageInfo(PLATFORM_PACKAGE_NAME, 51 PackageManager.GET_PERMISSIONS); 59 TextUtils.isEmpty(permission.loadLabel(packageManager))); 61 TextUtils.isEmpty(permission.loadDescription(packageManager)));
|
/cts/tests/tests/security/src/android/security/cts/ |
PackageSignatureTest.java | 22 import android.content.pm.PackageManager; 23 import android.content.pm.PackageManager.NameNotFoundException; 47 PackageManager packageManager = mContext.getPackageManager(); 48 List<PackageInfo> allPackageInfos = packageManager.getInstalledPackages( 49 PackageManager.GET_UNINSTALLED_PACKAGES | 50 PackageManager.GET_SIGNATURES); 149 PackageManager packageManager = mContext.getPackageManager(); 150 PackageInfo packageInfo = packageManager.getPackageInfo(packageName [all...] |
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
StatusFragment.java | 22 import android.content.pm.PackageManager; 86 PackageManager packageManager = activity.getPackageManager(); 88 ApplicationInfo info = packageManager.getApplicationInfo( 90 PackageManager.GET_UNINSTALLED_PACKAGES); 110 } catch (PackageManager.NameNotFoundException e) {
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
PackageValidator.java | 20 import android.content.pm.PackageManager; 97 PackageManager packageManager = context.getPackageManager(); 100 packageInfo = packageManager.getPackageInfo( 101 callingPackage, PackageManager.GET_SIGNATURES); 102 } catch (PackageManager.NameNotFoundException e) {
|
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
StatusFragment.java | 22 import android.content.pm.PackageManager; 86 PackageManager packageManager = activity.getPackageManager(); 88 ApplicationInfo info = packageManager.getApplicationInfo( 90 PackageManager.GET_UNINSTALLED_PACKAGES); 110 } catch (PackageManager.NameNotFoundException e) {
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/ |
PackageValidator.java | 20 import android.content.pm.PackageManager; 97 PackageManager packageManager = context.getPackageManager(); 100 packageInfo = packageManager.getPackageInfo( 101 callingPackage, PackageManager.GET_SIGNATURES); 102 } catch (PackageManager.NameNotFoundException e) {
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
StatusFragment.java | 22 import android.content.pm.PackageManager; 86 PackageManager packageManager = activity.getPackageManager(); 88 ApplicationInfo info = packageManager.getApplicationInfo( 90 PackageManager.GET_UNINSTALLED_PACKAGES); 110 } catch (PackageManager.NameNotFoundException e) {
|
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/ |
PackageValidator.java | 20 import android.content.pm.PackageManager; 97 PackageManager packageManager = context.getPackageManager(); 100 packageInfo = packageManager.getPackageInfo( 101 callingPackage, PackageManager.GET_SIGNATURES); 102 } catch (PackageManager.NameNotFoundException e) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
PreviewInflater.java | 23 import android.content.pm.PackageManager; 85 } catch (PackageManager.NameNotFoundException|RuntimeException e) { 92 PackageManager packageManager = mContext.getPackageManager(); 95 Bundle metaData = packageManager.getServiceInfo( 96 componentName, PackageManager.GET_META_DATA).metaData; 98 } catch (PackageManager.NameNotFoundException e) { 121 PackageManager packageManager = mContext.getPackageManager(); 122 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
ShortcutManager.java | 23 import android.content.pm.PackageManager; 96 PackageManager packageManager = mContext.getPackageManager(); 131 info = packageManager.getActivityInfo(componentName, 0); 132 } catch (PackageManager.NameNotFoundException e) { 133 String[] packages = packageManager.canonicalToCurrentPackageNames( 137 info = packageManager.getActivityInfo(componentName, 0); 138 } catch (PackageManager.NameNotFoundException e1) { 148 title = info.loadLabel(packageManager).toString();
|
/frameworks/base/telecomm/java/android/telecom/ |
DefaultDialerManager.java | 21 import android.content.pm.PackageManager; 154 PackageManager packageManager = context.getPackageManager(); 158 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
UiccCarrierPrivilegeRules.java | 22 import android.content.pm.PackageManager; 283 * @param packageManager PackageManager for getting signatures. 287 public int getCarrierPrivilegeStatus(PackageManager packageManager, String packageName) { 292 PackageInfo pInfo = packageManager.getPackageInfo(packageName, 293 PackageManager.GET_SIGNATURES | PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS); 301 } catch (PackageManager.NameNotFoundException ex) { 310 * @param packageManager PackageManager for getting signatures and package names [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/ |
PermissionGroups.java | 26 import android.content.pm.PackageManager; 110 PackageManager packageManager = getContext().getPackageManager(); 111 List<PermissionGroupInfo> groupInfos = packageManager.getAllPermissionGroups(0); 122 groupPermissions = packageManager.queryPermissionsByGroup(groupInfo.name, 0); 123 } catch (PackageManager.NameNotFoundException e) { 156 .getInstalledPackages(PackageManager.GET_PERMISSIONS);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
DefaultEmergencyPreference.java | 24 import android.content.pm.PackageManager; 91 PackageManager packageManager = getContext().getPackageManager(); 92 List<ResolveInfo> infos = packageManager.queryIntentActivities(QUERY_INTENT, 0); 109 packageInfo = packageManager.getPackageInfo(packageName, 0); 110 } catch (PackageManager.NameNotFoundException e) {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
StorageMeasurement.java | 26 import android.content.pm.PackageManager; 351 final PackageManager packageManager = mContext.getPackageManager(); 404 final List<ApplicationInfo> apps = packageManager.getInstalledApplications( 405 PackageManager.GET_UNINSTALLED_PACKAGES 406 | PackageManager.GET_DISABLED_COMPONENTS); 425 packageManager.getPackageSizeInfo(app.packageName, user.id, observer);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 27 import android.content.pm.PackageManager; 28 import android.content.pm.PackageManager.NameNotFoundException; 173 PackageManager packageManager = context.getPackageManager(); 177 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceivers(intent, 0, 193 final String applicationName = resolveInfo.loadLabel(packageManager).toString(); 204 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceivers(intent, 0, 224 List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent, 0, 244 List<ResolveInfo> sendToActivities = packageManager.queryIntentActivitiesAsUser(intent, 0, 383 PackageManager packageManager = context.getPackageManager() [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
ManifestTestListAdapter.java | 22 import android.content.pm.PackageManager; 158 PackageManager packageManager = mContext.getPackageManager(); 159 List<ResolveInfo> list = packageManager.queryIntentActivities(mainIntent, 160 PackageManager.GET_ACTIVITIES | PackageManager.GET_META_DATA); 285 PackageManager packageManager = mContext.getPackageManager(); 287 if (packageManager.hasSystemFeature(feature)) { 297 PackageManager packageManager = mContext.getPackageManager() [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
ConnectivityConstraintTest.java | 25 import android.content.pm.PackageManager; 67 PackageManager packageManager = mContext.getPackageManager(); 68 mHasWifi = packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); 69 mHasTelephony = packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
OpenGlEsVersionTest.java | 24 import android.content.pm.PackageManager; 68 assertEquals("Reported OpenGL ES version from ActivityManager differs from PackageManager", 117 PackageManager.FEATURE_OPENGLES_EXTENSION_PACK); 215 PackageManager packageManager = context.getPackageManager(); 216 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures();
|
/cts/tests/tests/graphics2/src/android/graphics2/cts/ |
TextureViewCameraActivity.java | 20 import android.content.pm.PackageManager; 58 PackageManager packageManager = getPackageManager(); 59 boolean hasRearCamera = packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA); 61 packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
StaticMetadataCollectionTest.java | 19 import android.content.pm.PackageManager; 178 PackageManager packageManager = getActivity().getPackageManager(); 179 return packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY);
|
/developers/build/prebuilts/gradle/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/ |
BasicManagedProfileFragment.java | 29 import android.content.pm.PackageManager; 114 PackageManager packageManager = activity.getPackageManager(); 116 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( 117 packageName, PackageManager.GET_UNINSTALLED_PACKAGES); 127 } catch (PackageManager.NameNotFoundException e) { 208 PackageManager packageManager = activity.getPackageManager(); 212 ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packageName, 213 PackageManager.GET_UNINSTALLED_PACKAGES) [all...] |
/developers/samples/android/admin/BasicManagedProfile/Application/src/main/java/com/example/android/basicmanagedprofile/ |
BasicManagedProfileFragment.java | 29 import android.content.pm.PackageManager; 114 PackageManager packageManager = activity.getPackageManager(); 116 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( 117 packageName, PackageManager.GET_UNINSTALLED_PACKAGES); 127 } catch (PackageManager.NameNotFoundException e) { 208 PackageManager packageManager = activity.getPackageManager(); 212 ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packageName, 213 PackageManager.GET_UNINSTALLED_PACKAGES) [all...] |
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/ |
BasicManagedProfileFragment.java | 29 import android.content.pm.PackageManager; 114 PackageManager packageManager = activity.getPackageManager(); 116 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( 117 packageName, PackageManager.GET_UNINSTALLED_PACKAGES); 127 } catch (PackageManager.NameNotFoundException e) { 208 PackageManager packageManager = activity.getPackageManager(); 212 ApplicationInfo applicationInfo = packageManager.getApplicationInfo(packageName, 213 PackageManager.GET_UNINSTALLED_PACKAGES) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContextWrapper.java | 13 import android.content.pm.PackageManager; 26 import static android.content.pm.PackageManager.PERMISSION_DENIED; 27 import static android.content.pm.PackageManager.PERMISSION_GRANTED; 36 private PackageManager packageManager; 119 * Implements Android's {@code PackageManager}. 124 public PackageManager getPackageManager() { 125 return realContextWrapper == getApplicationContext() ? packageManager : getApplicationContext().getPackageManager(); 220 * Non-Android accessor that is used at start-up to set the packageManager = 222 * @param packageManager the package manage [all...] |