Home
last modified time | relevance | path

Searched refs:expected_size (Results 1 – 12 of 12) sorted by relevance

/system/update_engine/cros/
Dp2p_manager.cc134 bool FileShare(const string& file_id, size_t expected_size) override;
492 bool P2PManagerImpl::FileShare(const string& file_id, size_t expected_size) { in FileShare() argument
499 static_cast<size_t>(file_expected_size) != expected_size) { in FileShare()
503 << " expected_size=" << expected_size; in FileShare()
519 if (free_bytes < 2 * expected_size) { in FileShare()
521 LOG(INFO) << "Refusing to allocate p2p file of " << expected_size in FileShare()
540 if (expected_size != 0) { in FileShare()
544 expected_size) != 0) { in FileShare()
553 PLOG(INFO) << "Error allocating " << expected_size << " bytes for file " in FileShare()
562 string decimal_size = std::to_string(expected_size); in FileShare()
Dp2p_manager_unittest.cc272 ssize_t expected_size, in CheckP2PFile() argument
284 if (expected_size != 0) { in CheckP2PFile()
285 if (p2p_size != expected_size) { in CheckP2PFile()
286 LOG(ERROR) << "Expected size " << expected_size << " but size was " in CheckP2PFile()
Dp2p_manager.h121 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
Dfake_p2p_manager.h54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() argument
/system/core/init/
Ddevices_test.cpp49 auto expected_size = expected_links.size(); in TestGetSymlinks() local
50 ASSERT_EQ(expected_size, result.size()); in TestGetSymlinks()
51 if (expected_size == 0) return; in TestGetSymlinks()
54 for (unsigned int i = 0; i < expected_size; ++i) { in TestGetSymlinks()
/system/core/debuggerd/
Dcrash_dump.cpp276 ssize_t expected_size = 0; in ReadCrashInfo() local
281 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataStatic); in ReadCrashInfo()
285 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataDynamic); in ReadCrashInfo()
293 if (rc < expected_size) { in ReadCrashInfo()
295 << expected_size; in ReadCrashInfo()
/system/media/camera/src/
Dcamera_metadata.c406 const size_t *expected_size) { in validate_camera_metadata_structure() argument
453 if (expected_size != NULL && sizeof(camera_metadata_t) > *expected_size) { in validate_camera_metadata_structure()
455 __FUNCTION__, sizeof(camera_metadata_t), *expected_size); in validate_camera_metadata_structure()
469 if (expected_size != NULL && header->size > *expected_size) { in validate_camera_metadata_structure()
471 __FUNCTION__, header->size, *expected_size); in validate_camera_metadata_structure()
/system/core/fastboot/
Dvendor_boot_img_utils.cpp162 [[nodiscard]] Result<std::string> load_file(android::base::borrowed_fd fd, uint64_t expected_size, in load_file() argument
171 if (content.size() != expected_size) { in load_file()
173 expected_size, content.size()); in load_file()
/system/media/camera/include/system/
Dcamera_metadata.h307 const size_t *expected_size);
/system/nvram/core/tests/
Dnvram_manager_test.cpp50 size_t expected_size) { in ReadAndCompareSpaceData() argument
56 ASSERT_EQ(expected_size, read_space_response.buffer.size()); in ReadAndCompareSpaceData()
58 expected_size)); in ReadAndCompareSpaceData()
/system/update_engine/common/
Dhttp_fetcher_unittest.cc1142 size_t expected_size, in MultiTest() argument
1172 EXPECT_EQ(expected_size, delegate.data.size()); in MultiTest()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp34 Message* round_trip(int32_t ver, const Message& message, size_t expected_size) { in round_trip() argument
36 EXPECT_EQ(expected_size, size); in round_trip()