/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | AudioSystemFlags.java | 28 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in claimsOutput() 32 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MICROPHONE); in claimsInput() 36 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_PRO); in claimsProAudio() 41 … return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_AUDIO_LOW_LATENCY); in claimsLowLatencyAudio() 46 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MIDI); in claimsMIDI() 50 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST); in claimsUSBHostMode() 54 return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY); in claimsUSBPeripheralMode()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FeatureUtil.java | 46 public static boolean hasSystemFeature(String feature) { in hasSystemFeature() method in FeatureUtil 47 return getPackageManager().hasSystemFeature(feature); in hasSystemFeature() 54 if (pm.hasSystemFeature(feature)) { in hasAnySystemFeature() 65 if (!pm.hasSystemFeature(feature)) { in hasAllSystemFeatures() 93 return hasSystemFeature(WATCH_FEATURE); in isWatch() 98 return hasSystemFeature(AUTOMOTIVE_FEATURE); in isAutomotive() 112 hasSystemFeature(LOW_RAM_FEATURE); in isLowRam() 129 return hasSystemFeature(TELEPHONY_FEATURE); in hasTelephony() 134 return hasSystemFeature(getPackageManager().FEATURE_MICROPHONE); in hasMicrophone()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AvailableIntentsTest.java | 170 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCallPhoneNumber() 182 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialPhoneNumber() 194 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDialVoicemail() 206 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testChangePhoneAccounts() 217 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallAccessibilitySettings() 228 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowCallSettings() 239 if (packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testShowRespondViaSmsSettings() 250 if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testCamera() 251 || packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)) { in testCamera() 272 if (packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) in testImageCaptureIntentsHandledBySystem() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | SystemFeaturesTest.java | 155 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in testCameraFeatures() 243 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 244 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 248 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT) || in checkFrontCamera() 249 mPackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA_EXTERNAL)); in checkFrontCamera() 286 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) { in testGamepadFeature() 334 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testNfcFeatures() 349 assertTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in testScreenFeatures() 350 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT)); in testScreenFeatures() 404 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_SENSOR_HEART_RATE_ECG)) { in testSensorFeatures() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/ |
D | FeatureUtil.java | 94 return pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch() 102 return pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isWatchOrAutomotive() 103 || pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isWatchOrAutomotive() 111 return pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isAutomotive() 118 return (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS) in supportManagedSecondaryUsers()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CarModeInCallServiceTest.java | 63 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in setUp() 90 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in tearDown() 127 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testSetCarMode() 139 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testRequestAutomotiveProjection() 153 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testRequestAutomotiveProjectionExclusive() 173 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallInCarMode() 196 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallInAutomotiveProjection() 219 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in failingTestStartCallInCarModeAndAutomotiveProjection() 261 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallInCarModeTwoServices() 293 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testStartCallingInCarModeAndProjectionTwoServices() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiFeature.java | 25 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI); in isWifiSupported() 30 return packageManager.hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT); in isP2pSupported() 35 return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in isTelephonySupported()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | BarTestUtils.java | 88 pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in assumeHasColoredBars() 98 getInstrumentation().getContext().getPackageManager().hasSystemFeature( in assumeHasBars() 101 assumeFalse("No bars on watches and TVs", pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in assumeHasBars() 102 || pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in assumeHasBars() 103 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK)); in assumeHasBars() 105 assumeFalse("No bars on PCs", pm.hasSystemFeature(PackageManager.FEATURE_PC)); in assumeHasBars()
|
/cts/tools/cts-preconditions/src/com/android/preconditions/cts/ |
D | PreconditionsTest.java | 39 if (pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK) in testScreenUnlocked() 40 || pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in testScreenUnlocked() 41 || pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) { in testScreenUnlocked()
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | SecurityModelFeatureTest.java | 57 mPackageManager.hasSystemFeature(PackageManager.FEATURE_SECURITY_MODEL_COMPATIBLE); in setUp() 63 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEVISION)); in testTv() 70 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)); in testWatch() 77 assumeTrue(mPackageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)); in testAuto()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | IntentFiltersTestHelper.java | 163 if (pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in addIntentsThatDependOnDeviceFeatures() 164 && pm.hasSystemFeature(PackageManager.FEATURE_CONNECTION_SERVICE)) { in addIntentsThatDependOnDeviceFeatures() 196 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC)) { in addIntentsThatDependOnDeviceFeatures() 202 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in addIntentsThatDependOnDeviceFeatures() 208 if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA)) { in addIntentsThatDependOnDeviceFeatures() 224 if (pm.hasSystemFeature(PackageManager.FEATURE_WIFI)) { in addIntentsThatDependOnDeviceFeatures() 230 if (pm.hasSystemFeature(PackageManager.FEATURE_MICROPHONE)) { in addIntentsThatDependOnDeviceFeatures() 234 if (pm.hasSystemFeature(PackageManager.FEATURE_LOCATION)) { in addIntentsThatDependOnDeviceFeatures() 239 if (pm.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) { in addIntentsThatDependOnDeviceFeatures() 247 if (pm.hasSystemFeature(PackageManager.FEATURE_HOME_SCREEN)) { in addIntentsThatDependOnDeviceFeatures() [all …]
|
D | UserRestrictions.java | 285 return pm.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT); in isRestrictionValid() 287 return (!pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isRestrictionValid() 291 && !pm.hasSystemFeature(PackageManager.FEATURE_WATCH)); in isRestrictionValid() 322 return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in isRestrictionValid() 324 return pm.hasSystemFeature(PackageManager.FEATURE_WIFI); in isRestrictionValid() 327 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid() 329 return pm.hasSystemFeature(PackageManager.FEATURE_NFC) in isRestrictionValid() 330 && pm.hasSystemFeature(PackageManager.FEATURE_NFC_BEAM); in isRestrictionValid() 332 return pm.hasSystemFeature(PackageManager.FEATURE_LOCATION); in isRestrictionValid() 336 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in isRestrictionValid() [all …]
|
/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/telephony/current/src/android/telephony/cts/ |
D | SmsMessageTest.java | 98 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCreateFromPdu() 99 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCreateFromPdu() 182 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testCPHSVoiceMail() 183 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testCPHSVoiceMail() 226 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testGetUserData() 227 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testGetUserData() 246 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetSubmitPdu() 287 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testEmailGateway() 288 || mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_CDMA)) { in testEmailGateway() 320 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testCalculateLength() [all …]
|
D | TelephonyManagerTest.java | 444 return mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in hasCellular() 502 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testDevicePolicyApn() 548 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testListen() 635 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testTelephonyManager() 652 .hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in testTelephonyManager() 773 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetCallForwarding() 839 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSetCallForwarding() 900 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetCallWaitingStatus() 920 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testSetCallWaitingStatus() 957 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)) { in testGetRadioHalVersion() [all …]
|
D | SipProfileTest.java | 41 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_SIP) in testSetCallingUid() 42 || !mPackageManager.hasSystemFeature(PackageManager.FEATURE_SIP_VOIP)) { in testSetCallingUid()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 156 if (pm.hasSystemFeature("android.hardware.type.television") in supportedHardware() 157 || pm.hasSystemFeature("android.hardware.type.watch") in supportedHardware() 158 || pm.hasSystemFeature("android.hardware.type.automotive")) { in supportedHardware() 166 if (pm.hasSystemFeature("android.hardware.type.television") in supportedHardwareForScopedDirectoryAccess() 167 || pm.hasSystemFeature("android.hardware.type.watch") in supportedHardwareForScopedDirectoryAccess() 168 || pm.hasSystemFeature("android.hardware.type.automotive")) { in supportedHardwareForScopedDirectoryAccess() 176 return pm.hasSystemFeature("android.hardware.type.television"); in isTelevision()
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | DisableContextTest.java | 43 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextAndScreenshotOff() 59 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testContextOff() 75 if (!mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS)) { in testScreenshotOff()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | VerifiedBootTest.java | 52 .hasSystemFeature(PackageManager.FEATURE_SECURITY_MODEL_COMPATIBLE)); in setUp() 57 if (pm.hasSystemFeature(PackageManager.FEATURE_RAM_NORMAL)) { in isLowRamExempt() 83 pm.hasSystemFeature(PackageManager.FEATURE_VERIFIED_BOOT)); in testVerifiedBootSupport()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/ |
D | NfcTestActivity.java | 58 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_BEAM)) { in onCreate() 77 if (getPackageManager().hasSystemFeature(FEATURE_NFC_MIFARE)) { in onCreate() 82 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in onCreate() 92 … if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF)) { in onCreate() 102 …if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC_OFF_HOST_CARD_EMULATION_UICC))… in onCreate()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsUtils.java | 56 return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in shouldTestTelephony() 62 boolean hasTelephony = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in shouldTestImsService() 63 boolean hasIms = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_IMS); in shouldTestImsService() 70 boolean hasIms = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY_IMS); in shouldTestImsSingleRegistration() 71 boolean hasSingleReg = pm.hasSystemFeature( in shouldTestImsSingleRegistration()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SettingsPanelTest.java | 74 mHasTouchScreen = packageManager.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN) in setUp() 75 || packageManager.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH); in setUp() 76 mHasBluetooth = packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH); in setUp() 276 assumeTrue(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)); in launchNfcPanel() 281 assumeTrue(mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI)); in launchWifiPanel() 315 return pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isCar() 319 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DisplayUtils.java | 30 return pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in supportOrientationRequest() 31 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in supportOrientationRequest()
|
/cts/tests/tests/settings/src/android/settings/cts/ |
D | WifiSliceTest.java | 68 mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); 166 return pm.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE); in isCar() 171 return pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in isTv() 172 && pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in isTv() 176 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatch()
|