Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dmisctest.cpp375 bool WriteUint(unsigned u) { in WriteUint() argument
379 *p++ = char(u % 10) + '0'; in WriteUint()
380 u /= 10; in WriteUint()
381 } while (u > 0); in WriteUint()
419 bool Writer1<rapidjson::StringBuffer>::WriteUint(unsigned u) { in WriteUint() argument
423 *p++ = char(u % 10) + '0'; in WriteUint()
424 u /= 10; in WriteUint()
425 } while (u > 0); in WriteUint()
454 bool WriteUint(unsigned u) { in WriteUint() argument
457 while (u >= 100) { in WriteUint()
[all …]
/packages/apps/ExactCalculator/src/com/android/calculator2/
DUnifiedReal.java439 public boolean isComparable(UnifiedReal u) {
442 return mCrFactor == u.mCrFactor
444 || mRatFactor.signum() == 0 && u.mRatFactor.signum() == 0
445 || definitelyIndependent(mCrFactor, u.mCrFactor)
446 || crValue().compareTo(u.crValue(), DEFAULT_COMPARE_TOLERANCE) != 0;
454 public int compareTo(UnifiedReal u) {
455 if (definitelyZero() && u.definitelyZero()) return 0;
456 if (mCrFactor == u.mCrFactor) {
458 return signum * mRatFactor.compareTo(u.mRatFactor);
460 return crValue().compareTo(u.crValue()); // Can also diverge.
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Dbiginteger.h36 explicit BigInteger(uint64_t u) : count_(1) { in BigInteger() argument
37 digits_[0] = u; in BigInteger()
64 BigInteger& operator=(uint64_t u) {
65 digits_[0] = u;
70 BigInteger& operator+=(uint64_t u) {
72 digits_[0] += u;
87 BigInteger& operator*=(uint64_t u) {
88 if (u == 0) return *this = 0;
89 if (u == 1) return *this;
90 if (*this == 1) return *this = u;
[all …]
Ditoa.h114 uint32_t u = static_cast<uint32_t>(value); in i32toa() local
117 u = ~u + 1; in i32toa()
120 return u32toa(u, buffer); in i32toa()
292 uint64_t u = static_cast<uint64_t>(value); in i64toa() local
295 u = ~u + 1; in i64toa()
298 return u64toa(u, buffer); in i64toa()
Ddiyfp.h47 } u = { d }; in DiyFp() local
49 int biased_e = static_cast<int>((u.u64 & kDpExponentMask) >> kDpSignificandSize); in DiyFp()
50 uint64_t significand = (u.u64 & kDpSignificandMask); in DiyFp()
138 }u; in ToDouble() local
141 u.u64 = (f & kDpSignificandMask) | (be << kDpSignificandSize); in ToDouble()
142 return u.d; in ToDouble()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp130 uint32_t u; in TEST() member
132 }u; in TEST() local
136 u.u = r(); in TEST()
139 *internal::u32toa(u.u, buffer) = '\0'; in TEST()
140 TEST_INTEGER(ParseUintHandler, buffer, u.u); in TEST()
142 if (u.i < 0) { in TEST()
143 *internal::i32toa(u.i, buffer) = '\0'; in TEST()
144 TEST_INTEGER(ParseIntHandler, buffer, u.i); in TEST()
152 uint64_t u; in TEST() member
154 }u; in TEST() local
[all …]
Dstrtodtest.cpp35 uint64_t u; in TEST() member
36 }u; in TEST() local
37 u.u = 0x465a72e467d88 | ((static_cast<uint64_t>(-149 + kExponentBias)) << kSignificandSize); in TEST()
38 const double b = u.d; in TEST()
39 const uint64_t bInt = (u.u & kSignificandMask) | kHiddenBit; in TEST()
40 const int bExp = ((u.u & kExponentMask) >> kSignificandSize) - kExponentBias - kSignificandSize; in TEST()
Ditoatest.cpp108 uint32_t u = static_cast<uint32_t>(value); in i32toa_naive() local
111 u = ~u + 1; in i32toa_naive()
113 u32toa_naive(u, buffer); in i32toa_naive()
132 uint64_t u = static_cast<uint64_t>(value); in i64toa_naive() local
135 u = ~u + 1; in i64toa_naive()
137 u64toa_naive(u, buffer); in i64toa_naive()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DImageUtils.cpp192 int y,v,u, r, g, b; in yvu2rgb() local
203 u = (*uimg); in yvu2rgb()
207 if (u < 0) u = 0; in yvu2rgb()
208 if (u > 255) u = 255; in yvu2rgb()
212 b = (int) ( 1.164*(y - 16) + 2.018*(u-128)); in yvu2rgb()
213 g = (int) ( 1.164*(y - 16) - 0.813*(v-128) - 0.391*(u-128)); in yvu2rgb()
237 int y,v,u, r, g, b; in yvu2bgr() local
248 u = (*uimg); in yvu2bgr()
252 if (u < 0) u = 0; in yvu2bgr()
253 if (u > 255) u = 255; in yvu2bgr()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/protos/mock/
DMockUiProviderTests.java79 for (Uri u : folderUris) { in testGetFolders()
80 Cursor foldersCursor = provider.query(u, UIProvider.FOLDERS_PROJECTION, null, null, in testGetFolders()
133 for (Uri u : childUris) { in testGetFolders()
134 Cursor childFoldersCursor = provider.query(u, UIProvider.FOLDERS_PROJECTION, null, in testGetFolders()
154 for (Uri u : convUris) { in testGetFolders()
155 Cursor convFoldersCursor = provider.query(u, UIProvider.CONVERSATION_PROJECTION, null, in testGetFolders()
183 for (Uri u : messageUris) { in testGetFolders()
184 Cursor messageCursor = provider.query(u, UIProvider.MESSAGE_PROJECTION, null, null, in testGetFolders()
214 for (Uri u : attachmentUris) { in testGetFolders()
215 Cursor attachmentCursor = provider.query(u, UIProvider.ATTACHMENT_PROJECTION, null, in testGetFolders()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DNinePatchTexture.java264 float x[], float u[], int div[], int source, int target) { in stretch() argument
279 u[0] = 0; in stretch()
285 u[i + 1] = Math.min((div[i] + 0.5f) / textureSize, textureBound); in stretch()
296 u[i + 2] = Math.min((lastU - 0.5f)/ textureSize, textureBound); in stretch()
300 u[div.length + 1] = textureBound; in stretch()
307 u[last] = u[i]; in stretch()
312 private void prepareVertexData(float x[], float y[], float u[], float v[], in prepareVertexData() argument
342 uv[xIndex] = u[i]; in prepareVertexData()
/packages/apps/LegacyCamera/jni/
Dfeature_mos_jni.cpp219 unsigned char u = 0, v = 0; in YUV420toYVU24() local
230 u = yuv420sp[uvp++]; in YUV420toYVU24()
234 *oup++ = u; in YUV420toYVU24()
252 unsigned char u = 0, v = 0; in YUV420toYVU24_NEW() local
262 u = *iuvp++; in YUV420toYVU24_NEW()
265 *oup++ = u; in YUV420toYVU24_NEW()
268 *oup++ = u; in YUV420toYVU24_NEW()
316 int vp = frameSize + j * width, u = 0, v = 0; in decodeYUV444SP() local
325 u = (0xff & yuv420sp[up]) - 128; in decodeYUV444SP()
329 int g = (y1192 - 833 * v - 400 * u); in decodeYUV444SP()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dwriter.h111 bool Uint(unsigned u) { Prefix(kNumberType); return WriteUint(u); } in Uint() argument
212 bool WriteUint(unsigned u) { in WriteUint() argument
214 const char* end = internal::u32toa(u, buffer); in WriteUint()
358 inline bool Writer<StringBuffer>::WriteUint(unsigned u) { in WriteUint() argument
360 const char* end = internal::u32toa(u, buffer); in WriteUint()
374 inline bool Writer<StringBuffer>::WriteUint64(uint64_t u) { in WriteUint64() argument
376 const char* end = internal::u64toa(u, buffer); in WriteUint64()
Ddocument.h517 explicit GenericValue(unsigned u) RAPIDJSON_NOEXCEPT : data_(), flags_(kNumberUintFlag) {
518 data_.n.u64 = u;
519 if (!(u & 0x80000000))
1449 unsigned GetUint() const { RAPIDJSON_ASSERT(flags_ & kUintFlag); return data_.n.u.u; }
1457 if ((flags_ & kUintFlag) != 0) return data_.n.u.u; // unsigned -> double
1463 …GenericValue& SetUint(unsigned u) { this->~GenericValue(); new (this) GenericValue(u); re…
1568 else if (IsUint()) return handler.Uint(data_.n.u.u);
1644 unsigned u;
1646 }u;
1654 unsigned u;
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/
DIntentUtilitiesTests.java35 final Uri u = b.build(); in brokentestSimple() local
36 assertEquals("content", u.getScheme()); in brokentestSimple()
37 assertEquals("ui.email.android.com", u.getAuthority()); in brokentestSimple()
38 assertEquals("/abc", u.getPath()); in brokentestSimple()
40 final Intent i = new Intent(Intent.ACTION_MAIN, u); in brokentestSimple()
/packages/services/Car/car_product/sepolicy/
Dproperty_contexts1 hw.cabl. u:object_r:hw_cabl_prop:s0
2 wlan.driver. u:object_r:wlan_driver_prop:s0
4 boot.car_service_created u:object_r:car_prop:s0
5 ro.opengles. u:object_r:opengles_prop:s0
Dfile_contexts5 /system/bin/vehicle_monitor_service u:object_r:vms_exec:s0
7 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle@2\.0-service u:object_r:hal_…
8 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle@2\.1-service u:object_r:hal_…
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simplereader/
Dsimplereader.cpp11 bool Uint(unsigned u) { cout << "Uint(" << u << ")" << endl; return true; } in Uint()
13 bool Uint64(uint64_t u) { cout << "Uint64(" << u << ")" << endl; return true; } in Uint64()
/packages/apps/Gallery/src/com/android/camera/
DMenuHelper.java264 public void run(Uri u, IImage image) { in onShowMapClicked()
370 public void run(Uri u, IImage image) { in onDetailsClicked()
476 public void run(Uri u, IImage image) { in onRotateClicked()
490 public void run(Uri u, IImage image) { in onCropClicked()
491 if (u == null) { in onCropClicked()
497 cropIntent.setData(u); in onCropClicked()
509 public void run(Uri u, IImage image) { in onSetAsClicked()
510 if (u == null || image == null) { in onSetAsClicked()
526 public void run(Uri u, IImage image) { in onImageShareClicked()
533 intent.putExtra(Intent.EXTRA_STREAM, u); in onImageShareClicked()
/packages/apps/Camera2/src/com/android/camera/
DPanoUtil.java49 int uvp = frameSize + (j >> 1) * width, u = 0, v = 0; in decodeYUV420SPQuarterRes() local
57 u = (0xff & yuv420sp[uvp++]) - 128; in decodeYUV420SPQuarterRes()
62 int g = (y1192 - 833 * v - 400 * u); in decodeYUV420SPQuarterRes()
63 int b = (y1192 + 2066 * u); in decodeYUV420SPQuarterRes()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoUtil.java49 int uvp = frameSize + (j >> 1) * width, u = 0, v = 0; in decodeYUV420SPQuarterRes() local
57 u = (0xff & yuv420sp[uvp++]) - 128; in decodeYUV420SPQuarterRes()
62 int g = (y1192 - 833 * v - 400 * u); in decodeYUV420SPQuarterRes()
63 int b = (y1192 + 2066 * u); in decodeYUV420SPQuarterRes()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/capitalize/
Dcapitalize.cpp23 bool Uint(unsigned u) { return out_.Uint(u); } in Uint()
25 bool Uint64(uint64_t u) { return out_.Uint64(u); } in Uint64()
/packages/inputmethods/LatinIME/dictionaries/
Dlv_wordlist.combined.gz1dictionary=main:lv,locale=lv,description=Latviešu,date=1393228136, ...
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java121 float u = (t3 * t4 + t5 * t2) / denom; in lineIntersect() local
123 b0 + u * t0, b1 + u * t1 in lineIntersect()
137 float u = ((point[0] - x1) * xdelt + (point[1] - y1) * ydelt) in shortestVectorFromPointToLine() local
140 (x1 + u * (x2 - x1)), (y1 + u * (y2 - y1)) in shortestVectorFromPointToLine()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DQuotedPrintable.java53 int u = Character.digit((char) bytes[++i], 16); in decodeQuotedPrintable() local
55 if (u == -1 || l == -1) { in decodeQuotedPrintable()
58 buffer.write((char) ((u << 4) + l)); in decodeQuotedPrintable()

123