Home
last modified time | relevance | path

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

/system/update_engine/
Dp2p_manager.cc135 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()
Dp2p_manager_unittest.cc264 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()
Dfake_p2p_manager.h54 bool FileShare(const std::string& file_id, size_t expected_size) override { in FileShare() argument
Dp2p_manager.h122 virtual bool FileShare(const std::string& file_id, size_t expected_size) = 0;
/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/bt/vendor_libs/test_vendor_lib/test/
Dpacket_stream_unittest.cc88 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/
Dcrash_dump.cpp264 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/
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/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/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()
/system/core/adb/client/
Dfile_sync_client.cpp732 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/
Dhttp_fetcher_unittest.cc1127 size_t expected_size, in MultiTest() argument
1157 EXPECT_EQ(expected_size, delegate.data.size()); in MultiTest()