Home
last modified time | relevance | path

Searched refs:actionButton (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrintErrorFragment.java72 Button actionButton = (Button) view.findViewById(R.id.action_button); in onViewCreated() local
77 actionButton.setVisibility(View.VISIBLE); in onViewCreated()
78 actionButton.setText(R.string.print_error_retry); in onViewCreated()
82 actionButton.setVisibility(View.GONE); in onViewCreated()
86 actionButton.setOnClickListener(new OnClickListener() { in onViewCreated()
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java478 final int actionButton = event.getActionButton(); in onGenericMotionEvent() local
501 if ((mButtonsPressed & actionButton) != 0) { in onGenericMotionEvent()
503 actionButton + ", but it has already been pressed and " + in onGenericMotionEvent()
507 mButtonsPressed |= actionButton; in onGenericMotionEvent()
512 if (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY && in onGenericMotionEvent()
515 } else if (actionButton == MotionEvent.BUTTON_STYLUS_SECONDARY && in onGenericMotionEvent()
529 if ((mButtonsPressed & actionButton) != actionButton) { in onGenericMotionEvent()
531 actionButton + ", but it was either never pressed or has " + in onGenericMotionEvent()
535 mButtonsPressed &= ~actionButton; in onGenericMotionEvent()
540 if (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY && in onGenericMotionEvent()
[all …]
DGestureDetector.java818 final int actionButton = ev.getActionButton(); in onGenericMotionEvent() local
822 && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in onGenericMotionEvent()
823 || actionButton == MotionEvent.BUTTON_SECONDARY)) { in onGenericMotionEvent()
834 if (mInContextClick && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in onGenericMotionEvent()
835 || actionButton == MotionEvent.BUTTON_SECONDARY)) { in onGenericMotionEvent()
DMotionEvent.java1604 private static native void nativeSetActionButton(long nativePtr, int actionButton); in nativeSetActionButton() argument
DView.java14452 final int actionButton = event.getActionButton();
14456 && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
14457 || actionButton == MotionEvent.BUTTON_SECONDARY)) {
14469 if (mInContextButtonPress && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
14470 || actionButton == MotionEvent.BUTTON_SECONDARY)) {
/frameworks/native/services/inputflinger/
DInputListener.cpp98 int32_t actionButton, int32_t flags, int32_t metaState, in NotifyMotionArgs() argument
112 actionButton(actionButton), in NotifyMotionArgs()
138 actionButton(other.actionButton), in NotifyMotionArgs()
164 action == rhs.action && actionButton == rhs.actionButton && flags == rhs.flags && in operator ==()
DInputClassifierConverter.cpp88 static common::V1_0::Button getActionButton(int32_t actionButton) { in getActionButton() argument
105 return static_cast<common::V1_0::Button>(actionButton); in getActionButton()
364 event.actionButton = getActionButton(args.actionButton); in notifyMotionArgsToHalMotionEvent()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp179 int32_t actionButton, int32_t flags, int32_t metaState, in MotionEntry() argument
191 actionButton(actionButton), in MotionEntry()
225 actionButton, flags, metaState, buttonState, in appendDescription()
DEntry.h162 int32_t actionButton; member
178 uint32_t policyFlags, int32_t action, int32_t actionButton, int32_t flags,
DInputDispatcher.cpp137 static bool isValidMotionAction(int32_t action, int32_t actionButton, int32_t pointerCount) { in isValidMotionAction() argument
156 return actionButton != 0; in isValidMotionAction()
162 static bool validateMotionEvent(int32_t action, int32_t actionButton, size_t pointerCount, in validateMotionEvent() argument
164 if (!isValidMotionAction(action, actionButton, pointerCount)) { in validateMotionEvent()
306 motionEntry.action, motionEntry.actionButton, motionEntry.flags, in createDispatchEntry()
1316 entry.action, entry.actionButton, entry.flags, entry.metaState, entry.buttonState, in logOutboundMotionDetails()
2542 motionEntry->actionButton, in startDispatchCycleLocked()
3003 originalMotionEntry.actionButton, originalMotionEntry.flags, in splitMotionEvent()
3160 args->policyFlags, args->action, args->actionButton, args->flags, args->metaState, in notifyMotion()
3180 if (!validateMotionEvent(args->action, args->actionButton, args->pointerCount, in notifyMotion()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp375 int32_t actionButton = BitSet32::valueForBit(released.clearFirstMarkedBit()); in sync() local
376 buttonState &= ~actionButton; in sync()
379 AMOTION_EVENT_ACTION_BUTTON_RELEASE, actionButton, 0, in sync()
400 int32_t actionButton = BitSet32::valueForBit(pressed.clearFirstMarkedBit()); in sync() local
401 buttonState |= actionButton; in sync()
404 AMOTION_EVENT_ACTION_BUTTON_PRESS, actionButton, 0, in sync()
DTouchInputMapper.cpp1982 int32_t actionButton = BitSet32::valueForBit(releasedButtons.clearFirstMarkedBit()); in dispatchButtonRelease() local
1983 buttonState &= ~actionButton; in dispatchButtonRelease()
1985 actionButton, 0, metaState, buttonState, 0, in dispatchButtonRelease()
1999 int32_t actionButton = BitSet32::valueForBit(pressedButtons.clearFirstMarkedBit()); in dispatchButtonPress() local
2000 buttonState |= actionButton; in dispatchButtonPress()
2001 dispatchMotion(when, policyFlags, mSource, AMOTION_EVENT_ACTION_BUTTON_PRESS, actionButton, in dispatchButtonPress()
3532 int32_t action, int32_t actionButton, int32_t flags, in dispatchMotion() argument
3580 action, actionButton, flags, metaState, buttonState, in dispatchMotion()
DTouchInputMapper.h746 int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState,
/frameworks/native/services/inputflinger/include/
DInputListener.h99 int32_t actionButton; member
127 int32_t displayId, uint32_t policyFlags, int32_t action, int32_t actionButton,
/frameworks/native/include/input/
DInputTransport.h112 int32_t actionButton; member
296 int32_t actionButton, int32_t flags, int32_t edgeFlags,
DInput.h686 std::array<uint8_t, 32> hmac, int32_t action, int32_t actionButton,
/frameworks/native/libs/input/
DInputTransport.cpp188 msg->body.motion.actionButton = body.motion.actionButton; in getSanitizedCopy()
485 std::array<uint8_t, 32> hmac, int32_t action, int32_t actionButton, int32_t flags, in publishMotionEvent() argument
505 mChannel->getName().c_str(), seq, deviceId, source, displayId, action, actionButton, in publishMotionEvent()
531 msg.body.motion.actionButton = actionButton; in publishMotionEvent()
1188 msg->body.motion.actionButton, msg->body.motion.flags, in initializeMotionEvent()
DInput.cpp321 std::array<uint8_t, 32> hmac, int32_t action, int32_t actionButton, in initialize() argument
331 mActionButton = actionButton; in initialize()
/frameworks/native/libs/input/tests/
DStructLayout_test.cpp60 CHECK_OFFSET(InputMessage::Body::Motion, actionButton, 64); in TestInputMessageAlignment()
DInputPublisherAndConsumer_test.cpp152 constexpr int32_t actionButton = 0; in PublishAndConsumeMotionEvent() local
189 actionButton, flags, edgeFlags, metaState, buttonState, in PublishAndConsumeMotionEvent()
/frameworks/base/core/java/android/widget/
DAbsListView.java4289 int actionButton = event.getActionButton(); in onGenericMotionEvent() local
4290 if ((actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in onGenericMotionEvent()
4291 || actionButton == MotionEvent.BUTTON_SECONDARY) in onGenericMotionEvent()