Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java212 for (SeriesRecording r : seriesRecordings) { in start()
214 !seriesIds.contains(r.getSeriesId()), in start()
217 + r)) { in start()
218 seriesIds.add(r.getSeriesId()); in start()
219 if (isInputAvailable(r.getInputId())) { in start()
220 mSeriesRecordings.put(r.getId(), r); in start()
221 mSeriesId2SeriesRecordings.put(r.getSeriesId(), r); in start()
223 mSeriesRecordingsForRemovedInput.put(r.getId(), r); in start()
226 if (maxId < r.getId()) { in start()
227 maxId = r.getId(); in start()
[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/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/TV/tests/common/src/com/android/tv/testing/dvr/
DDvrDataManagerInMemoryImpl.java89 for (SeriesRecording r : mSeriesRecordings.values()) { in getSeriesRecordings()
90 if (TextUtils.equals(r.getInputId(), inputId)) { in getSeriesRecordings()
91 result.add(r); in getSeriesRecordings()
102 for (ScheduledRecording r : temp) { in getNextScheduledStartTimeAfter()
103 if (r.getStartTimeMs() > startTime) { in getNextScheduledStartTimeAfter()
104 return r.getStartTimeMs(); in getNextScheduledStartTimeAfter()
115 for (ScheduledRecording r : temp) { in getScheduledRecordings()
116 if (r.isOverLapping(period) && r.getState() == state) { in getScheduledRecordings()
117 result.add(r); in getScheduledRecordings()
126 for (ScheduledRecording r : mScheduledRecordings.values()) { in getScheduledRecordings()
[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/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/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/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/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/Launcher3/src/com/android/launcher3/
DUtilities.java312 public static void scaleRectFAboutCenter(RectF r, float scale) { in scaleRectFAboutCenter() argument
314 float cx = r.centerX(); in scaleRectFAboutCenter()
315 float cy = r.centerY(); in scaleRectFAboutCenter()
316 r.offset(-cx, -cy); in scaleRectFAboutCenter()
317 r.left = r.left * scale; in scaleRectFAboutCenter()
318 r.top = r.top * scale ; in scaleRectFAboutCenter()
319 r.right = r.right * scale; in scaleRectFAboutCenter()
320 r.bottom = r.bottom * scale; in scaleRectFAboutCenter()
321 r.offset(cx, cy); in scaleRectFAboutCenter()
325 public static void scaleRectAboutCenter(Rect r, float scale) { in scaleRectAboutCenter() argument
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DDayView.java1977 Rect r = mRect; in drawAfterScroll() local
1979 drawAllDayHighlights(r, canvas, p); in drawAfterScroll()
1982 drawUpperLeftCorner(r, canvas, p); in drawAfterScroll()
1985 drawScrollLine(r, canvas, p); in drawAfterScroll()
1986 drawDayHeaderLoop(r, canvas, p); in drawAfterScroll()
1997 private void drawUpperLeftCorner(Rect r, Canvas canvas, Paint p) { in drawUpperLeftCorner() argument
2011 private void drawScrollLine(Rect r, Canvas canvas, Paint p) { in drawScrollLine() argument
2030 private void drawAllDayHighlights(Rect r, Canvas canvas, Paint p) { in drawAllDayHighlights() argument
2033 r.top = 0; in drawAllDayHighlights()
2034 r.bottom = DAY_HEADER_HEIGHT; in drawAllDayHighlights()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/data/
DSeriesRecording.java104 public static Builder buildFrom(SeriesRecording r) { in buildFrom() argument
106 .setId(r.mId) in buildFrom()
107 .setInputId(r.getInputId()) in buildFrom()
108 .setChannelId(r.getChannelId()) in buildFrom()
109 .setPriority(r.getPriority()) in buildFrom()
110 .setTitle(r.getTitle()) in buildFrom()
111 .setDescription(r.getDescription()) in buildFrom()
112 .setLongDescription(r.getLongDescription()) in buildFrom()
113 .setSeriesId(r.getSeriesId()) in buildFrom()
114 .setStartFromEpisode(r.getStartFromEpisode()) in buildFrom()
[all …]
DScheduledRecording.java428 public static ContentValues toContentValues(ScheduledRecording r) { in toContentValues() argument
430 if (r.getId() != ID_NOT_SET) { in toContentValues()
431 values.put(Schedules._ID, r.getId()); in toContentValues()
433 values.put(Schedules.COLUMN_INPUT_ID, r.getInputId()); in toContentValues()
434 values.put(Schedules.COLUMN_CHANNEL_ID, r.getChannelId()); in toContentValues()
435 values.put(Schedules.COLUMN_PROGRAM_ID, r.getProgramId()); in toContentValues()
436 values.put(Schedules.COLUMN_PROGRAM_TITLE, r.getProgramTitle()); in toContentValues()
437 values.put(Schedules.COLUMN_PRIORITY, r.getPriority()); in toContentValues()
438 values.put(Schedules.COLUMN_START_TIME_UTC_MILLIS, r.getStartTimeMs()); in toContentValues()
439 values.put(Schedules.COLUMN_END_TIME_UTC_MILLIS, r.getEndTimeMs()); in toContentValues()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragShadowBuilder.java67 Rect r = canvas.getClipBounds(); in onDrawShadow() local
70 View.MeasureSpec.makeMeasureSpec(r.right- r.left, View.MeasureSpec.EXACTLY), in onDrawShadow()
71 View.MeasureSpec.makeMeasureSpec(r.bottom - r.top , View.MeasureSpec.EXACTLY)); in onDrawShadow()
72 mShadowView.layout(r.left, r.top, r.right, r.bottom); in onDrawShadow()
80 canvas.drawRect(r.left + mPadding, r.top + mPadding, r.right - mPadding, in onDrawShadow()
81 r.bottom - mPadding, paint); in onDrawShadow()
85 canvas.drawRect(r.left + mPadding, r.top + mPadding, r.right - mPadding, in onDrawShadow()
86 r.bottom - mPadding, paint); in onDrawShadow()
/packages/services/Car/evs/app/
DFormatConvert.cpp75 for (unsigned r = 0; r < height; r++) { in copyNV21toRGB32() local
77 uint8_t* rowY = srcY + r*strideLum; in copyNV21toRGB32()
78 uint8_t* rowUV = srcUV + (r/2 * strideColor); in copyNV21toRGB32()
80 uint32_t* rowDest = dst + r*dstStridePixels; in copyNV21toRGB32()
110 for (unsigned r = 0; r < height; r++) { in copyYV12toRGB32() local
112 uint8_t* rowY = srcY + r*strideLum; in copyYV12toRGB32()
113 uint8_t* rowU = srcU + (r/2 * strideColor); in copyYV12toRGB32()
114 uint8_t* rowV = srcV + (r/2 * strideColor); in copyYV12toRGB32()
116 uint32_t* rowDest = dst + r*dstStridePixels; in copyYV12toRGB32()
134 for (unsigned r = 0; r < height; r++) { in copyYUYVtoRGB32() local
/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/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java527 int r = mCameraRelativeFrame.right; in updateCameraRect() local
532 case 0: mCameraRect.set(l, t, r, b); break; in updateCameraRect()
533 case 90: mCameraRect.set(h - b, l, h - t, r); break; in updateCameraRect()
534 case 180: mCameraRect.set(w - r, h - b, w - l, h - t); break; in updateCameraRect()
535 case 270: mCameraRect.set(t, w - r, b, w - l); break; in updateCameraRect()
583 void draw(GLCanvas canvas, Rect r); in draw() argument
643 public void draw(GLCanvas canvas, Rect r) { in draw() argument
644 drawTileView(canvas, r); in draw()
675 private void drawTileView(GLCanvas canvas, Rect r) { in drawTileView() argument
679 float cx = r.exactCenterX(); in drawTileView()
[all …]
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar8 …ĩ��YZ�хm�Ջ���ɫBH�����ߝ�o���Q���'$�I`�6�� KV��+�#�'u,��\��%&1\��r}�''��)���SrѨ�'s~�`{�0��.…
10 …���^I1��C�,|�}$ ��M+�х����,�.�|<C�sKⷋHK� 6�b��mר��;o����0(���b���XWOw�����r�z�?���(D��Ox��Z�…
18 �D�W�*r���>j�{�a����ԁ=m���S��S� Ga��7�m�&?�~�4�eA�a�,�=҈ �z+S�%EC}PZۯ���
19r�W�AsG K�~Po�2�W��rjzkdm�*������g�{�O�����׎�[[��h�8�r�!m�\���j~��)�8�P����W]�wI|��iR6…
24 WM��dn`� �~'�j6o~�շr��H5Nے�VWe'�Ȗ6��9����`e�Z�C�Kz�JP�7g�zE�*|�N
26 …6�B�j���;���YN��7��J�ͥ�y*%��3%�9y�F��M-�e�5~a 9Z�c.������YSv:��--G���r����Pw���%z�a8���:…
27 …��cK�67�Z?��F�D�=�t��>N��?�"�D6���P6f�u7/ac�(��������S::�n��'j's��;X�r��>����y�ڱ�6JcG�Ǥ�…
29 ��%^!N'\�8�~���{��f(��J�C�< :*ϸi%Xl�:��C�M�� �����y�ݭh��t���yE��@#gw���� �cr��?#�P�֬,`���/�…
30r����@�삟��������opiR�����գ�wCp�>��E��e���x���F�V\ B�B�K ����4�,�]��, �:r������a�Y��…
35 Z�}�Z�l��5�,Ab5 �4HШ.sk�� �ΛRC3�P���݇"T?r;��*�� 0��J`3S������}�� �7��jz�ս�'��ߋ�p�g�j�������…
/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/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DCountedDataInputStream.java46 int r = in.read(b); in read() local
47 count += (r >= 0) ? r : 0; in read()
48 return r; in read()
53 int r = in.read(b, off, len); in read() local
54 count += (r >= 0) ? r : 0; in read()
55 return r; in read()
60 int r = in.read(); in read() local
61 count += (r >= 0) ? 1 : 0; in read()
62 return r; in read()
86 int r = read(b, off, len); in readOrThrow() local
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java45 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/Messaging/src/com/android/messaging/util/exif/
DCountedDataInputStream.java45 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()
85 int r = read(b, off, len); in readOrThrow() local
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DCountedDataInputStream.java45 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java254 TextRange r; in testGetWordRangeAtCursor() local
258 r = ic.getWordRangeAtCursor(SPACE, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor()
259 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor()
264 r = ic.getWordRangeAtCursor(TAB, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor()
266 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor()
272 r = ic.getWordRangeAtCursor(SUPPLEMENTARY_CHAR, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor()
274 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor()
280 r = ic.getWordRangeAtCursor(SUPPLEMENTARY_CHAR, ScriptUtils.SCRIPT_LATIN); in testGetWordRangeAtCursor()
282 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor()
288 r = ic.getWordRangeAtCursor(SUPPLEMENTARY_CHAR, ScriptUtils.SCRIPT_GREEK); in testGetWordRangeAtCursor()
[all …]

12345678910>>...17