Searched refs:switchValues (Results 1 – 3 of 3) sorted by relevance
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | WiredAccessoryManager.java | 109 int switchValues = 0; in onSystemReady() local 112 switchValues |= SW_HEADPHONE_INSERT_BIT; in onSystemReady() 116 switchValues |= SW_MICROPHONE_INSERT_BIT; in onSystemReady() 119 switchValues |= SW_LINEOUT_INSERT_BIT; in onSystemReady() 121 notifyWiredAccessoryChanged(0, switchValues, in onSystemReady() 138 public void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask) { in notifyWiredAccessoryChanged() argument 141 + " bits=" + switchCodeToString(switchValues, switchMask) in notifyWiredAccessoryChanged() 147 mSwitchValues = (mSwitchValues & ~switchMask) | switchValues; in notifyWiredAccessoryChanged() 321 private String switchCodeToString(int switchValues, int switchMask) { in switchCodeToString() argument 324 (switchValues & SW_HEADPHONE_INSERT_BIT) != 0) { in switchCodeToString() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputManagerService.java | 2325 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument 2327 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues) in notifySwitch() 2332 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0); in notifySwitch() 2344 final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0); in notifySwitch() 2351 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues, in notifySwitch() 2359 args.arg1 = (switchValues & SW_TABLET_MODE_BIT) != 0; in notifySwitch() 2365 final boolean micMute = ((switchValues & SW_MUTE_DEVICE_BIT) != 0); in notifySwitch() 2961 void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
|
/aosp14/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputManagerService.cpp | 330 void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask, 834 uint32_t switchValues, uint32_t switchMask, uint32_t /* policyFlags */) { in notifySwitch() argument 837 when, switchValues, switchMask, policyFlags); in notifySwitch() 844 when, switchValues, switchMask); in notifySwitch()
|