Searched refs:actionButton (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintErrorFragment.java72 Button actionButton = (Button) view.findViewById(R.id.action_button);
77 actionButton.setVisibility(View.VISIBLE);
78 actionButton.setText(R.string.print_error_retry);
82 actionButton.setVisibility(View.GONE);
86 actionButton.setOnClickListener(new OnClickListener() {
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/
H A DDragAndDropActivity.java86 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE);
111 vh.actionButton.setText(R.string.drag);
112 vh.actionButton.setOnTouchListener(new View.OnTouchListener() {
H A DSwipeToDismissActivity.java100 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE);
152 vh.actionButton.setText(R.string.swipe);
153 vh.actionButton.setOnTouchListener(new View.OnTouchListener() {
H A DItemTouchHelperActivity.java231 public final Button actionButton; field in class:ItemTouchHelperActivity.ItemTouchViewHolder
241 actionButton = (Button) itemView.findViewById(R.id.action_button);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/
H A DDragAndDropActivity.java86 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE);
111 vh.actionButton.setText(R.string.drag);
112 vh.actionButton.setOnTouchListener(new View.OnTouchListener() {
H A DSwipeToDismissActivity.java100 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE);
152 vh.actionButton.setText(R.string.swipe);
153 vh.actionButton.setOnTouchListener(new View.OnTouchListener() {
H A DItemTouchHelperActivity.java231 public final Button actionButton; field in class:ItemTouchHelperActivity.ItemTouchViewHolder
241 actionButton = (Button) itemView.findViewById(R.id.action_button);
/frameworks/base/core/java/android/view/
H A DInputEventConsistencyVerifier.java474 final int actionButton = event.getActionButton();
497 if ((mButtonsPressed & actionButton) != 0) {
499 actionButton + ", but it has already been pressed and " +
503 mButtonsPressed |= actionButton;
508 if (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY &&
511 } else if (actionButton == MotionEvent.BUTTON_STYLUS_SECONDARY &&
525 if ((mButtonsPressed & actionButton) != actionButton) {
527 actionButton + ", but it was either never pressed or has " +
531 mButtonsPressed &= ~actionButton;
[all...]
H A DGestureDetector.java695 final int actionButton = ev.getActionButton();
699 && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
700 || actionButton == MotionEvent.BUTTON_SECONDARY)) {
711 if (mInContextClick && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
712 || actionButton == MotionEvent.BUTTON_SECONDARY)) {
H A DMotionEvent.java1467 private static native void nativeSetActionButton(long nativePtr, int actionButton); argument
3158 msg.append(", actionButton=").append(buttonStateToString(getActionButton()));
H A DView.java10137 final int actionButton = event.getActionButton();
10141 && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
10142 || actionButton == MotionEvent.BUTTON_SECONDARY)) {
10154 if (mInContextButtonPress && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
10155 || actionButton == MotionEvent.BUTTON_SECONDARY)) {
/frameworks/native/services/inputflinger/
H A DInputListener.cpp71 int32_t action, int32_t actionButton, int32_t flags, int32_t metaState,
76 action(action), actionButton(actionButton),
89 action(other.action), actionButton(other.actionButton), flags(other.flags),
69 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument
H A DInputListener.h87 int32_t actionButton; member in struct:android::NotifyMotionArgs
103 int32_t action, int32_t actionButton, int32_t flags,
H A DInputDispatcher.cpp122 static bool isValidMotionAction(int32_t action, int32_t actionButton, int32_t pointerCount) { argument
141 return actionButton != 0;
147 static bool validateMotionEvent(int32_t action, int32_t actionButton, size_t pointerCount, argument
149 if (! isValidMotionAction(action, actionButton, pointerCount)) {
891 "action=0x%x, actionButton=0x%x, flags=0x%x, "
896 entry->action, entry->actionButton, entry->flags,
2022 dispatchEntry->resolvedAction, motionEntry->actionButton,
2346 originalMotionEntry->actionButton,
2481 "action=0x%x, actionButton=0x%x, flags=0x%x, metaState=0x%x, buttonState=0x%x,"
2484 args->action, args->actionButton, arg
2640 int32_t actionButton = motionEvent->getActionButton(); local
3959 MotionEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, float xPrecision, float yPrecision, nsecs_t downTime, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xOffset, float yOffset) argument
[all...]
H A DInputDispatcher.h513 int32_t actionButton; member in struct:android::InputDispatcher::MotionEntry
528 int32_t action, int32_t actionButton, int32_t flags,
H A DInputReader.cpp2698 int32_t actionButton = BitSet32::valueForBit(released.clearFirstMarkedBit()); local
2699 buttonState &= ~actionButton;
2701 AMOTION_EVENT_ACTION_BUTTON_RELEASE, actionButton, 0,
2719 int32_t actionButton = BitSet32::valueForBit(pressed.clearFirstMarkedBit()); local
2720 buttonState |= actionButton;
2722 AMOTION_EVENT_ACTION_BUTTON_PRESS, actionButton, 0,
4634 int32_t actionButton = BitSet32::valueForBit(releasedButtons.clearFirstMarkedBit()); local
4635 buttonState &= ~actionButton;
4637 AMOTION_EVENT_ACTION_BUTTON_RELEASE, actionButton,
4652 int32_t actionButton local
6210 dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32_t source, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) argument
[all...]
H A DInputReader.h1868 int32_t action, int32_t actionButton,
/frameworks/native/libs/input/tests/
H A DStructLayout_test.cpp54 CHECK_OFFSET(InputMessage::Body::Motion, actionButton, 28);
H A DInputPublisherAndConsumer_test.cpp136 const int32_t actionButton = 0; local
167 status = mPublisher->publishMotionEvent(seq, deviceId, source, action, actionButton,
/frameworks/native/include/input/
H A DInputTransport.h87 int32_t actionButton; member in struct:android::InputMessage::Body::Motion
236 int32_t actionButton,
H A DInput.h560 int32_t actionButton,
/frameworks/native/libs/input/
H A DInputTransport.cpp290 int32_t actionButton,
306 "action=0x%x, actionButton=0x%08x, flags=0x%x, edgeFlags=0x%x, "
311 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState,
332 msg.body.motion.actionButton = actionButton;
927 msg->body.motion.actionButton,
285 publishMotionEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t action, int32_t actionButton, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
H A DInput.cpp219 int32_t actionButton,
235 mActionButton = actionButton;
215 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t actionButton, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, size_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
/frameworks/base/core/java/android/widget/
H A DAbsListView.java4235 int actionButton = event.getActionButton();
4236 if ((actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY
4237 || actionButton == MotionEvent.BUTTON_SECONDARY)

Completed in 353 milliseconds