/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/api/ |
D | RectTest.java | 29 Rect r = new Rect(); in testRect() local 30 assertEquals(0, r.x); in testRect() 31 assertEquals(0, r.y); in testRect() 32 assertEquals(0, r.w); in testRect() 33 assertEquals(0, r.h); in testRect() 37 Rect r = new Rect(1, 2, 3, 4); in testRectIntIntIntInt() local 38 assertEquals(1, r.x); in testRectIntIntIntInt() 39 assertEquals(2, r.y); in testRectIntIntIntInt() 40 assertEquals(3, r.w); in testRectIntIntIntInt() 41 assertEquals(4, r.h); in testRectIntIntIntInt() [all …]
|
/sdk/emulator/gps/ |
D | gps_qemu.c | 195 nmea_reader_update_utc_diff( NmeaReader* r ) in nmea_reader_update_utc_diff() argument 217 r->utc_diff = time_utc - time_local; in nmea_reader_update_utc_diff() 222 nmea_reader_init( NmeaReader* r ) in nmea_reader_init() argument 224 memset( r, 0, sizeof(*r) ); in nmea_reader_init() 226 r->pos = 0; in nmea_reader_init() 227 r->overflow = 0; in nmea_reader_init() 228 r->utc_year = -1; in nmea_reader_init() 229 r->utc_mon = -1; in nmea_reader_init() 230 r->utc_day = -1; in nmea_reader_init() 231 r->callback = NULL; in nmea_reader_init() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | IncludeOverlay.java | 109 for (Rectangle r : result) { in subtractRectangles() 110 if (hole.intersects(r)) { in subtractRectangles() 112 Rectangle h = hole.intersection(r); in subtractRectangles() 117 if (h.y > r.y) { in subtractRectangles() 118 tempResult.add(new Rectangle(r.x, r.y, r.width, h.y - r.y)); in subtractRectangles() 122 if (h.x > r.x) { in subtractRectangles() 123 tempResult.add(new Rectangle(r.x, h.y, h.x - r.x, h.height)); in subtractRectangles() 128 int rx2 = r.x + r.width; in subtractRectangles() 129 int ry2 = r.y + r.height; in subtractRectangles() 133 tempResult.add(new Rectangle(r.x, hy2, r.width, ry2 - hy2)); in subtractRectangles() [all …]
|
D | EmptyViewsOverlay.java | 83 Rectangle r = info.getAbsRect(); in paint() local 85 int x = mHScale.translate(r.x); in paint() 86 int y = mVScale.translate(r.y); in paint() 87 int w = mHScale.scale(r.width); in paint() 88 int h = mVScale.scale(r.height); in paint()
|
D | OutlineOverlay.java | 88 Rectangle r = info.getAbsRect(); in drawOutline() local 90 int x = mHScale.translate(r.x); in drawOutline() 91 int y = mVScale.translate(r.y); in drawOutline() 92 int w = mHScale.scale(r.width); in drawOutline() 93 int h = mVScale.scale(r.height); in drawOutline()
|
D | SelectionHandles.java | 75 Rect r = selectedNode.getBounds(); in createHandles() local 76 if (!r.isValid()) { in createHandles() 88 int x1 = r.x; in createHandles() 89 int y1 = r.y; in createHandles() 90 int w = r.w; in createHandles() 91 int h = r.h; in createHandles()
|
D | GCWrapper.java | 265 public void drawRect(Rect r) { in drawRect() argument 268 int x = mHScale.translate(r.x); in drawRect() 269 int y = mVScale.translate(r.y); in drawRect() 270 int w = mHScale.scale(r.w); in drawRect() 271 int h = mVScale.scale(r.h); in drawRect() 289 public void fillRect(Rect r) { in fillRect() argument 292 int x = mHScale.translate(r.x); in fillRect() 293 int y = mVScale.translate(r.y); in fillRect() 294 int w = mHScale.scale(r.w); in fillRect() 295 int h = mVScale.scale(r.h); in fillRect() [all …]
|
D | SelectionOverlay.java | 191 Rect r = selectedNode.getBounds(); in paintSelection() local 192 if (!r.isValid()) { in paintSelection() 199 int x1 = r.x; in paintSelection() 200 int y1 = r.y; in paintSelection() 201 int x2 = r.x2() + 1; in paintSelection() 202 int y2 = r.y2() + 1; in paintSelection() 219 r = SwtUtils.toRect(sibling.getSelectionRect()); in paintSelection() 220 gc.fillRect(r); in paintSelection() 221 gc.drawRect(r); in paintSelection()
|
D | SelectionItem.java | 69 Rectangle r = canvasViewInfo.getSelectionRect(); in SelectionItem() local 70 mRect = new Rectangle(r.x, r.y, r.width, r.height); in SelectionItem()
|
D | SimpleElement.java | 222 Rect r = null; in parseLines() local 224 r = new Rect(); in parseLines() 225 r.x = Integer.parseInt(sb[0]); in parseLines() 226 r.y = Integer.parseInt(sb[1]); in parseLines() 227 r.w = Integer.parseInt(sb[2]); in parseLines() 228 r.h = Integer.parseInt(sb[3]); in parseLines() 231 bounds = r; in parseLines() 233 pbounds = r; in parseLines()
|
D | ViewHierarchy.java | 402 Rectangle r = canvasViewInfo.getSelectionRect(); in addWithin() local 403 if (canvasRectangle.intersects(r)) { in addWithin() 488 Rectangle r = canvasViewInfo.getSelectionRect(); in findViewInfoAt_Recursive() local 489 if (r.contains(p.x, p.y)) { in findViewInfoAt_Recursive() 533 Rectangle r; in findAltViewInfoAt_Recursive() local 540 r = parent.getSelectionRect(); in findAltViewInfoAt_Recursive() 541 if (r.contains(p.x, p.y)) { in findAltViewInfoAt_Recursive() 550 r = child.getSelectionRect(); in findAltViewInfoAt_Recursive() 551 if (r.contains(p.x, p.y)) { in findAltViewInfoAt_Recursive() 558 r = child.getSelectionRect(); in findAltViewInfoAt_Recursive() [all …]
|
D | ImageControl.java | 123 Rectangle r = mImage.getBounds(); in computeSize() local 125 e.x += mScale * r.width; in computeSize() 126 e.y += mScale * r.height; in computeSize() 128 e.x += r.width; in computeSize() 129 e.y += r.height; in computeSize()
|
/sdk/ninepatch/src/com/android/ninepatch/ |
D | NinePatchChunk.java | 154 Rectangle r; in draw() local 157 r = mHorizontalPatches.get(horizontalIndex++); in draw() 158 float extra = r.width / data.mHorizontalPatchesSum; in draw() 162 g.drawImage(image, x, y, x + width, y + r.height, r.x, r.y, in draw() 163 r.x + r.width, r.y + r.height, null); in draw() 166 r = mFixed.get(fixedIndex++); in draw() 167 g.drawImage(image, x, y, x + r.width, y + r.height, r.x, r.y, in draw() 168 r.x + r.width, r.y + r.height, null); in draw() 169 x += r.width; in draw() 171 height = r.height; in draw() [all …]
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/ |
D | LogCatReceiverFactory.java | 57 LogCatReceiver r = mReceiverCache.get(device.getSerialNumber()); in newReceiver() local 58 if (r != null) { in newReceiver() 59 return r; in newReceiver() 62 r = new LogCatReceiver(device, prefs); in newReceiver() 63 mReceiverCache.put(device.getSerialNumber(), r); in newReceiver() local 64 return r; in newReceiver()
|
/sdk/chimpchat/src/com/android/chimpchat/core/ |
D | ChimpRect.java | 55 ChimpRect r = (ChimpRect) obj; in equals() local 56 if (r != null) { in equals() 57 return left == r.left && top == r.top && right == r.right in equals() 58 && bottom == r.bottom; in equals()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
D | SourceProcessor.java | 363 for (IResource r : members) { in scanFolderForSourceFiles() 365 switch (r.getType()) { in scanFolderForSourceFiles() 369 if (r.exists() && in scanFolderForSourceFiles() 370 getExtension().equalsIgnoreCase(r.getFileExtension())) { in scanFolderForSourceFiles() 371 mFiles.put((IFile) r, new SourceFileData((IFile) r)); in scanFolderForSourceFiles() 376 scanFolderForSourceFiles(sourceFolder, (IFolder)r); in scanFolderForSourceFiles() 402 for (IFile r : toRemove) { in mergeFileModifications() 403 if (mRemoved.indexOf(r) == -1) { in mergeFileModifications() 404 mRemoved.add(r); in mergeFileModifications() 407 int index = mToCompile.indexOf(r); in mergeFileModifications() [all …]
|
/sdk/rule_api/src/com/android/ide/common/api/ |
D | Rect.java | 46 public Rect(Rect r) { in Rect() argument 47 set(r); in Rect() 60 public Rect set(Rect r) { in set() argument 61 set(r.x, r.y, r.w, r.h); in set()
|
/sdk/draw9patch/src/com/android/draw9patch/ui/ |
D | ImageEditorPanel.java | 577 Rectangle r; in paintComponent() local 580 r = horizontalPatches.get(horizontalIndex++); in paintComponent() 581 float extra = r.width / horizontalPatchesSum; in paintComponent() 585 g.drawImage(image, x, y, x + width, y + r.height, r.x, r.y, in paintComponent() 586 r.x + r.width, r.y + r.height, null); in paintComponent() 589 r = fixed.get(fixedIndex++); in paintComponent() 590 g.drawImage(image, x, y, x + r.width, y + r.height, r.x, r.y, in paintComponent() 591 r.x + r.width, r.y + r.height, null); in paintComponent() 592 x += r.width; in paintComponent() 594 height = r.height; in paintComponent() [all …]
|
/sdk/testapps/basicJar/src/com/android/tests/basicjar/ |
D | Foo.java | 13 Random r = new Random(System.currentTimeMillis()); in getRandomFoo() local 14 return r.nextInt(FOO); in getRandomFoo()
|
/sdk/testapps/basicJavaProject/src/com/android/tests/basicJavaProject/ |
D | Foo.java | 13 Random r = new Random(System.currentTimeMillis()); in getRandomFoo() local 14 return r.nextInt(FOO); in getRandomFoo()
|
/sdk/assetstudio/src/com/android/assetstudiolib/ |
D | Util.java | 99 final int r = (int) Math.ceil(radius); in blurredImage() local 100 final int rows = r * 2 + 1; in blurredImage() 113 for (y = -r; y <= r; y++) { in blurredImage() 114 for (x = -r; x <= r; x++) { in blurredImage() 131 BufferedImage paddedSource = paddedImage(source, r); in blurredImage() 134 return blurredPaddedImage.getSubimage(r, r, source.getWidth(), source.getHeight()); in blurredImage() 212 int l = srcWidth, t = srcHeight, r = 0, b = 0; in trimmedImage() local 223 r = Math.max(x, r); in trimmedImage() 229 if (l > r || t > b) { in trimmedImage() 234 return source.getSubimage(l, t, r - l + 1, b - t + 1); in trimmedImage()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SwtUtilsTest.java | 203 Rect r = new Rect(1, 2, 3, 4); in testSetRectangle() local 205 SwtUtils.set(r, r2); in testSetRectangle() 207 assertEquals(3, r.x); in testSetRectangle() 208 assertEquals(4, r.y); in testSetRectangle() 209 assertEquals(20, r.w); in testSetRectangle() 210 assertEquals(30, r.h); in testSetRectangle() 214 Rectangle r = new Rectangle(3, 4, 20, 30); in testRectRectangle() local 215 Rect r2 = SwtUtils.toRect(r); in testRectRectangle() 255 int r = y + 60; in testCrop1() local 258 RGB expected = new RGB(r, g, 0); in testCrop1() [all …]
|
/sdk/eclipse/scripts/ |
D | gen_icon.py | 43 r = range(-zoom/2, zoom/2+1) 45 r = [ 0 ] 54 for i in r: 63 for i in r:
|
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/ |
D | Result.java | 143 Result r = new Result(this); in getCopyWithData() local 144 r.mData = data; in getCopyWithData() 145 return r; in getCopyWithData()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/ |
D | LaunchShortcut.java | 53 IResource r = (IResource)((IAdaptable)o).getAdapter(IResource.class); in launch() local 56 if (r != null) { in launch() 57 IProject project = r.getProject(); in launch()
|