/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioSystemFlags.java | 29 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in claimsOutput() 33 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE); in claimsInput() 37 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_PRO); in claimsProAudio() 42 … return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY); in claimsLowLatencyAudio() 47 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MIDI); in claimsMIDI() 51 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST); in claimsUSBHostMode() 55 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY); in claimsUSBPeripheralMode() 71 return context.getPackageManager().hasSystemFeature( in claimsHeadTrackingLowLatency() 80 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch() 88 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAutomobile() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CarModeInCallServiceTest.java | 63 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in setUp() 97 && !mContext.getPackageManager().hasSystemFeature( in tearDown() 132 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testSetCarMode() 133 || mContext.getPackageManager().hasSystemFeature( in testSetCarMode() 146 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testRequestAutomotiveProjection() 147 || mContext.getPackageManager().hasSystemFeature( in testRequestAutomotiveProjection() 162 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testRequestAutomotiveProjectionExclusive() 163 || mContext.getPackageManager().hasSystemFeature( in testRequestAutomotiveProjectionExclusive() 184 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testStartCallInCarMode() 185 || mContext.getPackageManager().hasSystemFeature( in testStartCallInCarMode() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 59 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_currentUser() 68 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserGrant() 77 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_anyUserCrossUserNoGrant() 89 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserGrant() 98 final PackageManager pm = mContext.getPackageManager(); in testPackageVisibility_otherUserNoGrant() 110 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_currentUser() 119 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_anyUserCrossUserGrant() 128 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_anyUserCrossUserNoGrant() 140 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_otherUserGrant() 149 final PackageManager pm = mContext.getPackageManager(); in testApplicationVisibility_otherUserNoGrant() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiFeature.java | 24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported() 29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported() 34 final PackageManager pm = context.getPackageManager(); in isTelephonySupported() 39 final PackageManager pm = context.getPackageManager(); in isRttSupported() 44 final PackageManager pm = context.getPackageManager(); in isAwareSupported()
|
/cts/tests/tests/wifi/src/android/net/wifi/nl80211/cts/ |
D | WifiFeature.java | 24 PackageManager packageManager = context.getPackageManager(); in isWifiSupported() 29 PackageManager packageManager = context.getPackageManager(); in isP2pSupported() 34 final PackageManager pm = context.getPackageManager(); in isTelephonySupported() 39 final PackageManager pm = context.getPackageManager(); in isRttSupported() 44 final PackageManager pm = context.getPackageManager(); in isAwareSupported()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FeatureUtil.java | 47 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature() 52 PackageManager pm = getPackageManager(); in hasAnySystemFeature() 63 PackageManager pm = getPackageManager(); in hasAllSystemFeatures() 75 for (FeatureInfo fi : getPackageManager().getSystemAvailableFeatures()) { in getAllFeatures() 119 private static PackageManager getPackageManager() { in getPackageManager() method in FeatureUtil 120 return getContext().getPackageManager(); in getPackageManager() 134 return hasSystemFeature(getPackageManager().FEATURE_MICROPHONE); in hasMicrophone()
|
D | PackageUtil.java | 49 return (getPackageManager().getApplicationInfo(packageName, in exists() 59 if (getPackageManager().getApplicationInfo( in exists() 72 ApplicationInfo ai = getPackageManager().getApplicationInfo(packageName, in isSystemApp() 86 ApplicationInfo ai = getPackageManager().getApplicationInfo(packageName, in isPrivilegedSystemApp() 97 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getVersionString() 112 PackageInfo info = getPackageManager().getPackageInfo(packageName, in getLongVersionCode() 131 PackageInfo packageInfo = getPackageManager() in computePackageSignatureDigest() 152 private static PackageManager getPackageManager() { in getPackageManager() method in PackageUtil 153 return InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in getPackageManager() 165 applicationInfo = getPackageManager().getApplicationInfo(pkgInfo.packageName, 0); in computePackageFileDigest() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/InstantCookieApp/src/test/instant/cookie/ |
D | CookieTest.java | 36 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookieUpdateAndRetrieval() 66 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedAcrossInstantInstalls1() 74 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedAcrossInstantInstalls2() 82 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedUpgradeFromInstant1() 93 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookiePersistedUpgradeFromInstant2() 104 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookieResetOnNonInstantReinstall1() 112 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testCookieResetOnNonInstantReinstall2()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/ |
D | FeatureUtil.java | 120 PackageManager pm = context.getPackageManager(); in isDataRoamingSupported() 163 PackageManager pm = context.getPackageManager(); in isWatch() 171 PackageManager pm = context.getPackageManager(); in isTelevision() 179 PackageManager pm = context.getPackageManager(); in isWatchOrAutomotive() 188 PackageManager pm = context.getPackageManager(); in isWatchOrAutomotiveOrTv() 199 PackageManager pm = context.getPackageManager(); in isAutomotive() 207 PackageManager pm = context.getPackageManager(); in supportManagedSecondaryUsers() 231 PackageManager pm = context.getPackageManager(); in supportCameraFeature()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 66 PackageManager packageManager = mContext.getPackageManager(); in assertCanBeHandled() 78 PackageManager packageManager = mContext.getPackageManager(); in assertDefaultHandlerValidPriority() 91 PackageManager packageManager = mContext.getPackageManager(); in assertHandledBySystemOnly() 105 PackageManager packageManager = mContext.getPackageManager(); in assertHandledBySelfOnly() 173 PackageManager packageManager = mContext.getPackageManager(); in testCallPhoneNumber() 185 PackageManager packageManager = mContext.getPackageManager(); in testDialPhoneNumber() 200 PackageManager packageManager = mContext.getPackageManager(); in testDialVoicemail() 215 PackageManager packageManager = mContext.getPackageManager(); in testChangePhoneAccounts() 226 PackageManager packageManager = mContext.getPackageManager(); in testShowCallAccessibilitySettings() 237 PackageManager packageManager = mContext.getPackageManager(); in testShowCallSettings() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/ |
D | PackageAccessTest.java | 50 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_inUser() 61 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_inUserUninstalled() 72 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_notInOtherUser() 83 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_notInOtherUserUninstalled() 94 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_getPackagesCantSeeTiny() 106 PackageManager pm = InstrumentationRegistry.getContext().getPackageManager(); in testPackageAccess_getPackagesCanSeeTiny()
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 167 PackageManager pm = getContext().getPackageManager(); in testHasPerm() 174 PackageManager pm = getContext().getPackageManager(); in testHasNoPerm() 184 PackageManager pm = getContext().getPackageManager(); in testGetSignaturesShowsOld() 196 PackageManager pm = getContext().getPackageManager(); in testGetSigningCertificatesShowsAll() 227 PackageManager pm = getContext().getPackageManager(); in testGetApkContentsSignersShowsCurrent() 239 PackageManager pm = getContext().getPackageManager(); in testGetApkContentsSignersShowsMultipleSigners() 261 PackageManager pm = getContext().getPackageManager(); in testGetSigningCertificateHistoryReturnsSignersInOrder() 274 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificate() 286 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateSha256() 299 PackageManager pm = getContext().getPackageManager(); in testHasSigningCertificateByUid() [all …]
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 51 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextAndScreenshotOff() 71 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenshotOff() 91 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenContextOff() 107 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in isSupportedDevice() 110 } else if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in isSupportedDevice()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NfcTestActivity.java | 55 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) { in onCreate() 59 if (getPackageManager().hasSystemFeature(FEATURE_NFC_MIFARE)) { in onCreate() 65 … if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF)) { in onCreate() 67 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) { in onCreate() 77 …if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC))… in onCreate() 79 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) { in onCreate()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ApplicationInfo_DisplayNameComparatorTest.java | 41 PackageManager pm = getContext().getPackageManager(); in testConstructor() 48 PackageManager pm = getContext().getPackageManager(); in testCompare() 57 info1 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare() 64 info2 = mContext.getPackageManager().getApplicationInfo(PACKAGE_NAME, in testCompare()
|
D | ApplicationInfoTest.java | 104 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testWriteToParcel() 137 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDescribeContents() 160 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testLoadDescription() 163 assertNull(applicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription() 169 applicationInfo.loadDescription(getContext().getPackageManager())); in testLoadDescription() 175 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in verifyOwnInfo() 200 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in verifyDefaultValues() 236 getContext().getPackageManager().setApplicationCategoryHint(getContext().getPackageName(), in setOwnAppCategory() 243 getContext().getPackageManager().setApplicationCategoryHint( in setAppCategoryByNotInstaller() 250 ApplicationInfo applicationInfo = getContext().getPackageManager().getApplicationInfo( in testDirectBootUnawareAppIsNotEncryptionAware() [all …]
|
D | PackageItemInfoTest.java | 56 private PackageManager getPackageManager() { in getPackageManager() method in PackageItemInfoTest 57 return getContext().getPackageManager(); in getPackageManager() 76 assertEquals(ACTIVITY_NAME, pkgItemInfo.loadLabel(getPackageManager())); in testLoadMethods() 78 assertNotNull(pkgItemInfo.loadIcon(getPackageManager())); in testLoadMethods() 81 XmlResourceParser parser = pkgItemInfo.loadXmlMetaData(getPackageManager(), METADATA_NAME); in testLoadMethods() 127 getPackageManager().getActivityInfo(componentName, PackageManager.GET_META_DATA); in getTestItemInfo()
|
/cts/tests/vr/src/android/vr/cts/ |
D | VrFeaturesTest.java | 33 boolean hasVrMode = mActivity.getPackageManager().hasSystemFeature( in testLacksDeprecatedVrModeFeature() 35 boolean hasVrModeHighPerf = mActivity.getPackageManager().hasSystemFeature( in testLacksDeprecatedVrModeFeature() 46 boolean hasVrModeHighPerf = mActivity.getPackageManager().hasSystemFeature( in testSustainedPerformanceModeSupported()
|
/cts/hostsidetests/appsecurity/test-apps/InstantUpgradeApp/src/com/android/cts/instantupgradeapp/ |
D | ClientTest.java | 43 assertTrue(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testInstantApplicationWritePreferences() 51 assertFalse(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testFullApplicationReadPreferences() 59 assertTrue(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testInstantApplicationWriteFile() 68 assertFalse(InstrumentationRegistry.getContext().getPackageManager().isInstantApp()); in testFullApplicationReadFile()
|
/cts/hostsidetests/appsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/ |
D | PermissionEscalationTest.java | 40 PermissionInfo stealAudio1Permission1 = context.getPackageManager() in testCannotEscalateNonRuntimePermissionsToRuntime() 47 PermissionInfo stealAudio1Permission2 = context.getPackageManager() in testCannotEscalateNonRuntimePermissionsToRuntime() 61 PermissionInfo stealAudio1Permission1 = context.getPackageManager() in testRuntimePermissionsAreNotGranted() 72 PermissionInfo stealAudio1Permission2 = context.getPackageManager() in testRuntimePermissionsAreNotGranted()
|
/cts/tests/tests/telephony2/src/android/telephony2/cts/ |
D | NoLocationPermissionTest.java | 52 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testGetCellLocation() 69 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testGetAllCellInfo() 86 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testListenCellLocation() 104 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_TELEPHONY)) { in testRequestCellInfoUpdate()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrintJobTest.java | 256 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 262 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 268 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 272 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 286 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 292 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 475 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 479 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 483 printJob.getInfo().getStatus(getActivity().getPackageManager()))); 487 printJob.getInfo().getStatus(getActivity().getPackageManager()))); [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | MultiWindowAvailabilityTests.java | 113 return context.getPackageManager().hasSystemFeature(FEATURE_FREEFORM_WINDOW_MANAGEMENT); in supportsFreeform() 118 return context.getPackageManager().hasSystemFeature(FEATURE_PICTURE_IN_PICTURE); in supportsPictureInPicture() 123 return context.getPackageManager().hasSystemFeature(FEATURE_EXPANDED_PICTURE_IN_PICTURE); in supportsExpandedPictureInPicture() 131 return context.getPackageManager().hasSystemFeature( in supportsMultiDisplay()
|
/cts/tests/tests/settings/src/android/settings/cts/ |
D | SettingsTestUtils.java | 34 return InstrumentationRegistry.getTargetContext().getPackageManager() in isWatch() 42 return InstrumentationRegistry.getTargetContext().getPackageManager() in isAutomotive()
|
D | TetherProvisioningCarrierDialogActivityTest.java | 46 InstrumentationRegistry.getInstrumentation().getContext().getPackageManager(); in setUp() 56 .getPackageManager().resolveActivity( in testTetheringProvisioningCarrierUiExisted() 63 .getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()
|