Searched refs:expected_size (Results 1 – 12 of 12) sorted by relevance
/system/update_engine/ |
D | p2p_manager.cc | 135 bool FileShare(const string& file_id, size_t expected_size) override; 497 bool P2PManagerImpl::FileShare(const string& file_id, size_t expected_size) { in FileShare() argument 504 static_cast<size_t>(file_expected_size) != expected_size) { in FileShare() 508 << " expected_size=" << expected_size; in FileShare() 524 if (free_bytes < 2 * expected_size) { in FileShare() 526 LOG(INFO) << "Refusing to allocate p2p file of " << expected_size in FileShare() 545 if (expected_size != 0) { in FileShare() 549 expected_size) != 0) { in FileShare() 558 PLOG(INFO) << "Error allocating " << expected_size << " bytes for file " in FileShare() 567 string decimal_size = std::to_string(expected_size); in FileShare()
|
D | p2p_manager_unittest.cc | 264 ssize_t expected_size, in CheckP2PFile() argument 276 if (expected_size != 0) { in CheckP2PFile() 277 if (p2p_size != expected_size) { in CheckP2PFile() 278 LOG(ERROR) << "Expected size " << expected_size << " but size was " in CheckP2PFile()
|
D | fake_p2p_manager.h | 54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() argument
|
D | p2p_manager.h | 122 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
|
/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 | 266 ssize_t expected_size = 0; in ReadCrashInfo() local 269 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataV1); in ReadCrashInfo() 273 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataV2); in ReadCrashInfo() 277 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataV3); in ReadCrashInfo() 285 if (rc != expected_size) { in ReadCrashInfo() 287 << 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/adb/client/ |
D | file_sync_client.cpp | 975 uint64_t expected_size) { in sync_recv_v1() argument 1022 sc.ReportProgress(name != nullptr ? name : rpath, bytes_copied, expected_size); in sync_recv_v1() 1030 uint64_t expected_size) { in sync_recv_v2() argument 1098 sc.ReportProgress(name != nullptr ? name : rpath, bytes_copied, expected_size); in sync_recv_v2() 1129 uint64_t expected_size, bool compressed) { in sync_recv() argument 1131 return sync_recv_v2(sc, rpath, lpath, name, expected_size); in sync_recv() 1133 return sync_recv_v1(sc, rpath, lpath, name, expected_size); in sync_recv()
|
/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/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()
|
/system/update_engine/common/ |
D | http_fetcher_unittest.cc | 1127 size_t expected_size, in MultiTest() argument 1157 EXPECT_EQ(expected_size, delegate.data.size()); in MultiTest()
|