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

/frameworks/base/services/core/java/com/android/server/
H A DWiredAccessoryManager.java107 int switchValues = 0;
109 switchValues |= SW_HEADPHONE_INSERT_BIT;
112 switchValues |= SW_MICROPHONE_INSERT_BIT;
115 switchValues |= SW_LINEOUT_INSERT_BIT;
117 notifyWiredAccessoryChanged(0, switchValues,
125 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { argument
127 + " bits=" + switchCodeToString(switchValues, switchMask)
132 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues;
301 private String switchCodeToString(int switchValues, int switchMask) { argument
304 (switchValues
[all...]
/frameworks/native/services/inputflinger/
H A DInputListener.cpp107 uint32_t switchValues, uint32_t switchMask) :
109 switchValues(switchValues), switchMask(switchMask) {
114 switchValues(other.switchValues), switchMask(other.switchMask) {
106 NotifySwitchArgs(nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues, uint32_t switchMask) argument
H A DInputListener.h119 uint32_t switchValues; member in struct:android::NotifySwitchArgs
125 uint32_t switchValues, uint32_t switchMask);
H A DInputDispatcher.h251 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) = 0;
H A DInputDispatcher.cpp2512 ALOGD("notifySwitch - eventTime=%lld, policyFlags=0x%x, switchValues=0x%08x, switchMask=0x%08x",
2514 args->switchValues, args->switchMask);
2520 args->switchValues, args->switchMask, policyFlags);
/frameworks/native/services/inputflinger/tests/
H A DInputDispatcher_test.cpp89 uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) {
88 notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) argument
H A DInputReader_test.cpp1523 ASSERT_EQ((1 << SW_LID) | (1 << SW_JACK_PHYSICAL_INSERT), args.switchValues);
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java1402 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { argument
1404 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues)
1409 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0);
1414 final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0);
1419 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues,
1637 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); argument
/frameworks/base/services/core/jni/
H A 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) {
553 ALOGD("notifySwitch - when=%lld, switchValues=0x%08x, switchMask=0x%08x, policyFlags=0x%x",
554 when, switchValues, switchMask, policyFlags);
560 when, switchValues, switchMask);
550 notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, uint32_t policyFlags) argument

Completed in 8377 milliseconds