/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaRecorderStressTest.java | 19 import android.content.pm.PackageManager; 84 PackageManager packageManager = 86 mHasRearCamera = packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA); 87 mHasFrontCamera = packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT);
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 21 import android.content.pm.PackageManager; 369 PackageManager packageManager = getContext().getPackageManager(); 371 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { 381 PackageManager packageManager = getContext().getPackageManager(); 383 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
|
/frameworks/base/core/java/android/accessibilityservice/ |
AccessibilityServiceInfo.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.PackageManager.NameNotFoundException; 448 PackageManager packageManager = context.getPackageManager(); 449 parser = serviceInfo.loadXmlMetaData(packageManager, 467 Resources resources = packageManager.getResourcesForApplication( 635 * @deprecated Use {@link #loadDescription(PackageManager)}. 649 public String loadDescription(PackageManager packageManager) { 654 CharSequence description = packageManager.getText(serviceInfo.packageName [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetHostView.java | 22 import android.content.pm.PackageManager; 23 import android.content.pm.PackageManager.NameNotFoundException; 168 PackageManager packageManager = context.getPackageManager(); 178 appInfo = packageManager.getApplicationInfo(component.getPackageName(), 0);
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
UsbDebuggingManager.java | 24 import android.content.pm.PackageManager; 352 PackageManager packageManager = mContext.getPackageManager(); 355 if (packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) != null) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
GalleryUtils.java | 25 import android.content.pm.PackageManager; 211 PackageManager packageManager = context.getPackageManager(); 212 List<ResolveInfo> infos = packageManager.queryIntentActivities( 226 PackageManager packageManager = context.getPackageManager(); 227 List<ResolveInfo> infos = packageManager.queryIntentActivities( 238 PackageManager pm = context.getPackageManager();
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcDispatcher.java | 36 import android.content.pm.PackageManager; 37 import android.content.pm.PackageManager.NameNotFoundException; 136 final PackageManager packageManager; 157 packageManager = context.getPackageManager(); 196 // is not available on Context. Instead, we query the PackageManager beforehand 199 List<ResolveInfo> activities = packageManager.queryIntentActivitiesAsUser(intent, 0, 209 List<ResolveInfo> activities = packageManager.queryIntentActivitiesAsUser( 483 PackageManager pm; 536 PackageManager pm [all...] |
/packages/apps/Settings/src/com/android/settings/ |
ActivityPicker.java | 29 import android.content.pm.PackageManager; 31 import android.content.pm.PackageManager.NameNotFoundException; 141 PackageManager packageManager = getPackageManager(); 159 Resources res = packageManager.getResourcesForApplication( 183 PackageManager packageManager = getPackageManager(); 184 List<ResolveInfo> list = packageManager.queryIntentActivities(baseIntent, 186 Collections.sort(list, new ResolveInfo.DisplayNameComparator(packageManager)); 191 items.add(new PickAdapter.Item(this, packageManager, resolveInfo)) [all...] |
DeviceAdminAdd.java | 37 import android.content.pm.PackageManager; 38 import android.content.pm.PackageManager.NameNotFoundException; 108 PackageManager packageManager = getPackageManager(); 138 PackageInfo packageInfo = packageManager.getPackageInfo(callingPackage, 0); 153 ai = packageManager.getReceiverInfo(who, PackageManager.GET_META_DATA); 154 } catch (PackageManager.NameNotFoundException e) { 164 List<ResolveInfo> avail = packageManager.queryBroadcastReceivers( 166 PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS) [all...] |
DeviceAdminSettings.java | 32 import android.content.pm.PackageManager; 393 final PackageManager pm = getActivity().getPackageManager(); 396 PackageManager.GET_META_DATA | PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS, 434 final PackageManager packageManager = getActivity().getPackageManager(); 439 List<ResolveInfo> resolved = packageManager.queryBroadcastReceivers( 440 new Intent().setComponent(activeAdmin), PackageManager.GET_META_DATA 441 | PackageManager.GET_DISABLED_UNTIL_USED_COMPONENTS, profileId);
|
TetherSettings.java | 34 import android.content.pm.PackageManager; 482 final PackageManager packageManager = context.getPackageManager(); 486 return (packageManager.queryIntentActivities(intent, 487 PackageManager.MATCH_DEFAULT_ONLY).size() > 0);
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
AppWidgetTest.java | 42 import android.content.pm.PackageManager; 101 .hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS); 699 PackageManager packageManager = getInstrumentation().getTargetContext() 701 packageManager.setComponentEnabledSetting(firstLookupProvider.provider, 702 PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 703 PackageManager.DONT_KILL_APP); 713 packageManager.setComponentEnabledSetting(firstLookupProvider.provider, 714 PackageManager.COMPONENT_ENABLED_STATE_ENABLED, 715 PackageManager.DONT_KILL_APP) [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherProvider.java | 33 import android.content.pm.PackageManager; [all...] |
LauncherModel.java | 33 import android.content.pm.PackageManager; [all...] |
/development/samples/Home/src/com/example/android/home/ |
Home.java | 28 import android.content.pm.PackageManager; 282 final PackageManager packageManager = getPackageManager(); 307 info = getApplicationInfo(packageManager, intent); 355 final PackageManager manager = getPackageManager(); 382 private static ApplicationInfo getApplicationInfo(PackageManager manager, Intent intent) { 484 PackageManager manager = getPackageManager();
|
/frameworks/base/core/java/android/widget/ |
ActivityChooserView.java | 24 import android.content.pm.PackageManager; 555 PackageManager packageManager = mContext.getPackageManager(); 556 mDefaultActivityButtonImage.setImageDrawable(activity.loadIcon(packageManager)); 558 CharSequence label = activity.loadLabel(packageManager); 773 PackageManager packageManager = mContext.getPackageManager(); 777 iconView.setImageDrawable(activity.loadIcon(packageManager)); 780 titleView.setText(activity.loadLabel(packageManager));
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 25 import android.content.pm.PackageManager; [all...] |
/frameworks/ex/common/java/com/android/common/contacts/ |
BaseEmailAddressAdapter.java | 24 import android.content.pm.PackageManager; 25 import android.content.pm.PackageManager.NameNotFoundException; 369 PackageManager packageManager = getContext().getPackageManager(); 391 packageManager.getResourcesForApplication(packageName);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
ActivityChooserView.java | 21 import android.content.pm.PackageManager; 532 PackageManager packageManager = getContext().getPackageManager(); 533 mDefaultActivityButtonImage.setImageDrawable(activity.loadIcon(packageManager)); 535 CharSequence label = activity.loadLabel(packageManager); 737 PackageManager packageManager = getContext().getPackageManager(); 741 iconView.setImageDrawable(activity.loadIcon(packageManager)); 744 titleView.setText(activity.loadLabel(packageManager));
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
AccountTypeManager.java | 30 import android.content.pm.PackageManager; 75 * system, typically filled through {@link PackageManager} queries. 710 final PackageManager packageManager = context.getPackageManager(); 721 ResolveInfo resolveInfo = packageManager.resolveActivity(invitableIntent, 722 PackageManager.MATCH_DEFAULT_ONLY); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
IconCache.java | 26 import android.content.pm.PackageManager; 27 import android.content.pm.PackageManager.NameNotFoundException; 89 private final PackageManager mPackageManager; 151 } catch (PackageManager.NameNotFoundException e) { 167 } catch (PackageManager.NameNotFoundException e) { 223 PackageManager.GET_UNINSTALLED_PACKAGES); 274 PackageManager pm = mContext.getPackageManager(); 276 for (PackageInfo info : pm.getInstalledPackages(PackageManager.GET_UNINSTALLED_PACKAGES)) { 655 PackageManager packageManager = mContext.getPackageManager() [all...] |
Utilities.java | 31 import android.content.pm.PackageManager; 32 import android.content.pm.PackageManager.NameNotFoundException; 145 PackageManager packageManager = context.getPackageManager(); 148 Resources resources = packageManager.getResourcesForApplication(packageName); 393 PackageManager pm = context.getPackageManager(); 397 ResolveInfo info = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); 501 static Pair<String, Resources> findSystemApk(String action, PackageManager pm) {
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountSettings.java | 33 import android.content.pm.PackageManager; 321 PackageManager packageManager = context.getPackageManager(); 326 CharSequence appLabel = packageManager.getApplicationLabel(adminApplicationInfo);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
BrowseInfo.java | 30 import android.content.pm.PackageManager; 31 import android.content.pm.PackageManager.NameNotFoundException; 303 final PackageManager packageManager = context.getPackageManager(); 307 packageManager.getResourcesForApplication(packageName); 308 final String targetTitle = info.loadLabel(packageManager).toString(); 512 PackageManager pm = mContext.getPackageManager(); 645 PackageManager pm = mContext.getPackageManager();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
InCallController.java | 24 import android.content.pm.PackageManager; 321 PackageManager packageManager = mContext.getPackageManager(); 328 packageManager.queryIntentServices(serviceIntent, PackageManager.GET_META_DATA)) { 340 boolean hasControlInCallPermission = packageManager.checkPermission( 342 serviceInfo.packageName) == PackageManager.PERMISSION_GRANTED; [all...] |