/hardware/google/av/codec2/vndk/include/util/ |
D | C2InterfaceUtils.h | 32 template<typename T> 34 typedef T ValueType; 36 return os << p.ref<T>(); in put() 57 template<typename T> 59 typedef typename _C2FieldValueHelper<T>::ValueType ValueType; 62 constexpr static T MIN_VALUE = std::numeric_limits<T>::min(); 63 constexpr static T MAX_VALUE = std::numeric_limits<T>::max(); 64 constexpr static T MIN_STEP = std::is_floating_point<T>::value ? 0 : 1; 73 inline static constexpr C2SupportedRange<T> None() { 80 inline static constexpr C2SupportedRange<T> Any() { [all …]
|
D | C2InterfaceHelper.h | 34 template<typename T, bool E=std::is_enum<T>::value> 36 typedef T type; 39 template<typename T> 40 struct _c2_reduce_enum_to_underlying_type<T, true> { 41 typedef typename std::underlying_type<T>::type type; 93 template<typename T, typename... Params> 95 std::vector<C2StructDescriptor> &structs, _Tuple<T, Params...> *) { 96 structs.emplace_back((T*)nullptr); 130 template<typename T, typename enable= 131 typename std::enable_if<std::is_convertible<T, C2Param>::value>::type> [all …]
|
/hardware/libhardware/modules/camera/3_4/metadata/ |
D | partial_metadata_factory.h | 38 template <typename T> 39 static std::unique_ptr<State<T>> FixedState(int32_t tag, T value); 43 template <typename T> 44 static std::unique_ptr<Control<T>> NoEffectOptionlessControl( 45 int32_t delegate_tag, T default_value); 48 template <typename T> 49 static std::unique_ptr<Control<T>> NoEffectMenuControl( 52 const std::vector<T>& options, 53 std::map<int, T> default_values = {}); 56 template <typename T> [all …]
|
D | control.h | 32 template <typename T> 36 Control(std::unique_ptr<TaggedControlDelegate<T>> delegate, 37 std::unique_ptr<TaggedControlOptions<T>> options = nullptr); 55 std::unique_ptr<TaggedControlDelegate<T>> delegate_; 56 std::unique_ptr<TaggedControlOptions<T>> options_; 63 template <typename T> 64 Control<T>::Control(std::unique_ptr<TaggedControlDelegate<T>> delegate, in Control() 65 std::unique_ptr<TaggedControlOptions<T>> options) in Control() 68 template <typename T> 69 std::vector<int32_t> Control<T>::StaticTags() const { in StaticTags() [all …]
|
D | slider_control_options.h | 30 template <typename T> 31 class SliderControlOptions : public ControlOptionsInterface<T> { 34 SliderControlOptions(const T& min, in SliderControlOptions() 35 const T& max, in SliderControlOptions() 36 std::shared_ptr<DefaultOptionDelegate<T>> defaults) in SliderControlOptions() 38 SliderControlOptions(const T& min, const T& max, std::map<int, T> defaults) in SliderControlOptions() 41 defaults_(std::make_shared<DefaultOptionDelegate<T>>(defaults)){}; in SliderControlOptions() 43 virtual std::vector<T> MetadataRepresentation() override { in MetadataRepresentation() 46 virtual bool IsSupported(const T& option) override { in IsSupported() 50 T* default_value) override { in DefaultValueForTemplate() [all …]
|
D | metadata_common.h | 60 template <typename T> 63 const T* data, in UpdateMetadata() 74 template <typename T> 77 const T& val) { in UpdateMetadata() 82 template <typename T> 85 const std::vector<T>& val) { in UpdateMetadata() 90 template <typename T, size_t N> 93 const std::array<T, N>& val) { in UpdateMetadata() argument 98 template <typename T, size_t N> 101 const ArrayVector<T, N>& val) { in UpdateMetadata() argument [all …]
|
D | menu_control_options.h | 29 template <typename T> 30 class MenuControlOptions : public ControlOptionsInterface<T> { 33 MenuControlOptions(std::vector<T> options, in MenuControlOptions() 34 std::shared_ptr<DefaultOptionDelegate<T>> defaults) in MenuControlOptions() 36 MenuControlOptions(std::vector<T> options, std::map<int, T> defaults) in MenuControlOptions() 38 defaults_(std::make_shared<DefaultOptionDelegate<T>>(defaults)){}; in MenuControlOptions() 40 virtual std::vector<T> MetadataRepresentation() override { return options_; }; in MetadataRepresentation() 41 virtual bool IsSupported(const T& option) override { in IsSupported() 46 T* default_value) override { in DefaultValueForTemplate() 65 std::vector<T> options_; [all …]
|
D | state.h | 28 template <typename T> 31 State(int32_t tag, std::unique_ptr<StateDelegateInterface<T>> delegate) in State() 51 std::unique_ptr<StateDelegateInterface<T>> delegate_; 56 template <typename T> 57 int State<T>::PopulateStaticFields(android::CameraMetadata* /*metadata*/) const { in PopulateStaticFields() 62 template <typename T> 63 int State<T>::PopulateDynamicFields(android::CameraMetadata* metadata) const { in PopulateDynamicFields() 66 T value; in PopulateDynamicFields() 74 template <typename T> 75 int State<T>::PopulateTemplateRequest(int /*template_type*/, in PopulateTemplateRequest() [all …]
|
D | test_common.h | 32 template <typename T> 35 const T* expected, in ExpectMetadataEq() 39 const T* data = nullptr; in ExpectMetadataEq() 48 template <typename T> 51 T expected) { in ExpectMetadataEq() 56 template <typename T> 59 const std::vector<T>& expected) { in ExpectMetadataEq() 64 template <typename T, size_t N> 67 const std::array<T, N>& expected) { in ExpectMetadataEq() argument 72 template <typename T, size_t N> [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/ |
D | TriState.h | 23 template<typename T> 28 TriState(const TriState<T> &other) : mIsSet(other.mIsSet), mValue(other.mValue) { } in TriState() 29 explicit TriState(const T &value) : mIsSet(true), mValue(value) { } in TriState() 32 mValue = T(); in clear() 39 const T get(const T &defaultValue) const { in get() 44 explicit operator T () const { in T() function 49 TriState<T>& operator=(const TriState<T> &other) { 55 TriState<T>& operator=(const T& value) { 61 TriState<T>& operator++() { 68 TriState<T> operator++(int) { [all …]
|
/hardware/interfaces/drm/1.0/default/ |
D | TypeConvert.h | 32 template<typename T> const hidl_vec<T> toHidlVec(const Vector<T> &Vector) { in toHidlVec() 33 hidl_vec<T> vec; in toHidlVec() 34 vec.setToExternal(const_cast<T *>(Vector.array()), Vector.size()); in toHidlVec() 38 template<typename T> hidl_vec<T> toHidlVec(Vector<T> &Vector) { in toHidlVec() 39 hidl_vec<T> vec; in toHidlVec() 44 template<typename T> const Vector<T> toVector(const hidl_vec<T> &vec) { in toVector() 45 Vector<T> vector; in toVector() 47 return *const_cast<const Vector<T> *>(&vector); in toVector() 50 template<typename T> Vector<T> toVector(hidl_vec<T> &vec) { in toVector() 51 Vector<T> vector; in toVector() [all …]
|
/hardware/google/av/codec2/include/ |
D | C2.h | 189 template<typename T, typename B> 197 template<typename T> 201 inline static constexpr T get(const U &value) { in get() 202 return T(value); in get() 205 template<typename U, typename E=typename std::enable_if<(sizeof(U) >= sizeof(T))>::type> 207 inline static constexpr T get(const c2_cntr_t<U, void> &value) { in get() 208 return T(value.mValue); in get() 235 template<typename T, typename B=typename std::enable_if<std::is_integral<T>::value && std::is_unsig… 237 using compat = _c2_cntr_compat_helper<T>; 239 T mValue; [all …]
|
D | C2ParamDef.h | 126 template<typename T, typename V=void> 217 (_Type::PARAM_TYPE & T::Index::DIR_UNDEFINED) != T::Index::DIR_UNDEFINED); \ 310 template<typename T, typename S, int ParamIndex=S::CORE_INDEX, class Flex=void> 311 struct C2_HIDE C2GlobalParam : public T, public S, 312 public _C2StructCheck<S, ParamIndex, T::PARAM_KIND | T::Type::DIR_GLOBAL> { 315 typedef C2GlobalParam<T, S, ParamIndex> _Type; 320 … inline C2GlobalParam(const Args(&... args)) : T(sizeof(_Type), _Type::PARAM_TYPE), S(args...) { } 340 template<typename T, typename S, int ParamIndex> 341 struct C2_HIDE C2GlobalParam<T, S, ParamIndex, IF_FLEXIBLE(S)> 342 : public T, public _C2FlexStructCheck<S, ParamIndex, T::PARAM_KIND | T::Type::DIR_GLOBAL> { [all …]
|
D | C2Param.h | 262 template<typename T, typename S, int I, class F> friend struct C2GlobalParam; 263 template<typename T, typename S, int I, class F> friend struct C2PortParam; // for kDir* 264 template<typename T, typename S, int I, class F> friend struct C2StreamParam; // for kDir* 620 template<typename T, class B=typename std::remove_extent<T>::type> 621 inline _C2FieldId(T* offset) in _C2FieldId() 642 template<typename R, typename T, typename U, typename B=typename std::remove_extent<R>::type> 643 inline _C2FieldId(U *, R T::* pm) in _C2FieldId() 652 template<typename R, typename T, typename B=typename std::remove_extent<R>::type> 653 inline _C2FieldId(R T::* pm) in _C2FieldId() 654 : _mOffset((uint32_t)(uintptr_t)(&(((T*)0)->*pm))), in _C2FieldId() [all …]
|
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
D | confirmationui_utils.h | 41 template <typename T> 43 static T&& init() { return *static_cast<std::remove_reference_t<T>*>(nullptr); } in init() 45 template <typename T> 47 static T init() { return nullptr; } in init() 49 template <typename T> 51 static T init() { return T(); } in init() 53 template <typename T> 55 std::conditional_t<std::is_lvalue_reference<T>::value, reference_initializer<T>, 56 std::conditional_t<std::is_pointer<T>::value, pointer_initializer<T>, 57 value_initializer<T>>>; [all …]
|
/hardware/qcom/sm8150/media/libarbitrarybytes/inc/ |
D | Map.h | 33 template <typename T,typename T2> 37 T data; 41 node(T t, T2 t2,node* p, node* n) : in node() 48 static Map<T,T2> *m_self; 57 void insert(T,T2); 60 T2 find(T); // Return VALUE 61 T find_ele(T);// Check if the KEY is present or not 63 bool erase(T); 76 template <typename T,typename T2> 77 T2 Map<T,T2>::find(T d1) in find() [all …]
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/inc/ |
D | Map.h | 34 template <typename T,typename T2> 39 T data; 43 node(T t, T2 t2,node* p, node* n) : in node() 50 static Map<T,T2> *m_self; 55 void insert(T,T2); 58 T2 find(T); // Return VALUE 59 T find_ele(T);// Check if the KEY is present or not 61 bool erase(T); 76 template <typename T,typename T2> 77 T2 Map<T,T2>::find(T d1) in find() [all …]
|
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/inc/ |
D | Map.h | 33 template <typename T,typename T2> 37 T data; 41 node(T t, T2 t2,node* p, node* n) : in node() 48 static Map<T,T2> *m_self; 57 void insert(T,T2); 60 T2 find(T); // Return VALUE 61 T find_ele(T);// Check if the KEY is present or not 63 bool erase(T); 76 template <typename T,typename T2> 77 T2 Map<T,T2>::find(T d1) in find() [all …]
|
/hardware/qcom/sdm845/media/mm-video-v4l2/vidc/vdec/inc/ |
D | Map.h | 33 template <typename T,typename T2> 37 T data; 41 node(T t, T2 t2,node* p, node* n) : in node() 48 static Map<T,T2> *m_self; 57 void insert(T,T2); 60 T2 find(T); // Return VALUE 61 T find_ele(T);// Check if the KEY is present or not 63 bool erase(T); 76 template <typename T,typename T2> 77 T2 Map<T,T2>::find(T d1) in find() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/inc/ |
D | Map.h | 34 template <typename T,typename T2> 38 T data; 42 node(T t, T2 t2,node* p, node* n) : in node() 49 static Map<T,T2> *m_self; 58 void insert(T,T2); 61 T2 find(T); // Return VALUE 62 T find_ele(T);// Check if the KEY is present or not 64 bool erase(T); 77 template <typename T,typename T2> 78 T2 Map<T,T2>::find(T d1) in find() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/inc/ |
D | Map.h | 33 template <typename T,typename T2> 37 T data; 41 node(T t, T2 t2,node* p, node* n) : in node() 48 static Map<T,T2> *m_self; 57 void insert(T,T2); 60 T2 find(T); // Return VALUE 61 T find_ele(T);// Check if the KEY is present or not 63 bool erase(T); 76 template <typename T,typename T2> 77 T2 Map<T,T2>::find(T d1) in find() [all …]
|
/hardware/ril/libril/ |
D | rilSocketQueue.h | 35 template <typename T> 56 T *front; 65 T* dequeue(void); 72 void enqueue(T* request); 93 template <typename T> 94 Ril_queue<T>::Ril_queue(void) { in Ril_queue() 101 template <typename T> 102 T* Ril_queue<T>::dequeue(void) { in dequeue() 103 T* temp = NULL; in dequeue() 120 template <typename T> [all …]
|
/hardware/google/av/codec2/vndk/util/ |
D | C2InterfaceUtils.cpp | 46 template<typename T, bool FP=std::is_floating_point<T>::value> 51 typedef typename std::make_unsigned<T>::type DiffType; 56 static DiffType mod(T low, T high, T step) { in mod() 61 template<typename T> 62 struct _C2TypedSupportedRangeHelper<T, true> { 63 typedef T DiffType; 65 static DiffType mod(T low, T high, T step) { in mod() 70 template<typename T> 71 C2SupportedRange<T>::C2SupportedRange(const C2FieldSupportedValues &values) { in C2SupportedRange() 87 template<typename T> [all …]
|
/hardware/google/av/codec2/tests/ |
D | C2ComponentInterface_test.cpp | 40 template <class T> std::unique_ptr<T> alloc_unique_cstr(const char *cstr) { in alloc_unique_cstr() 42 std::unique_ptr<T> ptr = T::AllocUnique(len); in alloc_unique_cstr() 61 template <typename T> void testUnsupportedParam(); 63 template <typename T> void testSupportedParam(); 72 template <typename T> 73 void testReadOnlyParam(const T &preParam, const T &newParam); 94 template <typename T> 118 template <typename T> c2_status_t queryOnStack(T *const p); 120 template <typename T> 121 c2_status_t queryOnHeap(const T &p, [all …]
|
/hardware/google/av/media/sfplugin/ |
D | CCodecConfig.h | 151 template<typename T> 155 std::function<c2_status_t(std::unique_ptr<T>&)> validator_ = 156 std::function<c2_status_t(std::unique_ptr<T>&)>()) { 157 C2Param::Index index = T::PARAM_TYPE; 172 std::unique_ptr<T> typed(static_cast<T*>(p.release())); 174 if (T::From(typed.get())) { 183 mParamUpdater->addStandardParam<T>(name, attrib); 190 template<typename T> 192 std::unique_ptr<T> default_, 195 std::function<c2_status_t(std::unique_ptr<T>&)> validator_ = [all …]
|