Lines Matching refs:proto
137 DynamicPartitionsDeviceInfoProto* proto) { in MergeMetadata() argument
148 auto group_proto = proto->add_groups(); in MergeMetadata()
155 auto partition_proto = proto->add_partitions(); in MergeMetadata()
169 auto block_device_proto = proto->add_block_devices(); in MergeMetadata()
181 DynamicPartitionsDeviceInfoProto* proto, const std::string& partition) { in FindPartition() argument
182 for (DynamicPartitionsDeviceInfoProto::Partition& p : *proto->mutable_partitions()) { in FindPartition()
201 static bool MergeFsUsage(DynamicPartitionsDeviceInfoProto* proto, in MergeFsUsage() argument
225 auto partition_proto = FindPartition(proto, *partition); in MergeFsUsage()
227 partition_proto = proto->add_partitions(); in MergeFsUsage()
244 DynamicPartitionsDeviceInfoProto proto; in PrintJson() local
247 proto.set_enabled(true); in PrintJson()
251 proto.set_retrofit(true); in PrintJson()
254 if (!MergeMetadata(metadata, &proto)) { in PrintJson()
258 if (!MergeFsUsage(&proto, cerr)) { in PrintJson()
263 auto error_or_json = jsonpb::MessageToJsonString(proto); in PrintJson()