Home
last modified time | relevance | path

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

12345678910>>...16

/packages/apps/ExactCalculator/src/com/android/calculator2/
DBoundedRational.java85 public static String toString(BoundedRational r) { in toString() argument
86 if (r == null) { in toString()
89 return r.toString(); in toString()
154 public int compareTo(BoundedRational r) { in compareTo() argument
157 return mNum.multiply(r.mDen).compareTo(r.mNum.multiply(mDen)) * mDen.signum() in compareTo()
158 * r.mDen.signum(); in compareTo()
165 public boolean equals(BoundedRational r) { in equals() argument
166 return compareTo(r) == 0; in equals()
176 public static BigInteger asBigInteger(BoundedRational r) { in asBigInteger() argument
177 if (r == null) { in asBigInteger()
[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/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/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/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/TV/src/com/android/tv/dvr/
DDvrDataManagerInMemoryImpl.java81 for (ScheduledRecording r : temp) { in getNextScheduledStartTimeAfter()
82 if (r.getStartTimeMs() > startTime) { in getNextScheduledStartTimeAfter()
83 return r.getStartTimeMs(); in getNextScheduledStartTimeAfter()
93 for (ScheduledRecording r : temp) { in getRecordingsThatOverlapWith()
94 if (r.isOverLapping(period)) { in getRecordingsThatOverlapWith()
95 result.add(r); in getRecordingsThatOverlapWith()
114 public void updateRecordedProgram(RecordedProgram r) { in updateRecordedProgram() argument
115 long id = r.getId(); in updateRecordedProgram()
117 mRecordedPrograms.put(id, r); in updateRecordedProgram()
118 notifyRecordedProgramChanged(r); in updateRecordedProgram()
[all …]
DDvrDataManagerImpl.java131 for (ScheduledRecording r : result) { in start()
132 mScheduledRecordings.put(r.getId(), r); in start()
186 for (ScheduledRecording r : mScheduledRecordings.values()) { in getRecordingsWithState()
187 if (r.getState() == state) { in getRecordingsWithState()
188 result.add(r); in getRecordingsWithState()
224 for (ScheduledRecording r : mScheduledRecordings.values()) { in getRecordingsThatOverlapWith()
225 if (r.isOverLapping(period)) { in getRecordingsThatOverlapWith()
226 result.add(r); in getRecordingsThatOverlapWith()
263 for (ScheduledRecording r : scheduledRecordings) { in addScheduledRecording()
264 if (r.getId() != -1) { in addScheduledRecording()
[all …]
/packages/services/Car/libvehiclenetwork/native/
DIVehicleNetwork.cpp254 status_t r; in onTransact() local
282 r = VehiclePropValueBinderUtil::readFromParcel(data, &value.value, in onTransact()
284 if (r != NO_ERROR) { in onTransact()
285 return r; in onTransact()
290 r = setProperty(value.value); in onTransact()
292 return r; in onTransact()
298 r = VehiclePropValueBinderUtil::readFromParcel(data, &value, in onTransact()
300 if (r != NO_ERROR) { in onTransact()
301 ALOGE("getProperty cannot read %d", r); in onTransact()
302 return r; in onTransact()
[all …]
DIVehicleNetworkHalMock.cpp175 status_t r; in onTransact() local
205 r = data.readBlob(size, blob.blob); in onTransact()
206 if (r != NO_ERROR) { in onTransact()
208 return r; in onTransact()
216 r = VehicleNetworkProtoUtil::fromVehiclePropValue(*v.get(), value.value); in onTransact()
217 if (r != NO_ERROR) { in onTransact()
221 r = onPropertySet(value.value); in onTransact()
223 return r; in onTransact()
228 r = VehiclePropValueBinderUtil::readFromParcel(data, &value.value, in onTransact()
230 if (r != NO_ERROR) { in onTransact()
[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 …]
Ddb_utilities_random.h40 inline double db_QuickRandomDouble(int &r) in db_QuickRandomDouble() argument
43 c=r/127773; in db_QuickRandomDouble()
44 r=16807*(r-c*127773)-2836*c; in db_QuickRandomDouble()
45 if(r<0) r+=2147483647; in db_QuickRandomDouble()
46 return((1.0/((double)2147483647))*r); in db_QuickRandomDouble()
57 inline int db_RandomInt(int &r,int max) in db_RandomInt() argument
61 dtemp=db_QuickRandomDouble(r)*(max+1); in db_RandomInt()
/packages/apps/Launcher3/WallpaperPicker/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/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/apps/Gallery2/src/com/android/gallery3d/ui/
DFlingScroller.java117 int r = (int) Math.round(mStartX + f * mDistance * mCosAngle); in getX() local
119 r = Math.min(r, mMaxX); in getX()
121 r = Math.max(r, mMinX); in getX()
123 return r; in getX()
127 int r = (int) Math.round(mStartY + f * mDistance * mSinAngle); in getY() local
129 r = Math.min(r, mMaxY); in getY()
131 r = Math.max(r, mMinY); in getY()
133 return r; in getY()
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/TV/tests/unit/src/com/android/tv/dvr/
DScheduledRecordingTest.java45 ScheduledRecording r = createTestRecordingWithIdAndPeriod(1, CHANNEL_ID, 10L, 20L); in testIsOverLapping() local
46 assertOverLapping(false, 1L, 9L, r); in testIsOverLapping()
48 assertOverLapping(true, 1L, 20L, r); in testIsOverLapping()
49 assertOverLapping(true, 1L, 10L, r); in testIsOverLapping()
50 assertOverLapping(true, 10L, 19L, r); in testIsOverLapping()
51 assertOverLapping(true, 10L, 20L, r); in testIsOverLapping()
52 assertOverLapping(true, 11L, 20L, r); in testIsOverLapping()
53 assertOverLapping(true, 11L, 21L, r); in testIsOverLapping()
54 assertOverLapping(true, 20L, 21L, r); in testIsOverLapping()
56 assertOverLapping(false, 21L, 29L, r); in testIsOverLapping()
[all …]
/packages/services/Car/vehicle_network_service/
DVehicleNetworkService.cpp196 status_t r = VehiclePropValueUtil::copyVehicleProp(value, *cached); in readFromCache() local
197 if (r != NO_ERROR) { in readFromCache()
198 ALOGD("readFromCache 0x%x, copy failed %d", value->prop, r); in readFromCache()
344 status_t r = sInstance->onHalError(errorCode, property, operation); in errorCallback() local
345 if (r != NO_ERROR) { in errorCallback()
346 ALOGE("VehicleNetworkService::errorCallback onHalError failed with %d", r); in errorCallback()
358 status_t r = loadHal(); in onFirstRef() local
359 if (r!= NO_ERROR) { in onFirstRef()
360 ALOGE("cannot load HAL, error:%d", r); in onFirstRef()
364 r = mHandlerThread->start("HAL.NATIVE_LOOP"); in onFirstRef()
[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/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 …]

12345678910>>...16