/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/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/mtp/ |
D | MtpProperty.cpp | 76 mDefaultValue.u.i8 = defaultValue; in MtpProperty() 79 mDefaultValue.u.u8 = defaultValue; in MtpProperty() 82 mDefaultValue.u.i16 = defaultValue; in MtpProperty() 85 mDefaultValue.u.u16 = defaultValue; in MtpProperty() 88 mDefaultValue.u.i32 = defaultValue; in MtpProperty() 91 mDefaultValue.u.u32 = defaultValue; in MtpProperty() 94 mDefaultValue.u.i64 = defaultValue; in MtpProperty() 97 mDefaultValue.u.u64 = defaultValue; in MtpProperty() 263 mMinimumValue.u.i8 = min; in setFormRange() 264 mMaximumValue.u.i8 = max; in setFormRange() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | AMessage.cpp | 103 delete item->u.stringValue; in freeItemValue() 111 if (item->u.refValue != NULL) { in freeItemValue() 112 item->u.refValue->decStrong(this); in freeItemValue() 231 *value = item->u.floatValue; in findAsFloat() 234 *value = (float)item->u.doubleValue; in findAsFloat() 237 *value = (float)item->u.int64Value; in findAsFloat() 240 *value = (float)item->u.int32Value; in findAsFloat() 243 *value = (float)item->u.sizeValue; in findAsFloat() 258 *value = item->u.int64Value; in findAsInt64() 261 *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 …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsImplTest.java | 99 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() local 101 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() 102 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() 110 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() local 114 u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() 116 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() 118 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() 137 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() local 145 u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() 147 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes() [all …]
|
D | BatteryStatsCpuTimesTest.java | 238 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateClusterSpeedTimes() local 239 assertNotNull("No entry for uid=" + testUids[i], u); in testUpdateClusterSpeedTimes() 245 u.getTimeAtCpuSpeed(cluster, speed, STATS_SINCE_CHARGED)); in testUpdateClusterSpeedTimes() 281 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() local 282 assertNotNull("No entry for uid=" + testUids[i], u); in testReadKernelUidCpuTimesLocked() 284 uidTimesUs[i][0], u.getUserCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked() 286 uidTimesUs[i][1], u.getSystemCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked() 315 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() local 316 assertNotNull("No entry for uid=" + testUids[i], u); in testReadKernelUidCpuTimesLocked() 318 uidTimesUs[i][0] + deltasUs[i][0], u.getUserCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked() [all …]
|
/frameworks/base/tools/aapt2/format/binary/ |
D | XmlFlattener_test.cpp | 96 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F() 100 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"attr")); in TEST_F() 102 const StringPiece16 kAttr(u"attr"); in TEST_F() 107 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F() 110 EXPECT_THAT(tree.getAttributeNamespace(0, &len), StrEq(u"http://com.test")); in TEST_F() 111 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"hello")); in TEST_F() 117 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F() 121 EXPECT_THAT(tree.getText(&len), StrEq(u"Some text\\\\")); in TEST_F() 125 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F() 129 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F() [all …]
|
/frameworks/base/cmds/incident_helper/testdata/ |
D | ps.txt | 2 u:r:init:s0 root 1 1 0 15816 2636 SyS_epoll_wait 0 … 3 u:r:kernel:s0 root 2 2 0 0 0 kthreadd 0 … 4 u:r:surfaceflinger:s0 system 499 534 1 73940 22024 futex_wait_queue_me 0 … 5 u:r:hal_gnss_default:s0 gps 670 2004 1 43064 7272 poll_schedule_timeout … 6 u:r:platform_app:s0:c512,c768 u0_a48 1660 1976 806 4468612 138328 binder_thread_read 0 … 7 u:r:perfd:s0 root 1939 1946 1 18132 2088 __skb_recv_datagram 7b… 8 u:r:perfd:s0 root 1939 1955 1 18132 2088 do_sigtimedwait 7b9782… 9 u:r:shell:s0 shell 2645 2645 802 11664 2972 0 7f67a2f8b4 …
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator_test.cpp | 40 EXPECT_EQ(std::u16string(u"H").size(), new_string->value->spans[0].first_char); in TEST() 41 EXPECT_EQ(std::u16string(u"Hello worl").size(), new_string->value->spans[0].last_char); in TEST() 44 EXPECT_EQ(std::u16string(u"He").size(), new_string->value->spans[1].first_char); in TEST() 45 EXPECT_EQ(std::u16string(u"Hel").size(), new_string->value->spans[1].last_char); in TEST() 48 EXPECT_EQ(std::u16string(u"Hello ").size(), new_string->value->spans[2].first_char); in TEST() 49 EXPECT_EQ(std::u16string(u"Hello w").size(), new_string->value->spans[2].last_char); in TEST() 60 EXPECT_EQ(std::u16string(u"[").size(), new_string->value->spans[0].first_char); in TEST() 61 EXPECT_EQ(std::u16string(u"[Ĥéļļö ŵöŕļð").size(), new_string->value->spans[0].last_char); in TEST() 63 EXPECT_EQ(std::u16string(u"[Ĥ").size(), new_string->value->spans[1].first_char); in TEST() 64 EXPECT_EQ(std::u16string(u"[Ĥéļļö ŵöŕļ").size(), new_string->value->spans[1].last_char); in TEST() [all …]
|
/frameworks/base/libs/hwui/ |
D | Matrix.h | 118 void loadMultiply(const Matrix4& u, const Matrix4& v); 133 Matrix4 u; in multiply() local 134 u.loadMultiply(*this, v); in multiply() 135 *this = u; in multiply() 152 Matrix4 u; variable 153 u.loadTranslate(x, y, z); 154 multiply(u); 167 Matrix4 u; in scale() local 168 u.loadScale(sx, sy, sz); in scale() 169 multiply(u); in scale() [all …]
|
D | Vertex.h | 62 float u, v; member 64 static inline void set(TextureVertex* vertex, float x, float y, float u, float v) { in set() 65 *vertex = {x, y, u, v}; in set() 68 static inline void setUV(TextureVertex* vertex, float u, float v) { in setUV() 69 vertex[0].u = u; in setUV()
|
/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/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 107 private void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() argument 109 final long consumptionUC = u.getCpuMeasuredBatteryConsumptionUC(); in calculateApp() 111 calculatePowerAndDuration(u, powerModel, consumptionUC, BatteryStats.STATS_SINCE_CHARGED, in calculateApp() 131 private void calculateApp(BatterySipper app, BatteryStats.Uid u, int statsType, Result result) { in calculateApp() argument 132 final long consumptionUC = u.getCpuMeasuredBatteryConsumptionUC(); in calculateApp() 134 calculatePowerAndDuration(u, powerModel, consumptionUC, statsType, result); in calculateApp() 142 private void calculatePowerAndDuration(BatteryStats.Uid u, in calculatePowerAndDuration() argument 145 long durationMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculatePowerAndDuration() 154 powerMah = calculateUidModeledPowerMah(u, statsType); in calculatePowerAndDuration() 159 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + durationMs + " ms power=" in calculatePowerAndDuration() [all …]
|
D | MobileRadioPowerCalculator.java | 123 private void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() argument 126 final long radioActiveDurationMs = calculateDuration(u, BatteryStats.STATS_SINCE_CHARGED); in calculateApp() 129 final long consumptionUC = u.getMobileRadioMeasuredBatteryConsumptionUC(); in calculateApp() 131 final double powerMah = calculatePower(u, powerModel, powerPerPacketMah, in calculateApp() 150 final BatteryStats.Uid u = app.uidObj; in calculate() local 151 calculateApp(app, u, statsType, mobilePowerPerPacket, total); in calculate() 174 private void calculateApp(BatterySipper app, BatteryStats.Uid u, int statsType, in calculateApp() argument 176 app.mobileActive = calculateDuration(u, statsType); in calculateApp() 178 final long consumptionUC = u.getMobileRadioMeasuredBatteryConsumptionUC(); in calculateApp() 180 app.mobileRadioPowerMah = calculatePower(u, powerModel, powerPerPacketMah, app.mobileActive, in calculateApp() [all …]
|
D | SensorPowerCalculator.java | 60 private double calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() argument 62 final double powerMah = calculatePowerMah(u, rawRealtimeUs, in calculateApp() 65 calculateDuration(u, rawRealtimeUs, BatteryStats.STATS_SINCE_CHARGED)) in calculateApp() 71 protected void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument 73 app.sensorPowerMah = calculatePowerMah(u, rawRealtimeUs, statsType); in calculateApp() 76 private long calculateDuration(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in calculateDuration() argument 78 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); in calculateDuration() 93 private double calculatePowerMah(BatteryStats.Uid u, long rawRealtimeUs, int statsType) { in calculatePowerMah() argument 95 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); in calculatePowerMah()
|
/frameworks/compile/slang/tests/F_vector_cast/ |
D | vector_cast.rscript | 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/base/cmds/hid/jni/ |
D | com_android_commands_hid_Device.cpp | 156 strlcpy(reinterpret_cast<char*>(ev.u.create2.name), name, sizeof(ev.u.create2.name)); in open() 158 strlcpy(reinterpret_cast<char*>(ev.u.create2.uniq), uniq.c_str(), sizeof(ev.u.create2.uniq)); in open() 159 memcpy(&ev.u.create2.rd_data, descriptor.data(), size * sizeof(ev.u.create2.rd_data[0])); in open() 160 ev.u.create2.rd_size = size; in open() 161 ev.u.create2.bus = bus; in open() 162 ev.u.create2.vendor = vid; in open() 163 ev.u.create2.product = pid; in open() 164 ev.u.create2.version = 0; in open() 165 ev.u.create2.country = 0; in open() 223 ev.u.input2.size = report.size(); in sendReport() [all …]
|
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/ |
D | Conversion.h | 194 t->data.eventData.event = uint32_t(l.u.event_data.event); in wrapAs() 195 t->data.eventData.data1 = l.u.event_data.data1; in wrapAs() 196 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs() 197 t->data.eventData.data3 = l.u.event_data.data3; in wrapAs() 198 t->data.eventData.data4 = l.u.event_data.data4; in wrapAs() 202 t->data.bufferData.buffer = l.u.buffer_data.buffer; in wrapAs() 206 t->data.extendedBufferData.buffer = l.u.extended_buffer_data.buffer; in wrapAs() 208 l.u.extended_buffer_data.range_offset; in wrapAs() 210 l.u.extended_buffer_data.range_length; in wrapAs() 211 t->data.extendedBufferData.flags = l.u.extended_buffer_data.flags; in wrapAs() [all …]
|
/frameworks/base/tools/aapt2/io/ |
D | FileStream.h | 57 size_t buffer_capacity_ = 0u; 58 size_t buffer_offset_ = 0u; 59 size_t buffer_size_ = 0u; 60 size_t total_byte_count_ = 0u; 99 size_t buffer_capacity_ = 0u; 100 size_t buffer_offset_ = 0u; 101 size_t total_byte_count_ = 0u;
|
/frameworks/av/media/libaudioclient/ |
D | AudioTrackShared.cpp | 73 memset(&u, 0, sizeof(u)); in audio_track_cblk_t() 219 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer() 220 rear = cblk->u.mStreaming.mRear; in obtainBuffer() 223 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer() 224 front = cblk->u.mStreaming.mFront; in obtainBuffer() 239 cblk->u.mStreaming.mFront = rear; in obtainBuffer() 397 int32_t rear = cblk->u.mStreaming.mRear; in releaseBuffer() 398 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer() 400 int32_t front = cblk->u.mStreaming.mFront; in releaseBuffer() 401 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/base/startop/view_compiler/ |
D | layout_validation.cc | 24 if (0 == name.compare(u"merge")) { in VisitStartTag() 28 if (0 == name.compare(u"include")) { in VisitStartTag() 32 if (0 == name.compare(u"view")) { in VisitStartTag() 36 if (0 == name.compare(u"fragment")) { in VisitStartTag()
|