Lines Matching refs:strings

67 static std::string BuildFlagString(const std::vector<std::string>& strings) {  in BuildFlagString()  argument
68 return strings.empty() ? "none" : android::base::Join(strings, ","); in BuildFlagString()
72 std::vector<std::string> strings; in BuildHeaderFlagString() local
75 strings.emplace_back("virtual_ab_device"); in BuildHeaderFlagString()
83 strings.emplace_back("unknown_flag_bit_" + std::to_string(i)); in BuildHeaderFlagString()
85 return BuildFlagString(strings); in BuildHeaderFlagString()
89 std::vector<std::string> strings; in BuildAttributeString() local
90 if (attrs & LP_PARTITION_ATTR_READONLY) strings.emplace_back("readonly"); in BuildAttributeString()
91 if (attrs & LP_PARTITION_ATTR_SLOT_SUFFIXED) strings.emplace_back("slot-suffixed"); in BuildAttributeString()
92 if (attrs & LP_PARTITION_ATTR_UPDATED) strings.emplace_back("updated"); in BuildAttributeString()
93 if (attrs & LP_PARTITION_ATTR_DISABLED) strings.emplace_back("disabled"); in BuildAttributeString()
94 return BuildFlagString(strings); in BuildAttributeString()
98 std::vector<std::string> strings; in BuildGroupFlagString() local
99 if (flags & LP_GROUP_SLOT_SUFFIXED) strings.emplace_back("slot-suffixed"); in BuildGroupFlagString()
100 return BuildFlagString(strings); in BuildGroupFlagString()
104 std::vector<std::string> strings; in BuildBlockDeviceFlagString() local
105 if (flags & LP_BLOCK_DEVICE_SLOT_SUFFIXED) strings.emplace_back("slot-suffixed"); in BuildBlockDeviceFlagString()
106 return BuildFlagString(strings); in BuildBlockDeviceFlagString()