OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:hasSystemFeature
(Results
1 - 25
of
88
) sorted by null
1
2
3
4
/cts/tests/tests/net/src/android/net/wifi/cts/
WifiFeature.java
25
return packageManager.
hasSystemFeature
(PackageManager.FEATURE_WIFI);
30
return packageManager.
hasSystemFeature
(PackageManager.FEATURE_WIFI_DIRECT);
/cts/tests/tests/app/src/android/app/cts/
ApplicationTest.java
47
if(!(pm.
hasSystemFeature
(PackageManager.FEATURE_SCREEN_LANDSCAPE)
48
&& pm.
hasSystemFeature
(PackageManager.FEATURE_SCREEN_PORTRAIT))){
SystemFeaturesTest.java
210
assertTrue(mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_SCREEN_LANDSCAPE)
211
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_SCREEN_PORTRAIT));
293
boolean hasSensorFeature = mPackageManager.
hasSystemFeature
(expectedFeature);
302
String message = "PackageManager#
hasSystemFeature
(" + expectedFeature + ") returns "
354
if (!mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_WIFI)) {
374
assertTrue("PackageManager#
hasSystemFeature
should return true for " + feature,
375
mPackageManager.
hasSystemFeature
(feature));
381
assertFalse("PackageManager#
hasSystemFeature
should NOT return true for " + feature,
382
mPackageManager.
hasSystemFeature
(feature));
/packages/apps/Browser/src/com/android/browser/
BrowserWebViewFactory.java
60
pm.
hasSystemFeature
(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)
61
|| pm.
hasSystemFeature
(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT);
/cts/tests/tests/telephony/src/android/telephony/cts/
SmsMessageTest.java
76
if (!mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)
77
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY_CDMA)) {
155
if (!mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)
156
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY_CDMA)) {
197
if (!mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)
198
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY_CDMA)) {
215
if (!mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
259
if (!mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)
260
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY_CDMA)) {
TelephonyManagerTest.java
321
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
333
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DeviceUtils.java
55
sIsTv = manager.
hasSystemFeature
(PackageManager.FEATURE_TELEVISION);
/cts/tests/tests/content/src/android/content/cts/
AvailableIntentsTest.java
108
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
120
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
132
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
144
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA)
145
|| packageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA_FRONT)) {
178
if (packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY)) {
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
CameraManagerTest.java
84
mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA_ANY));
97
mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA_FRONT));
100
mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA));
112
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA_ANY));
115
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA)
116
|| mPackageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA_FRONT));
/frameworks/base/core/java/com/android/internal/view/
RotationPolicy.java
53
return pm.
hasSystemFeature
(PackageManager.FEATURE_SENSOR_ACCELEROMETER)
54
&& pm.
hasSystemFeature
(PackageManager.FEATURE_SCREEN_PORTRAIT)
55
&& pm.
hasSystemFeature
(PackageManager.FEATURE_SCREEN_LANDSCAPE);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/
NfcTestActivity.java
64
if (getPackageManager().
hasSystemFeature
(FEATURE_NFC_MIFARE)) {
69
if (getPackageManager().
hasSystemFeature
(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) {
/cts/tests/tests/graphics2/src/android/graphics2/cts/
TextureViewCameraActivity.java
59
boolean hasRearCamera = packageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA);
61
packageManager.
hasSystemFeature
(PackageManager.FEATURE_CAMERA_FRONT);
/external/replicaisland/src/com/replica/replicaisland/
MultiTouchFilter.java
37
mSupportsMultitouch = packageManager.
hasSystemFeature
("android.hardware.touchscreen.multitouch");
/external/robolectric/src/test/java/com/xtremelabs/robolectric/res/
RobolectricPackageManagerTest.java
137
public void
hasSystemFeature
() throws Exception {
139
assertThat(rpm.
hasSystemFeature
(PackageManager.FEATURE_CAMERA), equalTo(false));
143
assertThat(rpm.
hasSystemFeature
(PackageManager.FEATURE_CAMERA), equalTo(true));
147
assertThat(rpm.
hasSystemFeature
(PackageManager.FEATURE_CAMERA), equalTo(false));
/sdk/apps/DeviceConfig/src/com/example/android/deviceconfig/
ConfigGenerator.java
292
.
hasSystemFeature
(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND)) {
295
.
hasSystemFeature
(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT)) {
297
} else if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)) {
330
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_WIFI)) {
333
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_BLUETOOTH)) {
336
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_NFC)) {
344
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_SENSOR_ACCELEROMETER)) {
347
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_SENSOR_BAROMETER)) {
350
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_SENSOR_COMPASS)) {
353
if (packageMgr.
hasSystemFeature
(PackageManager.FEATURE_LOCATION_GPS))
[
all
...]
/cts/tests/tests/hardware/src/android/hardware/cts/
SensorTest.java
70
boolean hasAccelerometer = getContext().getPackageManager().
hasSystemFeature
(
81
boolean hasStepCounter = getContext().getPackageManager().
hasSystemFeature
(
92
boolean hasStepDetector = getContext().getPackageManager().
hasSystemFeature
(
103
boolean hasCompass = getContext().getPackageManager().
hasSystemFeature
(
/cts/tests/tests/media/src/android/media/cts/
AudioRecord_BufferSizeTest.java
97
return getContext().getPackageManager().
hasSystemFeature
(
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
HceEmulatorTestActivity.java
40
if (getPackageManager().
hasSystemFeature
(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) {
HceReaderTestActivity.java
39
if (getPackageManager().
hasSystemFeature
(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION)) {
/cts/tests/tests/admin/src/android/admin/cts/
DeviceAdminReceiverTest.java
46
mContext.getPackageManager().
hasSystemFeature
(PackageManager.FEATURE_DEVICE_ADMIN);
DeviceAdminActivationTest.java
76
mDeviceAdmin = getInstrumentation().getContext().getPackageManager().
hasSystemFeature
(
DeviceAdminInfoTest.java
42
mContext.getPackageManager().
hasSystemFeature
(PackageManager.FEATURE_DEVICE_ADMIN);
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/
ConsumerIrTest.java
39
mHasConsumerIr = getContext().getPackageManager().
hasSystemFeature
(
/frameworks/base/services/java/com/android/server/
ConsumerIrService.java
69
if (mContext.getPackageManager().
hasSystemFeature
(PackageManager.FEATURE_CONSUMER_IR)) {
/cts/tests/tests/net/src/android/net/http/cts/
ApacheHttpClientTest.java
72
mHasTelephony = packageManager.
hasSystemFeature
(PackageManager.FEATURE_TELEPHONY);
73
mHasWifi = packageManager.
hasSystemFeature
(PackageManager.FEATURE_WIFI);
Completed in 585 milliseconds
1
2
3
4