Home
last modified time | relevance | path

Searched refs:isOn (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/preference/
DRestrictedSwitchPreferenceTest.kt24 import androidx.compose.ui.test.isOn in <lambda>()
66 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
87 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
132 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
155 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
DRestrictedTwoTargetSwitchPreferenceTest.kt24 import androidx.compose.ui.test.isOn in <lambda>()
67 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
88 composeTestRule.onNode(isOn()).assertIsDisplayed().assertIsEnabled() in <lambda>()
133 composeTestRule.onNode(isOn()).assertIsDisplayed().assertIsEnabled() in <lambda>()
167 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
DRestrictedMainSwitchPreferenceTest.kt24 import androidx.compose.ui.test.isOn in <lambda>()
64 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
85 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
130 composeTestRule.onNode(isOn()).assertIsDisplayed() in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/stickykeys/ui/viewmodel/
DStickyKeysIndicatorViewModelTest.kt249 private fun isOn(key: ModifierKey) = keys.any { it.key == key && !it.value } in <lambda>() method
253 override fun isAltGrModifierOn() = isOn(ALT_GR)
255 override fun isAltModifierOn() = isOn(ALT)
257 override fun isCtrlModifierOn() = isOn(CTRL)
259 override fun isMetaModifierOn() = isOn(META)
261 override fun isShiftModifierOn() = isOn(SHIFT)
/frameworks/base/core/java/android/hardware/display/
DVirtualDisplay.java119 public void setDisplayState(boolean isOn) { in setDisplayState() argument
121 mGlobal.setVirtualDisplayState(mToken, isOn); in setDisplayState()
DIDisplayManager.aidl118 void setVirtualDisplayState(in IVirtualDisplayCallback token, boolean isOn); in setVirtualDisplayState() argument
DDisplayManagerGlobal.java807 void setVirtualDisplayState(IVirtualDisplayCallback token, boolean isOn) { in setVirtualDisplayState() argument
809 mDm.setVirtualDisplayState(token, isOn); in setVirtualDisplayState()
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldDurationLogger.java76 if (!isOn()) { in setDeviceFolded()
114 private boolean isOn() { in isOn() method in DisplayFoldDurationLogger
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DCommonAssertions.kt103 .filter { it.isOn } in LegacyFlickerTest()
112 .filter { it.isOn } in LegacyFlickerTest()
117 .filter { it.isOn } in LegacyFlickerTest()
/frameworks/base/tests/FlickerTests/ActivityEmbedding/src/com/android/server/wm/flicker/activityembedding/open/
DOpenThirdActivityOverSplitTest.kt84 this.entry.displays.firstOrNull { it.isOn && !it.isVirtual } in mainActivityLayersAlwaysVisible()
95 this.entry.displays.firstOrNull { it.isOn && !it.isVirtual } in mainActivityLayersAlwaysVisible()
/frameworks/native/services/inputflinger/
DNotifyArgs.cpp177 bool isOn) in NotifyVibratorStateArgs() argument
178 : id(id), eventTime(eventTime), deviceId(deviceId), isOn(isOn) {} in NotifyVibratorStateArgs()
DVibrationElement.cpp70 bool VibrationElement::isOn() const { in isOn() function in android::VibrationElement
/frameworks/native/services/inputflinger/include/
DVibrationElement.h51 bool isOn() const;
DNotifyArgs.h226 bool isOn; member
230 NotifyVibratorStateArgs(int32_t id, nsecs_t eventTIme, int32_t deviceId, bool isOn);
/frameworks/base/services/core/java/com/android/server/display/
DVirtualDisplayAdapter.java209 void setVirtualDisplayStateLocked(IBinder appToken, boolean isOn) { in setVirtualDisplayStateLocked() argument
212 device.setDisplayState(isOn); in setVirtualDisplayStateLocked()
435 void setDisplayState(boolean isOn) { in setDisplayState() argument
436 if (mIsDisplayOn != isOn) { in setDisplayState()
437 mIsDisplayOn = isOn; in setDisplayState()
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherPolicyInterface.h77 virtual void notifyVibratorState(int32_t deviceId, bool isOn) = 0;
/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.cpp113 if (element.isOn()) { in nextStep()
/frameworks/layoutlib/bridge/src/android/hardware/display/
DDisplayManagerGlobal.java136 void setVirtualDisplayState(IVirtualDisplayCallback token, boolean isOn) {} in setVirtualDisplayState() argument
/frameworks/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/
DBookStyleDeviceStatePolicyTest.java710 private void setScreenOn(boolean isOn) { in setScreenOn() argument
711 int state = isOn ? STATE_ON : STATE_OFF; in setScreenOn()
DFoldableDeviceStateProviderTest.java608 private void setScreenOn(boolean isOn) { in setScreenOn() argument
610 int state = isOn ? STATE_ON : STATE_OFF; in setScreenOn()
/frameworks/native/services/inputflinger/tests/
DFakeInputDispatcherPolicy.h190 void notifyVibratorState(int32_t deviceId, bool isOn) override;
DFakeInputDispatcherPolicy.cpp389 void FakeInputDispatcherPolicy::notifyVibratorState(int32_t deviceId, bool isOn) {} in notifyVibratorState() argument
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java437 if (!linger.isOn()) { in getOption()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java266 private void setSystemState(int flags, boolean isOn) { in setSystemState() argument
269 if (isOn) { in setSystemState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsDialogLite.java1911 private boolean isOn() {
1921 return isOn() ? mEnabledStatusMessageResId : mDisabledStatusMessageResId;
1925 return isOn() ? mEnabledIconResId : mDisabledIconResid;

12