/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);
|
/cts/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);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CarrierAppUtils.java | 23 import android.content.pm.PackageManager; 73 IPackageManager packageManager, TelephonyManager telephonyManager, 83 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, telephonyManager, 100 IPackageManager packageManager, ContentResolver contentResolver, int userId) { 109 disableCarrierAppsUntilPrivileged(callingPackage, packageManager, 117 IPackageManager packageManager, @Nullable TelephonyManager telephonyManager, 121 List<ApplicationInfo> candidates = getDefaultCarrierAppCandidatesHelper(packageManager, 128 packageManager, 149 PackageManager.COMPONENT_ENABLED_STATE_DEFAULT 151 PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED)) [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
AvailableIntentsTest.java | 23 import android.content.pm.PackageManager; 44 PackageManager packageManager = mContext.getPackageManager(); 45 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); 108 PackageManager packageManager = mContext.getPackageManager(); 109 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { 120 PackageManager packageManager = mContext.getPackageManager() [all...] |
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
ComponentDisablingActivity.java | 20 import android.content.pm.PackageManager; 42 PackageManager packageManager = getPackageManager(); 43 packageManager.setComponentEnabledSetting(new ComponentName(extraPackage, extraClassName), 44 PackageManager.COMPONENT_ENABLED_STATE_DISABLED, 45 PackageManager.DONT_KILL_APP);
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoCaptureAudioOutputPermissionTest.java | 19 import android.content.pm.PackageManager; 49 PackageManager packageManager = mContext.getPackageManager(); 50 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) {
|
/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);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
HelpActivity.java | 21 import android.content.pm.PackageManager; 49 final PackageManager packageManager = getPackageManager(); 50 if (packageManager != null) { 53 final PackageInfo pi = packageManager.getPackageInfo(getPackageName(), 0); 55 } catch (PackageManager.NameNotFoundException e) {
|
/frameworks/base/core/java/android/content/pm/ |
EphemeralApplicationInfo.java | 72 public @NonNull CharSequence loadLabel(@NonNull PackageManager packageManager) { 74 return mApplicationInfo.loadLabel(packageManager); 79 public @NonNull Drawable loadIcon(@NonNull PackageManager packageManager) { 81 return mApplicationInfo.loadIcon(packageManager); 83 return packageManager.getEphemeralApplicationIcon(mPackageName);
|
/packages/services/Car/service/src/com/android/car/cluster/ |
InstrumentClusterRendererLoader.java | 21 import android.content.pm.PackageManager; 22 import android.content.pm.PackageManager.NameNotFoundException; 45 PackageManager packageManager = context.getPackageManager(); 47 packageManager.getPackageInfo(getRendererPackageName(context), 0); 89 PackageManager packageManager = context.getPackageManager(); 91 assertSignature(context.getApplicationContext(), packageManager, packageName); 93 String clusterRendererApk = packageManager.getApplicationInfo(packageName, 0).sourceDir; 118 private static void assertSignature(Context applicationContext, PackageManager packageManager [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
RequiredComponentsTest.java | 25 import android.content.pm.PackageManager; 36 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_AWARE; 37 import static android.content.pm.PackageManager.MATCH_DIRECT_BOOT_UNAWARE; 38 import static android.content.pm.PackageManager.MATCH_SYSTEM_ONLY; 69 PackageManager.SYSTEM_SHARED_LIBRARY_SERVICES, 77 PackageManager.SYSTEM_SHARED_LIBRARY_SHARED, 83 PackageManager packageManager = InstrumentationRegistry.getContext() 87 String[] libs = packageManager.getSystemSharedLibraryNames(); 100 String packageName = packageManager.getServicesSystemSharedLibraryPackageName() [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
AvailableVirtualKeyboardFragment.java | 26 import android.content.pm.PackageManager; 93 private static Drawable loadDrawable(@NonNull final PackageManager packageManager, 100 return packageManager.getDrawable(packageName, resId, applicationInfo); 107 private static Drawable getInputMethodIcon(@NonNull final PackageManager packageManager, 117 Drawable drawable = loadDrawable(packageManager, packageName, si.logo, ai); 121 drawable = loadDrawable(packageManager, packageName, si.icon, ai); 127 drawable = loadDrawable(packageManager, packageName, ai.logo, ai); 131 drawable = loadDrawable(packageManager, packageName, ai.icon, ai) [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
RealSystemFacade.java | 24 import android.content.pm.PackageManager; 25 import android.content.pm.PackageManager.NameNotFoundException; 87 PackageManager packageManager = mContext.getPackageManager(); 88 String[] packageNames = packageManager.getPackagesForUid(uid); 123 PackageManager packageManager = mContext.getPackageManager(); 126 packageInfo = packageManager.getPackageInfo(packageName, 0);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsApplication.java | 28 import android.content.pm.PackageManager; 29 import android.content.pm.PackageManager.NameNotFoundException; 136 PackageManager pm = context.getPackageManager(); 217 PackageManager packageManager = context.getPackageManager(); 221 List<ResolveInfo> smsReceivers = packageManager.queryBroadcastReceiversAsUser(intent, 0, 247 List<ResolveInfo> mmsReceivers = packageManager.queryBroadcastReceiversAsUser(intent, 0, 267 List<ResolveInfo> respondServices = packageManager.queryIntentServicesAsUser(intent, 0, 287 List<ResolveInfo> sendToActivities = packageManager.queryIntentActivitiesAsUser(intent, 0, 303 List<ResolveInfo> smsAppChangedReceivers = packageManager.queryBroadcastReceiversAsUser(intent [all...] |
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
PhoneNumberTest.java | 20 import android.content.pm.PackageManager; 54 PackageManager packageManager = context.getPackageManager(); 55 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) {
|
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
SettingsLeanbackTest.java | 21 import android.content.pm.PackageManager; 85 PackageManager packageManager = getActivity().getPackageManager(); 87 packageManager.queryIntentActivities(intent, 0);
|
/developers/build/prebuilts/gradle/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
MainActivity.java | 22 import android.content.pm.PackageManager; 35 PackageManager packageManager = getPackageManager(); 41 ApplicationInfo info = packageManager.getApplicationInfo( 43 PackageManager.GET_UNINSTALLED_PACKAGES); 56 } catch (PackageManager.NameNotFoundException e) {
|
/developers/samples/android/admin/AppRestrictionEnforcer/Application/src/main/java/com/example/android/apprestrictionenforcer/ |
MainActivity.java | 22 import android.content.pm.PackageManager; 35 PackageManager packageManager = getPackageManager(); 41 ApplicationInfo info = packageManager.getApplicationInfo( 43 PackageManager.GET_UNINSTALLED_PACKAGES); 56 } catch (PackageManager.NameNotFoundException e) {
|
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/ |
MainActivity.java | 22 import android.content.pm.PackageManager; 35 PackageManager packageManager = getPackageManager(); 41 ApplicationInfo info = packageManager.getApplicationInfo( 43 PackageManager.GET_UNINSTALLED_PACKAGES); 56 } catch (PackageManager.NameNotFoundException e) {
|
/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 | 9 import android.content.pm.PackageManager; 50 PackageManager.FEATURE_CAMERA_FRONT)) { 56 PackageManager.FEATURE_CAMERA)) { 63 PackageManager.FEATURE_CAMERA_ANY)) { 72 final PackageManager packageManager = context.getPackageManager(); 73 final FeatureInfo[] featuresList = packageManager.getSystemAvailableFeatures();
|
/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 int flags = PackageManager.MATCH_DEFAULT_ONL [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
UserDialogs.java | 24 import android.content.pm.PackageManager; 83 PackageManager packageManager = context.getPackageManager(); 94 Drawable badgedApplicationIcon = packageManager.getUserBadgedIcon( 95 packageManager.getApplicationIcon(mdmApplicationInfo), new UserHandle(userId)); 98 CharSequence appLabel = packageManager.getApplicationLabel(mdmApplicationInfo); 99 CharSequence badgedAppLabel = packageManager.getUserBadgedLabel(appLabel,
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
FeatureDeviceInfo.java | 19 import android.content.pm.PackageManager; 39 PackageManager packageManager = 45 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); 68 boolean hasFeature = packageManager.hasSystemFeature(featureName); 85 Field[] fields = PackageManager.class.getFields();
|