Home
last modified time | relevance | path

Searched refs:packageManager (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiFeature.java24 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/
DAvailableIntentsTest.java43 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/
DPermissionPolicyTest.java49 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()
DNoCaptureAudioOutputPermissionTest.java49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord() local
50 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in testCreateAudioRecord()
DNoReceiveSmsPermissionTest.java55 PackageManager packageManager = mContext.getPackageManager(); in testReceiveTextMessage() local
56 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testReceiveTextMessage()
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilitySettingsTest.java36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled() local
38 List<ResolveInfo> resolvedActivities = packageManager.queryIntentActivities(intent, in testAccessibilitySettingsIntentHandled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java44 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() local
45 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
DManifestTestListAdapter.java158 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/
DComponentDisablingActivity.java42 PackageManager packageManager = getPackageManager(); in onCreate() local
43 packageManager.setComponentEnabledSetting(new ComponentName(extraPackage, extraClassName), in onCreate()
DPrimaryUserFilterSetterActivity.java24 PackageManager packageManager = getPackageManager(); in onCreate() local
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java47 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/
DSettingsLeanbackTest.java85 PackageManager packageManager = getActivity().getPackageManager(); in assertIntentCanBeHandled() local
87 packageManager.queryIntentActivities(intent, 0); in assertIntentCanBeHandled()
/cts/tests/tests/graphics2/src/android/graphics2/cts/
DTextureViewCameraActivity.java58 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/
DPermissionLockdownTestActivity.java86 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()
DDeviceOwnerPositiveTestActivity.java148 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/
DCtsDeviceLeanback.java45 PackageManager packageManager = in shouldSkip() local
47 if (!packageManager.hasSystemFeature( in shouldSkip()
/cts/tests/tests/telecom/src/android/telecom/cts/
DTelecomAvailabilityTest.java104 private static PackageInfo findOnlyTelecomPackageInfo(PackageManager packageManager) { in findOnlyTelecomPackageInfo() argument
105 List<PackageInfo> telecomPackages = findMatchingPackages(packageManager); in findOnlyTelecomPackageInfo()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DConnectivityConstraintTest.java67 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/
DTelephonyManagerTest.java369 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/
DDeviceInfoInstrument.java253 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/
DOpenGlEsVersionTest.java215 PackageManager packageManager = context.getPackageManager(); in getVersionFromPackageManager() local
216 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getVersionFromPackageManager()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DStaticMetadataCollectionTest.java178 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/
DContactsContract_ContactsTest.java86 PackageManager packageManager = context.getPackageManager();
88 List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0);
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaRecorderStressTest.java84 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/
DAudioManagerTest.java74 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()

12