Lines Matching defs:set

54      * set, if allocations might fail.
61 explicit AuthorizationSet(const keymaster_key_param_set_t& set) : indirect_data_(nullptr) {
63 Reinitialize(set.params, set.length);
79 AuthorizationSet(const AuthorizationSet& set) : Serializable(), indirect_data_(nullptr) {
81 error_ = set.error_;
83 Reinitialize(set.elems_, set.elems_size_);
87 AuthorizationSet(AuthorizationSet&& set) : Serializable() {
88 MoveFrom(set);
92 AuthorizationSet& operator=(const AuthorizationSet& set) {
93 Reinitialize(set.elems_, set.elems_size_);
94 error_ = set.error_;
99 AuthorizationSet& operator=(AuthorizationSet&& set) {
101 MoveFrom(set);
106 * Clear existing authorization set data
118 bool Reinitialize(const AuthorizationSet& set) {
119 return Reinitialize(set.elems_, set.elems_size_);
122 bool Reinitialize(const keymaster_key_param_set_t& set) {
123 return Reinitialize(set.params, set.length);
137 * Returns the size of the set.
142 * Returns true if the set is empty.
147 * Returns the total size of all indirect data referenced by set elements.
152 * Returns the data in the set, directly. Be careful with this.
157 * Sorts the set
162 * Sorts the set and removes duplicates (inadvertently duplicating tags is easy to do with the
168 * Adds all elements from \p set that are not already present in this AuthorizationSet. As a
169 * side-effect, if \p set is not null this AuthorizationSet will end up sorted.
171 void Union(const keymaster_key_param_set_t& set);
174 * Removes all elements in \p set from this AuthorizationSet.
176 void Difference(const keymaster_key_param_set_t& set);
183 void CopyToParamSet(keymaster_key_param_set_t* set) const;
208 * Returns the nth element of the set.
213 * Returns the nth element of the set.
218 * Returns true if the set contains at least one instance of \p tag
230 * Returns true if the set contains the specified tag and value.
238 * Returns true if the set contains the specified tag and value.
246 * Returns true if the set contains the specified tag and value.
380 bool push_back(const keymaster_key_param_set_t& set);
383 * Append the tag and enumerated value to the set.
391 * Append the boolean tag (value "true") to the set.
398 * Append the tag and byte array to the set. Copies the array into internal storage; does not
407 * Append the tag and blob to the set. Copies the blob contents into internal storage; does not
416 * Append the tag and bignum array to the set. Copies the array into internal storage; does not
443 void MoveFrom(AuthorizationSet& set);
483 set.push_back(tag, value);
489 set.push_back(tag);
497 set.push_back(param);
504 set.push_back(tag, data, data_length);
538 set.Deduplicate();
542 AuthorizationSet build() const { return set; }
546 AuthorizationSet set;