/frameworks/base/services/core/java/com/android/server/ |
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 …]
|
/frameworks/native/services/inputflinger/ |
D | NotifyArgs.cpp | 151 uint32_t switchValues, uint32_t switchMask) in NotifySwitchArgs() argument 155 switchValues(switchValues), in NotifySwitchArgs()
|
/frameworks/native/services/inputflinger/include/ |
D | NotifyArgs.h | 173 uint32_t switchValues; member 178 NotifySwitchArgs(int32_t id, nsecs_t eventTime, uint32_t policyFlags, uint32_t switchValues,
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeInputDispatcherPolicy.cpp | 70 EXPECT_EQ(args.switchValues, mLastNotifySwitch->switchValues); in assertNotifySwitchWasCalled() 444 void FakeInputDispatcherPolicy::notifySwitch(nsecs_t when, uint32_t switchValues, in notifySwitch() argument 450 NotifySwitchArgs(InputEvent::nextId(), when, policyFlags, switchValues, switchMask); in notifySwitch()
|
D | FakeInputDispatcherPolicy.h | 198 void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
|
D | InputReader_test.cpp | 3096 ASSERT_EQ((1U << SW_LID) | (1U << SW_JACK_PHYSICAL_INSERT), args.switchValues); in TEST_F()
|
/frameworks/native/services/inputflinger/dispatcher/include/ |
D | InputDispatcherPolicyInterface.h | 124 virtual void notifySwitch(nsecs_t when, uint32_t switchValues, uint32_t switchMask,
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 2235 private void notifySwitch(long whenNanos, int switchValues, int switchMask) { in notifySwitch() argument 2237 Slog.d(TAG, "notifySwitch: values=" + Integer.toHexString(switchValues) in notifySwitch() 2242 final boolean lidOpen = ((switchValues & SW_LID_BIT) == 0); in notifySwitch() 2254 final boolean lensCovered = ((switchValues & SW_CAMERA_LENS_COVER_BIT) != 0); in notifySwitch() 2261 mWiredAccessoryCallbacks.notifyWiredAccessoryChanged(whenNanos, switchValues, in notifySwitch() 2269 args.arg1 = (switchValues & SW_TABLET_MODE_BIT) != 0; in notifySwitch() 2275 final boolean micMute = ((switchValues & SW_MUTE_DEVICE_BIT) != 0); in notifySwitch() 2832 void notifyWiredAccessoryChanged(long whenNanos, int switchValues, int switchMask); in notifyWiredAccessoryChanged() argument
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 332 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/ |
D | InputDispatcher.cpp | 4725 args.eventTime, args.policyFlags, args.switchValues, args.switchMask); in notifySwitch() 4730 mPolicy.notifySwitch(args.eventTime, args.switchValues, args.switchMask, policyFlags); in notifySwitch()
|