Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/av/media/module/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/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 …]
/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()
263 mMinimumValue.u.i8 = min; in setFormRange()
264 mMaximumValue.u.i8 = max; in setFormRange()
[all …]
/frameworks/av/media/module/foundation/
DAMessage.cpp103 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/
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/rs/toolkit/
DColorMatrix.cpp114 } u; member
247 key.u.inType = RS_TYPE_FLOAT_32;
251 key.u.outType = RS_TYPE_FLOAT_32;
259 key.u.coeffMask |= 1 << i;
262 if (fabs(mFpa[0]) != 0.f) key.u.addMask |= 0x1;
263 if (fabs(mFpa[1]) != 0.f) key.u.addMask |= 0x2;
264 if (fabs(mFpa[2]) != 0.f) key.u.addMask |= 0x4;
265 if (fabs(mFpa[3]) != 0.f) key.u.addMask |= 0x8;
279 key.u.coeffMask |= 1 << i;
282 if (mIpa[0] != 0) key.u.addMask |= 0x1;
[all …]
DYuvToRgb.cpp83 static uchar4 rsYuvToRGBA_uchar4(uchar y, uchar u, uchar v) { in rsYuvToRGBA_uchar4() argument
85 int16_t U = ((int16_t)u) - 128; in rsYuvToRGBA_uchar4()
120 extern "C" void rsdIntrinsicYuv2_K(void *dst, const uchar *Y, const uchar *u, const uchar *v,
128 const uchar *u = mInU + ((currentY >> 1) * mStrideU); in kernel() local
190 *out = rsYuvToRGBA_uchar4(y[x1], u[cx], v[cx]); in kernel()
199 rsdIntrinsicYuv2_K(out, y, u, v, x1, x2); in kernel()
204 intptr_t ipu = (intptr_t)u; in kernel()
212 rsdIntrinsicYuvR_K(out, y, u, x1, x2); in kernel()
224 *out = rsYuvToRGBA_uchar4(y[x1], u[cx], v[cx]); in kernel()
227 *out = rsYuvToRGBA_uchar4(y[x1], u[cx], v[cx]); in kernel()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java95 final Rect u = mUnrestricted; in update() local
96 u.set(0, 0, w, h); in update()
97 state.setDisplayFrame(u); in update()
103 if (safe.left > u.left) { in update()
105 .setFrame(u.left, u.top, safe.left, u.bottom) in update()
106 .updateSideHint(u); in update()
110 if (safe.top > u.top) { in update()
112 .setFrame(u.left, u.top, u.right, safe.top) in update()
113 .updateSideHint(u); in update()
117 if (safe.right < u.right) { in update()
[all …]
/frameworks/base/location/java/com/android/internal/location/altitude/
DS2CellIdUtils.java238 double u = uvTransform.xyzToU(x, y, z); in fromXyz() local
240 return fromFuv(face, u, v); in fromXyz()
244 private static long fromFuv(int face, double u, double v) { in fromFuv() argument
245 int i = uToI(u); in fromFuv()
251 double u = iToU(i); in fromFijWrap() local
255 double x = xyzTransform.uvToX(u, v); in fromFijWrap()
256 double y = xyzTransform.uvToY(u, v); in fromFijWrap()
257 double z = xyzTransform.uvToZ(u, v); in fromFijWrap()
296 private static int uToI(double u) { in uToI() argument
298 if (u >= 0) { in uToI()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsCpuTimesTest.java262 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateClusterSpeedTimes() local
263 assertNotNull("No entry for uid=" + testUids[i], u); in testUpdateClusterSpeedTimes()
269 u.getTimeAtCpuSpeed(cluster, speed, STATS_SINCE_CHARGED)); in testUpdateClusterSpeedTimes()
305 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() local
306 assertNotNull("No entry for uid=" + testUids[i], u); in testReadKernelUidCpuTimesLocked()
308 uidTimesUs[i][0], u.getUserCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked()
310 uidTimesUs[i][1], u.getSystemCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked()
339 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testReadKernelUidCpuTimesLocked() local
340 assertNotNull("No entry for uid=" + testUids[i], u); in testReadKernelUidCpuTimesLocked()
342 uidTimesUs[i][0] + deltasUs[i][0], u.getUserCpuTimeUs(STATS_SINCE_CHARGED)); in testReadKernelUidCpuTimesLocked()
[all …]
DBatteryStatsImplTest.java190 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); in testUpdateProcStateCpuTimes() local
192 assertFalse(u.getCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
193 assertFalse(u.getScreenOffCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
215 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() local
217 final boolean hasTimeInFreq = u.getCpuFreqTimes(timeInFreqs, procState); in testUpdateProcStateCpuTimes()
223 assertFalse(u.getScreenOffCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
249 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); in testUpdateProcStateCpuTimes() local
256 assertTrue(u.getCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
259 assertFalse(u.getCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
261 assertFalse(u.getScreenOffCpuFreqTimes(timeInFreqs, procState)); in testUpdateProcStateCpuTimes()
[all …]
/frameworks/base/tools/aapt2/format/binary/
DXmlFlattener_test.cpp95 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F()
99 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"attr")); in TEST_F()
101 const StringPiece16 kAttr(u"attr"); in TEST_F()
106 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F()
109 EXPECT_THAT(tree.getAttributeNamespace(0, &len), StrEq(u"http://com.test")); in TEST_F()
110 EXPECT_THAT(tree.getAttributeName(0, &len), StrEq(u"hello")); in TEST_F()
116 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F()
120 EXPECT_THAT(tree.getText(&len), StrEq(u"Some text\\\\")); in TEST_F()
124 EXPECT_THAT(tree.getElementName(&len), StrEq(u"Layout")); in TEST_F()
128 EXPECT_THAT(tree.getElementName(&len), StrEq(u"View")); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DCpuPowerCalculator.java142 private void calculateApp(UidBatteryConsumer.Builder app, BatteryStats.Uid u, in calculateApp() argument
144 final long consumptionUC = u.getCpuEnergyConsumptionUC(); in calculateApp()
146 calculatePowerAndDuration(u, powerModel, consumptionUC, BatteryStats.STATS_SINCE_CHARGED, in calculateApp()
156 calculateEnergyConsumptionPerProcessState(app, u, keys); in calculateApp()
159 calculateModeledPowerPerProcessState(app, u, keys, result); in calculateApp()
166 BatteryStats.Uid u, BatteryConsumer.Key[] keys) { in calculateEnergyConsumptionPerProcessState() argument
176 final long consumptionUC = u.getCpuEnergyConsumptionUC(key.processState); in calculateEnergyConsumptionPerProcessState()
185 BatteryStats.Uid u, BatteryConsumer.Key[] keys, Result result) { in calculateModeledPowerPerProcessState() argument
203 boolean hasCpuFreqTimes = u.getCpuFreqTimes(result.cpuFreqTimes, uidProcState); in calculateModeledPowerPerProcessState()
205 result.perProcStatePowerMah[procState] += calculateUidModeledPowerMah(u, in calculateModeledPowerPerProcessState()
[all …]
/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/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/libs/androidfw/tests/
DResTable_test.cpp272 testU16StringToInt(u"", 0U, false, false); in TEST()
273 testU16StringToInt(u" ", 0U, false, false); in TEST()
274 testU16StringToInt(u"\t\n", 0U, false, false); in TEST()
276 testU16StringToInt(u"abcd", 0U, false, false); in TEST()
277 testU16StringToInt(u"10abcd", 0U, false, false); in TEST()
278 testU16StringToInt(u"42 42", 0U, false, false); in TEST()
279 testU16StringToInt(u"- 42", 0U, false, false); in TEST()
280 testU16StringToInt(u"-", 0U, false, false); in TEST()
282 testU16StringToInt(u"0x", 0U, false, true); in TEST()
283 testU16StringToInt(u"0xnope", 0U, false, true); in TEST()
[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.cpp155 strlcpy(reinterpret_cast<char*>(ev.u.create2.name), name, sizeof(ev.u.create2.name)); in open()
156 strlcpy(reinterpret_cast<char*>(ev.u.create2.uniq), uniq, sizeof(ev.u.create2.uniq)); in open()
157 memcpy(&ev.u.create2.rd_data, descriptor.data(), size * sizeof(ev.u.create2.rd_data[0])); in open()
158 ev.u.create2.rd_size = size; in open()
159 ev.u.create2.bus = bus; in open()
160 ev.u.create2.vendor = vid; in open()
161 ev.u.create2.product = pid; in open()
162 ev.u.create2.version = 0; in open()
163 ev.u.create2.country = 0; in open()
221 ev.u.input2.size = report.size(); in sendReport()
[all …]
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/1.0/
DConversion.h194 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/libs/androidfw/include/androidfw/
DFileStream.h68 size_t buffer_capacity_ = 0u;
69 size_t buffer_offset_ = 0u;
70 size_t buffer_size_ = 0u;
71 size_t total_byte_count_ = 0u;
110 size_t buffer_capacity_ = 0u;
111 size_t buffer_offset_ = 0u;
112 size_t total_byte_count_ = 0u;
/frameworks/av/media/libaudioclient/
DAudioTrackShared.cpp73 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/webm/include/webm/
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/base/core/res/geoid_map_assets/
Dexpiration-distance-disk-tile-7.textpb2u\354\025N\353$\020\001\027\201\220B\006\234 J%\245\2142d!\a\251 \b\302\204\370\204\a\375fh\207\27…
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/shared/animation/
DPhysicsAnimatorTest.kt291 { u -> u.value > reversalTranslationX }, in <lambda>() method
292 { u -> u.value < reversalTranslationX }) in <lambda>() method
325 { u -> u.value > 0f }, in <lambda>() method
326 { u -> u.value >= 50f }) in <lambda>() method
350 { u -> u.value > 100f }, { u -> u.value >= 200f }) in <lambda>() method
498 { u -> u.value < 500f }, in <lambda>() method
499 { u -> u.value <= 250f }) in <lambda>() method
512 { u -> u.value < 250f }) in <lambda>() method
551 { u -> u.value < -500f }, in <lambda>() method
552 { u -> u.value > -500f }) in <lambda>() method

12345678910>>...14