Lines Matching refs:Value

80   enum class Value : uint32_t {  enum
113 static_assert(kValueBitSize >= MinimumBitsToStore(helper::ToUint(Value::kMax)),
117 static_assert(helper::MatchesBitMask(Value::kMin, kValueBitMask));
118 static_assert(helper::MatchesBitMask(Value::kMax, kValueBitMask));
121 static_assert(helper::ToUint(Value::kMax) < helper::ToUint(Value::kInvalid));
146 explicit ApiList(Value val, uint32_t domain_apis = 0u)
152 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList()
154 Value GetValue() const { in GetValue()
158 if (value == helper::ToUint(Value::kInvalid)) { in GetValue()
159 return Value::kInvalid; in GetValue()
161 DCHECK_GE(value, helper::ToUint(Value::kMin)); in GetValue()
162 DCHECK_LE(value, helper::ToUint(Value::kMax)); in GetValue()
163 return static_cast<Value>(value); in GetValue()
172 ApiList() : ApiList(Value::kInvalid) {} in ApiList()
179 static ApiList Whitelist() { return ApiList(Value::kWhitelist); } in Whitelist()
180 static ApiList Greylist() { return ApiList(Value::kGreylist); } in Greylist()
181 static ApiList Blacklist() { return ApiList(Value::kBlacklist); } in Blacklist()
182 static ApiList GreylistMaxO() { return ApiList(Value::kGreylistMaxO); } in GreylistMaxO()
183 static ApiList GreylistMaxP() { return ApiList(Value::kGreylistMaxP); } in GreylistMaxP()
187 uint32_t GetIntValue() const { return helper::ToUint(GetValue()) - helper::ToUint(Value::kMin); } in GetIntValue()
193 return ApiList(static_cast<Value>(i + helper::ToUint(Value::kMin))); in FromName()
234 const Value val1 = GetValue(); in CanCombineWith()
235 const Value val2 = other.GetValue(); in CanCombineWith()
236 return (val1 == val2) || (val1 == Value::kInvalid) || (val2 == Value::kInvalid); in CanCombineWith()
246 const Value val1 = GetValue();
247 const Value val2 = other.GetValue();
250 } else if (val1 == Value::kInvalid) {
252 } else if (val2 == Value::kInvalid) {
268 return ((other.GetValue() == Value::kInvalid) || (GetValue() == other.GetValue())) && in Contains()
273 bool IsValid() const { return GetValue() != Value::kInvalid; } in IsValid()
276 bool IsEmpty() const { return (GetValue() == Value::kInvalid) && (GetDomainApis() == 0); } in IsEmpty()
284 if (GetValue() != Value::kInvalid) { in Dump()
304 static constexpr uint32_t kValueCount = helper::NumValues<Value>();