Lines Matching refs:Value

87   enum class Value : uint32_t {  enum
123 static_assert(kValueBitSize >= MinimumBitsToStore(helper::ToUint(Value::kMax)),
127 static_assert(helper::MatchesBitMask(Value::kMin, kValueBitMask));
128 static_assert(helper::MatchesBitMask(Value::kMax, kValueBitMask));
131 static_assert(helper::ToUint(Value::kMax) < helper::ToUint(Value::kInvalid));
165 explicit ApiList(Value val, uint32_t domain_apis = 0u)
171 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList()
173 Value GetValue() const { in GetValue()
177 if (value == helper::ToUint(Value::kInvalid)) { in GetValue()
178 return Value::kInvalid; in GetValue()
179 } else if (value > helper::ToUint(Value::kMax)) { in GetValue()
181 return Value::kUnsupported; in GetValue()
183 DCHECK_GE(value, helper::ToUint(Value::kMin)); in GetValue()
184 return static_cast<Value>(value); in GetValue()
193 ApiList() : ApiList(Value::kInvalid) {} in ApiList()
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()
211 uint32_t GetIntValue() const { return helper::ToUint(GetValue()) - helper::ToUint(Value::kMin); } in GetIntValue()
217 return ApiList(helper::GetEnumAt<Value>(i)); in FromName()
226 static_assert(helper::ToUint(Value::kMax) + 1 < helper::ToUint(Value::kInvalid)); in FromName()
227 return ApiList(helper::ToUint(Value::kMax) + 1); in FromName()
280 const Value val1 = GetValue(); in CanCombineWith()
281 const Value val2 = other.GetValue(); in CanCombineWith()
282 return (val1 == val2) || (val1 == Value::kInvalid) || (val2 == Value::kInvalid); in CanCombineWith()
292 const Value val1 = GetValue();
293 const Value val2 = other.GetValue();
296 } else if (val1 == Value::kInvalid) {
298 } else if (val2 == Value::kInvalid) {
314 return ((other.GetValue() == Value::kInvalid) || (GetValue() == other.GetValue())) && in Contains()
319 bool IsValid() const { return GetValue() != Value::kInvalid; } in IsValid()
322 bool IsEmpty() const { return (GetValue() == Value::kInvalid) && (GetDomainApis() == 0); } in IsEmpty()
326 return GetValue() == Value::kBlocked; in IsBlocked()
345 if (GetValue() != Value::kInvalid) { in Dump()
366 static constexpr uint32_t kValueCount = helper::NumValues<Value>();
373 static_assert(Value::kMin == helper::GetEnumAt<Value>(0));
374 static_assert(Value::kMax == helper::GetEnumAt<Value>(kValueCount - 1));