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.java109 int switchValues = 0; in onSystemReady() local
112 switchValues |= SW_HEADPHONE_INSERT_BIT; in onSystemReady()
116 switchValues |= SW_MICROPHONE_INSERT_BIT; in onSystemReady()
119 switchValues |= SW_LINEOUT_INSERT_BIT; in onSystemReady()
121 notifyWiredAccessoryChanged(0, switchValues, in onSystemReady()
138 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument
141 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged()
147 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues; in notifyWiredAccessoryChanged()
321 private String switchCodeToString(int switchValues, int switchMask) { in switchCodeToString() argument
324 (switchValues & SW_HEADPHONE_INSERT_BIT) != 0) { in switchCodeToString()
[all …]
/frameworks/native/services/inputflinger/
DInputListener.cpp172 uint32_t switchValues, uint32_t switchMask) : in NotifySwitchArgs() argument
174 switchValues(switchValues), switchMask(switchMask) { in NotifySwitchArgs()
179 switchValues(other.switchValues), switchMask(other.switchMask) { in NotifySwitchArgs()
186 && switchValues == rhs.switchValues in operator ==()
/frameworks/native/services/inputflinger/include/
DInputListener.h149 uint32_t switchValues; member
155 uint32_t switchValues, uint32_t switchMask);
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherPolicyInterface.h98 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1824 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument
1826 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues) in notifySwitch()
1831 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0); in notifySwitch()
1836 final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0); in notifySwitch()
1841 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues, in notifySwitch()
1849 args.arg1 = Boolean.valueOf((switchValues & SW_TABLET_MODE_BIT) != 0); in notifySwitch()
1855 final boolean micMute = ((switchValues & SW_MUTE_DEVICE_BIT) != 0); in notifySwitch()
2161 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp247 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
668 uint32_t switchValues, uint32_t switchMask, uint32_t /* policyFlags */) { in notifySwitch() argument
671 when, switchValues, switchMask, policyFlags); in notifySwitch()
678 when, switchValues, switchMask); in notifySwitch()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp2808 args->eventTime, args->policyFlags, args->switchValues, args->switchMask); in notifySwitch()
2813 mPolicy->notifySwitch(args->eventTime, args->switchValues, args->switchMask, policyFlags); in notifySwitch()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1942 ASSERT_EQ((1U << SW_LID) | (1U << SW_JACK_PHYSICAL_INSERT), args.switchValues); in TEST_F()