Home
last modified time | relevance | path

Searched refs:ValueT (Results 1 – 17 of 17) sorted by relevance

/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dkeymaster_tags.h236 template <TagType tag_type, Tag tag, typename ValueT>
237 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
241 accessTagValue(ttag, param) = std::forward<ValueT>(value);
290 template <typename ValueT>
292 using internal_t = std::conditional_t<std::is_lvalue_reference<ValueT>::value,
293 std::remove_reference_t<ValueT>*, ValueT>;
299 static ValueT init() { return ValueT(); }
302 static ValueT& deref(ValueT& v) { return v; }
307 using initializer_t = std::conditional_t<std::is_lvalue_reference<ValueT>::value ||
308 std::is_pointer<ValueT>::value,
[all …]
Dkey_param_output.h60 template <typename ValueT>
61 ::std::ostream& operator<<(::std::ostream& os, const NullOr<ValueT>& value) {
Dauthorization_set.h169 template <TagType tag_type, Tag tag, typename ValueT, typename Comparator = std::equal_to<>>
170 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value,
174 if (entry.isOk() && cmp(static_cast<ValueT>(entry.value()), value)) return true;
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dconfirmationui_utils.h39 template <typename ValueT>
60 NullOr() : value_(initializer_t<ValueT>::init()), null_(true) {} in NullOr()
66 const ValueT& value() const & { return value_; } in value()
67 ValueT& value() & { return value_; } in value()
68 ValueT&& value() && { return std::move(value_); } in value()
70 const std::remove_reference_t<ValueT>* operator->() const { return &value_; }
71 std::remove_reference_t<ValueT>* operator->() { return &value_; }
74 ValueT value_;
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_tags.h228 template <TagType tag_type, Tag tag, typename ValueT>
229 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
233 accessTagValue(ttag, param) = std::forward<ValueT>(value);
275 template <typename ValueT> class NullOr {
295 NullOr() : value_(initializer_t<ValueT>::init()), null_(true) {}
296 NullOr(ValueT&& value) : value_(std::forward<ValueT>(value)), null_(false) {}
300 const ValueT& value() const & { return value_; }
301 ValueT& value() & { return value_; }
302 ValueT&& value() && { return std::move(value_); }
305 ValueT value_;
Dkey_param_output.h28 template <typename ValueT>
29 ::std::ostream& operator<<(::std::ostream& os, const NullOr<ValueT>& value) {
Dattestation_record.cpp145 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
148 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
155 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
157 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
Dauthorization_set.h166 template <TagType tag_type, Tag tag, typename ValueT>
167 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value) const { in Contains()
170 if (entry.isOk() && static_cast<ValueT>(entry.value()) == value) return true; in Contains()
Dkeymaster_hidl_hal_test.cpp189 template <TagType tag_type, Tag tag, typename ValueT>
190 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains()
858 template <TagType tag_type, Tag tag, typename ValueT>
859 void CheckKm0CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm0CryptoParam()
870 template <TagType tag_type, Tag tag, typename ValueT>
871 void CheckKm1CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm1CryptoParam()
882 template <TagType tag_type, Tag tag, typename ValueT>
883 void CheckKm2CryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckKm2CryptoParam()
/hardware/interfaces/security/keymint/support/include/keymint_support/
Dkey_param_output.h73 template <typename ValueT>
74 ::std::ostream& operator<<(::std::ostream& os, const std::optional<ValueT>& value) {
Dauthorization_set.h167 template <TagType tag_type, Tag tag, typename ValueT>
168 bool Contains(TypedTag<tag_type, tag> ttag, const ValueT& value) const { in Contains()
171 if (entry && static_cast<ValueT>(*entry) == value) return true; in Contains()
Dkeymint_tags.h254 template <TagType tag_type, Tag tag, typename ValueT>
255 inline KeyParameter makeKeyParameter(TypedTag<tag_type, tag> ttag, ValueT&& value) {
259 std::forward<ValueT>(value));
/hardware/interfaces/keymaster/4.0/support/
Dattestation_record.cpp189 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
192 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
199 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
201 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
/hardware/interfaces/security/keymint/support/
Dattestation_record.cpp205 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
208 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
215 typedef typename TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
217 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp204 typedef typename V4_0::TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
207 ttag, static_cast<ValueT>(ASN1_INTEGER_get(sk_ASN1_INTEGER_value(stack, i)))); in copyAuthTag()
214 typedef typename V4_0::TypedTag2ValueType<decltype(ttag)>::type ValueT; in copyAuthTag() typedef
216 auth_list->push_back(ttag, static_cast<ValueT>(ASN1_INTEGER_get(asn1_int))); in copyAuthTag()
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp91 template <TagType tag_type, Tag tag, typename ValueT>
92 bool contains(hidl_vec<KeyParameter>& set, TypedTag<tag_type, tag> ttag, ValueT expected_value) { in contains()
1962 template <TagType tag_type, Tag tag, typename ValueT>
1963 void CheckCryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckCryptoParam()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintTest.cpp89 template <TagType tag_type, Tag tag, typename ValueT>
91 ValueT expected_value) { in contains()
3960 template <TagType tag_type, Tag tag, typename ValueT>
3961 void CheckCryptoParam(TypedTag<tag_type, tag> ttag, ValueT expected) { in CheckCryptoParam()