• Home
  • Raw
  • Download

Lines Matching refs:partition

51 bool FakeAvbOps::preload_partition(const std::string& partition,  in preload_partition()  argument
53 if (preloaded_partitions_.count(partition) > 0) { in preload_partition()
54 fprintf(stderr, "Partition '%s' already preloaded\n", partition.c_str()); in preload_partition()
86 preloaded_partitions_[partition] = buffer; in preload_partition()
90 AvbIOResult FakeAvbOps::read_from_partition(const char* partition, in read_from_partition() argument
95 if (hidden_partitions_.find(partition) != hidden_partitions_.end()) { in read_from_partition()
100 partition_dir_.Append(std::string(partition)).AddExtension("img"); in read_from_partition()
102 partition_names_read_from_.insert(partition); in read_from_partition()
156 const char* partition, in get_preloaded_partition() argument
160 if (hidden_partitions_.find(partition) != hidden_partitions_.end()) { in get_preloaded_partition()
164 preloaded_partitions_.find(std::string(partition)); in get_preloaded_partition()
172 AvbIOResult result = get_size_of_partition(avb_ops(), partition, &size); in get_preloaded_partition()
185 AvbIOResult FakeAvbOps::write_to_partition(const char* partition, in write_to_partition() argument
189 if (hidden_partitions_.find(partition) != hidden_partitions_.end()) { in write_to_partition()
194 partition_dir_.Append(std::string(partition)).AddExtension("img"); in write_to_partition()
300 const char* partition, in get_unique_guid_for_partition() argument
303 if (hidden_partitions_.find(partition) != hidden_partitions_.end()) { in get_unique_guid_for_partition()
309 snprintf(guid_buf, guid_buf_size, "1234-fake-guid-for:%s", partition); in get_unique_guid_for_partition()
314 const char* partition, in get_size_of_partition() argument
316 if (hidden_partitions_.find(partition) != hidden_partitions_.end()) { in get_size_of_partition()
321 partition_dir_.Append(std::string(partition)).AddExtension("img"); in get_size_of_partition()
391 const char* partition, in my_ops_read_from_partition() argument
398 ->read_from_partition(partition, offset, num_bytes, buffer, out_num_read); in my_ops_read_from_partition()
403 const char* partition, in my_ops_get_preloaded_partition() argument
410 partition, num_bytes, out_pointer, out_num_bytes_preloaded); in my_ops_get_preloaded_partition()
414 const char* partition, in my_ops_write_to_partition() argument
419 partition, offset, num_bytes, buffer); in my_ops_write_to_partition()
463 const char* partition, in my_ops_get_unique_guid_for_partition() argument
468 ->get_unique_guid_for_partition(ops, partition, guid_buf, guid_buf_size); in my_ops_get_unique_guid_for_partition()
472 const char* partition, in my_ops_get_size_of_partition() argument
476 ->get_size_of_partition(ops, partition, out_size); in my_ops_get_size_of_partition()