Home
last modified time | relevance | path

Searched refs:switchValues (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java104 int switchValues = 0; in onSystemReady() local
106 switchValues |= SW_HEADPHONE_INSERT_BIT; in onSystemReady()
109 switchValues |= SW_MICROPHONE_INSERT_BIT; in onSystemReady()
112 switchValues |= SW_LINEOUT_INSERT_BIT; in onSystemReady()
114 notifyWiredAccessoryChanged(0, switchValues, in onSystemReady()
122 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument
124 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged()
129 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues; in notifyWiredAccessoryChanged()
301 private String switchCodeToString(int switchValues, int switchMask) { in switchCodeToString() argument
304 (switchValues & SW_HEADPHONE_INSERT_BIT) != 0) { in switchCodeToString()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp110 uint32_t switchValues, uint32_t switchMask) : in NotifySwitchArgs() argument
112 switchValues(switchValues), switchMask(switchMask) { in NotifySwitchArgs()
117 switchValues(other.switchValues), switchMask(other.switchMask) { in NotifySwitchArgs()
DInputListener.h128 uint32_t switchValues; member
134 uint32_t switchValues, uint32_t switchMask);
DInputDispatcher.h256 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
DInputDispatcher.cpp2617 args->eventTime, args->policyFlags, args->switchValues, args->switchMask); in notifySwitch()
2623 args->switchValues, args->switchMask, policyFlags); in notifySwitch()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1781 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument
1783 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues) in notifySwitch()
1788 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0); in notifySwitch()
1793 final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0); in notifySwitch()
1798 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues, in notifySwitch()
1806 args.arg1 = Boolean.valueOf((switchValues & SW_TABLET_MODE_BIT) != 0); in notifySwitch()
2025 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp241 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
647 uint32_t switchValues, uint32_t switchMask, uint32_t /* policyFlags */) { in notifySwitch() argument
650 when, switchValues, switchMask, policyFlags); in notifySwitch()
657 when, switchValues, switchMask); in notifySwitch()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1700 ASSERT_EQ((1U << SW_LID) | (1U << SW_JACK_PHYSICAL_INSERT), args.switchValues); in TEST_F()