/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapResponseParserTest.java | 72 ImapResponse r; in testBasic() local 85 r = p.readResponse(); in testBasic() 93 ), r); in testBasic() local 95 r = p.readResponse(); in testBasic() 99 ), r); in testBasic() 101 r = p.readResponse(); in testBasic() 104 ), r); in testBasic() local 106 r = p.readResponse(); in testBasic() 115 ), r); in testBasic() local 117 r = p.readResponse(); in testBasic() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropMath.java | 42 public static float[] getCornersFromRect(RectF r) { in getCornersFromRect() argument 44 r.left, r.top, in getCornersFromRect() 45 r.right, r.top, in getCornersFromRect() 46 r.right, r.bottom, in getCornersFromRect() 47 r.left, r.bottom in getCornersFromRect() 62 public static boolean inclusiveContains(RectF r, float x, float y) { in inclusiveContains() argument 63 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains() 74 RectF r = new RectF(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, in trapToRect() local 79 r.left = (x < r.left) ? x : r.left; in trapToRect() 80 r.top = (y < r.top) ? y : r.top; in trapToRect() [all …]
|
D | CropObject.java | 61 public void getInnerBounds(RectF r) { in getInnerBounds() argument 62 mBoundedRect.setToInner(r); in getInnerBounds() 65 public void getOuterBounds(RectF r) { in getOuterBounds() argument 66 mBoundedRect.setToOuter(r); in getOuterBounds() 295 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument 299 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, r.top + r.height() in fixedCornerResize() 302 newCrop = new RectF(r.right - r.width() + dx, r.top, r.right, r.top + r.height() in fixedCornerResize() 305 newCrop = new RectF(r.right - r.width() + dx, r.bottom - r.height() + dy, in fixedCornerResize() 306 r.right, r.bottom); in fixedCornerResize() 308 newCrop = new RectF(r.left, r.bottom - r.height() + dy, r.left in fixedCornerResize() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | HighlightView.java | 180 Rect r = computeLayout(); in getHit() local 185 float distX = x - r.centerX(); in getHit() 186 float distY = y - r.centerY(); in getHit() 213 boolean verticalCheck = (y >= r.top - hysteresis) in getHit() 214 && (y < r.bottom + hysteresis); in getHit() 215 boolean horizCheck = (x >= r.left - hysteresis) in getHit() 216 && (x < r.right + hysteresis); in getHit() 219 if ((Math.abs(r.left - x) < hysteresis) && verticalCheck) { in getHit() 222 if ((Math.abs(r.right - x) < hysteresis) && verticalCheck) { in getHit() 225 if ((Math.abs(r.top - y) < hysteresis) && horizCheck) { in getHit() [all …]
|
/packages/apps/Camera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 30 int r,g,b, a; in rgba2yvu() local 38 r = (*image++); in rgba2yvu() 43 if (r < 0) r = 0; in rgba2yvu() 44 if (r > 255) r = 255; in rgba2yvu() 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 75 int r,g,b; in rgb2yvu() local 83 r = (*image++); in rgb2yvu() 87 if (r < 0) r = 0; in rgb2yvu() [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 30 int r,g,b, a; in rgba2yvu() local 38 r = (*image++); in rgba2yvu() 43 if (r < 0) r = 0; in rgba2yvu() 44 if (r > 255) r = 255; in rgba2yvu() 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 75 int r,g,b; in rgb2yvu() local 83 r = (*image++); in rgb2yvu() 87 if (r < 0) r = 0; in rgb2yvu() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | CharEscapers.java | 777 char[] r = new char[6]; 778 r[5] = HEX_DIGITS[c & 15]; 780 r[4] = HEX_DIGITS[c & 15]; 782 r[3] = HEX_DIGITS[c & 15]; 784 r[2] = HEX_DIGITS[c & 15]; 785 r[1] = 'u'; 786 r[0] = '\\'; 787 return r; 935 char[] r = replacements[c]; in escape() local 936 if (r != null) { in escape() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
D | StateView.java | 140 float r = sArrowHeight; in onDraw() local 144 drawHorizontalPath(w, h, r, d); in onDraw() 147 drawVerticalDownPath(w, h, r, d); in onDraw() 149 drawVerticalPath(w, h, r, d); in onDraw() 168 private void drawHorizontalPath(float w, float h, float r, float d) { in drawHorizontalPath() argument 176 mPath.lineTo(d, r); in drawHorizontalPath() 177 mPath.lineTo(0, r + d); in drawHorizontalPath() 178 mPath.lineTo(d, r + d + r); in drawHorizontalPath() 183 mPath.lineTo(w, r + d + r); in drawHorizontalPath() 184 mPath.lineTo(w - d, r + d); in drawHorizontalPath() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 2249 Rect r = mRect; in drawAfterScroll() local 2251 drawAllDayHighlights(r, canvas, p); in drawAfterScroll() 2254 drawUpperLeftCorner(r, canvas, p); in drawAfterScroll() 2257 drawScrollLine(r, canvas, p); in drawAfterScroll() 2258 drawDayHeaderLoop(r, canvas, p); in drawAfterScroll() 2269 private void drawUpperLeftCorner(Rect r, Canvas canvas, Paint p) { in drawUpperLeftCorner() argument 2283 private void drawScrollLine(Rect r, Canvas canvas, Paint p) { in drawScrollLine() argument 2302 private void drawAllDayHighlights(Rect r, Canvas canvas, Paint p) { in drawAllDayHighlights() argument 2305 r.top = 0; in drawAllDayHighlights() 2306 r.bottom = DAY_HEADER_HEIGHT; in drawAllDayHighlights() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Config.java | 44 Resources r = context.getResources(); in AlbumSetPage() local 46 placeholderColor = r.getColor(R.color.albumset_placeholder); in AlbumSetPage() 49 slotViewSpec.rowsLand = r.getInteger(R.integer.albumset_rows_land); in AlbumSetPage() 50 slotViewSpec.rowsPort = r.getInteger(R.integer.albumset_rows_port); in AlbumSetPage() 51 slotViewSpec.slotGap = r.getDimensionPixelSize(R.dimen.albumset_slot_gap); in AlbumSetPage() 54 paddingTop = r.getDimensionPixelSize(R.dimen.albumset_padding_top); in AlbumSetPage() 55 paddingBottom = r.getDimensionPixelSize(R.dimen.albumset_padding_bottom); in AlbumSetPage() 58 labelSpec.labelBackgroundHeight = r.getDimensionPixelSize( in AlbumSetPage() 60 labelSpec.titleOffset = r.getDimensionPixelSize( in AlbumSetPage() 62 labelSpec.countOffset = r.getDimensionPixelSize( in AlbumSetPage() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | PhotoView.java | 528 int r = mCameraRelativeFrame.right; in updateCameraRect() local 533 case 0: mCameraRect.set(l, t, r, b); break; in updateCameraRect() 534 case 90: mCameraRect.set(h - b, l, h - t, r); break; in updateCameraRect() 535 case 180: mCameraRect.set(w - r, h - b, w - l, h - t); break; in updateCameraRect() 536 case 270: mCameraRect.set(t, w - r, b, w - l); break; in updateCameraRect() 584 void draw(GLCanvas canvas, Rect r); in draw() argument 644 public void draw(GLCanvas canvas, Rect r) { in draw() argument 645 drawTileView(canvas, r); in draw() 676 private void drawTileView(GLCanvas canvas, Rect r) { in drawTileView() argument 680 float cx = r.exactCenterX(); in drawTileView() [all …]
|
/packages/inputmethods/LatinIME/dictionaries/ |
D | tr_wordlist.combined.gz | 1dictionary=main:tr,locale=tr,description=Türkçe,date=1393228155, ... |
/packages/apps/Camera/src/com/android/camera/ |
D | MediaSaver.java | 67 SaveRequest r = new SaveRequest(); in addImage() local 68 r.data = data; in addImage() 69 r.date = date; in addImage() 70 r.title = title; in addImage() 71 r.loc = (loc == null) ? null : new Location(loc); // make a copy in addImage() 72 r.width = width; in addImage() 73 r.height = height; in addImage() 74 r.orientation = orientation; in addImage() 75 r.listener = l; in addImage() 84 mQueue.add(r); in addImage() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | SlideshowPresenter.java | 141 RegionModel r = (rMedia).getRegion(); in presentRegionMedia() local 143 presentText(view, (TextModel) rMedia, r, dataChanged); in presentRegionMedia() 145 presentImage(view, (ImageModel) rMedia, r, dataChanged); in presentRegionMedia() 147 presentVideo(view, (VideoModel) rMedia, r, dataChanged); in presentRegionMedia() 171 RegionModel r, boolean dataChanged) { in presentText() argument 178 transformWidth(r.getLeft()), in presentText() 179 transformHeight(r.getTop()), in presentText() 180 transformWidth(r.getWidth()), in presentText() 181 transformHeight(r.getHeight())); in presentText() 192 RegionModel r, boolean dataChanged) { in presentImage() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 184 public static void scaleRect(RectF r, float scale) { in scaleRect() argument 185 r.set(r.left * scale, r.top * scale, r.right * scale, r.bottom * scale); in scaleRect() 211 public static Rect roundNearest(RectF r) { in roundNearest() argument 212 Rect q = new Rect(Math.round(r.left), Math.round(r.top), Math.round(r.right), in roundNearest() 213 Math.round(r.bottom)); in roundNearest() 263 for (FilterRepresentation r : geometry) { in unpackGeometry() 264 if (r.isNil()) { in unpackGeometry() 267 if (r.getSerializationName() == FilterRotateRepresentation.SERIALIZATION_NAME) { in unpackGeometry() 268 out.rotation = ((FilterRotateRepresentation) r).getRotation(); in unpackGeometry() 269 } else if (r.getSerializationName() == in unpackGeometry() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | RichInputConnectionAndTextRangeTests.java | 241 TextRange r; in testGetWordRangeAtCursor() local 245 r = ic.getWordRangeAtCursor(SPACE, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor() 246 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 251 r = ic.getWordRangeAtCursor(TAB, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor() 253 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 259 r = ic.getWordRangeAtCursor(SUPPLEMENTARY_CHAR, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor() 261 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 267 r = ic.getWordRangeAtCursor(SUPPLEMENTARY_CHAR, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor() 269 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 275 r = ic.getWordRangeAtCursor(SUPPLEMENTARY_CHAR, ScriptUtils.SCRIPT_GREEK); in testGetWordRangeAtCursor() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
D | MonthWeekEventsView.java | 561 r.top = DAY_SEPARATOR_INNER_WIDTH + (TODAY_HIGHLIGHT_WIDTH / 2); in drawToday() 562 r.bottom = mHeight - (int) Math.ceil(TODAY_HIGHLIGHT_WIDTH / 2.0f); in drawToday() 565 r.left = computeDayLeftPosition(mTodayIndex) + (TODAY_HIGHLIGHT_WIDTH / 2); in drawToday() 566 r.right = computeDayLeftPosition(mTodayIndex + 1) in drawToday() 569 canvas.drawRect(r, p); in drawToday() 627 r.top = DAY_SEPARATOR_INNER_WIDTH; in drawBackground() 628 r.bottom = mHeight; in drawBackground() 636 r.right = computeDayLeftPosition(i - offset); in drawBackground() 637 r.left = 0; in drawBackground() 639 canvas.drawRect(r, p); in drawBackground() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_framestitching.cpp | 85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local 106 r[0]=(*temp++)-c[0]; in db_StitchSimilarity3DRaw() 107 r[1]=(*temp++)-c[1]; in db_StitchSimilarity3DRaw() 108 r[2]=(*temp++)-c[2]; in db_StitchSimilarity3DRaw() 113 M[0]+=r[0]*rp[0]; in db_StitchSimilarity3DRaw() 114 M[1]+=r[0]*rp[1]; in db_StitchSimilarity3DRaw() 115 M[2]+=r[0]*rp[2]; in db_StitchSimilarity3DRaw() 116 M[3]+=r[1]*rp[0]; in db_StitchSimilarity3DRaw() 117 M[4]+=r[1]*rp[1]; in db_StitchSimilarity3DRaw() 118 M[5]+=r[1]*rp[2]; in db_StitchSimilarity3DRaw() [all …]
|
/packages/apps/Camera/jni/feature_stab/db_vlvm/ |
D | db_framestitching.cpp | 85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local 106 r[0]=(*temp++)-c[0]; in db_StitchSimilarity3DRaw() 107 r[1]=(*temp++)-c[1]; in db_StitchSimilarity3DRaw() 108 r[2]=(*temp++)-c[2]; in db_StitchSimilarity3DRaw() 113 M[0]+=r[0]*rp[0]; in db_StitchSimilarity3DRaw() 114 M[1]+=r[0]*rp[1]; in db_StitchSimilarity3DRaw() 115 M[2]+=r[0]*rp[2]; in db_StitchSimilarity3DRaw() 116 M[3]+=r[1]*rp[0]; in db_StitchSimilarity3DRaw() 117 M[4]+=r[1]*rp[1]; in db_StitchSimilarity3DRaw() 118 M[5]+=r[1]*rp[2]; in db_StitchSimilarity3DRaw() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | RadioInfo.java | 467 Resources r = getResources(); in updateSignalStrength() local 483 + r.getString(R.string.radioInfo_display_dbm) + " " in updateSignalStrength() 485 + r.getString(R.string.radioInfo_display_asu)); in updateSignalStrength() 489 Resources r = getResources(); in updateLocation() local 494 mLocation.setText(r.getString(R.string.radioInfo_lac) + " = " in updateLocation() 497 + r.getString(R.string.radioInfo_cid) + " = " in updateLocation() 581 Resources r = getResources(); in updateServiceState() local 582 String display = r.getString(R.string.radioInfo_unknown); in updateServiceState() 586 display = r.getString(R.string.radioInfo_service_in); in updateServiceState() 590 display = r.getString(R.string.radioInfo_service_emergency); in updateServiceState() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 292 static int widthInPortrait(Resources r, int numCells) { in widthInPortrait() argument 296 int cellWidth = r.getDimensionPixelSize(R.dimen.workspace_cell_width); in widthInPortrait() 297 int minGap = Math.min(r.getDimensionPixelSize(R.dimen.workspace_width_gap), in widthInPortrait() 298 r.getDimensionPixelSize(R.dimen.workspace_height_gap)); in widthInPortrait() 303 static int heightInLandscape(Resources r, int numCells) { in heightInLandscape() argument 307 int cellHeight = r.getDimensionPixelSize(R.dimen.workspace_cell_height); in heightInLandscape() 308 int minGap = Math.min(r.getDimensionPixelSize(R.dimen.workspace_width_gap), in heightInLandscape() 309 r.getDimensionPixelSize(R.dimen.workspace_height_gap)); in heightInLandscape() 354 void setOverScrollAmount(float r, boolean left) { in setOverScrollAmount() argument 361 mForegroundAlpha = (int) Math.round((r * 255)); in setOverScrollAmount() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationAppList.java | 237 Row r = getItem(position); in getItemViewType() local 238 return r instanceof AppRow ? 1 : 0; in getItemViewType() 242 Row r = getItem(position); in getView() local 245 v = newView(parent, r); in getView() 249 bindView(v, r, false /*animate*/); in getView() 253 public View newView(ViewGroup parent, Row r) { in newView() argument 254 if (!(r instanceof AppRow)) { in newView() 280 public void bindView(final View view, Row r, boolean animate) { in bindView() argument 281 if (!(r instanceof AppRow)) { in bindView() 284 tv.setText(r.section); in bindView() [all …]
|
/packages/apps/Mms/src/com/android/mms/exif/ |
D | CountedDataInputStream.java | 45 int r = in.read(b); in read() local 46 mCount += (r >= 0) ? r : 0; in read() 47 return r; in read() 52 int r = in.read(b, off, len); in read() local 53 mCount += (r >= 0) ? r : 0; in read() 54 return r; in read() 59 int r = in.read(); in read() local 60 mCount += (r >= 0) ? 1 : 0; in read() 61 return r; in read() 83 int r = read(b, off, len); in readOrThrow() local [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
D | CountedDataInputStream.java | 45 int r = in.read(b); in read() local 46 mCount += (r >= 0) ? r : 0; in read() 47 return r; in read() 52 int r = in.read(b, off, len); in read() local 53 mCount += (r >= 0) ? r : 0; in read() 54 return r; in read() 59 int r = in.read(); in read() local 60 mCount += (r >= 0) ? 1 : 0; in read() 61 return r; in read() 83 int r = read(b, off, len); in readOrThrow() local [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | CountedDataInputStream.java | 45 int r = in.read(b); in read() local 46 mCount += (r >= 0) ? r : 0; in read() 47 return r; in read() 52 int r = in.read(b, off, len); in read() local 53 mCount += (r >= 0) ? r : 0; in read() 54 return r; in read() 59 int r = in.read(); in read() local 60 mCount += (r >= 0) ? 1 : 0; in read() 61 return r; in read() 83 int r = read(b, off, len); in readOrThrow() local [all …]
|