Searched refs:expected_size (Results 1 – 13 of 13) 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/bt/vendor_libs/test_vendor_lib/test/ |
D | packet_stream_unittest.cc | 88 auto expected_size = event->GetPacketSize(); in CheckedSendEvent() local 106 EXPECT_EQ(expected_size, sizeof(event_header) + return_parameters_size + 1); in CheckedSendEvent()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 264 ssize_t expected_size = 0; in ReadCrashInfo() local 267 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataV1); in ReadCrashInfo() 271 expected_size = sizeof(CrashInfoHeader) + sizeof(CrashInfoDataV2); in ReadCrashInfo() 279 if (rc != expected_size) { in ReadCrashInfo() 281 << 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/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/core/adb/client/ |
D | file_sync_client.cpp | 732 const char* name, uint64_t expected_size) { in sync_recv() argument 779 sc.ReportProgress(name != nullptr ? name : rpath, bytes_copied, expected_size); in sync_recv()
|
/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()
|