/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 56 PackageManager packageManager = mContext.getPackageManager(); in assertCanBeHandled() local 57 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertCanBeHandled() 68 PackageManager packageManager = mContext.getPackageManager(); in assertDefaultHandlerValidPriority() local 69 List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); in assertDefaultHandlerValidPriority() 137 PackageManager packageManager = mContext.getPackageManager(); in testCallPhoneNumber() local 138 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCallPhoneNumber() 149 PackageManager packageManager = mContext.getPackageManager(); in testDialPhoneNumber() local 150 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialPhoneNumber() 161 PackageManager packageManager = mContext.getPackageManager(); in testDialVoicemail() local 162 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialVoicemail() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 788 final PackageManager packageManager = getContext().getPackageManager(); in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() local 790 packageManager.getWhitelistedRestrictedPermissions(PKG, whitelist); in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 796 packageManager.addWhitelistedRestrictedPermission(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 803 packageManager.addWhitelistedRestrictedPermission(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 805 assertThat(packageManager.getWhitelistedRestrictedPermissions(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 807 packageManager.removeWhitelistedRestrictedPermission(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 809 assertThat(packageManager.getWhitelistedRestrictedPermissions(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 816 final PackageManager packageManager = getContext().getPackageManager(); in assertCannotWhitelistStorage() local 820 assertThat(packageManager.getWhitelistedRestrictedPermissions(PKG, in assertCannotWhitelistStorage() 825 assertThat(packageManager.getWhitelistedRestrictedPermissions(PKG, in assertCannotWhitelistStorage() [all …]
|
D | NoCaptureAudioOutputPermissionTest.java | 49 PackageManager packageManager = mContext.getPackageManager(); in testCreateAudioRecord() local 50 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in testCreateAudioRecord()
|
D | NoReceiveSmsPermissionTest.java | 61 PackageManager packageManager = mContext.getPackageManager(); in testReceiveTextMessage() local 62 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testReceiveTextMessage() 98 PackageManager packageManager = mContext.getPackageManager(); in testAppSpecificSmsToken() local 99 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testAppSpecificSmsToken()
|
/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/permission/src/android/permission/cts/ |
D | MainlineNetworkStackPermissionTest.java | 47 final PackageManager packageManager = mContext.getPackageManager(); in testPackageWithMainlineNetworkStackPermission() local 48 assertNotNull("Unable to find PackageManager.", packageManager); in testPackageWithMainlineNetworkStackPermission() 51 packageManager.getPermissionInfo(PERMISSION_MAINLINE_NETWORK_STACK, 0); in testPackageWithMainlineNetworkStackPermission() 54 PackageInfo packageInfo = packageManager.getPackageInfo(permissioninfo.packageName, in testPackageWithMainlineNetworkStackPermission()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | Version.java | 42 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() local 43 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo() 52 PackageManager packageManager = context.getPackageManager(); in getMetadata() local 53 ApplicationInfo applicationInfo = packageManager.getApplicationInfo( in getMetadata()
|
D | ManifestTestListAdapter.java | 166 PackageManager packageManager = mContext.getPackageManager(); in getResolveInfosForParent() local 167 List<ResolveInfo> list = packageManager.queryIntentActivities(mainIntent, in getResolveInfosForParent() 307 PackageManager packageManager = mContext.getPackageManager(); in hasAnyFeature() local 309 if (packageManager.hasSystemFeature(feature)) { in hasAnyFeature() 319 PackageManager packageManager = mContext.getPackageManager(); in hasAllFeatures() local 321 if (!packageManager.hasSystemFeature(feature)) { in hasAllFeatures()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | RequiredComponentsTest.java | 116 PackageManager packageManager = InstrumentationRegistry.getContext() in enforceSharedLibPresentAndProperlyHosted() local 120 String[] libs = packageManager.getSystemSharedLibraryNames(); in enforceSharedLibPresentAndProperlyHosted() 133 String packageName = packageManager.getServicesSystemSharedLibraryPackageName(); in enforceSharedLibPresentAndProperlyHosted() 134 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0); in enforceSharedLibPresentAndProperlyHosted()
|
/cts/tests/backup/src/android/backup/cts/ |
D | BaseBackupCtsTest.java | 58 PackageManager packageManager = getInstrumentation().getContext().getPackageManager(); in setUp() local 60 packageManager != null in setUp() 61 && packageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP); in setUp()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | WifiSetHttpProxyTest.java | 47 PackageManager packageManager = getContext().getPackageManager(); in testSetHttpProxy() local 48 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in testSetHttpProxy()
|
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/ |
D | PhoneStateListenerTest.java | 51 PackageManager packageManager = getContext().getPackageManager(); in setUp() local 52 if (packageManager != null) { in setUp() 53 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in setUp()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | Version.java | 57 PackageManager packageManager = context.getPackageManager(); in getPackageInfo() local 58 return packageManager.getPackageInfo(context.getPackageName(), 0); in getPackageInfo()
|
/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()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilitySettingsTest.java | 40 PackageManager packageManager = mContext.getPackageManager(); in testAccessibilitySettingsIntentHandled() local 42 List<ResolveInfo> resolvedActivities = packageManager.queryIntentActivities(intent, in testAccessibilitySettingsIntentHandled()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 52 PackageManager packageManager = mContext.getPackageManager(); in testPackageSignatures() local 53 List<PackageInfo> allPackageInfos = packageManager.getInstalledPackages( in testPackageSignatures() 166 PackageManager packageManager = mContext.getPackageManager(); in writeSignature() local 167 PackageInfo packageInfo = packageManager.getPackageInfo(packageName, in writeSignature()
|
/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/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 | 167 PackageManager packageManager = getPackageManager(); in addTestsToAdapter() local 168 if (packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in addTestsToAdapter() 221 if(packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in addTestsToAdapter() 246 if (packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) { in addTestsToAdapter() 359 if (packageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS)) { in addTestsToAdapter() 367 if (packageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS) in addTestsToAdapter()
|
/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 | 60 PackageManager packageManager = context.getPackageManager(); in testGetLine1Number() local 61 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetLine1Number()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | VisualVoicemailServiceTest.java | 110 PackageManager packageManager = mContext.getPackageManager(); in setUp() local 111 packageManager.setComponentEnabledSetting( in setUp() 114 packageManager.setComponentEnabledSetting( in setUp() 139 PackageManager packageManager = mContext.getPackageManager(); in testPermissionlessService_ignored() local 140 packageManager.setComponentEnabledSetting( in testPermissionlessService_ignored() 143 packageManager.setComponentEnabledSetting( in testPermissionlessService_ignored() 704 final PackageManager packageManager = context.getPackageManager(); in hasTelephony() local 705 return packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) && in hasTelephony() 706 packageManager.hasSystemFeature(PackageManager.FEATURE_CONNECTION_SERVICE); in hasTelephony()
|
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
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 | 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 | 271 PackageManager packageManager = getContext().getPackageManager(); in getFeatures() local 274 boolean hasFeature = packageManager.hasSystemFeature(featureName); in getFeatures() 278 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getFeatures() 343 PackageManager packageManager = getContext().getPackageManager(); in getOpenGlEsVersion() local 344 FeatureInfo[] featureInfos = packageManager.getSystemAvailableFeatures(); in getOpenGlEsVersion()
|