Home
last modified time | relevance | path

Searched refs:hasSystemFeature (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/
DPipUI.java36 mSupportPip = pm.hasSystemFeature(FEATURE_PICTURE_IN_PICTURE) in start()
37 && pm.hasSystemFeature(FEATURE_LEANBACK); in start()
/frameworks/base/services/java/com/android/server/
DSystemServer.java634 } else if (!context.getPackageManager().hasSystemFeature in startOtherServices()
821 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_NAN)) { in startOtherServices()
835 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) || in startOtherServices()
836 mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) { in startOtherServices()
945 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in startOtherServices()
961 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_MIDI)) { in startOtherServices()
966 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) in startOtherServices()
967 || mPackageManager.hasSystemFeature( in startOtherServices()
1006 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) { in startOtherServices()
1010 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS) in startOtherServices()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java59 return pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_ACCELEROMETER) in isRotationSupported()
60 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_PORTRAIT) in isRotationSupported()
61 && pm.hasSystemFeature(PackageManager.FEATURE_SCREEN_LANDSCAPE) in isRotationSupported()
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/
Dhardware.jd178 …末でハードウェア機能が使用できない場合を判別できます。{@link android.content.pm.PackageManager#hasSystemFeature(String)} メソッド…
185 if (getPackageManager().hasSystemFeature("android.hardware.telephony")) {
190 if (getPackageManager().hasSystemFeature("android.hardware.touchscreen")) {
223 if (getPackageManager().hasSystemFeature("android.hardware.camera")) {
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DNfcCommand.java61 if (pm.hasSystemFeature(PackageManager.FEATURE_NFC, 0)) { in run()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java96 when(mContext.packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp()
179 when(mContext.packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in testHasNoFeature()
1942 when(mContext.packageManager.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) in testIsProvisioningAllowed_DeviceAdminFeatureOff()
1944 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_DeviceAdminFeatureOff()
1962 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_ManagedProfileFeatureOff()
1988 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_nonSplitUser_firstBoot_primaryUser()
2007 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_nonSplitUser_afterDeviceSetup_primaryUser()
2026 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_splitUser_firstBoot_systemUser()
2046 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_splitUser_afterDeviceSetup_systemUser()
2066 when(mContext.ipackageManager.hasSystemFeature(PackageManager.FEATURE_MANAGED_USERS, 0)) in testIsProvisioningAllowed_splitUser_firstBoot_primaryUser()
[all …]
DDevicePolicyManagerServiceMigrationTest.java53 when(mContext.packageManager.hasSystemFeature(eq(PackageManager.FEATURE_DEVICE_ADMIN))) in setUp()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
DUiModeManagerService.java191 mTelevision = pm.hasSystemFeature(PackageManager.FEATURE_TELEVISION) in onStart()
192 || pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK); in onStart()
193 mWatch = pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in onStart()
/frameworks/opt/net/voip/src/java/android/net/sip/
DSipManager.java148 return context.getPackageManager().hasSystemFeature( in isApiSupported()
156 return context.getPackageManager().hasSystemFeature( in isVoipSupported()
/frameworks/base/docs/html/training/camera/
Dvideobasics.jd69 android.content.pm.PackageManager#hasSystemFeature hasSystemFeature(PackageManager.FEATURE_CAMERA)}.
/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java127 return !packageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE) && in shouldShowNotification()
/frameworks/base/docs/html/training/wearables/apps/
Dindex.jd44 {@link android.content.pm.PackageManager#hasSystemFeature hasSystemFeature()}
/frameworks/base/core/java/android/app/
DLauncherActivity.java344 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate()
362 if (!mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate()
/frameworks/base/docs/html/training/beam-files/
Dsend-files.jd148 supports NFC by calling {@link android.content.pm.PackageManager#hasSystemFeature
149 PackageManager.hasSystemFeature()} with the argument
167 if (!PackageManager.hasSystemFeature(PackageManager.FEATURE_NFC)) {
/frameworks/base/docs/html/training/wearables/
Dwearable-sounds.jd41 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_AUDIO_OUTPUT)) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/nan/
DWifiNanServiceImpl.java57 .hasSystemFeature(PackageManager.FEATURE_WIFI_NAN); in WifiNanServiceImpl()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java325 public boolean hasSystemFeature(String name) { in hasSystemFeature() method in BridgePackageManager
330 public boolean hasSystemFeature(String name, int version) { in hasSystemFeature() method in BridgePackageManager
/frameworks/base/docs/html/training/tv/start/
Dhardware.jd254 your app is running. Use the {@link android.content.pm.PackageManager#hasSystemFeature(String)}
264 if (getPackageManager().hasSystemFeature("android.hardware.telephony")) {
269 if (getPackageManager().hasSystemFeature("android.hardware.touchscreen")) {
314 if (getPackageManager().hasSystemFeature("android.hardware.camera")) {
/frameworks/base/core/java/android/nfc/cardemulation/
DNfcFCardEmulation.java80 if (!pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF, 0)) { in getInstance()
DCardEmulation.java159 if (!pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, 0)) { in getInstance()
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java841 public boolean hasSystemFeature(String name) { in hasSystemFeature() method in MockPackageManager
846 public boolean hasSystemFeature(String name, int version) { in hasSystemFeature() method in MockPackageManager
/frameworks/base/docs/html/training/articles/
Dwear-location-detection.jd221 {@link android.content.pm.PackageManager#hasSystemFeature hasSystemFeature()}
241 return getPackageManager().hasSystemFeature(PackageManager.FEATURE_LOCATION_GPS);
/frameworks/base/core/java/android/hardware/location/
DContextHubService.java96 if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_VR_MODE)) { in ContextHubService()
/frameworks/base/core/tests/coretests/src/android/print/
DBasePrintTest.java361 .hasSystemFeature(PackageManager.FEATURE_PRINTING); in supportsPrinting()

123