/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/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/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 83 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/ |
D | Version.java | 36 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() local 37 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
|
D | ManifestTestListAdapter.java | 159 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/ |
D | AccessibilitySettingsTest.java | 36 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled() local 38 List<ResolveInfo> resolvedActivities = packageManager.queryIntentActivities(intent, in testAccessibilitySettingsIntentHandled()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | NoCaptureAudioOutputPermissionTest.java | 49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord() local 50 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in testCreateAudioRecord()
|
D | NoReceiveSmsPermissionTest.java | 56 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/ |
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 | 50 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/ |
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/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | FeatureDeviceInfo.java | 39 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/ |
D | TelephonyManagerTest.java | 236 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/ |
D | SettingsLeanbackTest.java | 85 PackageManager packageManager = getActivity().getPackageManager(); in assertIntentCanBeHandled() local 87 packageManager.queryIntentActivities(intent, 0); in assertIntentCanBeHandled()
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | PhoneNumberTest.java | 54 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/ |
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 | 152 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/ |
D | CtsDeviceLeanback.java | 45 PackageManager packageManager = in shouldSkip() local 47 if (!packageManager.hasSystemFeature( in shouldSkip()
|
/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/telecom/src/android/telecom/cts/ |
D | TelecomAvailabilityTest.java | 123 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/ |
D | DeviceInfoInstrument.java | 268 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/ |
D | OpenGlEsVersionTest.java | 263 PackageManager packageManager = context.getPackageManager(); in getVersionFromPackageManager() local 264 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getVersionFromPackageManager()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrintServicesTest.java | 554 PackageManager packageManager = getActivity().getPackageManager(); 555 PackageInfo packageInfo = packageManager.getPackageInfo( 558 Drawable printServiceIcon = appInfo.loadIcon(packageManager);
|
/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);
|