/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
MediaProjectionPermissionActivity.java | 26 import android.content.pm.PackageManager; 71 PackageManager packageManager = getPackageManager(); 74 aInfo = packageManager.getApplicationInfo(mPackageName, 0); 76 } catch (PackageManager.NameNotFoundException e) { 95 String appName = aInfo.loadLabel(packageManager).toString(); 98 .setIcon(aInfo.loadIcon(packageManager))
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
PreviewInflater.java | 21 import android.content.pm.PackageManager; 73 } catch (PackageManager.NameNotFoundException|RuntimeException e) { 81 PackageManager packageManager = mContext.getPackageManager(); 82 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser( 83 intent, PackageManager.MATCH_DEFAULT_ONLY, mLockPatternUtils.getCurrentUser()); 87 ResolveInfo resolved = packageManager.resolveActivityAsUser(intent, 88 PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA, 110 PackageManager packageManager = ctx.getPackageManager() [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
UiccCarrierPrivilegeRules.java | 22 import android.content.pm.PackageManager; 270 * @param packageManager PackageManager for getting signatures. 274 public int getCarrierPrivilegeStatus(PackageManager packageManager, String packageName) { 276 PackageInfo pInfo = packageManager.getPackageInfo(packageName, 277 PackageManager.GET_SIGNATURES); 285 } catch (PackageManager.NameNotFoundException ex) { 294 * @param packageManager PackageManager for getting signatures and package names [all...] |
/packages/apps/Dialer/src/com/android/dialer/util/ |
DialerUtils.java | 23 import android.content.pm.PackageManager; 101 final PackageManager packageManager = context.getPackageManager(); 104 final List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 29 import android.content.pm.PackageManager; 32 import android.content.pm.PackageManager.NameNotFoundException; 174 PackageManager packageManager = context.getPackageManager(); 178 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceivers(intent, 0, 194 final String applicationName = resolveInfo.loadLabel(packageManager).toString(); 205 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceivers(intent, 0, 225 List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent, 0, 245 List<ResolveInfo> sendToActivities = packageManager.queryIntentActivitiesAsUser(intent, 0, 384 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; 65 PackageManager packageManager = mContext.getPackageManager(); 66 mHasWifi = packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); 67 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);
|
/cts/tests/tests/net/src/android/net/http/cts/ |
ApacheHttpClientTest.java | 28 import android.content.pm.PackageManager; 71 PackageManager packageManager = mContext.getPackageManager(); 72 mHasTelephony = packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); 73 mHasWifi = packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI);
|
/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/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
AppRestrictionEnforcerFragment.java | 26 import android.content.pm.PackageManager; 123 PackageManager packageManager = activity.getPackageManager(); 125 ApplicationInfo info = packageManager.getApplicationInfo( 126 PACKAGE_NAME_APP_RESTRICTION_SCHEMA, PackageManager.GET_UNINSTALLED_PACKAGES); 155 } catch (PackageManager.NameNotFoundException e) {
|
/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...] |
/frameworks/base/core/java/android/printservice/ |
PrintServiceInfo.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.PackageManager.NameNotFoundException; 110 PackageManager packageManager = context.getPackageManager(); 111 parser = resolveInfo.serviceInfo.loadXmlMetaData(packageManager, 125 Resources resources = packageManager.getResourcesForApplication(
|
/frameworks/base/core/java/android/widget/ |
ShareActionProvider.java | 21 import android.content.pm.PackageManager; 203 PackageManager packageManager = mContext.getPackageManager(); 211 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 212 .setIcon(activity.loadIcon(packageManager)) 223 expandedSubMenu.add(0, i, i, activity.loadLabel(packageManager)) 224 .setIcon(activity.loadIcon(packageManager))
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
SettingsProviderTest.java | 24 import android.content.pm.PackageManager; 325 PackageManager packageManager = mContext.getPackageManager(); 326 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardActivityLauncher.java | 29 import android.content.pm.PackageManager; 71 PackageManager packageManager = getContext().getPackageManager(); 72 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser( 73 intent, PackageManager.MATCH_DEFAULT_ONLY, getLockPatternUtils().getCurrentUser()); 78 ResolveInfo resolved = packageManager.resolveActivityAsUser(intent, 79 PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA, 268 PackageManager packageManager = getContext().getPackageManager() [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
SecureCameraLaunchManager.java | 21 import android.content.pm.PackageManager; 227 PackageManager packageManager = mContext.getPackageManager(); 230 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser( 231 intent, PackageManager.MATCH_DEFAULT_ONLY, mLockPatternUtils.getCurrentUser()); 238 ResolveInfo resolved = packageManager.resolveActivityAsUser(intent, 239 PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbConfirmActivity.java | 24 import android.content.pm.PackageManager; 67 PackageManager packageManager = getPackageManager(); 68 String appName = mResolveInfo.loadLabel(packageManager).toString(); 71 ap.mIcon = mResolveInfo.loadIcon(packageManager);
|
UsbPermissionActivity.java | 25 import android.content.pm.PackageManager; 72 PackageManager packageManager = getPackageManager(); 75 aInfo = packageManager.getApplicationInfo(mPackageName, 0); 76 } catch (PackageManager.NameNotFoundException e) { 81 String appName = aInfo.loadLabel(packageManager).toString(); 84 ap.mIcon = aInfo.loadIcon(packageManager);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ShareActionProvider.java | 21 import android.content.pm.PackageManager; 221 PackageManager packageManager = mContext.getPackageManager(); 229 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 230 .setIcon(activity.loadIcon(packageManager)) 241 expandedSubMenu.add(0, i, i, activity.loadLabel(packageManager)) 242 .setIcon(activity.loadIcon(packageManager))
|
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 23 import android.content.pm.PackageManager; 401 final PackageManager packageManager = getPackageManager(); 410 final boolean packageExists = packageManager.getPackagesForUid(uid) != null;
|