Lines Matching refs:ApiList
81 class ApiList {
165 explicit ApiList(Value val, uint32_t domain_apis = 0u)
171 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList() function
193 ApiList() : ApiList(Value::kInvalid) {} in ApiList() function
195 explicit ApiList(uint32_t dex_flags) : dex_flags_(dex_flags) { in ApiList() function
200 static ApiList Sdk() { return ApiList(Value::kSdk); } in Sdk()
201 static ApiList Unsupported() { return ApiList(Value::kUnsupported); } in Unsupported()
202 static ApiList Blocked() { return ApiList(Value::kBlocked); } in Blocked()
203 static ApiList MaxTargetO() { return ApiList(Value::kMaxTargetO); } in MaxTargetO()
204 static ApiList MaxTargetP() { return ApiList(Value::kMaxTargetP); } in MaxTargetP()
205 static ApiList MaxTargetQ() { return ApiList(Value::kMaxTargetQ); } in MaxTargetQ()
206 static ApiList MaxTargetR() { return ApiList(Value::kMaxTargetR); } in MaxTargetR()
207 static ApiList CorePlatformApi() { return ApiList(DomainApi::kCorePlatformApi); } in CorePlatformApi()
208 static ApiList TestApi() { return ApiList(DomainApi::kTestApi); } in TestApi()
214 static ApiList FromName(const std::string& str) { in FromName()
217 return ApiList(helper::GetEnumAt<Value>(i)); in FromName()
222 return ApiList(helper::GetEnumAt<DomainApi>(i)); in FromName()
227 return ApiList(helper::ToUint(Value::kMax) + 1); in FromName()
229 return ApiList(); in FromName()
236 /* out */ ApiList* out_api_list) { in FromNames()
237 ApiList api_list; in FromNames()
239 ApiList current = FromName(*it); in FromNames()
273 bool operator==(const ApiList& other) const { return dex_flags_ == other.dex_flags_; }
274 bool operator!=(const ApiList& other) const { return !(*this == other); }
275 bool operator<(const ApiList& other) const { return dex_flags_ < other.dex_flags_; }
276 bool operator>(const ApiList& other) const { return dex_flags_ > other.dex_flags_; }
279 bool CanCombineWith(const ApiList& other) const { in CanCombineWith()
286 ApiList operator|(const ApiList& other) {
295 return ApiList(val1, domain_apis);
297 return ApiList(val2, domain_apis);
299 return ApiList(val1, domain_apis);
301 LOG(FATAL) << "Invalid combination of values " << Dumpable(ApiList(val1))
302 << " and " << Dumpable(ApiList(val2));
307 const ApiList& operator|=(const ApiList& other) {
313 bool Contains(const ApiList& other) const { in Contains()
380 inline std::ostream& operator<<(std::ostream& os, ApiList value) {