/aosp12/frameworks/base/services/core/java/com/android/server/ |
H A D | WiredAccessoryManager.java | 138 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument 141 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged() 142 + " mask=" + Integer.toHexString(switchMask)); in notifyWiredAccessoryChanged() 147 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues; in notifyWiredAccessoryChanged() 321 private String switchCodeToString(int switchValues, int switchMask) { in switchCodeToString() argument 323 if ((switchMask & SW_HEADPHONE_INSERT_BIT) != 0 && in switchCodeToString() 327 if ((switchMask & SW_MICROPHONE_INSERT_BIT) != 0 && in switchCodeToString()
|
/aosp12/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 198 uint32_t switchValues, uint32_t switchMask) in NotifySwitchArgs() argument 202 switchMask(switchMask) {} in NotifySwitchArgs() 208 switchMask(other.switchMask) {} in NotifySwitchArgs() 212 switchValues == rhs.switchValues && switchMask == rhs.switchMask; in operator ==()
|
/aosp12/frameworks/native/services/inputflinger/include/ |
H A D | InputListener.h | 177 uint32_t switchMask; member 182 uint32_t switchMask);
|
/aosp12/frameworks/native/services/inputflinger/dispatcher/include/ |
H A D | InputDispatcherPolicyInterface.h | 133 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
|
/aosp12/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 2670 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument 2673 + ", mask=" + Integer.toHexString(switchMask)); in notifySwitch() 2676 if ((switchMask & SW_LID_BIT) != 0) { in notifySwitch() 2688 if ((switchMask & SW_CAMERA_LENS_COVER_BIT) != 0) { in notifySwitch() 2693 if (mUseDevInputEventForAudioJack && (switchMask & SW_JACK_BITS) != 0) { in notifySwitch() 2695 switchMask); in notifySwitch() 2698 if ((switchMask & SW_TABLET_MODE_BIT) != 0) { in notifySwitch() 2707 if ((switchMask & SW_MUTE_DEVICE_BIT) != 0) { in notifySwitch() 3198 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 309 void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, 766 uint32_t switchValues, uint32_t switchMask, uint32_t /* policyFlags */) { in notifySwitch() argument 769 when, switchValues, switchMask, policyFlags); in notifySwitch() 776 when, switchValues, switchMask); in notifySwitch()
|
/aosp12/frameworks/native/services/inputflinger/tests/ |
H A D | InputDispatcher_test.cpp | 117 EXPECT_EQ(args.switchMask, mLastNotifySwitch->switchMask); in assertNotifySwitchWasCalled() 389 void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, in notifySwitch() argument 395 mLastNotifySwitch = NotifySwitchArgs(1 /*id*/, when, policyFlags, switchValues, switchMask); in notifySwitch()
|
H A D | InputReader_test.cpp | 2857 args.switchMask); in TEST_F()
|
/aosp12/frameworks/native/services/inputflinger/dispatcher/ |
H A D | InputDispatcher.cpp | 3996 args->eventTime, args->policyFlags, args->switchValues, args->switchMask); in notifySwitch() 4001 mPolicy->notifySwitch(args->eventTime, args->switchValues, args->switchMask, policyFlags); in notifySwitch()
|