Home
last modified time | relevance | path

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

12

/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/services/java/com/android/server/
DSystemServer.java501 } else if (!context.getPackageManager().hasSystemFeature in startOtherServices()
680 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET)) { in startOtherServices()
818 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) in startOtherServices()
819 || mPackageManager.hasSystemFeature( in startOtherServices()
842 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) { in startOtherServices()
846 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS)) { in startOtherServices()
850 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) { in startOtherServices()
917 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_PRINTING)) { in startOtherServices()
925 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_HDMI_CEC)) { in startOtherServices()
929 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LIVE_TV)) { in startOtherServices()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java151 boolean isleanback = !mPackageManager.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN) in launchActivity()
152 && !mPackageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY); in launchActivity()
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/
Dhardware.jd174 …末でハードウェア機能が使用できない場合を判別できます。{@link android.content.pm.PackageManager#hasSystemFeature(String)} メソッド…
181 if (getPackageManager().hasSystemFeature("android.hardware.telephony")) {
186 if (getPackageManager().hasSystemFeature("android.hardware.touchscreen")) {
219 if (getPackageManager().hasSystemFeature("android.hardware.camera")) {
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java49 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONSUMER_IR)) { in ConsumerIrService()
DUiModeManagerService.java177 mTelevision = context.getPackageManager().hasSystemFeature( in onStart()
179 context.getPackageManager().hasSystemFeature( in onStart()
181 mWatch = context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in onStart()
/frameworks/base/docs/html/training/wearables/apps/
Dindex.jd48 {@link android.content.pm.PackageManager#hasSystemFeature hasSystemFeature()}
/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)}.
Dphotobasics.jd75 android.content.pm.PackageManager#hasSystemFeature hasSystemFeature(PackageManager.FEATURE_CAMERA)}.
/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()
DApplicationPackageManager.java381 public boolean hasSystemFeature(String name) { in hasSystemFeature() method in ApplicationPackageManager
383 return mPM.hasSystemFeature(name); in hasSystemFeature()
/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/tv/start/
Dhardware.jd256 your app is running. Use the {@link android.content.pm.PackageManager#hasSystemFeature(String)}
266 if (getPackageManager().hasSystemFeature("android.hardware.telephony")) {
271 if (getPackageManager().hasSystemFeature("android.hardware.touchscreen")) {
316 if (getPackageManager().hasSystemFeature("android.hardware.camera")) {
/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/services/usb/java/com/android/server/usb/
DUsbService.java99 if (pm.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) { in UsbService()
/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java159 if (!pm.hasSystemFeature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) { in getInstance()
/frameworks/base/docs/html/guide/practices/
Dcompatibility.jd149 {@link android.content.pm.PackageManager#hasSystemFeature hasSystemFeature()} like this:</p>
153 if (!pm.hasSystemFeature(PackageManager.FEATURE_SENSOR_COMPASS)) {
/frameworks/base/core/java/android/content/pm/
DIPackageManager.aidl385 boolean hasSystemFeature(String name); in hasSystemFeature() method
DPackageManager.java2364 public abstract boolean hasSystemFeature(String name); in hasSystemFeature() method in PackageManager
/frameworks/base/docs/html/guide/topics/connectivity/
Dbluetooth-le.jd176 {@link android.content.pm.PackageManager#hasSystemFeature PackageManager.hasSystemFeature()}:
180 if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {
/frameworks/base/core/java/android/nfc/
DNfcAdapter.java416 return pm.hasSystemFeature(PackageManager.FEATURE_NFC); in hasNfcFeature()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBottomAreaView.java249 return pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY) in isPhoneVisible()
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java634 public boolean hasSystemFeature(String name) { in hasSystemFeature() method in MockPackageManager
/frameworks/base/docs/html/about/versions/
Dandroid-2.3.3.jd113 <code>context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)</code>

12