HomeSort by relevance Sort by last modified time
    Searched refs:DragEvent (Results 1 - 25 of 75) sorted by null

1 2 3

  /frameworks/base/core/java/android/view/
DragEvent.aidl 19 parcelable DragEvent;
DragEvent.java 32 * View objects that receive a DragEvent call {@link #getAction()}, which returns
114 * The {@link android.view.DragEvent#getAction()},
115 * {@link android.view.DragEvent#getLocalState()}
116 * {@link android.view.DragEvent#describeContents()},
117 * {@link android.view.DragEvent#writeToParcel(Parcel,int)}, and
118 * {@link android.view.DragEvent#toString()} methods always return valid data.
127 public class DragEvent implements Parcelable {
140 private DragEvent mNext;
147 private static DragEvent gRecyclerTop = null;
152 * {@link View#onDragEvent(DragEvent) onDragEvent()} handler method o
    [all...]
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DragEvents.java 20 import android.view.DragEvent;
28 public static DragEvent createTestDragEvent(int actionId) {
29 final DragEvent mockEvent = Mockito.mock(DragEvent.class);
35 public static DragEvent createTestLocationEvent(float x, float y) {
36 final DragEvent locationEvent = createTestDragEvent(DragEvent.ACTION_DRAG_LOCATION);
43 public static DragEvent createTestDropEvent(ClipData clipData) {
44 final DragEvent dropEvent = createTestDragEvent(DragEvent.ACTION_DROP)
    [all...]
  /developers/build/prebuilts/gradle/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
ImageDragListener.java 21 import android.view.DragEvent;
28 * the first {@link android.content.ClipData.Item} in the {@link DragEvent} is set as the image
40 public boolean onDrag(View view, DragEvent event) {
44 case DragEvent.ACTION_DRAG_STARTED:
48 case DragEvent.ACTION_DRAG_ENTERED:
52 case DragEvent.ACTION_DRAG_LOCATION:
56 case DragEvent.ACTION_DRAG_EXITED:
60 case DragEvent.ACTION_DROP:
63 case DragEvent.ACTION_DRAG_ENDED:
78 private boolean processDrop(View view, DragEvent event)
    [all...]
  /developers/build/prebuilts/gradle/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/
ImageDragListener.java 21 import android.view.DragEvent;
34 public boolean onDrag(View view, DragEvent event) {
36 case DragEvent.ACTION_DRAG_STARTED:
40 case DragEvent.ACTION_DRAG_ENTERED:
44 case DragEvent.ACTION_DRAG_LOCATION:
48 case DragEvent.ACTION_DRAG_EXITED:
52 case DragEvent.ACTION_DROP:
55 case DragEvent.ACTION_DRAG_ENDED:
70 private boolean processDrop(View view, DragEvent event) {
89 protected boolean setImageUri(View view, DragEvent event, Uri uri)
    [all...]
  /developers/samples/android/ui/window/DragAndDropAcrossApps/DragSource/src/main/java/com/example/android/dragsource/
ImageDragListener.java 21 import android.view.DragEvent;
28 * the first {@link android.content.ClipData.Item} in the {@link DragEvent} is set as the image
40 public boolean onDrag(View view, DragEvent event) {
44 case DragEvent.ACTION_DRAG_STARTED:
48 case DragEvent.ACTION_DRAG_ENTERED:
52 case DragEvent.ACTION_DRAG_LOCATION:
56 case DragEvent.ACTION_DRAG_EXITED:
60 case DragEvent.ACTION_DROP:
63 case DragEvent.ACTION_DRAG_ENDED:
78 private boolean processDrop(View view, DragEvent event)
    [all...]
  /developers/samples/android/ui/window/DragAndDropAcrossApps/DropTarget/src/main/java/com/example/android/droptarget/
ImageDragListener.java 21 import android.view.DragEvent;
34 public boolean onDrag(View view, DragEvent event) {
36 case DragEvent.ACTION_DRAG_STARTED:
40 case DragEvent.ACTION_DRAG_ENTERED:
44 case DragEvent.ACTION_DRAG_LOCATION:
48 case DragEvent.ACTION_DRAG_EXITED:
52 case DragEvent.ACTION_DROP:
55 case DragEvent.ACTION_DRAG_ENDED:
70 private boolean processDrop(View view, DragEvent event) {
89 protected boolean setImageUri(View view, DragEvent event, Uri uri)
    [all...]
  /development/samples/browseable/DragAndDropAcrossApps/DragSource/src/com.example.android/dragsource/
ImageDragListener.java 21 import android.view.DragEvent;
28 * the first {@link android.content.ClipData.Item} in the {@link DragEvent} is set as the image
40 public boolean onDrag(View view, DragEvent event) {
44 case DragEvent.ACTION_DRAG_STARTED:
48 case DragEvent.ACTION_DRAG_ENTERED:
52 case DragEvent.ACTION_DRAG_LOCATION:
56 case DragEvent.ACTION_DRAG_EXITED:
60 case DragEvent.ACTION_DROP:
63 case DragEvent.ACTION_DRAG_ENDED:
78 private boolean processDrop(View view, DragEvent event)
    [all...]
  /development/samples/browseable/DragAndDropAcrossApps/DropTarget/src/com.example.android/droptarget/
ImageDragListener.java 21 import android.view.DragEvent;
34 public boolean onDrag(View view, DragEvent event) {
36 case DragEvent.ACTION_DRAG_STARTED:
40 case DragEvent.ACTION_DRAG_ENTERED:
44 case DragEvent.ACTION_DRAG_LOCATION:
48 case DragEvent.ACTION_DRAG_EXITED:
52 case DragEvent.ACTION_DROP:
55 case DragEvent.ACTION_DRAG_ENDED:
70 private boolean processDrop(View view, DragEvent event) {
89 protected boolean setImageUri(View view, DragEvent event, Uri uri)
    [all...]
  /cts/tests/framework/base/windowmanager/dndtargetappsdk23/src/android/server/wm/dndtargetappsdk23/
DropTarget.java 22 import android.view.DragEvent;
59 public boolean onDrag(View v, DragEvent event) {
61 case DragEvent.ACTION_DRAG_STARTED:
65 case DragEvent.ACTION_DRAG_ENTERED:
68 case DragEvent.ACTION_DRAG_LOCATION:
71 case DragEvent.ACTION_DRAG_EXITED:
74 case DragEvent.ACTION_DROP:
78 case DragEvent.ACTION_DRAG_ENDED:
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DragScrollListenerTest.java 23 import android.view.DragEvent;
69 triggerDragEvent(DragEvent.ACTION_DRAG_STARTED);
70 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_STARTED);
72 triggerDragEvent(DragEvent.ACTION_DROP);
73 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DROP);
75 triggerDragEvent(DragEvent.ACTION_DRAG_ENDED);
76 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_ENDED);
78 triggerDragEvent(DragEvent.ACTION_DRAG_EXITED);
79 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_EXITED);
84 triggerDragEvent(DragEvent.ACTION_DRAG_STARTED)
    [all...]
  /packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DirectoryDragListener.java 19 import android.view.DragEvent;
37 public boolean onDrag(View v, DragEvent event) {
41 case DragEvent.ACTION_DRAG_ENDED:
53 public boolean handleDropEventChecked(View v, DragEvent event) {
58 public @Nullable TimerTask createOpenTask(final View v, DragEvent event) {
  /frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
AutoScrollView.java 20 import android.view.DragEvent;
31 public boolean onDragEvent(DragEvent event) {
33 case DragEvent.ACTION_DRAG_LOCATION:
ClipboardView.java 22 import android.view.DragEvent;
61 public boolean onDragEvent(DragEvent event) {
63 case DragEvent.ACTION_DRAG_ENTERED:
66 case DragEvent.ACTION_DROP:
68 case DragEvent.ACTION_DRAG_EXITED:
69 case DragEvent.ACTION_DRAG_ENDED:
  /packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
ItemDragListenerTest.java 29 import android.view.DragEvent;
71 assertTrue(triggerDragEvent(DragEvent.ACTION_DRAG_STARTED));
76 triggerDragEvent(DragEvent.ACTION_DRAG_ENTERED);
82 triggerDragEvent(DragEvent.ACTION_DRAG_ENTERED);
84 triggerDragEvent(DragEvent.ACTION_DRAG_EXITED);
90 triggerDragEvent(DragEvent.ACTION_DRAG_ENTERED);
92 triggerDragEvent(DragEvent.ACTION_DRAG_ENDED);
98 DragEvent locationEvent = DragEvents.createTestLocationEvent(3, 4);
108 DragEvent locationEvent = DragEvents.createTestLocationEvent(x, y);
117 triggerDragEvent(DragEvent.ACTION_DRAG_ENTERED)
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DragDriver.java 20 import android.view.DragEvent;
66 public abstract boolean onDragEvent (DragEvent event);
117 public boolean onDragEvent (DragEvent event) {
121 case DragEvent.ACTION_DRAG_STARTED:
126 case DragEvent.ACTION_DRAG_ENTERED:
129 case DragEvent.ACTION_DRAG_LOCATION:
135 case DragEvent.ACTION_DROP:
141 case DragEvent.ACTION_DRAG_EXITED:
145 case DragEvent.ACTION_DRAG_ENDED:
164 public boolean onDragEvent (DragEvent event) { return false;
    [all...]
FlingToDeleteHelper.java 21 import android.view.DragEvent;
62 public void recordDragEvent(long dragStartTime, DragEvent event) {
65 case DragEvent.ACTION_DRAG_STARTED:
68 case DragEvent.ACTION_DRAG_LOCATION:
71 case DragEvent.ACTION_DRAG_ENDED:
  /packages/apps/DocumentsUI/src/com/android/documentsui/
ItemDragListener.java 22 import android.view.DragEvent;
65 public boolean onDrag(final View v, DragEvent event) {
67 case DragEvent.ACTION_DRAG_STARTED:
69 case DragEvent.ACTION_DRAG_ENTERED:
72 case DragEvent.ACTION_DRAG_LOCATION:
75 case DragEvent.ACTION_DRAG_EXITED:
79 case DragEvent.ACTION_DRAG_ENDED:
83 case DragEvent.ACTION_DROP:
90 private void handleEnteredEvent(View v, DragEvent event) {
108 private void handleExitedEndedEvent(View v, DragEvent event)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DragListener.java 19 import android.view.DragEvent;
34 private void setState(DragEvent event) {
50 public boolean onDrag(View v, DragEvent event) {
52 case DragEvent.ACTION_DRAG_STARTED: {
55 case DragEvent.ACTION_DRAG_LOCATION: {
79 case DragEvent.ACTION_DRAG_ENTERED: {
86 case DragEvent.ACTION_DRAG_EXITED: {
94 case DragEvent.ACTION_DROP: {
97 case DragEvent.ACTION_DRAG_ENDED: {
  /development/samples/ApiDemos/src/com/example/android/apis/view/
DragAndDropDemo.java 23 import android.view.DragEvent;
49 public boolean onDrag(View v, DragEvent event) {
52 case DragEvent.ACTION_DRAG_STARTED: {
59 case DragEvent.ACTION_DRAG_ENDED: {
  /cts/tests/framework/base/windowmanager/dndtargetapp/src/android/server/wm/dndtargetapp/
DropTarget.java 29 import android.view.DragEvent;
80 private String checkExtraValue(DragEvent event) {
106 public boolean onDrag(View v, DragEvent event) {
110 case DragEvent.ACTION_DRAG_STARTED:
115 case DragEvent.ACTION_DRAG_ENTERED:
118 case DragEvent.ACTION_DRAG_LOCATION:
121 case DragEvent.ACTION_DRAG_EXITED:
124 case DragEvent.ACTION_DROP:
135 case DragEvent.ACTION_DRAG_ENDED:
144 private void accessContent(DragEvent event, String resultKey, boolean requestPermissions)
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/app/list/
RemoveView.java 23 import android.view.DragEvent;
66 public boolean onDragEvent(DragEvent event) {
69 case DragEvent.ACTION_DRAG_ENTERED:
75 case DragEvent.ACTION_DRAG_EXITED:
78 case DragEvent.ACTION_DRAG_LOCATION:
83 case DragEvent.ACTION_DROP:
  /frameworks/support/compat/src/main/java/androidx/core/view/
DragAndDropPermissionsCompat.java 24 import android.view.DragEvent;
43 public static DragAndDropPermissionsCompat request(Activity activity, DragEvent dragEvent) {
46 activity.requestDragAndDropPermissions(dragEvent);
  /cts/tests/tests/view/src/android/view/cts/
DragDropTest.java 34 import android.view.DragEvent;
100 // Public DragEvent fields
101 public int action; // DragEvent.getAction()
102 public float x; // DragEvent.getX()
103 public float y; // DragEvent.getY()
104 public ClipData clipData; // DragEvent.getClipData()
105 public ClipDescription clipDescription; // DragEvent.getClipDescription()
106 public Object localState; // DragEvent.getLocalState()
107 public boolean result; // DragEvent.getResult()
141 sb.append("DragEvent {action=").append(action).append(" x=").append(x).append(" y="
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/media/
VideoViewDemo.java 21 import android.view.DragEvent;
54 public boolean onDrag(View v, DragEvent event) {
55 if (event.getAction() != DragEvent.ACTION_DROP) {

Completed in 848 milliseconds

1 2 3