Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java107 int switchValues = 0; in onSystemReady() local
109 switchValues |= SW_HEADPHONE_INSERT_BIT; in onSystemReady()
112 switchValues |= SW_MICROPHONE_INSERT_BIT; in onSystemReady()
115 switchValues |= SW_LINEOUT_INSERT_BIT; in onSystemReady()
117 notifyWiredAccessoryChanged(0, switchValues, in onSystemReady()
125 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument
127 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged()
132 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.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.h119 uint32_t switchValues; member
125 uint32_t switchValues, uint32_t switchMask);
DInputDispatcher.h251 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
DInputDispatcher.cpp2514 args->switchValues, args->switchMask); in notifySwitch()
2520 args->switchValues, args->switchMask, policyFlags); in notifySwitch()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java1402 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument
1404 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues) in notifySwitch()
1409 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0); in notifySwitch()
1414 final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0); in notifySwitch()
1419 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues, in notifySwitch()
1637 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp89 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) { in notifySwitch() argument
DInputReader_test.cpp1523 ASSERT_EQ((1 << SW_LID) | (1 << SW_JACK_PHYSICAL_INSERT), args.switchValues); in TEST_F()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp209 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
551 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) { in notifySwitch() argument
554 when, switchValues, switchMask, policyFlags); in notifySwitch()
560 when, switchValues, switchMask); in notifySwitch()