Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DViewTest.java4554 private boolean startDragAndDrop(View view, View.DragShadowBuilder shadowBuilder) { in startDragAndDrop() argument
4563 return view.startDragAndDrop(ClipData.newPlainText("", ""), shadowBuilder, view, 0); in startDragAndDrop()
4567 View.DragShadowBuilder shadowBuilder = mock(View.DragShadowBuilder.class); in createDragShadowBuidler() local
4573 }).when(shadowBuilder).onProvideShadowMetrics(any(), any()); in createDragShadowBuidler()
4574 return shadowBuilder; in createDragShadowBuidler()
4582 final View.DragShadowBuilder shadowBuilder = createDragShadowBuidler(); in testUpdateDragShadow() local
4584 assertTrue("Could not start drag and drop", startDragAndDrop(view, shadowBuilder)); in testUpdateDragShadow()
4585 reset(shadowBuilder); in testUpdateDragShadow()
4586 view.updateDragShadow(shadowBuilder); in testUpdateDragShadow()
4588 verify(shadowBuilder).onDrawShadow(any(Canvas.class)); in testUpdateDragShadow()
[all …]