Home
last modified time | relevance | path

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

12345678910>>...17

/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java237 for (SeriesRecording r : seriesRecordings) { in start()
239 !seriesIds.contains(r.getSeriesId()), in start()
243 + r)) { in start()
244 seriesIds.add(r.getSeriesId()); in start()
245 if (isInputAvailable(r.getInputId())) { in start()
246 mSeriesRecordings.put(r.getId(), r); in start()
247 mSeriesId2SeriesRecordings.put(r.getSeriesId(), r); in start()
249 mSeriesRecordingsForRemovedInput.put(r.getId(), r); in start()
252 if (maxId < r.getId()) { in start()
253 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/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/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/TV/src/com/android/tv/dvr/data/
DScheduledRecording.java506 public static ContentValues toContentValues(ScheduledRecording r) { in toContentValues() argument
508 if (r.getId() != ID_NOT_SET) { in toContentValues()
509 values.put(Schedules._ID, r.getId()); in toContentValues()
511 values.put(Schedules.COLUMN_INPUT_ID, r.getInputId()); in toContentValues()
512 values.put(Schedules.COLUMN_CHANNEL_ID, r.getChannelId()); in toContentValues()
513 values.put(Schedules.COLUMN_PROGRAM_ID, r.getProgramId()); in toContentValues()
514 values.put(Schedules.COLUMN_PROGRAM_TITLE, r.getProgramTitle()); in toContentValues()
515 values.put(Schedules.COLUMN_PRIORITY, r.getPriority()); in toContentValues()
516 values.put(Schedules.COLUMN_START_TIME_UTC_MILLIS, r.getStartTimeMs()); in toContentValues()
517 values.put(Schedules.COLUMN_END_TIME_UTC_MILLIS, r.getEndTimeMs()); in toContentValues()
[all …]
DSeriesRecording.java108 public static Builder buildFrom(SeriesRecording r) { in buildFrom() argument
110 .setId(r.mId) in buildFrom()
111 .setInputId(r.getInputId()) in buildFrom()
112 .setChannelId(r.getChannelId()) in buildFrom()
113 .setPriority(r.getPriority()) in buildFrom()
114 .setTitle(r.getTitle()) in buildFrom()
115 .setDescription(r.getDescription()) in buildFrom()
116 .setLongDescription(r.getLongDescription()) in buildFrom()
117 .setSeriesId(r.getSeriesId()) in buildFrom()
118 .setStartFromEpisode(r.getStartFromEpisode()) in buildFrom()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java275 public static void scaleRectFAboutCenter(RectF r, float scale) { in scaleRectFAboutCenter() argument
277 float cx = r.centerX(); in scaleRectFAboutCenter()
278 float cy = r.centerY(); in scaleRectFAboutCenter()
279 r.offset(-cx, -cy); in scaleRectFAboutCenter()
280 r.left = r.left * scale; in scaleRectFAboutCenter()
281 r.top = r.top * scale ; in scaleRectFAboutCenter()
282 r.right = r.right * scale; in scaleRectFAboutCenter()
283 r.bottom = r.bottom * scale; in scaleRectFAboutCenter()
284 r.offset(cx, cy); in scaleRectFAboutCenter()
288 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/tuner/tests/assets/
Dcapture_kqed.ts29 ���� ����QGa���3����m;'�0��0��e=�(ZA�$�J����i�_��~ۼb9�4r#��i�c��� Rv89�T�
30 �L9bޤPEw�ڼ��1���7�ɘ�[YE� �Ž�pM��S��E��9s��(m�r�1rG�T�5C�z��B�e������G�k�]WY�J�ݲ��Y]]�j�}�3n;…
40 ,P�h�M����Q��Fk3�R�]�2�Y�m 4@vv�3�r"�rc��%��Hw
48 �H���{ ���)���k�W1��#�'J����E��ǿص�W5cN��9�w�K�Y��WSY�r�2�6�*^Y��8�\D��'A���$����!ɛ��p���$_…
60 6|����S��H�B@4�r����q�?5�x����j��ZNl�����0j1bƄ��'9��F�Ld�xE�����i@\�U�D�h���L��|{a�����…
81 x��T� E�r�G�)ok<zB3��}�c��u1� % �Z-Q"hQ���A �p �5�b
106 …�d��ڽG�O�F�yU�����i��m��2�B�u u�5�z:�B�S•��H�b���rk_Z$nki�0+Q��Ի�� sRT��r�k�����KW�s �rk��…
122 …G�����G�**G����N ��ㄽ�sZ�$(�D�aw&�u��b[^��ȃivA��!��g����D��lKL|r����P����OG#��`m&̾�…
144 ��/<� �K)��nG��:���]*������#Ǐ����ʽ;{w�rS���҇�Y!��GM7ۃ�
183 …~՝�e��}��v$�Axq�VZۘ�x ����@<g��|�t��"�G�+ݫ�e�`���G�xo�E-��խ�+FLL�X�r�X�J#����#�5�i옗��j�9…
[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/modules/DnsResolver/
Dresolv_tls_unit_test.cpp147 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F() local
149 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
150 EXPECT_EQ(QUERY, r.response); in TEST_F()
185 DnsTlsTransport::Result r = f.get(); in TEST_F() local
186 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
190 EXPECT_EQ(0, (r.response[2] << 8) | r.response[3]); in TEST_F()
208 auto r = result.get(); in TEST_F() local
209 EXPECT_EQ(DnsTlsTransport::Response::success, r.code); in TEST_F()
210 EXPECT_EQ(QUERY, r.response); in TEST_F()
274 auto r = result.get(); in TEST_F() local
[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/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/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/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/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/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/Launcher3/src/com/android/launcher3/graphics/
DIconShape.java306 public void addToPath(Path p, float offsetX, float offsetY, float r) {
307 float cx = r + offsetX;
308 float cy = r + offsetY;
309 float control = r - r * mRadiusRatio;
311 p.moveTo(cx, cy - r);
312 addLeftCurve(cx, cy, r, control, p);
313 addRightCurve(cx, cy, r, control, p);
314 addLeftCurve(cx, cy, -r, -control, p);
315 addRightCurve(cx, cy, -r, -control, p);
319 private void addLeftCurve(float cx, float cy, float r, float control, Path path) {
[all …]

12345678910>>...17