Home
last modified time | relevance | path

Searched refs:utils (Results 1 – 25 of 248) sorted by relevance

12345678910

/system/update_engine/common/
Dutils_unittest.cc45 EXPECT_FALSE(utils::WriteFile("/this/doesn't/exist", "hello", 5)); in TEST()
50 EXPECT_TRUE(utils::WriteFile(file.path().c_str(), "hello", 5)); in TEST()
53 EXPECT_TRUE(utils::ReadFile(file.path().c_str(), &readback)); in TEST()
59 EXPECT_FALSE(utils::ReadFile("/this/doesn't/exist", &empty)); in TEST()
71 EXPECT_TRUE(utils::ReadFileChunk(file.path().c_str(), kSize, 10, &in_data)); in TEST()
73 EXPECT_TRUE(utils::ReadFileChunk(file.path().c_str(), 0, -1, &in_data)); in TEST()
76 EXPECT_TRUE(utils::ReadFileChunk(file.path().c_str(), 10, 20, &in_data)); in TEST()
84 EXPECT_TRUE(utils::WriteFile(temp_file.c_str(), "", 0)); in TEST()
87 EXPECT_FALSE(utils::IsSymlink(temp_dir.GetPath().value().c_str())); in TEST()
88 EXPECT_FALSE(utils::IsSymlink(temp_file.c_str())); in TEST()
[all …]
/system/core/libutils/abi-dumps/arm_arm64/source-based/
Dlibutils.so.lsdump19 "source_file" : "system/core/libutils/binder/include/utils/String16.h"
28 "source_file" : "system/core/libutils/include/utils/Printer.h"
2016 "source_file" : "system/core/libutils/include/utils/Timers.h",
2554 "source_file" : "system/core/libutils/include/utils/VectorImpl.h",
2579 "source_file" : "system/core/libutils/binder/include/utils/VectorImpl.h",
2596 "source_file" : "system/core/libutils/include/utils/TypeHelpers.h",
2613 "source_file" : "system/core/libutils/include/utils/TypeHelpers.h",
2630 "source_file" : "system/core/libutils/include/utils/TypeHelpers.h",
2723 "source_file" : "system/core/libutils/include/utils/Errors.h",
2816 "source_file" : "system/core/libutils/binder/include/utils/Errors.h",
[all …]
/system/core/libutils/abi-dumps/arm64/source-based/
Dlibutils.so.lsdump19 "source_file" : "system/core/libutils/binder/include/utils/String16.h"
28 "source_file" : "system/core/libutils/include/utils/Printer.h"
1992 "source_file" : "system/core/libutils/include/utils/Timers.h",
2530 "source_file" : "system/core/libutils/include/utils/VectorImpl.h",
2555 "source_file" : "system/core/libutils/binder/include/utils/VectorImpl.h",
2572 "source_file" : "system/core/libutils/include/utils/TypeHelpers.h",
2589 "source_file" : "system/core/libutils/include/utils/TypeHelpers.h",
2606 "source_file" : "system/core/libutils/include/utils/TypeHelpers.h",
2699 "source_file" : "system/core/libutils/include/utils/Errors.h",
2792 "source_file" : "system/core/libutils/binder/include/utils/Errors.h",
[all …]
/system/update_engine/payload_generator/
Dextent_utils_unittest.cc56 EXPECT_EQ(0U, utils::BlocksInExtents(extents)); in TEST()
58 EXPECT_EQ(1U, utils::BlocksInExtents(extents)); in TEST()
60 EXPECT_EQ(56U, utils::BlocksInExtents(extents)); in TEST()
62 EXPECT_EQ(58U, utils::BlocksInExtents(extents)); in TEST()
66 EXPECT_EQ(0U, utils::BlocksInExtents(extents)); in TEST()
68 EXPECT_EQ(1U, utils::BlocksInExtents(extents)); in TEST()
70 EXPECT_EQ(56U, utils::BlocksInExtents(extents)); in TEST()
72 EXPECT_EQ(58U, utils::BlocksInExtents(extents)); in TEST()
Dext2_filesystem_unittest.cc161 utils::BlocksInExtents(map_files["/link-long_symlink"].extents)); in TEST_F()
171 EXPECT_EQ(1U, utils::BlocksInExtents(map_files["/regular-small"].extents)); in TEST_F()
173 1U, utils::BlocksInExtents(map_files["/regular-with_net_cap"].extents)); in TEST_F()
178 utils::BlocksInExtents(map_files["/sparse-16k-last_block"].extents)); in TEST_F()
181 utils::BlocksInExtents(map_files["/sparse-16k-first_block"].extents)); in TEST_F()
183 utils::BlocksInExtents(map_files["/sparse-16k-holes"].extents)); in TEST_F()
Ddeflate_utils.cc58 brillo::Blob data(utils::BlocksInExtents(extents) * block_size); in CopyExtentsToFile()
60 utils::ReadExtents(in_path, extents, &data, data.size(), block_size)); in CopyExtentsToFile()
62 utils::WriteFile(out_path.c_str(), data.data(), data.size())); in CopyExtentsToFile()
70 utils::BlocksInExtents(file.extents) >= in IsSquashfsImage()
74 utils::ReadFileChunk(part_path, in IsSquashfsImage()
106 num_blocks += utils::BlocksInExtents(in_file.extents); in RealignSplittedFiles()
110 TEST_AND_RETURN_FALSE(utils::BlocksInExtents(file.extents) == num_blocks); in RealignSplittedFiles()
149 if (utils::BlocksInExtents(base_extents) < in ShiftExtentsOverExtents()
150 utils::BlocksInExtents(*over_extents)) { in ShiftExtentsOverExtents()
199 utils::BlocksInExtents(base_extents) * kBlockSize); in ShiftBitExtentsOverExtents()
[all …]
Dboot_img_filesystem.cc132 return utils::DivRoundUp(utils::FileSize(filename_), kBlockSize); in GetBlockCount()
143 if (utils::ReadFileChunk(filename_, offset, size, &data) && in GetFile()
164 const uint64_t file_size = utils::FileSize(filename_); in GetFiles()
170 offset += utils::RoundUp(kernel_size_, page_size_); in GetFiles()
174 offset += utils::RoundUp(ramdisk_size_, page_size_); in GetFiles()
/system/extras/simpleperf/
Dutils_test.cpp29 TEST(utils, ConvertBytesToValue) { in TEST() argument
41 TEST(utils, ArchiveHelper) { in TEST() argument
67 TEST(utils, GetCpusFromString) { in TEST() argument
79 TEST(utils, GetTidsFromString) { in TEST() argument
85 TEST(utils, GetPidsFromStrings) { in TEST() argument
100 TEST(utils, LineReader) { in TEST() argument
116 TEST(utils, ReadableCount) { in TEST() argument
/system/tools/hidl/
DAndroid.bp107 "libhidl-gen-host-utils",
108 "libhidl-gen-utils",
113 "libhidl-gen-host-utils",
114 "libhidl-gen-utils",
144 "libhidl-gen-host-utils",
145 "libhidl-gen-utils",
150 "libhidl-gen-utils",
169 "libhidl-gen-host-utils",
170 "libhidl-gen-utils",
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc100 if (utils::IsMountpoint(fs_mount_dir_)) { in EnsureUnmounted()
102 utils::UnmountFilesystem(fs_mount_dir_); in EnsureUnmounted()
167 if (!utils::FileExists(mountable_device.c_str())) { in MountPartition()
173 if (!utils::FileExists(fs_mount_dir_.c_str())) { in MountPartition()
188 if (!utils::SetBlockDeviceReadOnly(mountable_device, true)) { in MountPartition()
193 if (!utils::MountFilesystem( in MountPartition()
231 if (!utils::UnmountFilesystem(fs_mount_dir_)) { in PerformPartitionPostinstall()
279 << " is: " << utils::GetFileFormat(abs_path); in PerformPartitionPostinstall()
328 utils::ReadAll(progress_fd_, buf, base::size(buf), &bytes_read, &eof); in OnProgressFdReady()
378 utils::UnmountFilesystem(fs_mount_dir_); in Cleanup()
[all …]
Dinstall_plan.cc87 url_str = utils::GetFilePath(fd); in ToString()
98 {"hash_checks_mandatory", utils::ToString(hash_checks_mandatory)}, in ToString()
99 {"powerwash_required", utils::ToString(powerwash_required)}, in ToString()
100 {"switch_slot_on_reboot", utils::ToString(switch_slot_on_reboot)}, in ToString()
101 {"run_post_install", utils::ToString(run_post_install)}, in ToString()
102 {"is_rollback", utils::ToString(is_rollback)}, in ToString()
104 utils::ToString(rollback_data_save_requested)}, in ToString()
105 {"write_verity", utils::ToString(write_verity)}, in ToString()
123 {"run_postinstall", utils::ToString(partition.run_postinstall)}, in ToString()
144 {"already_applied", utils::ToString(payload.already_applied)}, in ToString()
Dcached_file_descriptor_unittest.cc64 EXPECT_TRUE(utils::WriteFile( in SetUp()
92 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
105 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
126 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
154 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
167 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
183 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
200 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &blob_out)); in TEST_F()
Dextent_writer_unittest.cc73 utils::FileSize(temp_file_.path())); in TEST_F()
76 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in TEST_F()
124 utils::FileSize(temp_file_.path())); in WriteAlignedExtents()
127 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &result_file)); in WriteAlignedExtents()
163 utils::FileSize(temp_file_.path())); in TEST_F()
166 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &resultant_data)); in TEST_F()
Dverity_writer_android.cc64 num_rounds_ = utils::DivRoundUp(data_size_ / block_size_, rs_n_); in Init()
89 TEST_AND_RETURN_FALSE(utils::PReadAll(read_fd_, in Compute()
112 TEST_AND_RETURN_FALSE(utils::PReadAll(read_fd_, in Compute()
124 if (!utils::WriteAll(write_fd_, fec_.data(), fec_.size())) { in Compute()
257 return utils::WriteAll(write_fd, data, size); in Finalize()
300 return utils::WriteAll(write_fd, data, size); in IncrementalFinalize()
342 uint64_t rounds = utils::DivRoundUp(data_size / block_size, rs_n); in EncodeFEC()
366 TEST_AND_RETURN_FALSE(utils::PReadAll(read_fd, in EncodeFEC()
390 TEST_AND_RETURN_FALSE(utils::PReadAll( in EncodeFEC()
398 if (!utils::WriteAll(write_fd, fec.data(), fec.size())) { in EncodeFEC()
Dfile_descriptor_utils.cc46 auto total_blocks = utils::BlocksInExtents(src_extents); in CommonHashExtents()
86 TEST_AND_RETURN_FALSE(utils::BlocksInExtents(src_extents) == in CopyAndHashExtents()
87 utils::BlocksInExtents(tgt_extents)); in CopyAndHashExtents()
Dinstall_operation_executor_unittest.cc82 utils::WriteAll(source_.fd(), source_data_.data(), source_data_.size())) in SetUp()
85 utils::WriteAll(target_.fd(), target_data_.data(), target_data_.size())) in SetUp()
108 ASSERT_TRUE(utils::ReadExtents(target_.path(), in VerityUntouchedExtents()
156 utils::ReadExtents( in TEST_F()
174 utils::ReadExtents( in TEST_F()
200 utils::ReadExtents( in TEST_F()
207 utils::ReadExtents( in TEST_F()
266 ASSERT_TRUE(utils::ReadFile(patched.path(), &patched_data)); in TEST_F()
Dpayload_metadata.cc206 utils::HexDumpVector(decrypted_signature); in ValidateMetadataSignature()
208 utils::HexDumpVector(metadata_hash); in ValidateMetadataSignature()
230 utils::ReadFileChunk(payload_path, 0, kMaxPayloadHeaderSize, &payload)); in ParsePayloadFile()
235 utils::ReadFileChunk(payload_path, in ParsePayloadFile()
244 TEST_AND_RETURN_FALSE(utils::ReadFileChunk( in ParsePayloadFile()
Dverified_source_fd.cc72 utils::SetBlockDeviceReadOnly(source_path_, false); in WriteBackCorrectedSourceBlocks()
74 utils::SetBlockDeviceReadOnly(source_path_, true); in WriteBackCorrectedSourceBlocks()
137 if (!utils::ReadExtents( in ChooseSourceFD()
/system/tools/xsdc/tests/
DAndroid.bp66 header_libs: ["libxsdc-utils"],
111 header_libs: ["libxsdc-utils"],
139 header_libs: ["libxsdc-utils"],
168 header_libs: ["libxsdc-utils"],
194 header_libs: ["libxsdc-utils"],
219 header_libs: ["libxsdc-utils"],
247 header_libs: ["libxsdc-utils"],
/system/linkerconfig/devicetest/src/android/linkerconfig/gts/utils/
DLinkerConfigParser.java17 package android.linkerconfig.gts.utils;
22 import android.linkerconfig.gts.utils.elements.Configuration;
23 import android.linkerconfig.gts.utils.elements.Section;
/system/update_engine/aosp/
Dupdate_attempter_android_integration_test.cc159 ASSERT_TRUE(utils::SendFile(out_fd, old_part_.fd(), kFakePartitionSize)); in CreateFakePartition()
216 ASSERT_TRUE(utils::SendFile( in HydratePayload()
220 ASSERT_TRUE(utils::ReadExtents( in HydratePayload()
225 ASSERT_TRUE(utils::ReadExtents( in HydratePayload()
237 op.set_data_length(utils::FileSize(patch_file.fd())); in HydratePayload()
244 utils::SendFile(blob_file_.fd(), patch_file.fd(), op.data_length()); in HydratePayload()
247 auto zero = utils::GetReadonlyZeroString( in HydratePayload()
248 utils::BlocksInExtents(op.dst_extents()) * kBlockSize); in HydratePayload()
250 utils::PWriteAll(new_part_.fd(), in HydratePayload()
257 ASSERT_TRUE(utils::ReadExtents( in HydratePayload()
[all …]
/system/tools/hidl/lint/
DAndroid.bp45 "libhidl-gen-host-utils",
46 "libhidl-gen-utils",
60 "libhidl-gen-host-utils",
61 "libhidl-gen-utils",
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubPendingIntentTestExecutor.java21 import static com.google.android.utils.chre.ContextHubServiceTestHelper.TIMEOUT_SECONDS_LOAD;
22 import static com.google.android.utils.chre.ContextHubServiceTestHelper.TIMEOUT_SECONDS_MESSAGE;
23 import static com.google.android.utils.chre.ContextHubServiceTestHelper.TIMEOUT_SECONDS_UNLOAD;
42 import com.google.android.utils.chre.ContextHubBroadcastReceiver;
43 import com.google.android.utils.chre.ContextHubServiceTestHelper;
DContextHubChreApiTestExecutor.java28 import com.google.android.chre.utils.pigweed.ChreRpcClient;
29 import com.google.android.utils.chre.ChreApiTestUtil;
30 import com.google.android.utils.chre.ChreTestUtil;
/system/teeui/libteeui/
DAndroid.bp13 "src/utils.cpp",
33 "src/utils.cpp",

12345678910