Lines Matching refs:set
37 std::ostream& operator<<(std::ostream& os, const AuthorizationSet& set);
42 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM, Tag, KeymasterEnum> tag, in contains() argument
44 int pos = set.find(tag); in contains()
45 return pos != -1 && static_cast<KeymasterEnum>(set[pos].enumerated) == val; in contains()
49 bool contains(const AuthorizationSet& set, TypedEnumTag<KM_ENUM_REP, Tag, KeymasterEnum> tag, in contains() argument
52 while ((pos = set.find(tag, pos)) != -1) in contains()
53 if (static_cast<KeymasterEnum>(set[pos].enumerated) == val) return true; in contains()
58 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT, Tag> tag, uint32_t val) { in contains() argument
59 int pos = set.find(tag); in contains()
60 return pos != -1 && set[pos].integer == val; in contains()
64 bool contains(const AuthorizationSet& set, TypedTag<KM_UINT_REP, Tag> tag, uint32_t val) { in contains() argument
66 while ((pos = set.find(tag, pos)) != -1) in contains()
67 if (set[pos].integer == val) return true; in contains()
72 bool contains(const AuthorizationSet& set, TypedTag<KM_ULONG, Tag> tag, uint64_t val) { in contains() argument
73 int pos = set.find(tag); in contains()
74 return pos != -1 && set[pos].long_integer == val; in contains()
78 bool contains(const AuthorizationSet& set, TypedTag<KM_BYTES, Tag> tag, const std::string& val) { in contains() argument
79 int pos = set.find(tag); in contains()
80 return pos != -1 && std::string(reinterpret_cast<const char*>(set[pos].blob.data), in contains()
81 set[pos].blob.data_length) == val; in contains()
85 bool contains(const AuthorizationSet& set, TypedTag<KM_BIGNUM, Tag> tag, const std::string& val) { in contains() argument
86 int pos = set.find(tag); in contains()
87 return pos != -1 && std::string(reinterpret_cast<const char*>(set[pos].blob.data), in contains()
88 set[pos].blob.data_length) == val; in contains()
91 inline bool contains(const AuthorizationSet& set, keymaster_tag_t tag) { in contains() argument
92 return set.find(tag) != -1; in contains()