Home
last modified time | relevance | path

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

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DAbsoluteLayoutRule.java71 @NonNull DropFeedback feedback) { in onDropEnter()
74 drawFeedback(gc, node, elements, feedback); in onDropEnter()
85 DropFeedback feedback) { in drawFeedback() argument
96 Point p = (Point) feedback.userData; in drawFeedback()
111 int offsetX = x - be.x + (feedback.dragBounds != null ? feedback.dragBounds.x : 0); in drawFeedback()
112 int offsetY = y - be.y + (feedback.dragBounds != null ? feedback.dragBounds.y : 0); in drawFeedback()
135 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropMove() argument
137 feedback.userData = p; in onDropMove()
138 feedback.requestPaint = true; in onDropMove()
140 return feedback; in onDropMove()
[all …]
DFrameLayoutRule.java64 @NonNull DropFeedback feedback) { in onDropEnter()
65 drawFeedback(gc, node, elements, feedback); in onDropEnter()
74 DropFeedback feedback) {
84 Point p = (Point) feedback.userData;
120 @Nullable DropFeedback feedback, @NonNull Point p) {
121 feedback.userData = p;
122 feedback.requestPaint = true;
123 return feedback;
128 @Nullable DropFeedback feedback) {
134 final @Nullable DropFeedback feedback, final @NonNull Point p) {
[all …]
DRelativeLayoutRule.java158 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropMove() argument
159 if (elements == null || elements.length == 0 || feedback == null) { in onDropMove()
163 MoveHandler state = (MoveHandler) feedback.userData; in onDropMove()
164 int offsetX = p.x + (feedback.dragBounds != null ? feedback.dragBounds.x : 0); in onDropMove()
165 int offsetY = p.y + (feedback.dragBounds != null ? feedback.dragBounds.y : 0); in onDropMove()
166 state.updateMove(feedback, elements, offsetX, offsetY, feedback.modifierMask); in onDropMove()
169 feedback.requestPaint = true; in onDropMove()
171 return feedback; in onDropMove()
176 @Nullable DropFeedback feedback) { in onDropLeave() argument
181 final @Nullable DropFeedback feedback, final @NonNull Point p) { in onDropped() argument
[all …]
DAdapterViewRule.java39 @NonNull DropFeedback feedback) { in onDropEnter()
58 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropMove() argument
59 feedback.invalidTarget = true; in onDropMove()
60 return feedback; in onDropMove()
DScrollViewRule.java70 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropMove() argument
71 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); in onDropMove()
85 DropFeedback feedback) { in drawFeedback() argument
93 super.drawFeedback(gc, targetNode, elements, feedback); in drawFeedback()
DHorizontalScrollViewRule.java70 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropMove() argument
71 DropFeedback f = super.onDropMove(targetNode, elements, feedback, p); in onDropMove()
85 DropFeedback feedback) { in drawFeedback() argument
93 super.drawFeedback(gc, targetNode, elements, feedback); in drawFeedback()
DBaseLayoutRule.java258 DropFeedback feedback = onDropEnter(targetNode, targetView, elements); in onPaste() local
259 if (feedback != null) { in onPaste()
261 feedback = onDropMove(targetNode, elements, feedback, p); in onPaste()
262 if (feedback != null) { in onPaste()
263 onDropLeave(targetNode, elements, feedback); in onPaste()
264 onDropped(targetNode, elements, feedback, p); in onPaste()
284 DropFeedback feedback = onDropEnter(parentNode, parentView, elements); in onPasteBeforeChild() local
285 if (feedback != null) { in onPasteBeforeChild()
292 feedback = onDropMove(parentNode, elements, feedback, targetP); in onPasteBeforeChild()
293 if (feedback != null) { in onPasteBeforeChild()
[all …]
DGridLayoutRule.java292 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropMove() argument
293 if (feedback == null) { in onDropMove()
296 feedback.requestPaint = true; in onDropMove()
298 GridDropHandler handler = (GridDropHandler) feedback.userData; in onDropMove()
299 handler.computeMatches(feedback, p); in onDropMove()
301 return feedback; in onDropMove()
306 @Nullable DropFeedback feedback, @NonNull Point p) { in onDropped() argument
307 if (feedback == null) { in onDropped()
316 GridDropHandler dropHandler = (GridDropHandler) feedback.userData; in onDropped()
324 feedback.isCopy || !feedback.sameCanvas); in onDropped()
[all …]
DLinearLayoutRule.java359 @NonNull DropFeedback feedback) { in onDropEnter()
362 drawFeedback(gc, node, elements, feedback); in onDropEnter()
367 void drawFeedback(IGraphics gc, INode node, IDragElement[] elements, DropFeedback feedback) {
379 LinearDropData data = (LinearDropData) feedback.userData;
481 @Nullable DropFeedback feedback, @NonNull Point p) {
484 return feedback;
487 LinearDropData data = (LinearDropData) feedback.userData;
527 feedback.requestPaint = !equals(oldX, data.getCurrX())
531 return feedback;
547 @Nullable DropFeedback feedback) {
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DLayoutTestBase.java79 DropFeedback feedback = rule.onDropEnter(targetNode, null/*targetView*/, elements); in dragInto() local
80 assertNotNull(feedback); in dragInto()
81 assertFalse(feedback.invalidTarget); in dragInto()
82 assertNotNull(feedback.painter); in dragInto()
85 feedback.sameCanvas = true; in dragInto()
89 feedback = rule.onDropMove(targetNode, elements, feedback, dropPoint); in dragInto()
90 assertNotNull(feedback); in dragInto()
93 feedback = rule.onDropMove(targetNode, elements, feedback, secondDropPoint); in dragInto()
94 assertNotNull(feedback); in dragInto()
98 assertTrue(feedback.invalidTarget); in dragInto()
[all …]
DLinearLayoutRuleTest.java59 DropFeedback feedback = rule.onDropEnter(targetNode, null/*targetView*/, elements); in dragIntoEmpty() local
60 assertNotNull(feedback); in dragIntoEmpty()
61 assertFalse(feedback.invalidTarget); in dragIntoEmpty()
62 assertNotNull(feedback.painter); in dragIntoEmpty()
64 feedback = rule.onDropMove(targetNode, elements, feedback, dropPoint); in dragIntoEmpty()
65 assertNotNull(feedback); in dragIntoEmpty()
66 assertFalse(feedback.invalidTarget); in dragIntoEmpty()
70 assertNotNull(feedback.painter); in dragIntoEmpty()
71 feedback.painter.paint(graphics, targetNode, feedback); in dragIntoEmpty()
97 rule.onDropped(targetNode, elements, feedback, dropPoint); in dragIntoEmpty()
DZoomControlsRuleTest.java46 DropFeedback feedback = rule.onDropEnter(layout, null/*targetView*/, elements); in testDoNothing() local
48 assertNull(feedback); in testDoNothing()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DGuidelinePainter.java49 public void paint(@NonNull IGraphics gc, @NonNull INode node, @NonNull DropFeedback feedback) { in paint() argument
50 GuidelineHandler state = (GuidelineHandler) feedback.userData; in paint()
91 if (feedback.dragBaseline != -1) { in paint()
92 int y = state.mBounds.y + feedback.dragBaseline; in paint()
117 feedback.tooltip = sb.toString(); in paint()
122 feedback.tooltipX = SegmentType.RIGHT; in paint()
124 feedback.tooltipX = SegmentType.LEFT; in paint()
127 feedback.tooltipY = SegmentType.BOTTOM; in paint()
129 feedback.tooltipY = SegmentType.TOP; in paint()
132 feedback.tooltip = null; in paint()
DGuidelineHandler.java271 private boolean checkCycle(DropFeedback feedback, Match match, boolean vertical) { in checkCycle() argument
287 feedback.errorMessage = "Constraint creates a cycle: " + desc; in checkCycle()
301 public void checkCycles(DropFeedback feedback) { in checkCycles() argument
303 feedback.errorMessage = null; in checkCycles()
307 if (checkCycle(feedback, mCurrentTopMatch, true /* vertical */) in checkCycles()
308 || checkCycle(feedback, mCurrentBottomMatch, true)) { in checkCycles()
311 if (checkCycle(feedback, mCurrentLeftMatch, false) in checkCycles()
312 || checkCycle(feedback, mCurrentRightMatch, false)) { in checkCycles()
DMoveHandler.java179 public void updateMove(DropFeedback feedback, IDragElement[] elements, in updateMove() argument
236 int baseline = feedback.dragBaseline; in updateMove()
297 checkCycles(feedback); in updateMove()
DResizeHandler.java181 public void updateResize(DropFeedback feedback, INode child, Rect newBounds, in updateResize() argument
263 checkCycles(feedback); in updateResize()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRulesEngine.java313 DropFeedback feedback, in callOnDropMove() argument
320 return rule.onDropMove(targetNode, elements, feedback, where); in callOnDropMove()
337 DropFeedback feedback) { in callOnDropLeave() argument
343 rule.onDropLeave(targetNode, elements, feedback); in callOnDropLeave()
358 DropFeedback feedback, in callOnDropped() argument
367 rule.onDropped(targetNode, elements, feedback, where); in callOnDropped()
382 DropFeedback feedback) { in callDropFeedbackPaint() argument
383 if (gc != null && feedback != null && feedback.painter != null) { in callDropFeedbackPaint()
385 feedback.painter.paint(gc, targetNode, feedback); in callDropFeedbackPaint()
461 public void callOnResizeUpdate(DropFeedback feedback, NodeProxy child, NodeProxy parent, in callOnResizeUpdate() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DGestureManager.java356 void updateMessage(DropFeedback feedback) { in updateMessage() argument
359 if (feedback == null) { in updateMessage()
365 } else if (feedback.errorMessage != null) { in updateMessage()
366 if (!feedback.errorMessage.equals(mDisplayingMessage)) { in updateMessage()
367 mDisplayingMessage = feedback.errorMessage; in updateMessage()
370 } else if (feedback.message != null) { in updateMessage()
371 if (!feedback.message.equals(mDisplayingMessage)) { in updateMessage()
372 mDisplayingMessage = feedback.message; in updateMessage()
384 if (feedback != null && feedback.tooltip != null) { in updateMessage()
387 if (feedback.tooltipY != null) { in updateMessage()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridLayoutPainter.java132 @NonNull DropFeedback feedback) { in paint() argument
141 GridDropHandler data = (GridDropHandler) feedback.userData; in paint()
144 paintFreeFormDropFeedback(gc, node, feedback, b, data); in paint()
153 private void paintFreeFormDropFeedback(IGraphics gc, INode node, DropFeedback feedback, in paintFreeFormDropFeedback() argument
175 offsetY -= feedback.dragBaseline; in paintFreeFormDropFeedback()
246 if (feedback.dragBaseline != -1) { in paintFreeFormDropFeedback()
248 int y1 = dragBounds.y + offsetY + feedback.dragBaseline; in paintFreeFormDropFeedback()
DGridDropHandler.java79 public void computeMatches(DropFeedback feedback, Point p) { in computeMatches() argument
81 feedback.tooltip = null; in computeMatches()
87 Rect dragBounds = feedback.dragBounds; in computeMatches()
118 addBaselineMatch(feedback.dragBaseline, y1, rowMatches, max, row, rowY); in computeMatches()
169 feedback.tooltip = columnDescription + '\n' + rowDescription; in computeMatches()
172 feedback.invalidTarget = mColumnMatch == null || mRowMatch == null; in computeMatches()
254 feedback.tooltip = description.toString(); in computeMatches()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcompletion12-expected-completion75.txt51 android:hapticFeedbackEnabled : Boolean that controls whether a view should have haptic feedback e…
Dcompletionvalues1-expected-completion32.txt38 android:clickColor : Color of the outline of click feedback. [color]
120 android:hapticFeedbackEnabled : Boolean that controls whether a view should have haptic feedback e…
Dcompletion5-expected-completion40.txt126 android:hapticFeedbackEnabled : Boolean that controls whether a view should have haptic feedback e…
Dcompletion1-expected-completion39.txt126 android:hapticFeedbackEnabled : Boolean that controls whether a view should have haptic feedback e…
/sdk/eclipse/
Dchanges.txt233 - Tooltip feedback for resizing and dragging operations. For