Lines Matching refs:proto
115 DynamicPartitionsDeviceInfoProto* proto) { in MergeMetadata() argument
126 auto group_proto = proto->add_groups(); in MergeMetadata()
133 auto partition_proto = proto->add_partitions(); in MergeMetadata()
147 auto block_device_proto = proto->add_block_devices(); in MergeMetadata()
159 DynamicPartitionsDeviceInfoProto* proto, const std::string& partition) { in FindPartition() argument
160 for (DynamicPartitionsDeviceInfoProto::Partition& p : *proto->mutable_partitions()) { in FindPartition()
179 static bool MergeFsUsage(DynamicPartitionsDeviceInfoProto* proto, in MergeFsUsage() argument
203 auto partition_proto = FindPartition(proto, *partition); in MergeFsUsage()
205 partition_proto = proto->add_partitions(); in MergeFsUsage()
222 DynamicPartitionsDeviceInfoProto proto; in PrintJson() local
225 proto.set_enabled(true); in PrintJson()
229 proto.set_retrofit(true); in PrintJson()
232 if (!MergeMetadata(metadata, &proto)) { in PrintJson()
236 if (!MergeFsUsage(&proto, cerr)) { in PrintJson()
241 auto error_or_json = jsonpb::MessageToJsonString(proto); in PrintJson()