Home
last modified time | relevance | path

Searched refs:file_data (Results 1 – 3 of 3) sorted by relevance

/system/tpm/tpm_manager/server/
Dlocal_data_store_impl.cc46 std::string file_data; in Read() local
47 if (!ReadFileToString(path, &file_data)) { in Read()
51 if (!data->ParseFromString(file_data)) { in Read()
59 std::string file_data; in Write() local
60 if (!data.SerializeToString(&file_data)) { in Write()
69 if (!base::ImportantFileWriter::WriteFileAtomically(path, file_data)) { in Write()
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc90 brillo::Blob file_data(part.size); in InitializePartitionWithUniqueBlocks() local
98 file_data.begin() + i * block_size); in InitializePartitionWithUniqueBlocks()
100 return test_utils::WriteFileVector(part.path, file_data); in InitializePartitionWithUniqueBlocks()
226 brillo::Blob file_data; in TEST_F() local
228 file_data.resize(file_data.size() + kBlockSize, 'a' + i); in TEST_F()
231 EXPECT_TRUE(WriteExtents(old_part_.path, old_extents, kBlockSize, file_data)); in TEST_F()
232 EXPECT_TRUE(WriteExtents(new_part_.path, new_extents, kBlockSize, file_data)); in TEST_F()
576 brillo::Blob file_data(block_size_ * 10, 'a'); in TEST_F() local
577 for (size_t offset = 0; offset < file_data.size(); offset += block_size_) in TEST_F()
578 file_data[offset] = 'a' + offset / block_size_; in TEST_F()
[all …]
/system/core/adb/
Dadb_auth_host.cpp403 char* file_data = reinterpret_cast<char*>(load_file(path, &size)); in adb_auth_get_userkey() local
404 if (file_data == nullptr) { in adb_auth_get_userkey()
411 free(file_data); in adb_auth_get_userkey()
415 memcpy(data, file_data, size); in adb_auth_get_userkey()
416 free(file_data); in adb_auth_get_userkey()
417 file_data = nullptr; in adb_auth_get_userkey()