Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/hardware/google/gfxstream/host/apigen-codec-common/X11/
DXmd.h149 # define cvtINT8toInt(val) (((val) & 0x00000080) ? ((val) | 0xffffffffffffff00) : (val)) argument
150 # define cvtINT16toInt(val) (((val) & 0x00008000) ? ((val) | 0xffffffffffff0000) : (val)) argument
151 # define cvtINT32toInt(val) (((val) & 0x80000000) ? ((val) | 0xffffffff00000000) : (val)) argument
152 # define cvtINT8toShort(val) cvtINT8toInt(val) argument
153 # define cvtINT16toShort(val) cvtINT16toInt(val) argument
154 # define cvtINT32toShort(val) cvtINT32toInt(val) argument
155 # define cvtINT8toLong(val) cvtINT8toInt(val) argument
156 # define cvtINT16toLong(val) cvtINT16toInt(val) argument
157 # define cvtINT32toLong(val) cvtINT32toInt(val) argument
159 # define cvtINT8toInt(val) (val) argument
[all …]
/hardware/google/gfxstream/host/gl/glestranslator/EGL/
DEglPbufferSurface.cpp18 bool EglPbufferSurface::setAttrib(EGLint attrib,EGLint val) { in setAttrib() argument
21 if(val < 0) return false; in setAttrib()
22 m_width = val; in setAttrib()
25 if(val < 0) return false; in setAttrib()
26 m_height = val; in setAttrib()
29 m_largest = val; in setAttrib()
32 if(val != EGL_NO_TEXTURE && val != EGL_TEXTURE_RGB && val != EGL_TEXTURE_RGBA) return false; in setAttrib()
33 m_texFormat = val; in setAttrib()
36 if(val != EGL_NO_TEXTURE && val != EGL_TEXTURE_2D) return false; in setAttrib()
37 m_texTarget = val; in setAttrib()
[all …]
DEglConfig.cpp226 bool EglConfig::getConfAttrib(EGLint attrib,EGLint* val) const { in getConfAttrib()
229 *val = m_buffer_size; in getConfAttrib()
232 *val = m_red_size; in getConfAttrib()
235 *val = m_green_size; in getConfAttrib()
238 *val = m_blue_size; in getConfAttrib()
241 *val = m_luminance_size; in getConfAttrib()
244 *val = m_alpha_size; in getConfAttrib()
247 *val = m_bind_to_tex_rgb; in getConfAttrib()
250 *val = m_bind_to_tex_rgba; in getConfAttrib()
253 *val = m_caveat; in getConfAttrib()
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/
Dbcmendian.h30 #define BCMSWAP16(val) \ argument
31 ((uint16)((((uint16)(val) & (uint16)0x00ffU) << 8) | \
32 (((uint16)(val) & (uint16)0xff00U) >> 8)))
35 #define BCMSWAP32(val) \ argument
36 ((uint32)((((uint32)(val) & (uint32)0x000000ffU) << 24) | \
37 (((uint32)(val) & (uint32)0x0000ff00U) << 8) | \
38 (((uint32)(val) & (uint32)0x00ff0000U) >> 8) | \
39 (((uint32)(val) & (uint32)0xff000000U) >> 24)))
42 #define BCMSWAP32BY16(val) \ argument
43 ((uint32)((((uint32)(val) & (uint32)0x0000ffffU) << 16) | \
[all …]
/hardware/libhardware/modules/camera/3_4/metadata/
Dmetadata_common.h77 const T& val) { in UpdateMetadata() argument
78 return UpdateMetadata(metadata, tag, &val, 1); in UpdateMetadata()
85 const std::vector<T>& val) { in UpdateMetadata() argument
86 return UpdateMetadata(metadata, tag, val.data(), val.size()); in UpdateMetadata()
93 const std::array<T, N>& val) { in UpdateMetadata() argument
94 return UpdateMetadata(metadata, tag, val.data(), N); in UpdateMetadata()
101 const ArrayVector<T, N>& val) { in UpdateMetadata() argument
102 return UpdateMetadata(metadata, tag, val.data(), val.total_num_elements()); in UpdateMetadata()
109 const std::vector<std::array<T, N>>& val) { in UpdateMetadata() argument
112 for (const auto& array : val) { in UpdateMetadata()
[all …]
/hardware/google/aemu/base/include/aemu/base/
DJsonWriter.h41 JsonWriter& nameAsStr(int val);
42 JsonWriter& nameAsStr(long val);
43 JsonWriter& nameAsStr(float val);
44 JsonWriter& nameAsStr(double val);
45 JsonWriter& nameBoolAsStr(bool val);
48 JsonWriter& value(int val);
49 JsonWriter& value(long val);
50 JsonWriter& value(float val);
51 JsonWriter& value(double val);
52 JsonWriter& valueBool(bool val); // thx operator bool
[all …]
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/spec_tools/
Dattributes.py14 def _split_param_ref(val): argument
15 return [name for name, _, _ in _PARAM_REF_NAME_RE.findall(val)]
18 def _human_readable_deref(val, make_param_name=None): argument
21 matches = _PARAM_REF_NAME_RE.findall(val)
40 def __init__(self, val): argument
41 self.full_reference = val
47 if val == LengthEntry.NULL_TERMINATED_STRING:
51 if val.startswith(LengthEntry.MATH_STRING):
52 self.math = val.replace(LengthEntry.MATH_STRING, '')[1:-1]
55 if val.isdigit():
[all …]
/hardware/google/gfxstream/guest/mesa/src/util/
Dhalf_float.h45 uint16_t _mesa_float_to_half_slow(float val);
46 float _mesa_half_to_float_slow(uint16_t val);
55 uint16_t _mesa_float_to_float16_rtz_slow(float val);
58 _mesa_float_to_half(float val) in _mesa_float_to_half() argument
62 __m128 in = {val}; in _mesa_float_to_half()
70 return _mesa_float_to_half_slow(val); in _mesa_float_to_half()
74 _mesa_half_to_float(uint16_t val) in _mesa_half_to_float() argument
78 __m128i in = {val}; in _mesa_half_to_float()
85 return _mesa_half_to_float_slow(val); in _mesa_half_to_float()
89 _mesa_float_to_float16_rtz(float val) in _mesa_float_to_float16_rtz() argument
[all …]
Du_math.h452 unsigned val = x; in util_next_power_of_two()
460 val--; in util_next_power_of_two()
461 val = (val >> 1) | val; in util_next_power_of_two()
462 val = (val >> 2) | val; in util_next_power_of_two()
463 val = (val >> 4) | val; in util_next_power_of_two()
464 val = (val >> 8) | val; in util_next_power_of_two()
465 val = (val >> 16) | val; in util_next_power_of_two()
466 val++; in util_next_power_of_two()
467 return val; in util_next_power_of_two()
480 uint64_t val = x; in util_next_power_of_two64()
[all …]
Dsimple_mtx.h75 uint32_t val; member
87 mtx->val = 0; in simple_mtx_init()
97 mtx->val = _SIMPLE_MTX_INVALID_VALUE; in simple_mtx_destroy()
106 c = p_atomic_cmpxchg(&mtx->val, 0, 1); in simple_mtx_lock()
112 c = p_atomic_xchg(&mtx->val, 2); in simple_mtx_lock()
114 futex_wait(&mtx->val, 2, NULL); in simple_mtx_lock()
115 c = p_atomic_xchg(&mtx->val, 2); in simple_mtx_lock()
129 c = p_atomic_fetch_add(&mtx->val, -1); in simple_mtx_unlock()
134 mtx->val = 0; in simple_mtx_unlock()
135 futex_wake(&mtx->val, 1); in simple_mtx_unlock()
[all …]
Dformat_r11g11b10f.h53 static inline uint32_t f32_to_uf11(float val) in f32_to_uf11() argument
58 } f32 = {val}; in f32_to_uf11()
84 } else if (val > 65024.0f) { in f32_to_uf11()
101 static inline float uf11_to_f32(uint16_t val) in uf11_to_f32() argument
108 int exponent = (val & 0x07c0) >> UF11_EXPONENT_SHIFT; in uf11_to_f32()
109 int mantissa = (val & 0x003f); in uf11_to_f32()
135 static inline uint32_t f32_to_uf10(float val) in f32_to_uf10() argument
140 } f32 = {val}; in f32_to_uf10()
166 } else if (val > 64512.0f) { in f32_to_uf10()
183 static inline float uf10_to_f32(uint16_t val) in uf10_to_f32() argument
[all …]
Du_queue.h70 uint32_t val; member
76 fence->val = 0; in util_queue_fence_init()
82 assert(p_atomic_read_relaxed(&fence->val) == 0); in util_queue_fence_destroy()
89 uint32_t val = p_atomic_xchg(&fence->val, 0); in util_queue_fence_signal() local
91 assert(val != 0); in util_queue_fence_signal()
93 if (val == 2) in util_queue_fence_signal()
94 futex_wake(&fence->val, INT_MAX); in util_queue_fence_signal()
107 fence->val = 1; in util_queue_fence_reset()
109 uint32_t v = p_atomic_xchg(&fence->val, 1); in util_queue_fence_reset()
117 return p_atomic_read_relaxed(&fence->val) == 0; in util_queue_fence_is_signalled()
Du_atomic.c53 __sync_add_and_fetch_8(uint64_t *ptr, uint64_t val) in __sync_add_and_fetch_8() argument
58 *ptr += val; in __sync_add_and_fetch_8()
66 __sync_sub_and_fetch_8(uint64_t *ptr, uint64_t val) in __sync_sub_and_fetch_8() argument
71 *ptr -= val; in __sync_sub_and_fetch_8()
79 __sync_fetch_and_add_8(uint64_t *ptr, uint64_t val) in __sync_fetch_and_add_8() argument
85 *ptr += val; in __sync_fetch_and_add_8()
92 __sync_fetch_and_sub_8(uint64_t *ptr, uint64_t val) in __sync_fetch_and_sub_8() argument
98 *ptr -= val; in __sync_fetch_and_sub_8()
/hardware/interfaces/broadcastradio/common/utilsaidl/src/
DUtilsV2.cpp30 uint64_t val = static_cast<uint64_t>(id.value); in isValidV2() local
45 expect(val > 100000u, "f > 100MHz"); in isValidV2()
49 expect(val > 100u, "f > 100kHz"); in isValidV2()
50 expect(val < 10000000u, "f < 10GHz"); in isValidV2()
53 expect(val != 0u, "RDS PI != 0"); in isValidV2()
54 expect(val <= 0xFFFFu, "16bit id"); in isValidV2()
57 uint64_t stationId = val & 0xFFFFFFFF; // 32bit in isValidV2()
58 val >>= 32; in isValidV2()
59 uint64_t subchannel = val & 0xF; // 4bit in isValidV2()
60 val >>= 4; in isValidV2()
[all …]
/hardware/google/pixel/pixelstats/
DBatteryFGReporter.cpp50 std::vector<VendorAtomValue> &val = *values; in setAtomFieldValue() local
51 if (offset - kVendorAtomOffset < val.size()) in setAtomFieldValue()
52 val[offset - kVendorAtomOffset].set<VendorAtomValue::intValue>(content); in setAtomFieldValue()
159 VendorAtomValue val; in reportEvent() local
161 val.set<VendorAtomValue::intValue>(0); in reportEvent()
162 values[BatteryEEPROM::kCycleCntFieldNumber - kVendorAtomOffset] = val; in reportEvent()
163 val.set<VendorAtomValue::intValue>(params.fcnom); in reportEvent()
164 values[BatteryEEPROM::kFullCapFieldNumber - kVendorAtomOffset] = val; in reportEvent()
165 val.set<VendorAtomValue::intValue>(params.dpacc); in reportEvent()
166 values[BatteryEEPROM::kEsrFieldNumber - kVendorAtomOffset] = val; in reportEvent()
[all …]
DBatteryEEPROMReporter.cpp216 VendorAtomValue val; in reportEvent() local
218 val.set<VendorAtomValue::intValue>(hist.cycle_cnt); in reportEvent()
219 values[BatteryEEPROM::kCycleCntFieldNumber - kVendorAtomOffset] = val; in reportEvent()
220 val.set<VendorAtomValue::intValue>(hist.full_cap); in reportEvent()
221 values[BatteryEEPROM::kFullCapFieldNumber - kVendorAtomOffset] = val; in reportEvent()
222 val.set<VendorAtomValue::intValue>(hist.esr); in reportEvent()
223 values[BatteryEEPROM::kEsrFieldNumber - kVendorAtomOffset] = val; in reportEvent()
224 val.set<VendorAtomValue::intValue>(hist.rslow); in reportEvent()
225 values[BatteryEEPROM::kRslowFieldNumber - kVendorAtomOffset] = val; in reportEvent()
226 val.set<VendorAtomValue::intValue>(hist.soh); in reportEvent()
[all …]
/hardware/google/aemu/base/
DStringParse_unittest.cpp28 float val = 0; in testScanf() local
32 EXPECT_EQ(1, sscanf(dot, format, &val, &n)); in testScanf()
33 EXPECT_FLOAT_EQ(1, val); in testScanf()
35 EXPECT_EQ(1, sscanf(comma, format, &val, &n)); in testScanf()
36 EXPECT_FLOAT_EQ(1.3, val); in testScanf()
40 EXPECT_EQ(1, SscanfWithCLocale(dot, format, &val, &n)); in testScanf()
41 EXPECT_FLOAT_EQ(1.3, val); in testScanf()
45 EXPECT_EQ(1, sscanf(dot, format, &val, &n)); in testScanf()
46 EXPECT_FLOAT_EQ(1, val); in testScanf()
48 EXPECT_EQ(1, sscanf(comma, format, &val, &n)); in testScanf()
[all …]
/hardware/google/graphics/common/libion/test/
Dion_allocate_api_test.cpp36 off_t checkZero(int fd, size_t size, unsigned long *val) { in checkZero() argument
44 if (val) in checkZero()
45 *val = p[idx]; in checkZero()
60 unsigned long val = mb(256); // This is very big enough to flush shrinker in flushShrinker() local
61 if (write(fd, &val, sizeof(val)) < 0) in flushShrinker()
62 … FAIL() << "Failed to write " << val << " to 'ion_system_heap_shrink': " << strerror(errno); in flushShrinker()
63 if (read(fd, &val, sizeof(val)) < 0) in flushShrinker()
65 if (val > 0) in flushShrinker()
66 FAIL() << "ion_system_heap_shrink still has value " << val; in flushShrinker()
115 unsigned long val = 0; in TEST_F() local
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DProtoMessageConverter.cpp151 void toProto(vhal_proto::VehiclePropValue* protoVal, const VehiclePropValue& val) { in toProto() argument
152 protoVal->set_prop(val.prop); in toProto()
153 protoVal->set_value_type(toInt(getPropType(val.prop))); in toProto()
154 protoVal->set_timestamp(val.timestamp); in toProto()
155 protoVal->set_status((vhal_proto::VehiclePropStatus)(val.status)); in toProto()
156 protoVal->set_area_id(val.areaId); in toProto()
161 if (val.value.stringValue.size() > 0) { in toProto()
162 protoVal->set_string_value(val.value.stringValue.c_str(), val.value.stringValue.size()); in toProto()
165 if (val.value.bytes.size() > 0) { in toProto()
166 protoVal->set_bytes_value(val.value.bytes.data(), val.value.bytes.size()); in toProto()
[all …]
DVehicleObjectPool.cpp59 auto val = obtain(VehiclePropertyType::INT32); in obtainInt32() local
60 val->value.int32Values[0] = value; in obtainInt32()
61 return val; in obtainInt32()
66 auto val = obtain(VehiclePropertyType::INT64); in obtainInt64() local
67 val->value.int64Values[0] = value; in obtainInt64()
68 return val; in obtainInt64()
73 auto val = obtain(VehiclePropertyType::FLOAT); in obtainFloat() local
74 val->value.floatValues[0] = value; in obtainFloat()
75 return val; in obtainFloat()
80 auto val = obtain(VehiclePropertyType::STRING); in obtainString() local
[all …]
/hardware/interfaces/broadcastradio/common/utils2x/
DUtils.cpp136 static bool maybeGetId(const ProgramSelector& sel, const IdentifierType type, uint64_t* val) { in maybeGetId() argument
140 if (val) *val = sel.primaryId.value; in maybeGetId()
148 if (val) *val = id.value; in maybeGetId()
161 uint64_t val; in getId() local
163 if (maybeGetId(sel, type, &val)) { in getId()
164 return val; in getId()
200 auto val = id.value; in isValid() local
215 expect(val > 100000u, "f > 100MHz"); in isValid()
219 expect(val > 100u, "f > 100kHz"); in isValid()
220 expect(val < 10000000u, "f < 10GHz"); in isValid()
[all …]
/hardware/interfaces/audio/core/all-versions/vts/functional/5.0/
DAudioPrimaryHidlHalTest.cpp41 for (float val = -1.0f; val <= 1.0; val += incr) { in TEST_P() local
42 ASSERT_RESULT(okOrNotSupported, stream->setMicrophoneFieldDimension(val)); in TEST_P()
46 for (float val = 1.0f + incr; val <= 10.0f; val += incr) { in TEST_P() local
47 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(val)); in TEST_P()
48 ASSERT_RESULT(invalidArgsOrNotSupported, stream->setMicrophoneFieldDimension(-val)); in TEST_P()
/hardware/google/gchips/gralloc4/src/hidl_common/
DBufferDescriptor.h69 static void push_descriptor_uint32(frameworks_vec<vecT> *vec, size_t *pos, uint32_t val) in push_descriptor_uint32() argument
71 static_assert(sizeof(val) % sizeof(vecT) == 0, "Unsupported vector type"); in push_descriptor_uint32()
72 memcpy(vec->data() + *pos, &val, sizeof(val)); in push_descriptor_uint32()
73 *pos += sizeof(val) / sizeof(vecT); in push_descriptor_uint32()
79 uint32_t val; in pop_descriptor_uint32() local
80 static_assert(sizeof(val) % sizeof(vecT) == 0, "Unsupported vector type"); in pop_descriptor_uint32()
81 memcpy(&val, vec.data() + *pos, sizeof(val)); in pop_descriptor_uint32()
82 *pos += sizeof(val) / sizeof(vecT); in pop_descriptor_uint32()
83 return val; in pop_descriptor_uint32()
87 static void push_descriptor_uint64(frameworks_vec<vecT> *vec, size_t *pos, uint64_t val) in push_descriptor_uint64() argument
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_semaphore.h48 int val; member
57 s->val = n; in cam_sem_init()
63 s->val++; in cam_sem_post()
72 while (s->val == 0) in cam_sem_wait()
74 s->val--; in cam_sem_wait()
83 while (s->val == 0 && rc != ETIMEDOUT) in cam_sem_timedwait()
86 if (s->val > 0) in cam_sem_timedwait()
87 s->val--; in cam_sem_timedwait()
104 s->val = 0; in cam_sem_destroy()
/hardware/google/graphics/common/libhwjpeg/
DIFDWriter.h34 char *WriteDataInBig(char *p, T val) { in WriteDataInBig() argument
35 if (sizeof(val) == 1) { in WriteDataInBig()
36 *p++ = val; in WriteDataInBig()
38 switch (sizeof(val)) { in WriteDataInBig()
40 *p++ = static_cast<char>((val >> 8) & 0xFF); in WriteDataInBig()
41 *p++ = static_cast<char>(val & 0xFF); in WriteDataInBig()
44 *p++ = static_cast<char>((val >> 24) & 0xFF); in WriteDataInBig()
45 *p++ = static_cast<char>((val >> 16) & 0xFF); in WriteDataInBig()
46 *p++ = static_cast<char>((val >> 8) & 0xFF); in WriteDataInBig()
47 *p++ = static_cast<char>(val & 0xFF); in WriteDataInBig()
[all …]

12345678910>>...18