/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiFeature.java | 24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported() local 25 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); in isWifiSupported() 29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported() local 30 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT); in isP2pSupported()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 43 PackageManager packageManager = mContext.getPackageManager(); in assertCanBeHandled() local 44 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertCanBeHandled() 107 PackageManager packageManager = mContext.getPackageManager(); in testCallPhoneNumber() local 108 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCallPhoneNumber() 119 PackageManager packageManager = mContext.getPackageManager(); in testDialPhoneNumber() local 120 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialPhoneNumber() 131 PackageManager packageManager = mContext.getPackageManager(); in testDialVoicemail() local 132 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialVoicemail() 143 PackageManager packageManager = mContext.getPackageManager(); in testCamera() local 144 if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCamera() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PermissionPolicyTest.java | 49 PackageManager packageManager = getContext().getPackageManager(); in testPlatformDefinedRuntimePermissionValid() local 50 PackageInfo packageInfo = packageManager.getPackageInfo(PLATFORM_PACKAGE_NAME, in testPlatformDefinedRuntimePermissionValid() 59 TextUtils.isEmpty(permission.loadLabel(packageManager))); in testPlatformDefinedRuntimePermissionValid() 61 TextUtils.isEmpty(permission.loadDescription(packageManager))); in testPlatformDefinedRuntimePermissionValid()
|
D | NoCaptureAudioOutputPermissionTest.java | 49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord() local 50 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in testCreateAudioRecord()
|
D | NoReceiveSmsPermissionTest.java | 55 PackageManager packageManager = mContext.getPackageManager(); in testReceiveTextMessage() local 56 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testReceiveTextMessage()
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilitySettingsTest.java | 36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled() local 38 List<ResolveInfo> resolvedActivities = packageManager.queryIntentActivities(intent, in testAccessibilitySettingsIntentHandled()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 44 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() local 45 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
|
D | ManifestTestListAdapter.java | 158 PackageManager packageManager = mContext.getPackageManager(); in getResolveInfosForParent() local 159 List<ResolveInfo> list = packageManager.queryIntentActivities(mainIntent, in getResolveInfosForParent() 285 PackageManager packageManager = mContext.getPackageManager(); in hasAnyFeature() local 287 if (packageManager.hasSystemFeature(feature)) { in hasAnyFeature() 297 PackageManager packageManager = mContext.getPackageManager(); in hasAllFeatures() local 299 if (!packageManager.hasSystemFeature(feature)) { in hasAllFeatures()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ComponentDisablingActivity.java | 42 PackageManager packageManager = getPackageManager(); in onCreate() local 43 packageManager.setComponentEnabledSetting(new ComponentName(extraPackage, extraClassName), in onCreate()
|
D | PrimaryUserFilterSetterActivity.java | 24 PackageManager packageManager = getPackageManager(); in onCreate() local
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 47 PackageManager packageManager = mContext.getPackageManager(); in testPackageSignatures() local 48 List<PackageInfo> allPackageInfos = packageManager.getInstalledPackages( in testPackageSignatures() 149 PackageManager packageManager = mContext.getPackageManager(); in writeSignature() local 150 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in writeSignature()
|
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
D | SettingsLeanbackTest.java | 85 PackageManager packageManager = getActivity().getPackageManager(); in assertIntentCanBeHandled() local 87 packageManager.queryIntentActivities(intent, 0); in assertIntentCanBeHandled()
|
/cts/tests/tests/graphics2/src/android/graphics2/cts/ |
D | TextureViewCameraActivity.java | 58 PackageManager packageManager = getPackageManager(); in onSurfaceTextureAvailable() local 59 boolean hasRearCamera = packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA); in onSurfaceTextureAvailable() 61 packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT); in onSurfaceTextureAvailable()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | PermissionLockdownTestActivity.java | 86 PackageManager packageManager = getPackageManager(); in buildLayout() local 91 applicationInfo = packageManager.getApplicationInfo( in buildLayout() 100 packageIconImageView.setImageDrawable(packageManager.getApplicationIcon(applicationInfo)); in buildLayout() 102 packageNameTextView.setText(packageManager.getApplicationLabel(applicationInfo)); in buildLayout()
|
D | DeviceOwnerPositiveTestActivity.java | 148 PackageManager packageManager = getPackageManager(); in addTestsToAdapter() local 149 if (packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in addTestsToAdapter() 170 if (packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in addTestsToAdapter()
|
/cts/tests/leanbackjank/src/android/cts/leanbackjank/ |
D | CtsDeviceLeanback.java | 45 PackageManager packageManager = in shouldSkip() local 47 if (!packageManager.hasSystemFeature( in shouldSkip()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 104 private static PackageInfo findOnlyTelecomPackageInfo(PackageManager packageManager) { in findOnlyTelecomPackageInfo() argument 105 List<PackageInfo> telecomPackages = findMatchingPackages(packageManager); in findOnlyTelecomPackageInfo()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ConnectivityConstraintTest.java | 67 PackageManager packageManager = mContext.getPackageManager(); in setUp() local 68 mHasWifi = packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); in setUp() 69 mHasTelephony = packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in setUp()
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 369 PackageManager packageManager = getContext().getPackageManager(); in testGetNetworkCountryIso() local 371 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetNetworkCountryIso() 381 PackageManager packageManager = getContext().getPackageManager(); in testGetSimCountryIso() local 383 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSimCountryIso()
|
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/ |
D | DeviceInfoInstrument.java | 253 PackageManager packageManager = getContext().getPackageManager(); in getFeatures() local 256 boolean hasFeature = packageManager.hasSystemFeature(featureName); in getFeatures() 260 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getFeatures() 325 PackageManager packageManager = getContext().getPackageManager(); in getOpenGlEsVersion() local 326 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getOpenGlEsVersion()
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
D | OpenGlEsVersionTest.java | 215 PackageManager packageManager = context.getPackageManager(); in getVersionFromPackageManager() local 216 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getVersionFromPackageManager()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | StaticMetadataCollectionTest.java | 178 PackageManager packageManager = getActivity().getPackageManager(); in hasCameraFeature() local 179 return packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY); in hasCameraFeature()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_ContactsTest.java | 86 PackageManager packageManager = context.getPackageManager(); 88 List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0);
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | MediaRecorderStressTest.java | 84 PackageManager packageManager = in setUp() local 86 mHasRearCamera = packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA); in setUp() 87 mHasFrontCamera = packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT); in setUp()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioManagerTest.java | 74 PackageManager packageManager = mContext.getPackageManager(); in setUp() local 75 mIsTelevision = packageManager != null in setUp() 76 && (packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in setUp() 77 || packageManager.hasSystemFeature(PackageManager.FEATURE_TELEVISION)); in setUp()
|