Searched refs:expected_size (Results 1 – 12 of 12) sorted by relevance
/system/update_engine/cros/ |
D | p2p_manager.cc | 134 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()
|
D | p2p_manager_unittest.cc | 272 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()
|
D | p2p_manager.h | 121 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
|
D | fake_p2p_manager.h | 54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() argument
|
/system/core/init/ |
D | devices_test.cpp | 49 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/ |
D | crash_dump.cpp | 276 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/ |
D | camera_metadata.c | 406 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/ |
D | vendor_boot_img_utils.cpp | 162 [[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/ |
D | camera_metadata.h | 307 const size_t *expected_size);
|
/system/nvram/core/tests/ |
D | nvram_manager_test.cpp | 50 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/ |
D | http_fetcher_unittest.cc | 1142 size_t expected_size, in MultiTest() argument 1172 EXPECT_EQ(expected_size, delegate.data.size()); in MultiTest()
|
/system/keymaster/tests/ |
D | android_keymaster_messages_test.cpp | 34 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()
|