Home
last modified time | relevance | path

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

/frameworks/native/services/inputflinger/
DInputListener.cpp107 uint32_t switchValues, uint32_t switchMask) : in NotifySwitchArgs() argument
109 switchValues(switchValues), switchMask(switchMask) { in NotifySwitchArgs()
114 switchValues(other.switchValues), switchMask(other.switchMask) { in NotifySwitchArgs()
DInputListener.h122 uint32_t switchMask; member
127 uint32_t switchValues, uint32_t switchMask);
DInputDispatcher.h257 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
DInputDispatcher.cpp2570 args->switchValues, args->switchMask); in notifySwitch()
2576 args->switchValues, args->switchMask, policyFlags); in notifySwitch()
/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java122 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument
124 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged()
125 + " mask=" + Integer.toHexString(switchMask)); in notifyWiredAccessoryChanged()
129 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues; in notifyWiredAccessoryChanged()
301 private String switchCodeToString(int switchValues, int switchMask) { in switchCodeToString() argument
303 if ((switchMask & SW_HEADPHONE_INSERT_BIT) != 0 && in switchCodeToString()
307 if ((switchMask & SW_MICROPHONE_INSERT_BIT) != 0 && in switchCodeToString()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1855 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument
1858 + ", mask=" + Integer.toHexString(switchMask)); in notifySwitch()
1861 if ((switchMask & SW_LID_BIT) != 0) { in notifySwitch()
1866 if ((switchMask & SW_CAMERA_LENS_COVER_BIT) != 0) { in notifySwitch()
1871 if (mUseDevInputEventForAudioJack && (switchMask & SW_JACK_BITS) != 0) { in notifySwitch()
1873 switchMask); in notifySwitch()
1876 if ((switchMask & SW_TABLET_MODE_BIT) != 0) { in notifySwitch()
2099 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp228 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
622 uint32_t switchValues, uint32_t switchMask, uint32_t /* policyFlags */) { in notifySwitch() argument
625 when, switchValues, switchMask, policyFlags); in notifySwitch()
631 when, switchValues, switchMask); in notifySwitch()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1569 args.switchMask); in TEST_F()