Home
last modified time | relevance | path

Searched refs:dropEvent (Results 1 – 3 of 3) sorted by relevance

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DItemDragListenerTest.java179 final DragEvent dropEvent = DragEvents.createTestDropEvent(null); in testNoDropWithoutClipData() local
180 assertFalse(mListener.onDrag(mTestView, dropEvent)); in testNoDropWithoutClipData()
188 final DragEvent dropEvent = DragEvents.createTestDropEvent(data); in testDoDropWithClipData() local
189 mListener.onDrag(mTestView, dropEvent); in testDoDropWithClipData()
192 assertSame(dropEvent, mListener.mLastDropEvent); in testDoDropWithClipData()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDragHostTest.java86 final DragEvent dropEvent = DragEvents.createTestDropEvent(data); in testHandleDrop_onValidView() local
91 assertTrue(dragHost.handleDropEvent(view, dropEvent)); in testHandleDrop_onValidView()
98 final DragEvent dropEvent = DragEvents.createTestDropEvent(data); in testHandleDrop_notOnValidView() local
101 assertFalse(dragHost.handleDropEvent(view, dropEvent)); in testHandleDrop_notOnValidView()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DDragEvents.java44 final DragEvent dropEvent = createTestDragEvent(DragEvent.ACTION_DROP); in createTestDropEvent() local
45 Mockito.when(dropEvent.getClipData()).thenReturn(clipData); in createTestDropEvent()
47 return dropEvent; in createTestDropEvent()