/frameworks/av/media/libstagefright/foundation/tests/ |
D | AData_test.cpp | 54 AUnion<int, const char *, char> u; in TEST_F() local 55 u.emplace<int>(4); in TEST_F() 56 u.del<int>(); in TEST_F() 57 EXPECT_EQ(4, u.get<int>()); // verify that del<> is a no-op for trivial types, such as int. in TEST_F() 60 u.emplace<const char *>("hello"); in TEST_F() 61 EXPECT_STREQ("hello", u.get<const char *>()); in TEST_F() 62 u.del<const char *>(); in TEST_F() 66 u.emplace<void>(); in TEST_F() 67 u.del<void>(); in TEST_F() 69 u.emplace<int>(~0); in TEST_F() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpProperty.cpp | 72 mDefaultValue.u.i8 = defaultValue; in MtpProperty() 75 mDefaultValue.u.u8 = defaultValue; in MtpProperty() 78 mDefaultValue.u.i16 = defaultValue; in MtpProperty() 81 mDefaultValue.u.u16 = defaultValue; in MtpProperty() 84 mDefaultValue.u.i32 = defaultValue; in MtpProperty() 87 mDefaultValue.u.u32 = defaultValue; in MtpProperty() 90 mDefaultValue.u.i64 = defaultValue; in MtpProperty() 93 mDefaultValue.u.u64 = defaultValue; in MtpProperty() 249 mMinimumValue.u.i8 = min; in setFormRange() 250 mMaximumValue.u.i8 = max; in setFormRange() [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | EbmlUtil.cpp | 34 uint32_t u = i64; in numberOfTrailingZeros32() local 35 return NTZ_TABLE[(u) >> 26]; in numberOfTrailingZeros32() 48 uint64_t _powerOf2(uint64_t u) { in _powerOf2() argument 49 uint64_t powerOf2 = highestOneBit(u); in _powerOf2() 54 int numberOfTrailingZeros(uint64_t u) { in numberOfTrailingZeros() argument 55 int32_t low = u; in numberOfTrailingZeros() 57 : 32 + numberOfTrailingZeros32((int32_t) (u >> 32)); in numberOfTrailingZeros() 75 uint64_t encodeUnsigned(uint64_t u) { in encodeUnsigned() argument 76 uint64_t powerOf2 = _powerOf2(u); in encodeUnsigned() 77 if (u + 1 == powerOf2 << 1) in encodeUnsigned() [all …]
|
D | EbmlUtil.h | 36 uint64_t encodeUnsigned(uint64_t u); 40 uint64_t encodeUnsigned(uint64_t u, int width); 43 int serializeCodedUnsigned(uint64_t u, uint8_t* bary); 46 int sizeOf(uint64_t u);
|
/frameworks/av/media/libstagefright/foundation/ |
D | AMessage.cpp | 102 delete item->u.stringValue; in freeItemValue() 110 if (item->u.refValue != NULL) { in freeItemValue() 111 item->u.refValue->decStrong(this); in freeItemValue() 222 *value = item->u.floatValue; in findAsFloat() 225 *value = (float)item->u.doubleValue; in findAsFloat() 228 *value = (float)item->u.int64Value; in findAsFloat() 231 *value = (float)item->u.int32Value; in findAsFloat() 234 *value = (float)item->u.sizeValue; in findAsFloat() 249 *value = item->u.int64Value; in findAsInt64() 252 *value = item->u.int32Value; in findAsInt64() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicColorMatrix.cpp | 120 } u; member 215 key.u.inType = RS_TYPE_FLOAT_32; in computeKey() 216 rsAssert(key.u.inType == RS_TYPE_FLOAT_32); in computeKey() 220 key.u.outType = RS_TYPE_FLOAT_32; in computeKey() 221 rsAssert(key.u.outType == RS_TYPE_FLOAT_32); in computeKey() 229 key.u.coeffMask |= 1 << i; in computeKey() 232 if (fabs(fpa[0]) != 0.f) key.u.addMask |= 0x1; in computeKey() 233 if (fabs(fpa[1]) != 0.f) key.u.addMask |= 0x2; in computeKey() 234 if (fabs(fpa[2]) != 0.f) key.u.addMask |= 0x4; in computeKey() 235 if (fabs(fpa[3]) != 0.f) key.u.addMask |= 0x8; in computeKey() [all …]
|
D | rsCpuIntrinsicYuvToRGB.cpp | 60 static uchar4 rsYuvToRGBA_uchar4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_uchar4() argument 62 short U = ((short)u) - 128; in rsYuvToRGBA_uchar4() 96 extern "C" void rsdIntrinsicYuv2_K(void *dst, const uchar *Y, const uchar *u, const uchar *v, size_… 128 const uchar *u = pinU + ((info->current.y >> 1) * strideU); in kernel() local 145 u = v + 1; in kernel() 154 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel() 163 rsdIntrinsicYuv2_K(info->outPtr[0], Y, u, v, x1, x2); in kernel() 168 intptr_t ipu = (intptr_t)u; in kernel() 176 rsdIntrinsicYuvR_K(info->outPtr[0], Y, u, x1, x2); in kernel() 188 *out = rsYuvToRGBA_uchar4(Y[x1], u[cx], v[cx]); in kernel() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator_test.cpp | 38 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); in TEST() 39 EXPECT_EQ(std::u16string(u"Hello worl").size(), new_string->value->spans[0].last_char); in TEST() 42 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); in TEST() 43 EXPECT_EQ(std::u16string(u"Hel").size(), new_string->value->spans[1].last_char); in TEST() 46 EXPECT_EQ(std::u16string(u"Hello ").size(), new_string->value->spans[2].first_char); in TEST() 47 EXPECT_EQ(std::u16string(u"Hello w").size(), new_string->value->spans[2].last_char); in TEST() 58 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST() 59 EXPECT_EQ(std::u16string(u"[Ĥéļļö ŵöŕļð").size(), new_string->value->spans[0].last_char); in TEST() 61 EXPECT_EQ(std::u16string(u"[Ĥ").size(), new_string->value->spans[1].first_char); in TEST() 62 EXPECT_EQ(std::u16string(u"[Ĥéļļö ŵöŕļ").size(), new_string->value->spans[1].last_char); in TEST() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 57 String16 name(u"com.android.sparse:integer/foo_9"); in TEST() 299 testU16StringToInt(u"", 0U, false, false); in TEST() 300 testU16StringToInt(u" ", 0U, false, false); in TEST() 301 testU16StringToInt(u"\t\n", 0U, false, false); in TEST() 303 testU16StringToInt(u"abcd", 0U, false, false); in TEST() 304 testU16StringToInt(u"10abcd", 0U, false, false); in TEST() 305 testU16StringToInt(u"42 42", 0U, false, false); in TEST() 306 testU16StringToInt(u"- 42", 0U, false, false); in TEST() 307 testU16StringToInt(u"-", 0U, false, false); in TEST() 309 testU16StringToInt(u"0x", 0U, false, true); in TEST() [all …]
|
D | StringPiece_test.cpp | 32 StringPiece16 a16(u"hello world", 5); in TEST() 33 StringPiece16 b16(u"hello moon", 5); in TEST() 79 StringPiece16 text16(u"I am a leaf on the wind."); in TEST() 80 StringPiece16 start_needle16(u"I am"); in TEST() 81 StringPiece16 end_needle16(u"wind."); in TEST() 82 StringPiece16 middle_needle16(u"leaf"); in TEST() 83 StringPiece16 empty_needle16(u""); in TEST() 84 StringPiece16 missing_needle16(u"soar"); in TEST() 85 StringPiece16 long_needle16(u"This string is longer than the text."); in TEST()
|
/frameworks/base/libs/hwui/ |
D | Matrix.h | 126 void loadMultiply(const Matrix4& u, const Matrix4& v); 143 Matrix4 u; in multiply() local 144 u.loadMultiply(*this, v); in multiply() 145 *this = u; in multiply() 162 Matrix4 u; variable 163 u.loadTranslate(x, y, z); 164 multiply(u); 177 Matrix4 u; in scale() local 178 u.loadScale(sx, sy, sz); in scale() 179 multiply(u); in scale() [all …]
|
D | Vertex.h | 65 float u, v; member 67 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) { in set() 68 *vertex = { x, y, u, v }; in set() 71 static inline void setUV(TextureVertex* vertex, float u, float v) { in setUV() 72 vertex[0].u = u; in setUV() 85 float u, v; member 89 float u, float v, uint32_t color) { in set() 92 *vertex = { x, y, u, v, c.r, c.g, c.b, c.a }; in set()
|
/frameworks/av/media/libmediametrics/ |
D | MediaAnalyticsItem.cpp | 316 prop->u.int32Value = value; in setInt32() 322 prop->u.int64Value = value; in setInt64() 328 prop->u.doubleValue = value; in setDouble() 336 prop->u.CStringValue = strdup(value); in setCString() 342 prop->u.rate.count = count; in setRate() 343 prop->u.rate.duration = duration; in setRate() 352 prop->u.int32Value += value; in addInt32() 357 prop->u.int32Value = value; in addInt32() 366 prop->u.int64Value += value; in addInt64() 371 prop->u.int64Value = value; in addInt64() [all …]
|
/frameworks/compile/slang/tests/F_vector_cast/ |
D | vector_cast.rs | 20 uchar4 u; 21 u = (uchar4) c; 24 static uchar4 bar(uchar4 u) { 25 return u; 30 uchar4 u; 31 u = bar((uchar4) c);
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | omxVCM4P2_DCT8x8blk.c | 68 OMX_INT x, y, u, v; in omxVCM4P2_DCT8x8blk() local 77 for (u = 0; u < 8; u++) in omxVCM4P2_DCT8x8blk() 87 armVCM4P2_preCalcDCTCos[x][u] * in omxVCM4P2_DCT8x8blk() 91 pDst[(u * 8) + v]= armRoundFloatToS16 (sum); in omxVCM4P2_DCT8x8blk()
|
D | omxVCM4P2_IDCT8x8blk.c | 70 OMX_INT x, y, u, v; in omxVCM4P2_IDCT8x8blk() local 83 for (u = 0; u < 8; u++) in omxVCM4P2_IDCT8x8blk() 87 sum += pSrc[(u * 8) + v] * in omxVCM4P2_IDCT8x8blk() 88 armVCM4P2_preCalcDCTCos[x][u] * in omxVCM4P2_IDCT8x8blk()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WifiPowerEstimator.java | 51 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 53 app.wifiRxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_WIFI_RX_DATA, in calculateApp() 55 app.wifiTxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_WIFI_TX_DATA, in calculateApp() 57 app.wifiRxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_WIFI_RX_DATA, in calculateApp() 59 app.wifiTxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_WIFI_TX_DATA, in calculateApp() 65 app.wifiRunningTimeMs = u.getWifiRunningTime(rawRealtimeUs, statsType) / 1000; in calculateApp() 69 final long wifiScanTimeMs = u.getWifiScanTime(rawRealtimeUs, statsType) / 1000; in calculateApp() 75 u.getWifiBatchedScanTime(bin, rawRealtimeUs, statsType) / 1000; in calculateApp() 82 Log.d(TAG, "UID " + u.getUid() + ": power=" + in calculateApp()
|
D | CpuPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 36 app.cpuTimeMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculateApp() 43 final long timeUs = u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp() 47 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" in calculateApp() 57 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + app.cpuTimeMs + " ms power=" in calculateApp() 65 final ArrayMap<String, ? extends BatteryStats.Uid.Proc> processStats = u.getProcessStats(); in calculateApp()
|
D | WifiPowerCalculator.java | 41 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 43 final BatteryStats.ControllerActivityCounter counter = u.getWifiControllerActivity(); in calculateApp() 59 app.wifiRxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_WIFI_RX_DATA, in calculateApp() 61 app.wifiTxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_WIFI_TX_DATA, in calculateApp() 63 app.wifiRxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_WIFI_RX_DATA, in calculateApp() 65 app.wifiTxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_WIFI_TX_DATA, in calculateApp() 69 Log.d(TAG, "UID " + u.getUid() + ": idle=" + idleTime + "ms rx=" + rxTime + "ms tx=" + in calculateApp()
|
D | MobileRadioPowerCalculator.java | 62 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 65 app.mobileRxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_MOBILE_RX_DATA, in calculateApp() 67 app.mobileTxPackets = u.getNetworkActivityPackets(BatteryStats.NETWORK_MOBILE_TX_DATA, in calculateApp() 69 app.mobileActive = u.getMobileRadioActiveTime(statsType) / 1000; in calculateApp() 70 app.mobileActiveCount = u.getMobileRadioActiveCount(statsType); in calculateApp() 71 app.mobileRxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_MOBILE_RX_DATA, in calculateApp() 73 app.mobileTxBytes = u.getNetworkActivityBytes(BatteryStats.NETWORK_MOBILE_TX_DATA, in calculateApp() 88 Log.d(TAG, "UID " + u.getUid() + ": mobile packets " in calculateApp()
|
/frameworks/base/tools/aapt2/flatten/ |
D | XmlFlattener_test.cpp | 97 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F() 101 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"attr")); in TEST_F() 103 const StringPiece16 kAttr(u"attr"); in TEST_F() 108 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F() 111 EXPECT_THAT(tree.getAttributeNamespace(0, &len), StrEq(u"http://com.test")); in TEST_F() 112 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"hello")); in TEST_F() 118 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F() 122 EXPECT_THAT(tree.getText(&len), StrEq(u"Some text\\")); in TEST_F() 126 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F() 130 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F() [all …]
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrackShared.cpp | 54 memset(&u, 0, sizeof(u)); in audio_track_cblk_t() 180 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer() 181 rear = cblk->u.mStreaming.mRear; in obtainBuffer() 184 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer() 185 front = cblk->u.mStreaming.mFront; in obtainBuffer() 200 cblk->u.mStreaming.mFront = rear; in obtainBuffer() 357 int32_t rear = cblk->u.mStreaming.mRear; in releaseBuffer() 358 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer() 360 int32_t front = cblk->u.mStreaming.mFront; in releaseBuffer() 361 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer() [all …]
|
/frameworks/av/media/libstagefright/filters/ |
D | ColorConvert.cpp | 29 int32_t y, int32_t u, int32_t v, in YUVToRGB() argument 32 u -= 128; in YUVToRGB() 35 *b = 1192 * y + 2066 * u; in YUVToRGB() 36 *g = 1192 * y - 833 * v - 400 * u; in YUVToRGB() 56 int32_t u = *(pUV + (i/2) * width + bytes_per_pixel * (j/2)); in convertYUV420spToARGB() local 60 YUVToRGB(y, u, v, &r, &g, &b); in convertYUV420spToARGB() 78 int32_t u = *(pUV + (i/2) * width + bytes_per_pixel * (j/2)); in convertYUV420spToRGB888() local 82 YUVToRGB(y, u, v, &r, &g, &b); in convertYUV420spToRGB888()
|
/frameworks/av/media/libmedia/include/media/omx/1.0/ |
D | Conversion.h | 290 t->data.eventData.event = uint32_t(l.u.event_data.event); in wrapAs() 291 t->data.eventData.data1 = l.u.event_data.data1; in wrapAs() 292 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs() 293 t->data.eventData.data3 = l.u.event_data.data3; in wrapAs() 294 t->data.eventData.data4 = l.u.event_data.data4; in wrapAs() 298 t->data.bufferData.buffer = l.u.buffer_data.buffer; in wrapAs() 302 t->data.extendedBufferData.buffer = l.u.extended_buffer_data.buffer; in wrapAs() 304 l.u.extended_buffer_data.range_offset; in wrapAs() 306 l.u.extended_buffer_data.range_length; in wrapAs() 307 t->data.extendedBufferData.flags = l.u.extended_buffer_data.flags; in wrapAs() [all …]
|
/frameworks/av/services/mediaanalytics/ |
D | MetricsSummarizer.cpp | 289 if (prop1->u.int32Value != prop2->u.int32Value) { in sameAttributes() 295 if (prop1->u.int64Value != prop2->u.int64Value) { in sameAttributes() 302 if (prop1->u.doubleValue != prop2->u.doubleValue) { in sameAttributes() 308 if (strcmp(prop1->u.CStringValue, prop2->u.CStringValue) != 0) { in sameAttributes() 314 if (prop1->u.rate.count != prop2->u.rate.count) { in sameAttributes() 318 if (prop1->u.rate.duration != prop2->u.rate.duration) { in sameAttributes()
|