Home
last modified time | relevance | path

Searched refs:FEATURE_WATCH (Results 1 – 25 of 55) sorted by relevance

123

/cts/tests/framework/base/windowmanager/testsdk28/src/android/server/wm/
DAspectRatioSdk28Tests.java19 import static android.content.pm.PackageManager.FEATURE_WATCH;
59 .hasSystemFeature(FEATURE_WATCH); in testMaxAspectRatioPreQActivity()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DHostAtomTests.java339 if (!hasFeature(FEATURE_WATCH, false)) return; in testRemainingBatteryCapacity()
365 if (!hasFeature(FEATURE_WATCH, false)) return; in testFullBatteryCapacity()
390 if (!hasFeature(FEATURE_WATCH, false)) return; in testBatteryVoltage()
415 if (!hasFeature(FEATURE_WATCH, false)) return; in testBatteryLevel()
441 if (!hasFeature(FEATURE_WATCH, false)) return; in testBatteryCycleCount()
498 if (!hasFeature(FEATURE_WATCH, false)) return; in testWifiActivityInfo()
630 if (!hasFeature(FEATURE_WATCH, false)) return; in testConnectivityStateChange()
DProcStateAtomTests.java44 private static final String FEATURE_WATCH = "android.hardware.type.watch"; field in ProcStateAtomTests
185 if (!hasFeature(FEATURE_WATCH, false)) return; in testTopSleeping()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUserRestrictions.java256 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
263 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
270 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
272 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isRestrictionValid()
DManagedUserPositiveTestActivity.java197 return !getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isStatusBarEnabled()
/cts/tools/cts-preconditions/src/com/android/preconditions/cts/
DPreconditionsTest.java40 || pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in testScreenUnlocked()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java37 import static android.content.pm.PackageManager.FEATURE_WATCH;
995 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendPackage_withoutShellPermission()
1027 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendPackage()
1073 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testSuspendedPackageSendsNotification()
1119 if ((mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) in testCanBubble_ranking()
1170 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testShowBadging_ranking()
1226 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testGetSuppressedVisualEffectsOff_ranking()
1256 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testGetSuppressedVisualEffects_ranking()
1311 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testKeyChannelGroupOverrideImportanceExplanation_ranking()
2148 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testShouldHideSilentStatusIcons()
[all …]
DActivityKeyboardShortcutsTest.java98 return !mActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) && in keyboardShortcutsSupported()
DSystemFeaturesTest.java334 if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testNfcFeatures()
581 !mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH) && in testUsbAccessory()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/
DOverlayingActivity.java43 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onCreate()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DBatteryConstraintTest.java48 private String FEATURE_WATCH = "android.hardware.type.watch"; field in BatteryConstraintTest
298 if(getInstrumentation().getContext().getPackageManager().hasSystemFeature(FEATURE_WATCH) && in testBatteryNotLowConstraintFails_withoutPower()
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/
DLegacyNotificationManager20Test.java19 import static android.content.pm.PackageManager.FEATURE_WATCH;
95 if (mActivityManager.isLowRamDevice() && !mPackageManager.hasSystemFeature(FEATURE_WATCH)) { in testNotificationListener_cancelNotifications()
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java370 if (!packageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testUsageAccessSettings()
391 if (packageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testLocationScanningSettings()
472 && !pm.hasSystemFeature(pm.FEATURE_WATCH) in isHandheld()
/cts/tests/tests/view/src/android/view/cts/
DLongPressBackTest.java59 if (mActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testAppIsNotDismissed()
DSearchEventTest.java79 if (mActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testBasics()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DBarTestUtils.java69 assumeFalse("No bars on watches and TVs", pm.hasSystemFeature(PackageManager.FEATURE_WATCH) in assumeHasColoredBars()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBatteryUtils.java132 return !pm.hasSystemFeature(PackageManager.FEATURE_WATCH); in isBatterySaverSupported()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBatteryUtils.java142 return !(pm.hasSystemFeature(PackageManager.FEATURE_WATCH) || in isBatterySaverSupported()
/cts/tests/tests/theme/src/android/theme/cts/
DDeviceDefaultTest.java128 if (activity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in assertGetActionBar()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DPassFailButtons.java126 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onResume()
136 if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in onPause()
/cts/tests/tests/permission/src/android/permission/cts/
DPermissionGroupChange.java96 if (mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) { in scrollToBottomIfWatch()
/cts/tests/tests/media/src/android/media/cts/
DMediaCodecPlayerTestBase.java80 return mContext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH); in isWatchDevice()
DMediaMetadataRetrieverTest.java427 && mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testGetFrameAt()
455 && mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testGetFrameAtEditList()
497 && mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH)) { in testGetScaledFrameAtTime()
/cts/tests/tests/hardware/src/android/hardware/cts/
DLowRamDeviceTest.java98 Boolean watch = mPackageManager.hasSystemFeature(PackageManager.FEATURE_WATCH); in testMinimumMemory()
/cts/tests/tests/net/src/android/net/cts/
DDnsTest.java95 if (getContext().getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH) in testDnsWorks()

123