Home
last modified time | relevance | path

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

12345678910

/frameworks/av/media/libstagefright/foundation/tests/
DAData_test.cpp54 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/
DMtpProperty.cpp76 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()
253 mMinimumValue.u.i8 = min; in setFormRange()
254 mMaximumValue.u.i8 = max; in setFormRange()
[all …]
/frameworks/av/media/libstagefright/webm/
DEbmlUtil.cpp34 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 …]
DEbmlUtil.h36 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/
DAMessage.cpp105 delete item->u.stringValue; in freeItemValue()
113 if (item->u.refValue != NULL) { in freeItemValue()
114 item->u.refValue->decStrong(this); in freeItemValue()
227 *value = item->u.floatValue; in findAsFloat()
230 *value = (float)item->u.doubleValue; in findAsFloat()
233 *value = (float)item->u.int64Value; in findAsFloat()
236 *value = (float)item->u.int32Value; in findAsFloat()
239 *value = (float)item->u.sizeValue; in findAsFloat()
254 *value = item->u.int64Value; in findAsInt64()
257 *value = item->u.int32Value; in findAsInt64()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicColorMatrix.cpp120 } 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/
DBatteryStatsImplTest.java98 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() local
100 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
101 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
109 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() local
113 u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
115 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
117 assertNull(u.getScreenOffCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
136 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() local
144 u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
146 assertNull(u.getCpuFreqTimes(STATS_SINCE_CHARGED, procState)); in testUpdateProcStateCpuTimes()
[all …]
DBatteryStatsCpuTimesTest.java233 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateClusterSpeedTimes() local
234 assertNotNull("No entry for uid=" + testUids[i], u); in testUpdateClusterSpeedTimes()
240 u.getTimeAtCpuSpeed(cluster, speed, STATS_SINCE_CHARGED)); in testUpdateClusterSpeedTimes()
276 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() local
277 assertNotNull("No entry for uid=" + testUids[i], u); in testReadKernelUidCpuTimesLocked()
279 uidTimesUs[i][0], u.getUserCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked()
281 uidTimesUs[i][1], u.getSystemCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked()
310 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() local
311 assertNotNull("No entry for uid=" + testUids[i], u); in testReadKernelUidCpuTimesLocked()
313 uidTimesUs[i][0] + deltasUs[i][0], u.getUserCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp96 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/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp40 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/androidfw/tests/
DResTable_test.cpp57 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 …]
DStringPiece_test.cpp32 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/
DMatrix.h118 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 …]
DVertex.h62 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/cmds/incident_helper/testdata/
Dps.txt2 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/core/java/com/android/internal/os/
DCpuPowerCalculator.java33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, in calculateApp() argument
35 app.cpuTimeMs = (u.getUserCpuTimeUs(statsType) + u.getSystemCpuTimeUs(statsType)) / 1000; in calculateApp()
42 final long timeUs = u.getTimeAtCpuSpeed(cluster, speed, statsType); in calculateApp()
46 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" in calculateApp()
53 cpuPowerMaUs += u.getCpuActiveTime() * 1000 * mProfile.getAveragePower( in calculateApp()
55 long[] cpuClusterTimes = u.getCpuClusterTimes(); in calculateApp()
63 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + i + " clusterTimeUs=" in calculateApp()
69 Log.w(TAG, "UID " + u.getUid() + " CPU cluster # mismatch: Power Profile # " in calculateApp()
76 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + app.cpuTimeMs + " ms power=" in calculateApp()
84 final ArrayMap<String, ? extends BatteryStats.Uid.Proc> processStats = u.getProcessStats(); in calculateApp()
DWifiPowerEstimator.java51 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()
/frameworks/av/media/libmediametrics/
DMediaAnalyticsItem.cpp329 prop->u.int32Value = value; in setInt32()
338 prop->u.int64Value = value; in setInt64()
347 prop->u.doubleValue = value; in setDouble()
358 prop->u.CStringValue = strdup(value); in setCString()
367 prop->u.rate.count = count; in setRate()
368 prop->u.rate.duration = duration; in setRate()
381 prop->u.int32Value += value; in addInt32()
386 prop->u.int32Value = value; in addInt32()
398 prop->u.int64Value += value; in addInt64()
403 prop->u.int64Value = value; in addInt64()
[all …]
/frameworks/compile/slang/tests/F_vector_cast/
Dvector_cast.rscript20 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/
Dcom_android_commands_hid_Device.cpp116 strlcpy(reinterpret_cast<char*>(ev.u.create2.name), name, sizeof(ev.u.create2.name)); in open()
117 memcpy(&ev.u.create2.rd_data, descriptor.data(), in open()
118 size * sizeof(ev.u.create2.rd_data[0])); in open()
119 ev.u.create2.rd_size = size; in open()
120 ev.u.create2.bus = BUS_BLUETOOTH; in open()
121 ev.u.create2.vendor = vid; in open()
122 ev.u.create2.product = pid; in open()
123 ev.u.create2.version = 0; in open()
124 ev.u.create2.country = 0; in open()
177 ev.u.input2.size = report.size(); in sendReport()
[all …]
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h195 t->data.eventData.event = uint32_t(l.u.event_data.event); in wrapAs()
196 t->data.eventData.data1 = l.u.event_data.data1; in wrapAs()
197 t->data.eventData.data2 = l.u.event_data.data2; in wrapAs()
198 t->data.eventData.data3 = l.u.event_data.data3; in wrapAs()
199 t->data.eventData.data4 = l.u.event_data.data4; in wrapAs()
203 t->data.bufferData.buffer = l.u.buffer_data.buffer; in wrapAs()
207 t->data.extendedBufferData.buffer = l.u.extended_buffer_data.buffer; in wrapAs()
209 l.u.extended_buffer_data.range_offset; in wrapAs()
211 l.u.extended_buffer_data.range_length; in wrapAs()
212 t->data.extendedBufferData.flags = l.u.extended_buffer_data.flags; in wrapAs()
[all …]
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp56 memset(&u, 0, sizeof(u)); in audio_track_cblk_t()
182 front = android_atomic_acquire_load(&cblk->u.mStreaming.mFront); in obtainBuffer()
183 rear = cblk->u.mStreaming.mRear; in obtainBuffer()
186 rear = android_atomic_acquire_load(&cblk->u.mStreaming.mRear); in obtainBuffer()
187 front = cblk->u.mStreaming.mFront; in obtainBuffer()
202 cblk->u.mStreaming.mFront = rear; in obtainBuffer()
360 int32_t rear = cblk->u.mStreaming.mRear; in releaseBuffer()
361 android_atomic_release_store(stepCount + rear, &cblk->u.mStreaming.mRear); in releaseBuffer()
363 int32_t front = cblk->u.mStreaming.mFront; in releaseBuffer()
364 android_atomic_release_store(stepCount + front, &cblk->u.mStreaming.mFront); in releaseBuffer()
[all …]
/frameworks/base/tools/aapt2/io/
DFileStream.h57 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/libstagefright/filters/
DColorConvert.cpp29 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/
Dlayout_validation.cc24 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()

12345678910