Home
last modified time | relevance | path

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

/frameworks/base/services/java/com/android/server/
DWiredAccessoryManager.java111 int switchValues = 0; in bootCompleted() local
113 switchValues |= SW_HEADPHONE_INSERT_BIT; in bootCompleted()
116 switchValues |= SW_MICROPHONE_INSERT_BIT; in bootCompleted()
118 notifyWiredAccessoryChanged(0, switchValues, in bootCompleted()
126 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument
128 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged()
133 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues; in notifyWiredAccessoryChanged()
272 private String switchCodeToString(int switchValues, int switchMask) { in switchCodeToString() argument
275 (switchValues & SW_HEADPHONE_INSERT_BIT) != 0) { in switchCodeToString()
279 (switchValues & SW_MICROPHONE_INSERT_BIT) != 0) { in switchCodeToString()
/frameworks/base/services/input/
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.h254 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
DInputDispatcher.cpp2511 args->switchValues, args->switchMask); in notifySwitch()
2517 args->switchValues, args->switchMask, policyFlags); in notifySwitch()
/frameworks/base/services/java/com/android/server/input/
DInputManagerService.java1272 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument
1274 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues) in notifySwitch()
1279 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0); in notifySwitch()
1284 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues, in notifySwitch()
1501 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
/frameworks/base/services/input/tests/
DInputDispatcher_test.cpp90 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) { in notifySwitch() argument
DInputReader_test.cpp1513 ASSERT_EQ((1 << SW_LID) | (1 << SW_JACK_PHYSICAL_INSERT), args.switchValues); in TEST_F()
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp191 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
533 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) { in notifySwitch() argument
536 when, switchValues, switchMask, policyFlags); in notifySwitch()
542 when, switchValues, switchMask); in notifySwitch()