/cts/tests/tests/net/src/android/net/wifi/cts/ |
WifiFeature.java | 20 import android.content.pm.PackageManager; 24 PackageManager packageManager = context.getPackageManager(); 25 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); 29 PackageManager packageManager = context.getPackageManager(); 30 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
Version.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.PackageManager.NameNotFoundException; 36 PackageManager packageManager = context.getPackageManager(); 37 return packageManager.getPackageInfo(context.getPackageName(), 0);
|
ManifestTestListAdapter.java | 22 import android.content.pm.PackageManager; 127 PackageManager packageManager = mContext.getPackageManager(); 128 List<ResolveInfo> list = packageManager.queryIntentActivities(mainIntent, 129 PackageManager.GET_ACTIVITIES | PackageManager.GET_META_DATA); 221 PackageManager packageManager = mContext.getPackageManager(); 228 if (!packageManager.hasSystemFeature(requiredFeatures[i])) {
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilitySettingsTest.java | 20 import android.content.pm.PackageManager; 36 PackageManager packageManager = mContext.getPackageManager(); 38 List<ResolveInfo> resolvedActivities = packageManager.queryIntentActivities(intent, 39 PackageManager.MATCH_DEFAULT_ONLY);
|
/cts/tests/tests/content/src/android/content/cts/ |
AvailableIntentsTest.java | 23 import android.content.pm.PackageManager; 43 PackageManager packageManager = mContext.getPackageManager(); 44 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); 107 PackageManager packageManager = mContext.getPackageManager(); 108 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { 119 PackageManager packageManager = mContext.getPackageManager() [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 27 import android.content.pm.PackageManager; 30 import android.content.pm.PackageManager.NameNotFoundException; 132 PackageManager packageManager = context.getPackageManager(); 136 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceivers(intent, 0); 151 final String applicationName = resolveInfo.loadLabel(packageManager).toString(); 162 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceivers(intent, 0); 181 List<ResolveInfo> respondServices = packageManager.queryIntentServices(intent, 0); 200 List<ResolveInfo> sendToActivities = packageManager.queryIntentActivities(intent, 0); 327 PackageManager packageManager = context.getPackageManager() [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
PhoneCapabilityTester.java | 22 import android.content.pm.PackageManager; 49 final PackageManager packageManager = context.getPackageManager(); 50 final List<ResolveInfo> receiverList = packageManager.queryIntentActivities(intent, 51 PackageManager.MATCH_DEFAULT_ONLY); 85 final PackageManager packageManager = context.getPackageManager(); 88 final List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0);
|
/external/replicaisland/src/com/replica/replicaisland/ |
MultiTouchFilter.java | 4 import android.content.pm.PackageManager; 36 PackageManager packageManager = context.getPackageManager(); 37 mSupportsMultitouch = packageManager.hasSystemFeature("android.hardware.touchscreen.multitouch");
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
CameraBinderTestUtils.java | 8 import android.content.pm.PackageManager; 53 PackageManager.FEATURE_CAMERA_FRONT)) { 59 PackageManager.FEATURE_CAMERA)) { 66 PackageManager.FEATURE_CAMERA_ANY)) { 75 final PackageManager packageManager = context.getPackageManager(); 76 final FeatureInfo[] featuresList = packageManager.getSystemAvailableFeatures();
|
/frameworks/base/core/java/android/widget/ |
ShareActionProvider.java | 21 import android.content.pm.PackageManager; 201 PackageManager packageManager = mContext.getPackageManager(); 209 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 210 .setIcon(activity.loadIcon(packageManager)) 221 expandedSubMenu.add(0, i, i, activity.loadLabel(packageManager)) 222 .setIcon(activity.loadIcon(packageManager))
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
ShareActionProvider.java | 21 import android.content.pm.PackageManager; 217 PackageManager packageManager = mContext.getPackageManager(); 225 subMenu.add(0, i, i, activity.loadLabel(packageManager)) 226 .setIcon(activity.loadIcon(packageManager)) 237 expandedSubMenu.add(0, i, i, activity.loadLabel(packageManager)) 238 .setIcon(activity.loadIcon(packageManager))
|
/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);
|
/external/chromium_org/base/android/java/src/org/chromium/base/ |
BuildInfo.java | 10 import android.content.pm.PackageManager; 11 import android.content.pm.PackageManager.NameNotFoundException; 66 PackageManager pm = context.getPackageManager(); 83 PackageManager pm = context.getPackageManager(); 95 PackageManager packageManager = context.getPackageManager(); 96 ApplicationInfo appInfo = packageManager.getApplicationInfo(context.getPackageName(), 97 PackageManager.GET_META_DATA); 98 CharSequence label = packageManager.getApplicationLabel(appInfo);
|
/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...] |
/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...] |
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/ |
LiveWallpaperListAdapter.java | 22 import android.content.pm.PackageManager; 56 private final PackageManager mPackageManager; 67 PackageManager.GET_META_DATA); 151 final PackageManager packageManager = mContext.getPackageManager(); 170 return mCollator.compare(info1.loadLabel(packageManager), 171 info2.loadLabel(packageManager)); 192 Drawable thumb = info.loadThumbnail(packageManager); 210 String title = info.loadLabel(packageManager).toString();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
InstallWidgetReceiver.java | 25 import android.content.pm.PackageManager; 127 final PackageManager packageManager = context.getPackageManager(); 145 Drawable d = resolveInfo.loadIcon(packageManager); 150 final CharSequence component = resolveInfo.loadLabel(packageManager);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
InstallWidgetReceiver.java | 23 import android.content.pm.PackageManager; 122 final PackageManager packageManager = context.getPackageManager(); 140 Drawable d = resolveInfo.loadIcon(packageManager); 145 final CharSequence component = resolveInfo.loadLabel(packageManager);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardActivityLauncher.java | 29 import android.content.pm.PackageManager; 68 PackageManager packageManager = getContext().getPackageManager(); 69 final List<ResolveInfo> appList = packageManager.queryIntentActivitiesAsUser( 70 intent, PackageManager.MATCH_DEFAULT_ONLY, getLockPatternUtils().getCurrentUser()); 75 ResolveInfo resolved = packageManager.resolveActivityAsUser(intent, 76 PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA, 259 PackageManager packageManager = getContext().getPackageManager() [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 20 import android.content.pm.PackageManager; 319 PackageManager packageManager = getContext().getPackageManager(); 321 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { 331 PackageManager packageManager = getContext().getPackageManager(); 333 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
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);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/launcher3/ |
LiveWallpaperListAdapter.java | 23 import android.content.pm.PackageManager; 51 private final PackageManager mPackageManager; 62 PackageManager.GET_META_DATA); 143 final PackageManager packageManager = mContext.getPackageManager(); 155 return mCollator.compare(info1.loadLabel(packageManager), 156 info2.loadLabel(packageManager)); 173 Drawable thumb = info.loadThumbnail(packageManager);
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
DeviceInfoInstrument.java | 24 import android.content.pm.PackageManager; 240 PackageManager packageManager = getContext().getPackageManager(); 243 boolean hasFeature = packageManager.hasSystemFeature(featureName); 247 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); 277 Field[] fields = PackageManager.class.getFields(); 312 PackageManager packageManager = getContext().getPackageManager(); 313 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); 344 PackageManager pm = getContext().getPackageManager() [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...] |
/cts/tests/tests/graphics/src/android/opengl/cts/ |
OpenGlEsVersionTest.java | 24 import android.content.pm.PackageManager; 67 assertEquals("Reported OpenGL ES version from ActivityManager differs from PackageManager", 166 PackageManager packageManager = context.getPackageManager(); 167 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures();
|