Home
last modified time | relevance | path

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

12

/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/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/os/src/android/os/cts/
DRequiredComponentsTest.java83 PackageManager packageManager = InstrumentationRegistry.getContext() in enforceSharedLibPresentAndProperlyHosted() local
87 String[] libs = packageManager.getSystemSharedLibraryNames(); in enforceSharedLibPresentAndProperlyHosted()
100 String packageName = packageManager.getServicesSystemSharedLibraryPackageName(); in enforceSharedLibPresentAndProperlyHosted()
101 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); in enforceSharedLibPresentAndProperlyHosted()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DVersion.java36 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() local
37 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
DManifestTestListAdapter.java159 PackageManager packageManager = mContext.getPackageManager(); in getResolveInfosForParent() local
160 List<ResolveInfo> list = packageManager.queryIntentActivities(mainIntent, in getResolveInfosForParent()
286 PackageManager packageManager = mContext.getPackageManager(); in hasAnyFeature() local
288 if (packageManager.hasSystemFeature(feature)) { in hasAnyFeature()
298 PackageManager packageManager = mContext.getPackageManager(); in hasAllFeatures() local
300 if (!packageManager.hasSystemFeature(feature)) { in hasAllFeatures()
/cts/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/tests/tests/permission2/src/android/permission2/cts/
DNoCaptureAudioOutputPermissionTest.java49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord() local
50 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in testCreateAudioRecord()
DNoReceiveSmsPermissionTest.java56 PackageManager packageManager = mContext.getPackageManager(); in testReceiveTextMessage() local
57 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testReceiveTextMessage()
/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.java50 PackageManager packageManager = mContext.getPackageManager(); in testPackageSignatures() local
51 List<PackageInfo> allPackageInfos = packageManager.getInstalledPackages( in testPackageSignatures()
161 PackageManager packageManager = mContext.getPackageManager(); in writeSignature() local
162 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in writeSignature()
/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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java39 PackageManager packageManager = in collectDeviceInfo() local
45 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in collectDeviceInfo()
68 boolean hasFeature = packageManager.hasSystemFeature(featureName); in collectDeviceInfo()
/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyManagerTest.java236 PackageManager packageManager = getContext().getPackageManager(); in verifyDeviceId() local
238 if (packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in verifyDeviceId()
379 PackageManager packageManager = getContext().getPackageManager(); in testGetNetworkCountryIso() local
381 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetNetworkCountryIso()
391 PackageManager packageManager = getContext().getPackageManager(); in testGetSimCountryIso() local
393 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSimCountryIso()
/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/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java54 PackageManager packageManager = context.getPackageManager(); in testGetLine1Number() local
55 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetLine1Number()
/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.java152 PackageManager packageManager = getPackageManager(); in addTestsToAdapter() local
153 if (packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in addTestsToAdapter()
190 if(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in addTestsToAdapter()
205 if (packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in addTestsToAdapter()
/cts/tests/leanbackjank/src/android/leanbackjank/cts/
DCtsDeviceLeanback.java45 PackageManager packageManager = in shouldSkip() local
47 if (!packageManager.hasSystemFeature( in shouldSkip()
/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/telecom/src/android/telecom/cts/
DTelecomAvailabilityTest.java123 private static PackageInfo findOnlyTelecomPackageInfo(PackageManager packageManager) { in findOnlyTelecomPackageInfo() argument
124 List<PackageInfo> telecomPackages = findMatchingPackages(packageManager); in findOnlyTelecomPackageInfo()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java268 PackageManager packageManager = getContext().getPackageManager(); in getFeatures() local
271 boolean hasFeature = packageManager.hasSystemFeature(featureName); in getFeatures()
275 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getFeatures()
340 PackageManager packageManager = getContext().getPackageManager(); in getOpenGlEsVersion() local
341 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getOpenGlEsVersion()
/cts/tests/tests/graphics/src/android/opengl/cts/
DOpenGlEsVersionTest.java263 PackageManager packageManager = context.getPackageManager(); in getVersionFromPackageManager() local
264 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getVersionFromPackageManager()
/cts/tests/tests/print/src/android/print/cts/
DPrintServicesTest.java554 PackageManager packageManager = getActivity().getPackageManager();
555 PackageInfo packageInfo = packageManager.getPackageInfo(
558 Drawable printServiceIcon = appInfo.loadIcon(packageManager);
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_ContactsTest.java86 PackageManager packageManager = context.getPackageManager();
88 List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0);

12