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.java474 final int actionButton = event.getActionButton(); in onGenericMotionEvent() local
497 if ((mButtonsPressed & actionButton) != 0) { in onGenericMotionEvent()
499 actionButton + ", but it has already been pressed and " + in onGenericMotionEvent()
503 mButtonsPressed |= actionButton; in onGenericMotionEvent()
508 if (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY && in onGenericMotionEvent()
511 } else if (actionButton == MotionEvent.BUTTON_STYLUS_SECONDARY && in onGenericMotionEvent()
525 if ((mButtonsPressed & actionButton) != actionButton) { in onGenericMotionEvent()
527 actionButton + ", but it was either never pressed or has " + in onGenericMotionEvent()
531 mButtonsPressed &= ~actionButton; in onGenericMotionEvent()
536 if (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY && in onGenericMotionEvent()
[all …]
DGestureDetector.java695 final int actionButton = ev.getActionButton(); in onGenericMotionEvent() local
699 && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in onGenericMotionEvent()
700 || actionButton == MotionEvent.BUTTON_SECONDARY)) { in onGenericMotionEvent()
711 if (mInContextClick && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in onGenericMotionEvent()
712 || actionButton == MotionEvent.BUTTON_SECONDARY)) { in onGenericMotionEvent()
DMotionEvent.java1467 private static native void nativeSetActionButton(long nativePtr, int actionButton); in nativeSetActionButton() argument
DView.java10139 final int actionButton = event.getActionButton(); in dispatchGenericMotionEventInternal() local
10143 && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in dispatchGenericMotionEventInternal()
10144 || actionButton == MotionEvent.BUTTON_SECONDARY)) { in dispatchGenericMotionEventInternal()
10156 if (mInContextButtonPress && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in dispatchGenericMotionEventInternal()
10157 || actionButton == MotionEvent.BUTTON_SECONDARY)) { in dispatchGenericMotionEventInternal()
/frameworks/native/services/inputflinger/
DInputListener.cpp71 int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, in NotifyMotionArgs() argument
76 action(action), actionButton(actionButton), in NotifyMotionArgs()
89 action(other.action), actionButton(other.actionButton), flags(other.flags), in NotifyMotionArgs()
DInputListener.h87 int32_t actionButton; member
103 int32_t action, int32_t actionButton, int32_t flags,
DInputDispatcher.cpp122 static bool isValidMotionAction(int32_t action, int32_t actionButton, int32_t pointerCount) { in isValidMotionAction() argument
141 return actionButton != 0; in isValidMotionAction()
147 static bool validateMotionEvent(int32_t action, int32_t actionButton, size_t pointerCount, in validateMotionEvent() argument
149 if (! isValidMotionAction(action, actionButton, pointerCount)) { in validateMotionEvent()
896 entry->action, entry->actionButton, entry->flags, in logOutboundMotionDetailsLocked()
2029 dispatchEntry->resolvedAction, motionEntry->actionButton, in startDispatchCycleLocked()
2353 originalMotionEntry->actionButton, in splitMotionEvent()
2491 args->action, args->actionButton, args->flags, args->metaState, args->buttonState, in notifyMotion()
2511 if (!validateMotionEvent(args->action, args->actionButton, in notifyMotion()
2528 event.initialize(args->deviceId, args->source, args->action, args->actionButton, in notifyMotion()
[all …]
DInputDispatcher.h513 int32_t actionButton; member
528 int32_t action, int32_t actionButton, int32_t flags,
DInputReader.cpp2698 int32_t actionButton = BitSet32::valueForBit(released.clearFirstMarkedBit()); in sync() local
2699 buttonState &= ~actionButton; in sync()
2701 AMOTION_EVENT_ACTION_BUTTON_RELEASE, actionButton, 0, in sync()
2719 int32_t actionButton = BitSet32::valueForBit(pressed.clearFirstMarkedBit()); in sync() local
2720 buttonState |= actionButton; in sync()
2722 AMOTION_EVENT_ACTION_BUTTON_PRESS, actionButton, 0, in sync()
4634 int32_t actionButton = BitSet32::valueForBit(releasedButtons.clearFirstMarkedBit()); in dispatchButtonRelease() local
4635 buttonState &= ~actionButton; in dispatchButtonRelease()
4637 AMOTION_EVENT_ACTION_BUTTON_RELEASE, actionButton, in dispatchButtonRelease()
4652 int32_t actionButton = BitSet32::valueForBit(pressedButtons.clearFirstMarkedBit()); in dispatchButtonPress() local
[all …]
DInputReader.h1868 int32_t action, int32_t actionButton,
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/
DDragAndDropActivity.java85 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE);
108 vh.actionButton.setText(R.string.drag);
109 vh.actionButton.setOnTouchListener(new View.OnTouchListener() {
DSwipeToDismissActivity.java99 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE); in onBind()
149 vh.actionButton.setText(R.string.swipe); in onCreateViewHolder()
150 vh.actionButton.setOnTouchListener(new View.OnTouchListener() { in onCreateViewHolder()
DItemTouchHelperActivity.java231 public final Button actionButton;
241 actionButton = (Button) itemView.findViewById(R.id.action_button);
/frameworks/native/include/input/
DInputTransport.h87 int32_t actionButton; member
236 int32_t actionButton,
DInput.h560 int32_t actionButton,
/frameworks/native/libs/input/tests/
DStructLayout_test.cpp54 CHECK_OFFSET(InputMessage::Body::Motion, actionButton, 28); in TestInputMessageAlignment()
DInputPublisherAndConsumer_test.cpp136 const int32_t actionButton = 0; in PublishAndConsumeMotionEvent() local
167 status = mPublisher->publishMotionEvent(seq, deviceId, source, action, actionButton, in PublishAndConsumeMotionEvent()
/frameworks/native/libs/input/
DInputTransport.cpp290 int32_t actionButton, in publishMotionEvent() argument
311 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
332 msg.body.motion.actionButton = actionButton; in publishMotionEvent()
927 msg->body.motion.actionButton, in initializeMotionEvent()
DInput.cpp219 int32_t actionButton, in initialize() argument
235 mActionButton = actionButton; in initialize()
/frameworks/base/core/java/android/widget/
DAbsListView.java4219 int actionButton = event.getActionButton(); in onGenericMotionEvent() local
4220 if ((actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY in onGenericMotionEvent()
4221 || actionButton == MotionEvent.BUTTON_SECONDARY) in onGenericMotionEvent()