Home
last modified time | relevance | path

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

123

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DBinPacker.java80 if (rect.w >= mMinWidth && rect.h >= mMinHeight) { in addSpace()
112 if (rect.w >= width && rect.h >= height) { in findBest()
141 if (rect.w >= width && rect.h >= height) { in findBest()
143 int distance = rect.w - width; in findBest()
152 int distance = rect.w - width; in findBest()
197 assert rect.w >= width && rect.h >= height : rect; in split()
200 r.w = width; in split()
230 int remainingWidth = rect.w - width; in split()
254 mSpace.add(new Rect(rect.x, rect.y + height, rect.w, remainingHeight)); in split()
295 width = Math.max(width, rect.w); in dumpImage()
[all …]
DResizeGesture.java149 int w = b.w; in getNewBounds() local
159 if (mResizePolicy.isAspectPreserving() && w != 0 && h != 0) { in getNewBounds()
160 double aspectRatio = w / (double) h; in getNewBounds()
161 int newW = Math.abs(b.w + (direction.isLeft() ? -deltaX : deltaX)); in getNewBounds()
173 int x2 = b.x + b.w; in getNewBounds()
177 w = x2 - x; in getNewBounds()
179 w = 0; in getNewBounds()
185 int nx2 = b.x + b.w + deltaX; in getNewBounds()
187 w = nx2 - b.x; in getNewBounds()
189 w = 0; in getNewBounds()
[all …]
DGCWrapper.java270 int w = mHScale.scale(x2 - x1); in drawRect() local
272 getGc().drawRectangle(x, y, w, h); in drawRect()
286 int w = mHScale.scale(r.w); in drawRect() local
288 getGc().drawRectangle(x, y, w, h); in drawRect()
297 int w = mHScale.scale(x2 - x1); in fillRect() local
299 getGc().fillRectangle(x, y, w, h); in fillRect()
313 int w = mHScale.scale(r.w); in fillRect() local
315 getGc().fillRectangle(x, y, w, h); in fillRect()
325 int w = mHScale.scale(x2 - x1); in drawOval() local
327 getGc().drawOval(x, y, w, h); in drawOval()
[all …]
DMarqueeGesture.java74 int w = Math.abs(pos.x - mStart.x); in update() local
77 mOverlay.updateSize(x, y, w, h); in update()
81 LayoutPoint bottomRight = ControlPoint.create(mCanvas, x + w, y + h).toLayout(); in update()
124 public void updateSize(int x, int y, int w, int h) { in updateSize() argument
127 mRectangle.width = w; in updateSize()
DHoverOverlay.java132 public void setHover(int x, int y, int w, int h) { in setHover() argument
133 mHoverRect = new Rectangle(x, y, w, h); in setHover()
150 int w = mHScale.scale(mHoverRect.width); in paint() local
173 gc.drawRectangle(x, y, w, h); in paint()
182 gc.fillRectangle(x, y, w, h); in paint()
DImageOverlay.java397 private static SwtReadyBufferedImage createImage(int w, int h, Device device) { in createImage() argument
405 ImageData imageData = new ImageData(w, h, 32, in createImage()
408 SwtReadyBufferedImage swtReadyImage = new SwtReadyBufferedImage(w, h, in createImage()
419 public BufferedImage getImage(int w, int h) { in getImage() argument
422 awtImage.getWidth() != w || in getImage()
425 awtImage = SwtReadyBufferedImage.createImage(w, h, getDevice()); in getImage()
DSelectionHandles.java90 int w = r.w; in createHandles() local
92 int x2 = x1 + w; in createHandles()
DLintOverlay.java92 int w = mHScale.scale(bounds.width); in paint() local
94 if (w < iconWidth || h < iconHeight) { in paint()
100 x += w - iconWidth; in paint()
DEmptyViewsOverlay.java87 int w = mHScale.scale(r.width); in paint() local
91 gc.drawRectangle(x, y, w + 1, h + 1); in paint()
DOutlineOverlay.java92 int w = mHScale.scale(r.width); in drawOutline() local
100 gc.drawRectangle(x, y, w + 1, h + 1); in drawOutline()
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/views/
DMultiTouchView.java93 protected void onSizeChanged(int w, int h, int oldw, int oldh) { in onSizeChanged() argument
94 super.onSizeChanged(w, h, oldw, oldh); in onSizeChanged()
96 mBitmap = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in onSizeChanged()
154 public void drawBitmap(int x, int y, int w, int h, int[] colors) { in drawBitmap() argument
156 final Bitmap bmp = Bitmap.createBitmap(colors, 0, w, w, h, Bitmap.Config.ARGB_8888); in drawBitmap()
175 public void drawJpeg(int x, int y, int w, int h, InputStream jpeg) { in drawJpeg() argument
225 Log.w(TAG, log); in Logw()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DLinearLayoutRule.java321 int v = isVertical ? bc.y + (bc.h / 2) : bc.x + (bc.w / 2); in onDropEnter()
337 last = isVertical ? (bc.y + bc.h) : (bc.x + bc.w); in onDropEnter()
392 gc.drawLine(b.x, i, b.x + b.w, i);
441 offsetX = currX - be.x - (isLast ? 0 : (be.w / 2));
448 if (bounds.isValid() && (bounds.w > b.w || bounds.h > b.h) &&
455 if (bounds.w > b.w) {
457 pw = b.w;
460 pw = bounds.w;
514 data.setCurrX(b.x + b.w / 2);
516 data.setWidth(b.w);
[all …]
DBaseLayoutRule.java316 gc.drawRect(b.x + offsetX, b.y + offsetY, b.x + offsetX + b.w, b.y + offsetY + b.h); in drawElement()
680 int wrapWidth = resizeState.wrapBounds.w;
701 gc.drawLine(b.x + b.w - wrapWidth, y, b.x + b.w, y);
709 gc.drawLine(b.x, y, b.x + b.w, y);
716 x = b.x + b.w - wrapWidth;
773 if (Math.abs(newBounds.w - b.w) < maxMatchDistance) {
776 newBounds.x += newBounds.w - b.w;
778 newBounds.w = b.w;
805 newBounds.w = parentBounds.x2() - newBounds.x;
817 if (oldBounds.w != newBounds.w || oldBounds.h != newBounds.h) {
[all …]
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/
DMultiTouchActivity.java220 Log.w(TAG, "Unknown action type: " + action_code); in onTouch()
281 final int w = bb.getInt(); in onFrameBuffer() local
299 mImageView.drawJpeg(x, y, w, h, jpg); in onFrameBuffer()
305 final int pixel_num = h * w; in onFrameBuffer()
334 Log.w(TAG, "Invalid framebuffer format: " + format); in onFrameBuffer()
337 mImageView.drawBitmap(x, y, w, h, mColors); in onFrameBuffer()
353 int w = mImageView.getWidth(); in updateDisplay() local
355 if (w > h != e_width > e_height) { in updateDisplay()
357 int tmp = w; in updateDisplay()
358 w = h; in updateDisplay()
[all …]
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/
DShareMockupAction.java46 int w = v.getMeasuredWidth(); in launch() local
48 Bitmap mockup = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in launch()
50 v.layout(0, 0, w, h); in launch()
64 Log.w(TAG, msg, e); in launch()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridLayoutPainter.java178 offsetX -= dragBounds.w; in paintFreeFormDropFeedback()
180 offsetX -= dragBounds.w / 2; in paintFreeFormDropFeedback()
191 int centerX = bounds.w / 2 + offsetX + x; in paintFreeFormDropFeedback()
223 x1 = bounds.w + offsetX + x - 1; in paintFreeFormDropFeedback()
249 gc.drawLine(x1, y1, x1 + dragBounds.w, y1); in paintFreeFormDropFeedback()
255 b.x + offsetX + b.w, b.y + offsetY + b.h); in paintFreeFormDropFeedback()
304 offsetX -= radius + dragBounds.w / 2; in paintGridModeDropFeedback()
308 cellBounds.w - 2 * radius, 2 * radius + 1)); in paintGridModeDropFeedback()
313 cellBounds.w - 2 * radius, cellBounds.h - 2 * radius)); in paintGridModeDropFeedback()
322 x += cellBounds.w - bounds.w; in paintGridModeDropFeedback()
[all …]
DGridDropHandler.java88 int w = dragBounds != null ? dragBounds.w : 0; in computeMatches() local
98 int x2 = x1 + w; in computeMatches()
135 x2 = x1 + w; in computeMatches()
212 && dragBounds != null && dragBounds.w < cellWidth - 10) { in computeMatches()
553 startX = endX - bounds.w; in handleFreeFormDrop()
557 endX = startX + bounds.w; in handleFreeFormDrop()
589 if (!mColumnMatch.createCell && bounds.w <= MAX_CELL_DIFFERENCE * mGrid.getColumnWidth( in handleFreeFormDrop()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DGlTracePlugin.java117 IWorkbenchWindow w = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); in showConsoleView() local
118 if (w != null) { in showConsoleView()
119 IWorkbenchPage page = w.getActivePage(); in showConsoleView()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/
DRectTest.java32 assertEquals(0, r.w); in testRect()
40 assertEquals(3, r.w); in testRectIntIntIntInt()
59 assertEquals(20, r2.w); in testSetIntIntIntInt()
72 assertEquals(20, r.w); in testSetRect()
191 assertEquals(20, r.w); in testMoveTo()
202 assertEquals(20, r.w); in testOffsetBy()
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/scene/
DWindowsLoader.java70 Window w = new Window(line.substring(index + 1), id); in loadWindows() local
71 windows.add(w); in loadWindows()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
Dcompletion8-expected-completion42.txt1 Code completion in completion8.xml for android:w^i="100":
/sdk/templates/docs/
Dprettify.js10 …r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/…
12w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+…
22 …^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],…
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DConstraintPainter.java330 x1 = sourceBounds.x + 1 * sourceBounds.w / 4; in paintCornerConstraint()
332 x1 = sourceBounds.x + 3 * sourceBounds.w / 4; in paintCornerConstraint()
340 x2 = targetBounds.x + 1 * targetBounds.w / 4; in paintCornerConstraint()
342 x2 = targetBounds.x + 3 * targetBounds.w / 4; in paintCornerConstraint()
545 startX = targetBounds.x + targetBounds.w / 4; in paintVerticalConstraint()
550 endX = targetBounds.x + 3 * targetBounds.w / 4; in paintVerticalConstraint()
576 sourceBounds.w / 2 : sourceBounds.w / 4); in paintVerticalConstraint()
677 sourceX += sourceBounds.w / 2 - 2 * ARROW_SIZE; in paintHorizontalConstraint()
DMoveHandler.java124 int margin = !mSnap ? 0 : abs(newBounds.x - (x - newBounds.w)); in snapVertical()
128 newBounds.x = x - newBounds.w; in snapVertical()
131 newBounds.x = x - newBounds.w / 2; in snapVertical()
192 mBounds = new Rect(offsetX, offsetY, firstBounds.w, firstBounds.h); in updateMove()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/editors/
DDurationMinimap.java470 int w = (int) (duration * mScale); in getDurationBounds() local
473 return new Rectangle(x, y, w, h); in getDurationBounds()
486 int w = ((mMaxDurationLength + CONTEXT_PADDING) * mContextCount); in getBoundsFramingCalls() local
488 return new Rectangle(x, y, w, h); in getBoundsFramingCalls()

123