Home
last modified time | relevance | path

Searched refs:switchMask (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DWiredAccessoryManager.java138 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()
/frameworks/native/services/inputflinger/
DNotifyArgs.cpp151 uint32_t switchValues, uint32_t switchMask) in NotifySwitchArgs() argument
156 switchMask(switchMask) {} in NotifySwitchArgs()
/frameworks/native/services/inputflinger/include/
DNotifyArgs.h174 uint32_t switchMask; member
179 uint32_t switchMask);
/frameworks/native/services/inputflinger/tests/
DFakeInputDispatcherPolicy.cpp71 EXPECT_EQ(args.switchMask, mLastNotifySwitch->switchMask); in assertNotifySwitchWasCalled()
445 uint32_t switchMask, uint32_t policyFlags) { in notifySwitch() argument
450 NotifySwitchArgs(InputEvent::nextId(), when, policyFlags, switchValues, switchMask); in notifySwitch()
DFakeInputDispatcherPolicy.h198 void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
DInputReader_test.cpp3098 args.switchMask); in TEST_F()
/frameworks/native/services/inputflinger/dispatcher/include/
DInputDispatcherPolicyInterface.h124 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java2235 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument
2238 + ", mask=" + Integer.toHexString(switchMask)); in notifySwitch()
2241 if ((switchMask & SW_LID_BIT) != 0) { in notifySwitch()
2253 if ((switchMask & SW_CAMERA_LENS_COVER_BIT) != 0) { in notifySwitch()
2260 if (mUseDevInputEventForAudioJack && (switchMask & SW_JACK_BITS) != 0) { in notifySwitch()
2262 switchMask); in notifySwitch()
2265 if ((switchMask & SW_TABLET_MODE_BIT) != 0) { in notifySwitch()
2274 if ((switchMask & SW_MUTE_DEVICE_BIT) != 0) { in notifySwitch()
2832 void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp332 void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
924 uint32_t switchValues, uint32_t switchMask, uint32_t /* policyFlags */) { in notifySwitch() argument
927 when, switchValues, switchMask, policyFlags); in notifySwitch()
934 when, switchValues, switchMask); in notifySwitch()
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp4725 args.eventTime, args.policyFlags, args.switchValues, args.switchMask); in notifySwitch()
4730 mPolicy.notifySwitch(args.eventTime, args.switchValues, args.switchMask, policyFlags); in notifySwitch()