Lines Matching full:buttonstate
182 static bool isPointerDown(int32_t buttonState) {
183 return buttonState &
201 int32_t buttonState, int32_t keyCode) {
204 && !(lastButtonState & buttonState)
205 && (currentButtonState & buttonState))
207 && (lastButtonState & buttonState)
208 && !(currentButtonState & buttonState))) {
2463 dump.appendFormat(INDENT3 "ButtonState: 0x%08x\n", mButtonState);
2685 int32_t buttonState = lastButtonState;
2699 buttonState &= ~actionButton;
2702 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,
2720 buttonState |= actionButton;
2723 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,
2730 ALOG_ASSERT(buttonState == currentButtonState);
2978 dump.appendFormat(INDENT3 "Last Raw Button State: 0x%08x\n", mLastRawState.buttonState);
2994 dump.appendFormat(INDENT3 "Last Cooked Button State: 0x%08x\n", mLastCookedState.buttonState);
4070 next->buttonState
4163 bool buttonsPressed = mCurrentRawState.buttonState & ~mLastRawState.buttonState;
4191 policyFlags, mLastCookedState.buttonState, mCurrentCookedState.buttonState);
4231 isPointerDown(mCurrentRawState.buttonState)) {
4242 mPointerController->setButtonState(mCurrentRawState.buttonState);
4263 policyFlags, mLastCookedState.buttonState, mCurrentCookedState.buttonState);
4276 mCurrentRawState.buttonState |= mExternalStylusState.buttons;
4487 int32_t buttonState = mCurrentCookedState.buttonState;
4489 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,
4503 int32_t buttonState = mCurrentCookedState.buttonState;
4510 AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, buttonState,
4536 if (buttonState != mLastCookedState.buttonState) {
4545 AMOTION_EVENT_ACTION_POINTER_UP, 0, 0, metaState, buttonState, 0,
4559 AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, buttonState, 0,
4577 AMOTION_EVENT_ACTION_POINTER_DOWN, 0, 0, metaState, buttonState, 0,
4592 AMOTION_EVENT_ACTION_HOVER_EXIT, 0, 0, metaState, mLastCookedState.buttonState, 0,
4608 0, 0, metaState, mCurrentRawState.buttonState, 0,
4619 mCurrentRawState.buttonState, 0,
4629 BitSet32 releasedButtons(mLastCookedState.buttonState & ~mCurrentCookedState.buttonState);
4632 int32_t buttonState = mLastCookedState.buttonState;
4635 buttonState &= ~actionButton;
4638 0, metaState, buttonState, 0,
4647 BitSet32 pressedButtons(mCurrentCookedState.buttonState & ~mLastCookedState.buttonState);
4650 int32_t buttonState = mLastCookedState.buttonState;
4653 buttonState |= actionButton;
4655 0, metaState, buttonState, 0,
4681 mCurrentCookedState.buttonState = 0;
4683 mCurrentCookedState.buttonState = mCurrentRawState.buttonState;
5034 int32_t buttonState = mCurrentCookedState.buttonState;
5055 if (buttonState != mLastCookedState.buttonState) {
5065 AMOTION_EVENT_ACTION_CANCEL, 0, 0, metaState, buttonState,
5086 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,
5100 AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, buttonState,
5121 AMOTION_EVENT_ACTION_POINTER_DOWN, 0, 0, metaState, buttonState, 0,
5133 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,
5159 metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,
5187 int32_t buttonState = mCurrentRawState.buttonState;
5189 AMOTION_EVENT_ACTION_CANCEL, 0, 0, metaState, buttonState,
5312 && !isPointerDown(mCurrentRawState.buttonState)) {
5340 } else if (isPointerDown(mCurrentRawState.buttonState)) {
5951 mPointerController->setButtonState(mCurrentRawState.buttonState);
6049 down = isPointerDown(mCurrentRawState.buttonState);
6089 mPointerController->setButtonState(mCurrentRawState.buttonState);
6101 AMOTION_EVENT_ACTION_UP, 0, 0, metaState, mLastRawState.buttonState, 0,
6114 AMOTION_EVENT_ACTION_HOVER_EXIT, 0, 0, metaState, mLastRawState.buttonState, 0,
6129 AMOTION_EVENT_ACTION_DOWN, 0, 0, metaState, mCurrentRawState.buttonState, 0,
6139 AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, mCurrentRawState.buttonState, 0,
6154 mCurrentRawState.buttonState, 0,
6165 mCurrentRawState.buttonState, 0,
6186 AMOTION_EVENT_ACTION_SCROLL, 0, 0, metaState, mCurrentRawState.buttonState, 0,
6212 int32_t metaState, int32_t buttonState, int32_t edgeFlags,
6249 action, actionButton, flags, metaState, buttonState, edgeFlags,
7140 int32_t buttonState = 0;
7167 AMOTION_EVENT_ACTION_MOVE, 0, 0, metaState, buttonState, AMOTION_EVENT_EDGE_FLAG_NONE,