Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/Camera2/src/com/android/camera/crop/
DCropMath.java40 public static float[] getCornersFromRect(RectF r) { in getCornersFromRect() argument
42 r.left, r.top, in getCornersFromRect()
43 r.right, r.top, in getCornersFromRect()
44 r.right, r.bottom, in getCornersFromRect()
45 r.left, r.bottom in getCornersFromRect()
60 public static boolean inclusiveContains(RectF r, float x, float y) { in inclusiveContains() argument
61 return !(x > r.right || x < r.left || y > r.bottom || y < r.top); in inclusiveContains()
72 RectF r = new RectF(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY, in trapToRect() local
77 r.left = (x < r.left) ? x : r.left; in trapToRect()
78 r.top = (y < r.top) ? y : r.top; in trapToRect()
[all …]
DCropObject.java59 public void getInnerBounds(RectF r) { in getInnerBounds() argument
60 mBoundedRect.setToInner(r); in getInnerBounds()
63 public void getOuterBounds(RectF r) { in getOuterBounds() argument
64 mBoundedRect.setToOuter(r); in getOuterBounds()
293 private static RectF fixedCornerResize(RectF r, int moving_corner, float dx, float dy) { in fixedCornerResize() argument
297 newCrop = new RectF(r.left, r.top, r.left + r.width() + dx, r.top + r.height() in fixedCornerResize()
300 newCrop = new RectF(r.right - r.width() + dx, r.top, r.right, r.top + r.height() in fixedCornerResize()
303 newCrop = new RectF(r.right - r.width() + dx, r.bottom - r.height() + dy, in fixedCornerResize()
304 r.right, r.bottom); in fixedCornerResize()
306 newCrop = new RectF(r.left, r.bottom - r.height() + dy, r.left in fixedCornerResize()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapResponseParserTest.java72 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/
DCropMath.java42 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 …]
DCropObject.java61 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/
DHighlightView.java180 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/
DImageUtils.cpp30 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/
DImageUtils.cpp30 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/Camera2/jni/feature_mos/src/mosaic/
DImageUtils.cpp30 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/
DCharEscapers.java777 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/UnifiedEmail/src/com/android/mail/lib/base/
DCharEscapers.java777 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/
DStateView.java140 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/
DDayView.java2249 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/
DConfig.java44 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/Camera2/src/com/android/camera/ui/
DCameraControls.java60 public void onLayout(boolean changed, int l, int t, int r, int b) { in onLayout() argument
67 r = r - l; in onLayout()
73 v.layout(l, t, r, b); in onLayout()
76 topRight(mPreview, l, t, r, b); in onLayout()
82 l = (l + r - size) / 2; in onLayout()
83 r = l + size; in onLayout()
92 center(mShutter, l, t, r, b, orientation, rotation, shutter); in onLayout()
93 center(mBackgroundView, l, t, r, b, orientation, rotation, new Rect()); in onLayout()
107 …private void center(View v, int l, int t, int r, int b, int orientation, int rotation, Rect result… in center() argument
114 result.left = (r + l) / 2 - tw / 2 + lp.leftMargin; in center()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java172 TextRange r; in testGetWordRangeAtCursor() local
176 r = ic.getWordRangeAtCursor(" ", 0); in testGetWordRangeAtCursor()
177 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor()
180 r = ic.getWordRangeAtCursor(" ", 1); in testGetWordRangeAtCursor()
181 assertTrue(TextUtils.equals("word word", r.mWord)); in testGetWordRangeAtCursor()
187 r = ic.getWordRangeAtCursor("\t", 1); in testGetWordRangeAtCursor()
189 assertTrue(TextUtils.equals("word\tword", r.mWord)); in testGetWordRangeAtCursor()
194 r = ic.getWordRangeAtCursor("\t", 1); in testGetWordRangeAtCursor()
196 assertTrue(TextUtils.equals("word\tword", r.mWord)); in testGetWordRangeAtCursor()
201 r = ic.getWordRangeAtCursor(" \t", 1); in testGetWordRangeAtCursor()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java528 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/apps/Camera/src/com/android/camera/
DMediaSaver.java67 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/inputmethods/LatinIME/dictionaries/
Dtr_wordlist.combined.gz
/packages/apps/Mms/src/com/android/mms/ui/
DSlideshowPresenter.java140 RegionModel r = (rMedia).getRegion(); in presentRegionMedia() local
142 presentText(view, (TextModel) rMedia, r, dataChanged); in presentRegionMedia()
144 presentImage(view, (ImageModel) rMedia, r, dataChanged); in presentRegionMedia()
146 presentVideo(view, (VideoModel) rMedia, r, dataChanged); in presentRegionMedia()
170 RegionModel r, boolean dataChanged) { in presentText() argument
177 transformWidth(r.getLeft()), in presentText()
178 transformHeight(r.getTop()), in presentText()
179 transformWidth(r.getWidth()), in presentText()
180 transformHeight(r.getHeight())); in presentText()
191 RegionModel r, boolean dataChanged) { in presentImage() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java184 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/PinyinIME/src/com/android/inputmethod/pinyin/
DCandidateView.java230 Resources r = context.getResources(); in CandidateView() local
232 Configuration conf = r.getConfiguration(); in CandidateView()
238 mActiveCellDrawable = r.getDrawable(R.drawable.candidate_hl_bg); in CandidateView()
239 mSeparatorDrawable = r.getDrawable(R.drawable.candidates_vertical_line); in CandidateView()
240 mCandidateMargin = r.getDimension(R.dimen.candidate_margin_left_right); in CandidateView()
242 mImeCandidateColor = r.getColor(R.color.candidate_color); in CandidateView()
243 mRecommendedCandidateColor = r.getColor(R.color.recommended_candidate_color); in CandidateView()
245 mActiveCandidateColor = r.getColor(R.color.active_candidate_color); in CandidateView()
252 mFootnotePaint.setColor(r.getColor(R.color.footnote_color)); in CandidateView()
611 RectF r = mCandRects.elementAt(i);
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp85 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/Camera2/jni/feature_stab/db_vlvm/
Ddb_framestitching.cpp85 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/
Ddb_framestitching.cpp85 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 …]

12345678910>>...16