Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 207) sorted by relevance

123456789

/hardware/libhardware/modules/camera/3_4/metadata/
Dpartial_metadata_factory.h38 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 …]
Dcontrol.h32 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 …]
Dslider_control_options.h30 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 …]
Dmenu_control_options.h29 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 …]
Dmetadata_common.h60 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 …]
Dstate.h28 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 …]
Dtest_common.h32 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/
DTriState.h23 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/
DTypeConvert.h32 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/qcom/sm7150/gps/utils/
DSkipList.h43 template <typename T,
47 typedef typename container<SkipNode<T, container>>::iterator NodeIterator;
50 T mData;
53 SkipNode(int level, T& data): mLevel(level), mData(data) {} in SkipNode()
56 template <typename T>
58 using NodeIterator = typename SkipNode<T>::NodeIterator;
60 list<SkipNode<T>> mMainList;
65 void append(T& data, int level);
68 T front(int level);
71 list<pair<T, int>> dump();
[all …]
/hardware/qcom/sm8150/gps/utils/
DSkipList.h43 template <typename T,
47 typedef typename container<SkipNode<T, container>>::iterator NodeIterator;
50 T mData;
53 SkipNode(int level, T& data): mLevel(level), mData(data) {} in SkipNode()
56 template <typename T>
58 using NodeIterator = typename SkipNode<T>::NodeIterator;
60 list<SkipNode<T>> mMainList;
65 void append(T& data, int level);
68 T front(int level);
71 list<pair<T, int>> dump();
[all …]
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dconfirmationui_utils.h41 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/google/pixel/vibrator/common/
DHardwareBase.h46 template <typename T>
49 Record(const char *func, const T &value, const std::ios *stream) in Record()
55 const T mValue;
68 template <typename T>
69 void open(const std::string &name, T *stream);
71 template <typename T>
72 bool get(T *value, std::istream *stream);
73 template <typename T>
74 bool set(const T &value, std::ostream *stream);
75 template <typename T>
[all …]
Dutils.h32 template <typename T>
42 static const bool value = decltype(test<T>(0))::value;
45 template <typename T, bool B>
46 using Enable_If_Iterable = std::enable_if_t<Is_Iterable<T>::value == B>;
48 template <typename T, typename U = void>
49 using Enable_If_Signed = std::enable_if_t<std::is_signed_v<T>, U>;
51 template <typename T, typename U = void>
52 using Enable_If_Unsigned = std::enable_if_t<std::is_unsigned_v<T>, U>;
63 template <typename T>
64 inline auto toUnderlying(const T value) { in toUnderlying()
[all …]
/hardware/ril/libril/
DrilSocketQueue.h35 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/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/inc/
DMap.h34 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/
DMap.h33 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/msm8998/mm-video-v4l2/vidc/vdec/inc/
DMap.h33 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/
DMap.h34 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/sdm845/media/mm-video-v4l2/vidc/vdec/inc/
DMap.h33 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/sm8150/media/libarbitrarybytes/inc/
DMap.h33 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/interfaces/gnss/common/utils/vts/include/
DGnssCallbackEventQueue.h35 template <class T>
42 void store(const T& event);
48 bool retrieve(T& event, int timeout_seconds);
56 int retrieve(std::list<T>& event_list, int count, int timeout_seconds);
75 std::deque<T> events_;
78 template <class T>
79 void GnssCallbackEventQueue<T>::store(const T& event) { in store()
87 template <class T>
88 bool GnssCallbackEventQueue<T>::retrieve(T& event, int timeout_seconds) { in retrieve()
99 template <class T>
[all …]
/hardware/google/camera/common/hal/utils/
Dutils.h75 template <typename T>
76 void ClampBoundary(const Dimension& active_array_dimension, T* x, T* y,
77 T* width = nullptr, T* height = nullptr) {
82 *x = std::clamp(*x, static_cast<T>(0),
83 static_cast<T>(active_array_dimension.width - 1));
84 *y = std::clamp(*y, static_cast<T>(0),
85 static_cast<T>(active_array_dimension.height - 1));
88 *width = std::clamp(*width, static_cast<T>(1),
89 static_cast<T>(active_array_dimension.width - *x));
92 *height = std::clamp(*height, static_cast<T>(1),
[all …]
/hardware/interfaces/cas/1.0/default/
DFactoryLoader.h35 template <class T>
46 T** factory = NULL);
51 typedef T*(*CreateFactoryFunc)();
54 T* mFactory;
64 T** factory);
74 template <class T>
75 bool FactoryLoader<T>::findFactoryForScheme( in findFactoryForScheme()
76 int32_t CA_system_id, sp<SharedLibrary> *library, T** factory) { in findFactoryForScheme()
123 template <class T>
124 bool FactoryLoader<T>::enumeratePlugins( in enumeratePlugins()
[all …]
/hardware/interfaces/cas/1.1/default/
DFactoryLoader.h37 template <class T>
45 T** factory = NULL);
50 typedef T* (*CreateFactoryFunc)();
53 T* mFactory;
60 sp<SharedLibrary>* library, T** factory);
68 template <class T>
69 bool FactoryLoader<T>::findFactoryForScheme(int32_t CA_system_id, sp<SharedLibrary>* library, in findFactoryForScheme()
70 T** factory) { in findFactoryForScheme()
115 template <class T>
116 bool FactoryLoader<T>::enumeratePlugins(vector<HidlCasPluginDescriptor>* results) { in enumeratePlugins()
[all …]

123456789