/device/google/contexthub/util/common/ |
D | JSONObject.h | 167 JSONValue val; in setInt32() local 168 val.setInt32(in); in setInt32() 169 setValue(key, val); in setInt32() 173 JSONValue val; in setFloat() local 174 val.setFloat(in); in setFloat() 175 setValue(key, val); in setFloat() 179 JSONValue val; in setString() local 180 val.setString(in); in setString() 181 setValue(key, val); in setString() 185 JSONValue val; in setBoolean() local [all …]
|
D | JSONObject.cpp | 79 JSONValue val; in Parse() local 80 ssize_t n = Parse(&data[offset], size - offset, &val); in Parse() 86 array->addValue(val); in Parse() 149 JSONValue val; in Parse() local 150 n = Parse(&data[offset], size - offset, &val); in Parse() 159 obj->setValue(keyVal.c_str(), val); in Parse() 648 JSONValue val; in toString() local 650 val.setObject((JSONObject *)this); in toString() 652 val.setArray((JSONArray *)this); in toString() 655 return val.toString(depth, indentFirstLine); in toString()
|
/device/google/contexthub/contexthubhal/ |
D | message_buf.h | 69 void writeU8(uint8_t val) { in writeU8() argument 72 data[pos++] = val; in writeU8() 78 uint16_t val; in readU16() local 79 memcpy(&val, &data[pos], sizeof(val)); in readU16() 80 pos += sizeof(val); in readU16() 81 return le16toh(val); in readU16() 83 void writeU16(uint16_t val) { in writeU16() argument 87 uint16_t tmp = htole16(val); in writeU16() 95 uint32_t val; in readU32() local 96 memcpy(&val, &data[pos], sizeof(val)); in readU32() [all …]
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/ |
D | cpuMath.h | 6 uint32_t cpuMathUint44Div1000ToUint32_slow_path(uint64_t val); 8 static inline uint32_t cpuMathUint44Div1000ToUint32(uint64_t val) in cpuMathUint44Div1000ToUint32() argument 10 if (val >> 32) in cpuMathUint44Div1000ToUint32() 11 return cpuMathUint44Div1000ToUint32_slow_path(val); in cpuMathUint44Div1000ToUint32() 13 return (uint32_t)val / 1000; in cpuMathUint44Div1000ToUint32() 16 uint64_t cpuMathU64DivByU16(uint64_t val, uint32_t divBy /* 16 bits max*/); 42 …ALCULATE(val) ((val) & ((val) - 1)) ? (0xffffffffffffffffull / (val)) : (((val) <= 1) ? 0xfffffff… argument 47 #define U64_DIV_BY_U64_CONSTANT(val, constantVal) cpuMathRecipAssistedUdiv64by64((val), (constantV… argument 48 #define I64_DIV_BY_I64_CONSTANT(val, constantVal) \ argument 50 char neg = ((uint32_t)((val) >> 32) ^ (uint32_t)(((uint64_t)(constantVal)) >> 32)) >> 31; \ [all …]
|
/device/google/cuttlefish_vmm/qemu/x86_64-linux-gnu/usr/include/ |
D | libfdt.h | 254 static inline void fdt_set_##name(void *fdt, uint32_t val) \ 257 fdth->name = cpu_to_fdt32(val); \ 1245 uint32_t idx, const void *val, 1279 const void *val, int len); 1311 const char *name, uint32_t val) in fdt_setprop_inplace_u32() argument 1313 fdt32_t tmp = cpu_to_fdt32(val); in fdt_setprop_inplace_u32() 1346 const char *name, uint64_t val) in fdt_setprop_inplace_u64() argument 1348 fdt64_t tmp = cpu_to_fdt64(val); in fdt_setprop_inplace_u64() 1363 const char *name, uint32_t val) in fdt_setprop_inplace_cell() argument 1365 return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); in fdt_setprop_inplace_cell() [all …]
|
/device/generic/car/emulator/vhal_aidl/VehicleEmulator/ |
D | VehicleEmulator.cpp | 76 vhal_proto::VehiclePropValue* val = msg.add_value(); in doSetValueFromClient() local 77 populateProtoVehiclePropValue(propValue, val); in doSetValueFromClient() 188 VehiclePropValue val = { in doSetProperty() local 199 val.value.stringValue = protoVal.string_value().c_str(); in doSetProperty() 203 val.value.byteValues = std::vector<uint8_t> { protoVal.bytes_value().begin(), in doSetProperty() 208 val.value.int32Values = std::vector<int32_t> { protoVal.int32_values().begin(), in doSetProperty() 213 val.value.int64Values = std::vector<int64_t> { protoVal.int64_values().begin(), in doSetProperty() 218 val.value.floatValues = std::vector<float> { protoVal.float_values().begin(), in doSetProperty() 222 auto result = mHal->setValue(val); in doSetProperty() 318 void VehicleEmulator::populateProtoVehiclePropValue(const VehiclePropValue& val, in populateProtoVehiclePropValue() argument [all …]
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 935 uint8_t val; local 945 val = (-gyr_offset[0]) & 0xff; 946 SPI_WRITE(REG_GOS_USER0, val); 948 val = (-gyr_offset[1] >> 4) & 0xf0; 949 val |= ((-gyr_offset[0] >> 8) & 0x0f); 950 SPI_WRITE(REG_GOS_USER1, val); 952 val = (-gyr_offset[1]) & 0xff; 953 SPI_WRITE(REG_GOS_USER2, val); 955 val = (-gyr_offset[2]) & 0xff; 956 SPI_WRITE(REG_GOS_USER3, val); [all …]
|
/device/linaro/hikey/gralloc960/ |
D | gralloc_buffer_priv.h | 133 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument 137 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write() 149 memcpy(®ion->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write() 154 region->use_yuv_transform = *val; in gralloc_buffer_attr_write() 159 region->use_sparse_alloc = *val; in gralloc_buffer_attr_write() 164 memcpy(®ion->hdr_info, val, sizeof(mali_hdr_info)); in gralloc_buffer_attr_write() 174 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument 178 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read() 190 memcpy(val, ®ion->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read() 195 *val = region->use_yuv_transform; in gralloc_buffer_attr_read() [all …]
|
/device/generic/car/emulator/vhal_v2_0/ |
D | VehicleEmulator.cpp | 68 vhal_proto::VehiclePropValue* val = msg.add_value(); in doSetValueFromClient() local 69 populateProtoVehiclePropValue(val, &propValue); in doSetValueFromClient() 130 auto val = mHal->get(request, &halStatus); in doGetProperty() local 131 if (val != nullptr) { in doGetProperty() 133 populateProtoVehiclePropValue(protoVal, val.get()); in doGetProperty() 157 VehiclePropValue val = { in doSetProperty() local 168 val.value.stringValue = protoVal.string_value().c_str(); in doSetProperty() 172 val.value.bytes = std::vector<uint8_t> { protoVal.bytes_value().begin(), in doSetProperty() 177 val.value.int32Values = std::vector<int32_t> { protoVal.int32_values().begin(), in doSetProperty() 182 val.value.int64Values = std::vector<int64_t> { protoVal.int64_values().begin(), in doSetProperty() [all …]
|
/device/amlogic/yukawa/hal/gralloc/ |
D | gralloc_buffer_priv.h | 131 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument 135 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write() 147 memcpy(®ion->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write() 152 region->use_yuv_transform = *val; in gralloc_buffer_attr_write() 157 region->use_sparse_alloc = *val; in gralloc_buffer_attr_write() 167 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument 171 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read() 183 memcpy(val, ®ion->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read() 188 *val = region->use_yuv_transform; in gralloc_buffer_attr_read() 193 *val = region->use_sparse_alloc; in gralloc_buffer_attr_read()
|
/device/generic/car/emulator/usbpt/protocan/protocanbus/ |
D | ExtraCanClient.cpp | 81 std::set<int> decodeButtons(uint16_t val) { in decodeButtons() argument 84 if (val & (1 << 0)) buttons.insert(AKEYCODE_BUTTON_A); // NAV in decodeButtons() 85 if (val & (1 << 1)) buttons.insert(AKEYCODE_BUTTON_B); // TEL in decodeButtons() 86 if (val & (1 << 2)) buttons.insert(AKEYCODE_MUSIC); // MEDIA in decodeButtons() 87 if (val & (1 << 3)) buttons.insert(AKEYCODE_MENU); // MENU in decodeButtons() 88 if (val & (1 << 4)) buttons.insert(AKEYCODE_BACK); // BACK in decodeButtons() 89 if (val & (1 << 5)) buttons.insert(AKEYCODE_ENTER); // ENC-PUSH in decodeButtons() 90 if (val & (1 << 8)) buttons.insert(AKEYCODE_DPAD_UP); // DPAD-UP in decodeButtons() 91 if (val & (1 << 9)) buttons.insert(AKEYCODE_DPAD_DOWN); // DPAD-DOWN in decodeButtons() 92 if (val & (1 << 10)) buttons.insert(AKEYCODE_DPAD_LEFT); // DPAD-LEFT in decodeButtons() [all …]
|
/device/google/coral/json-c/ |
D | json_object.h | 71 struct json_object *val; member 276 struct json_object *val); 346 # define json_object_object_foreach(obj,key,val) \ argument 348 struct json_object *val __attribute__((__unused__)); \ 352 val = (struct json_object*)entry ## key->v; \ 359 # define json_object_object_foreach(obj,key,val) \ argument 361 struct json_object *val; \ 367 val = (struct json_object*)entry ## key->v, \ 379 …et_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_obje… 420 struct json_object *val); [all …]
|
D | json_object.c | 338 if(iter.val == NULL) in json_object_object_to_json_string() 341 iter.val->_to_json_string(iter.val, pb, level+1,flags); in json_object_object_to_json_string() 400 struct json_object *val) in json_object_object_add() argument 409 lh_table_insert(jso->o.c_object, strdup(key), val); in json_object_object_add() 415 existing_entry->v = val; in json_object_object_add() 822 struct json_object *val; in json_object_array_to_json_string() local 833 val = json_object_array_get_idx(jso, ii); in json_object_array_to_json_string() 834 if(val == NULL) in json_object_array_to_json_string() 837 val->_to_json_string(val, pb, level+1, flags); in json_object_array_to_json_string() 897 int json_object_array_add(struct json_object *jso,struct json_object *val) in json_object_array_add() argument [all …]
|
/device/google/sunfish/json-c/ |
D | json_object.h | 71 struct json_object *val; member 276 struct json_object *val); 346 # define json_object_object_foreach(obj,key,val) \ argument 348 struct json_object *val __attribute__((__unused__)); \ 352 val = (struct json_object*)entry ## key->v; \ 359 # define json_object_object_foreach(obj,key,val) \ argument 361 struct json_object *val; \ 367 val = (struct json_object*)entry ## key->v, \ 379 …et_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_obje… 420 struct json_object *val); [all …]
|
D | json_object.c | 338 if(iter.val == NULL) in json_object_object_to_json_string() 341 iter.val->_to_json_string(iter.val, pb, level+1,flags); in json_object_object_to_json_string() 400 struct json_object *val) in json_object_object_add() argument 409 lh_table_insert(jso->o.c_object, strdup(key), val); in json_object_object_add() 415 existing_entry->v = val; in json_object_object_add() 822 struct json_object *val; in json_object_array_to_json_string() local 833 val = json_object_array_get_idx(jso, ii); in json_object_array_to_json_string() 834 if(val == NULL) in json_object_array_to_json_string() 837 val->_to_json_string(val, pb, level+1, flags); in json_object_array_to_json_string() 897 int json_object_array_add(struct json_object *jso,struct json_object *val) in json_object_array_add() argument [all …]
|
/device/google/redbull/json-c/ |
D | json_object.h | 71 struct json_object *val; member 276 struct json_object *val); 346 # define json_object_object_foreach(obj,key,val) \ argument 348 struct json_object *val __attribute__((__unused__)); \ 352 val = (struct json_object*)entry ## key->v; \ 359 # define json_object_object_foreach(obj,key,val) \ argument 361 struct json_object *val; \ 367 val = (struct json_object*)entry ## key->v, \ 379 …et_object(obj)->head; (iter.entry ? (iter.key = (char*)iter.entry->k, iter.val = (struct json_obje… 420 struct json_object *val); [all …]
|
D | json_object.c | 338 if(iter.val == NULL) in json_object_object_to_json_string() 341 iter.val->_to_json_string(iter.val, pb, level+1,flags); in json_object_object_to_json_string() 400 struct json_object *val) in json_object_object_add() argument 409 lh_table_insert(jso->o.c_object, strdup(key), val); in json_object_object_add() 415 existing_entry->v = val; in json_object_object_add() 822 struct json_object *val; in json_object_array_to_json_string() local 833 val = json_object_array_get_idx(jso, ii); in json_object_array_to_json_string() 834 if(val == NULL) in json_object_array_to_json_string() 837 val->_to_json_string(val, pb, level+1, flags); in json_object_array_to_json_string() 897 int json_object_array_add(struct json_object *jso,struct json_object *val) in json_object_array_add() argument [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | ChecksumCalculator.cpp | 83 uint32_t val = computeV1Checksum(); in writeChecksum() local 84 memcpy(checksumPtr, &val, sizeof(val)); in writeChecksum() 85 memcpy(checksumPtr+sizeof(val), &m_numWrite, sizeof(m_numWrite)); in writeChecksum() 114 const uint32_t val = computeV1Checksum(); in validate() local 115 assert(checksumSize == sizeof(val) + sizeof(m_numRead)); in validate() 116 isValid = 0 == memcmp(&val, expectedChecksum, sizeof(val)) && in validate() 119 sizeof(val), in validate()
|
/device/google/cuttlefish_vmm/qemu/x86_64-linux-gnu/usr/share/qemu/ |
D | trace-events-all | 216 lockcnt_futex_wait(const void *lockcnt, int val) "lockcnt %p waiting on %d" 696 …d_mmio(int fd, uint64_t addr, uint32_t val, bool assign, uint32_t size, bool datamatch) "fd: %d @0… 697 …ventfd_pio(int fd, uint16_t addr, uint32_t val, bool assign, uint32_t size, bool datamatch) "fd: %… 897 acpi_gpe_en_ioport_readb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " ==> 0x%02" PRIx8 898 acpi_gpe_en_ioport_writeb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " <== 0x%02" PRIx8 899 acpi_gpe_sts_ioport_readb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " ==> 0x%02" PRIx8 900 acpi_gpe_sts_ioport_writeb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " <== 0x%02" PRIx8 923 acpi_pci_up_read(uint32_t val) "%" PRIu32 924 acpi_pci_down_read(uint32_t val) "%" PRIu32 925 acpi_pci_features_read(uint32_t val) "%" PRIu32 [all …]
|
/device/google/cuttlefish_vmm/qemu/aarch64-linux-gnu/usr/share/qemu/ |
D | trace-events-all | 216 lockcnt_futex_wait(const void *lockcnt, int val) "lockcnt %p waiting on %d" 696 …d_mmio(int fd, uint64_t addr, uint32_t val, bool assign, uint32_t size, bool datamatch) "fd: %d @0… 697 …ventfd_pio(int fd, uint16_t addr, uint32_t val, bool assign, uint32_t size, bool datamatch) "fd: %… 897 acpi_gpe_en_ioport_readb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " ==> 0x%02" PRIx8 898 acpi_gpe_en_ioport_writeb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " <== 0x%02" PRIx8 899 acpi_gpe_sts_ioport_readb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " ==> 0x%02" PRIx8 900 acpi_gpe_sts_ioport_writeb(uint32_t addr, uint8_t val) "addr: 0x%" PRIx32 " <== 0x%02" PRIx8 923 acpi_pci_up_read(uint32_t val) "%" PRIu32 924 acpi_pci_down_read(uint32_t val) "%" PRIu32 925 acpi_pci_features_read(uint32_t val) "%" PRIu32 [all …]
|
/device/linaro/dragonboard/shared/utils/rmtfs/ |
D | sharedmem.c | 34 unsigned long long val; in parse_hex_sysattr() local 43 val = strtoull(buf, &endptr, 16); in parse_hex_sysattr() 44 if ((val == ULLONG_MAX && errno == ERANGE) || endptr == buf) { in parse_hex_sysattr() 48 *value = val; in parse_hex_sysattr() 209 char val[PAGE_SIZE]; in rmtfs_mem_open_rfsa() local 229 read(fd, val, sizeof(val)); in rmtfs_mem_open_rfsa() 230 rmem->address = strtoull(val, &endptr, 16); in rmtfs_mem_open_rfsa() 231 if ((rmem->address == ULLONG_MAX && errno == ERANGE) || endptr == val) { in rmtfs_mem_open_rfsa() 244 read(fd, val, sizeof(val)); in rmtfs_mem_open_rfsa() 245 rmem->size = strtoull(val, &endptr, 16); in rmtfs_mem_open_rfsa() [all …]
|
/device/generic/opengl-transport/host/commands/emugen/android/base/ |
D | EnumFlags.h | 78 enable_if_scoped_enum<E, bool> operator!=(E e, int val) { 80 static_cast<underlying_enum_type<E>>(val); 84 enable_if_scoped_enum<E, bool> operator!=(int val, E e) { 85 return e != val; 89 enable_if_scoped_enum<E, bool> operator==(E e, int val) { 91 static_cast<underlying_enum_type<E>>(val); 95 enable_if_scoped_enum<E, bool> operator==(int val, E e) { 96 return e == val;
|
/device/google/trout/tests/hal/vehicle/2.0/ |
D | GrpcServer_test.cpp | 74 void WriteToPowerStateSocket(const std::string& val); 107 void GrpcServerTest::WriteToPowerStateSocket(const std::string& val) { in WriteToPowerStateSocket() argument 120 EXPECT_EQ(write(power_socket_fd, val.c_str(), val.length()), in WriteToPowerStateSocket() 121 static_cast<ssize_t>(val.length())); in WriteToPowerStateSocket() 127 std::string val; in ReadFromPowerStateMarkerFile() local 128 stream >> val; in ReadFromPowerStateMarkerFile() 129 return val; in ReadFromPowerStateMarkerFile()
|
/device/google/contexthub/firmware/os/cpu/x86/ |
D | atomic.c | 19 uint32_t atomicAdd32bits(volatile uint32_t *val, uint32_t addend) in atomicAdd32bits() argument 24 old = *val; in atomicAdd32bits() 25 } while (!atomicCmpXchg32bits(val, old, old + addend)); in atomicAdd32bits() 30 uint32_t atomicAddByte(volatile uint8_t *val, uint32_t addend) in atomicAddByte() argument 35 old = *val; in atomicAddByte() 36 } while (!atomicCmpXchgByte(val, old, old + addend)); in atomicAddByte()
|
/device/google/cuttlefish_vmm/qemu/third_party/rust/crates/pkg-config/src/ |
D | lib.rs | 426 Some(ref val) if val == "0" => false, in target_supported() 673 for (flag, val) in parts { in parse_libs_cflags() 676 let meta = format!("rustc-link-search=native={}", val); in parse_libs_cflags() 678 dirs.push(PathBuf::from(val)); in parse_libs_cflags() 679 self.link_paths.push(PathBuf::from(val)); in parse_libs_cflags() 682 let meta = format!("rustc-link-search=framework={}", val); in parse_libs_cflags() 684 self.framework_paths.push(PathBuf::from(val)); in parse_libs_cflags() 687 self.include_paths.push(PathBuf::from(val)); in parse_libs_cflags() 691 if is_msvc && ["m", "c", "pthread"].contains(&val) { in parse_libs_cflags() 695 if statik && is_static_available(val, &system_roots, &dirs) { in parse_libs_cflags() [all …]
|