/system/tpm/trunks/ |
H A D | tpm_state_impl.cc | 169 bool TpmStateImpl::GetTpmProperty(TPM_PT property, uint32_t* value) { argument 174 if (value) { 175 *value = tpm_properties_[property]; 236 << " = 0x" << property.value; 237 impl->tpm_properties_[property.property] = property.value;
|
H A D | trunks_ftdi_spi.cc | 139 unsigned char* value; local 145 value = Read(mpsse_, bytes); 147 memcpy(buffer, value, bytes); 148 free(value); 202 LOG(ERROR) << "unexpected TPM family value, status: 0x" << std::hex 292 LOG(ERROR) << "Bad total payload size value: " << payload_size;
|
/system/update_engine/common/ |
H A D | utils.h | 82 // value. 138 // function is called again with a different value. 180 // Set the read-only attribute on the block device |device| to the value passed 209 // Returns true or false depending on the value of b. 218 // Fuzzes an integer |value| randomly in the range: 219 // [value - range / 2, value + range - range / 2] 220 int FuzzInt(int value, unsigned int range); 241 bool VectorContainsValue(const std::vector<T>& vect, const T& value) { argument 242 return std::find(vect.begin(), vect.end(), value) ! 246 VectorIndexOf(const std::vector<T>& vect, const T& value, typename std::vector<T>::size_type* out_index) argument [all...] |
H A D | utils_unittest.cc | 43 // Should be able to parse and valid key value line. 62 ScopedPathUnlinker unlinker(file.value()); 63 EXPECT_TRUE(utils::WriteFile(file.value().c_str(), "hello", 5)); 66 EXPECT_TRUE(utils::ReadFile(file.value().c_str(), &readback)); 78 ScopedPathUnlinker unlinker(file.value()); 84 EXPECT_TRUE(utils::WriteFile(file.value().c_str(), data.data(), data.size())); 86 EXPECT_TRUE(utils::ReadFileChunk(file.value().c_str(), kSize, 10, &in_data)); 88 EXPECT_TRUE(utils::ReadFileChunk(file.value().c_str(), 0, -1, &in_data)); 91 EXPECT_TRUE(utils::ReadFileChunk(file.value().c_str(), 10, 20, &in_data)); 103 string temp_file = temp_dir.GetPath().Append("temp-file").value(); 196 uint32_t value = utils::FuzzInt(kValue, range); local 341 int value; local [all...] |
/system/update_engine/payload_generator/ |
H A D | payload_file.cc | 56 bool WriteUint64AsBigEndian(FileWriter* writer, const uint64_t value) { argument 57 uint64_t value_be = htobe64(value);
|
/system/bt/bta/dm/ |
H A D | bta_dm_pm.cc | 46 tBTM_PM_STATUS status, uint16_t value, 171 * the older value; e.g., see the pm_action[] assignment in 600 * TODO: The value of pm_action[timer_idx] is 838 tBTM_PM_STATUS status, uint16_t value, 841 value, hci_status)); 888 uint16_t value, uint8_t hci_status) { 936 if (value) 837 bta_dm_pm_btm_cback(const RawAddress& bd_addr, tBTM_PM_STATUS status, uint16_t value, uint8_t hci_status) argument 887 bta_dm_pm_btm_status(const RawAddress& bd_addr, tBTM_PM_STATUS status, uint16_t value, uint8_t hci_status) argument
|
/system/bt/btif/src/ |
H A D | btif_config.cc | 249 int* value) { 251 CHECK(value != NULL); 255 if (ret) *value = config_get_int(*config, section, key, *value); 261 int value) { 265 config_set_int(config.get(), section, key, value); 271 uint64_t* value) { 273 CHECK(value != NULL); 277 if (ret) *value = config_get_uint64(*config, section, key, *value); 248 btif_config_get_int(const std::string& section, const std::string& key, int* value) argument 260 btif_config_set_int(const std::string& section, const std::string& key, int value) argument 270 btif_config_get_uint64(const std::string& section, const std::string& key, uint64_t* value) argument 282 btif_config_set_uint64(const std::string& section, const std::string& key, uint64_t value) argument 292 btif_config_get_str(const std::string& section, const std::string& key, char* value, int* size_bytes) argument 310 btif_config_set_str(const std::string& section, const std::string& key, const std::string& value) argument 319 btif_config_get_bin(const std::string& section, const std::string& key, uint8_t* value, size_t* length) argument 355 btif_config_set_bin(const std::string& section, const std::string& key, const uint8_t* value, size_t length) argument [all...] |
/system/bt/service/ |
H A D | gatt_server.cc | 106 const std::vector<uint8_t>& value) { 119 if (value.size() + offset > BTGATT_MAX_ATTR_LEN) { 155 memcpy(response.attr_value.value, value.data(), value.size()); 157 response.attr_value.len = value.size(); 176 const std::vector<uint8_t>& value, 210 // The HAL API takes char* rather const char* for |value|, so we have to 216 conn->conn_id, confirm, value); 400 bool is_prep, std::vector<uint8_t> value) { 104 SendResponse(const std::string& device_address, int request_id, GATTError error, int offset, const std::vector<uint8_t>& value) argument 174 SendNotification(const std::string& device_address, const uint16_t handle, bool confirm, const std::vector<uint8_t>& value, const GattCallback& callback) argument 397 RequestWriteCharacteristicCallback( hal::BluetoothGattInterface* , int conn_id, int trans_id, const RawAddress& bda, int attr_handle, int offset, bool need_rsp, bool is_prep, std::vector<uint8_t> value) argument 436 RequestWriteDescriptorCallback( hal::BluetoothGattInterface* , int conn_id, int trans_id, const RawAddress& bda, int attr_handle, int offset, bool need_rsp, bool is_prep, std::vector<uint8_t> value) argument [all...] |
/system/bt/service/hal/ |
H A D | fake_bluetooth_gatt_interface.cc | 88 int confirm, std::vector<uint8_t> value) { 91 conn_id, confirm, std::move(value)); 249 int offset, bool need_rsp, bool is_prep, std::vector<uint8_t> value) { 253 is_prep, value); 259 int offset, bool need_rsp, bool is_prep, std::vector<uint8_t> value) { 263 is_prep, value); 87 FakeSendIndication(int server_if, int attribute_handle, int conn_id, int confirm, std::vector<uint8_t> value) argument 247 NotifyRequestWriteCharacteristicCallback( int conn_id, int trans_id, const RawAddress& bda, int attr_handle, int offset, bool need_rsp, bool is_prep, std::vector<uint8_t> value) argument 257 NotifyRequestWriteDescriptorCallback( int conn_id, int trans_id, const RawAddress& bda, int attr_handle, int offset, bool need_rsp, bool is_prep, std::vector<uint8_t> value) argument
|
/system/bt/service/test/ |
H A D | gatt_server_unittest.cc | 112 const std::vector<uint8_t>& value, 122 char_write_req_.write_value = value; 129 const std::vector<uint8_t>& value, 139 desc_write_req_.write_value = value; 454 // Send response for a value that's too large. 618 std::vector<uint8_t> value; local 638 false, value, callback)); 642 false, value, callback)); 647 kConnId0, 0, value)) 651 kConnId1, 0, value)) [all...] |
/system/bt/stack/gatt/ |
H A D | gatt_cl.cc | 112 uint8_t* p = cl_req.find_type_value.value; 116 memcpy(cl_req.find_type_value.value, p_clcb->uuid.To128BitLE().data(), 120 memcpy(cl_req.find_type_value.value, p_clcb->uuid.To128BitLE().data(), 222 attr.len, 0, attr.value); 238 attr.handle, attr.len, 0, attr.value); 308 memcmp(p_rsp_value->value, p_attr->value + p_attr->offset, 317 /* update write offset and check if end of attribute value */ 352 p_attr->value + p_attr->offset); /* data */ 366 * Description This function handles the find by type value respons 569 tGATT_VALUE value = { local 611 tGATT_VALUE value; local [all...] |
H A D | gatt_sr.cc | 178 memcpy(p, p_rsp->attr_value.value, len); 421 tcb, it->p_db, op_code, handle, 0, p_msg->attr_value.value, 454 uint16_t e_hdl, UNUSED_ATTR uint8_t* p_data, const Uuid& value) { 489 if (op_code == GATT_REQ_FIND_TYPE_VALUE && value != *p_uuid) continue; 643 // TODO: we assume theh value is UUID, there is no such requirement in spec 644 Uuid value = Uuid::kEmpty; local 646 if (!gatt_parse_uuid_from_cmd(&value, len, &p_data)) { 655 p_data, value); 781 * - read characteristic value 782 * - read characteristic descriptor value 452 gatt_build_primary_service_rsp( BT_HDR* p_msg, tGATT_TCB& tcb, uint8_t op_code, uint16_t s_hdl, uint16_t e_hdl, UNUSED_ATTR uint8_t* p_data, const Uuid& value) argument [all...] |
/system/chre/chre_api/legacy/v1_0/chre/ |
H A D | sensor.h | 132 * Base value for all of the data events for sensors. 134 * The value for a data event FOO is 202 * This value is in hectopascals (hPa). 211 * This value is in SI lux units. 233 * First value for sensor events which are not data from the sensor. 292 * Special value indicating non-importance of the interval. 300 * Special value indicating non-importance of the latency. 422 * A value of 1 indicates this is on-change. 0 indicates this is not 433 * A value of 1 indicates this is one-shot. 0 indicates this is not 450 * <type> value; 577 float value; member in union:chreSensorFloatData::chreSensorFloatSampleData::__anon1429 592 uint8_t value; member in union:chreSensorByteData::chreSensorByteSampleData::__anon1430 [all...] |
/system/core/debuggerd/handler/ |
H A D | debuggerd_handler.cpp | 85 static inline void futex_wait(volatile void* ftx, int value) { argument 86 syscall(__NR_futex, ftx, FUTEX_WAIT, value, nullptr, nullptr, 0); 388 "read of IPC pipe returned unexpected value: %zd", rc); 436 // Make sure we don't change the value of errno, in case a signal comes in between the process 441 // our "info" arg holds an undefined value. 530 // Restore PR_SET_DUMPABLE to its original value. 535 // Restore PR_SET_PTRACER to its original value.
|
/system/core/fastboot/ |
H A D | engine.cpp | 79 bool fb_getvar(Transport* transport, const std::string& key, std::string* value) { argument 87 *value = buf; 153 static int match(const char* str, const char** value, unsigned count) { argument 157 const char *val = value[n]; 175 const char** value = reinterpret_cast<const char**>(a.data); local 194 int yes = match(resp, value, count); 206 fprintf(stderr, "Update %s '%s'", invert ? "rejects" : "requires", value[0]); 208 fprintf(stderr, " or '%s'", value[n]);
|
H A D | usb_linux.cpp | 302 int value; local 307 if (sscanf(buf, "%d", &value) != 1) 310 return value;
|
/system/core/init/ |
H A D | reboot.cpp | 174 cap_flag_value_t value = CAP_SET; local 175 if (cap_get_flag(caps.get(), CAP_SYS_BOOT, CAP_EFFECTIVE, &value) != 0) { 179 return value == CAP_SET;
|
/system/core/libunwindstack/ |
H A D | DwarfOp.cpp | 114 uint64_t value; local 115 if (!memory_->ReadEncodedValue<AddressType>(op->operands[i], &value)) { 120 operands_.push_back(value); 144 uint64_t value; local 145 if (!memory_->ReadEncodedValue<AddressType>(op->operands[i], &value)) { 148 log_string += ' ' + std::to_string(value); 171 AddressType value; local 172 if (!regular_memory()->ReadFully(addr, &value, sizeof(value))) { 177 stack_.push_front(value); 190 AddressType value = 0; local [all...] |
H A D | DwarfSection.cpp | 85 AddressType* value, 107 *value = op.StackAt(0); 151 AddressType value; local 153 if (!EvalExpression(*loc, regular_memory, &value, &eval_info->regs_info, &is_dex_pc)) { 157 if (!regular_memory->ReadFully(value, reg_ptr, sizeof(AddressType))) { 159 last_error_.address = value; 163 *reg_ptr = value; 165 eval_info->regs_info.regs->set_dex_pc(value); 191 // Get the cfa value; 217 AddressType value; local 84 EvalExpression(const DwarfLocation& loc, Memory* regular_memory, AddressType* value, RegsInfo<AddressType>* regs_info, bool* is_dex_pc) argument 660 uint8_t value; local 719 uint64_t value; local [all...] |
/system/extras/simpleperf/ |
H A D | cmd_stat.cpp | 94 double value = count / 1e6; local 95 return android::base::StringPrintf("%lf(ms)", value); 633 counter_info.cpu, counter_info.counter.value, 641 counter_info.cpu, counter_info.counter.value, 655 value_sum += counter_info.counter.value;
|
H A D | record_file_reader.cpp | 500 const char* value = key + strlen(key) + 1; local 501 CHECK(value < end); 502 (*info_map)[p] = value; 503 p = value + strlen(value) + 1;
|
H A D | thread_tree.cpp | 152 MapEntry* ThreadTree::AllocateMap(const MapEntry& value) { argument 153 MapEntry* map = new MapEntry(value);
|
H A D | tracing.cpp | 288 std::string value; local 296 value = s.substr(start, i - start); 298 size_t pos = value.find_first_of('['); 300 field.name = value; 303 field.name = value.substr(0, pos); 305 static_cast<size_t>(strtoull(&value[pos + 1], nullptr, 10)); 309 static_cast<size_t>(strtoull(value.c_str(), nullptr, 10)); 311 size_t size = static_cast<size_t>(strtoull(value.c_str(), nullptr, 10)); 315 int is_signed = static_cast<int>(strtoull(value.c_str(), nullptr, 10));
|
H A D | utils.cpp | 112 bool IsPowerOfTwo(uint64_t value) { argument 113 return (value != 0 && ((value & (value - 1)) == 0));
|
/system/extras/tests/sdcard/ |
H A D | sysutil.cpp | 201 int writeIntToFile(const char *filename, long value) argument 204 sprintf(buffer, "%ld", value); 246 char value[16]; local 247 if (readStringFromFile(filename, value, sizeof(value)) == -1) 253 return atoi(value); 292 char value[256] = {0,}; local 294 if (readStringFromFile(kSchedFeatures, value, sizeof(value)) == -1) 299 return strstr(value, "NO_NEW_FAIR_SLEEPER 322 char value[256] = {0,}; local [all...] |