/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/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/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/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/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/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | VehicleObjectPool.h | 46 template<typename T> 48 using OnDeleteFunc = std::function<void(T*)>; 55 void operator()(T* o) { in operator() 66 template <typename T> 67 using recyclable_ptr = typename std::unique_ptr<T, Deleter<T>>; 78 template<typename T> 84 virtual recyclable_ptr<T> obtain() { in obtain() 102 virtual T* createObject() = 0; 104 virtual void recycle(T* o) { in recycle() 107 mObjects.push_back(std::unique_ptr<T> { o } ); in recycle() [all …]
|
D | ConcurrentQueue.h | 28 template<typename T> 38 std::vector<T> flush() { in flush() 39 std::vector<T> items; in flush() 52 void push(T&& item) { in push() 84 std::queue<T> mQueue; 87 template<typename T> 103 using OnBatchReceivedFunc = std::function<void(const std::vector<T>& vec)>; 105 void run(ConcurrentQueue<T>* queue, in run() 112 &BatchingConsumer<T>::runInternal, this, func); in run() 135 std::vector<T> items = mQueue->flush(); in runInternal() [all …]
|
/hardware/intel/img/psb_video/src/ |
D | tng_ved_scaling.c | 112 IMG_UINT32 T) in tng_calculate_scaler_coeff() argument 134 for (t = 0; t < T; t++) in tng_calculate_scaler_coeff() 142 for (t = 0; t < T; t++) in tng_calculate_scaler_coeff() 145 (float)I, (float)T, fScale); in tng_calculate_scaler_coeff() 149 if (T>2) in tng_calculate_scaler_coeff() 151 for (t = 0; t < ((T / 2) + (T % 2)); t++) in tng_calculate_scaler_coeff() 156 mT = ((T - 1) - t) + (I - i) / I; in tng_calculate_scaler_coeff() 158 if (((IMG_UINT32)mI < I) && ((IMG_UINT32)mT < T) && in tng_calculate_scaler_coeff() 159 ((t < ((T / 2) + (T % 2) - 1)) || ((I - i) > ((T % 2) * (I / 2))))) in tng_calculate_scaler_coeff() 167 mT = T / 2; in tng_calculate_scaler_coeff() [all …]
|
/hardware/interfaces/audio/effect/2.0/default/ |
D | Effect.h | 124 template<typename T> Return<void> getIntegerParam( in getIntegerParam() 125 uint32_t paramId, std::function<void(Result retval, T paramValue)> cb) { in getIntegerParam() 126 T value; in getIntegerParam() 129 sizeof(T), in getIntegerParam() 131 if (valueSize > sizeof(T)) valueSize = sizeof(T); in getIntegerParam() 138 template<typename T> Result getParam(uint32_t paramId, T& paramValue) { in getParam() 141 sizeof(T), in getParam() 143 if (valueSize > sizeof(T)) valueSize = sizeof(T); in getParam() 148 template<typename T> Result getParam(uint32_t paramId, uint32_t paramArg, T& paramValue) { in getParam() 152 sizeof(T), in getParam() [all …]
|
/hardware/interfaces/tests/foo/1.0/default/lib/include/hidl-test/ |
D | FooHelper.h | 25 template<typename T> 26 std::string to_string(const T *elems, size_t n) { in to_string() 40 template<typename T, size_t SIZE> 41 std::string to_string(const hidl_array<T, SIZE> &array) { in to_string() argument 45 template<typename T, size_t SIZE1, size_t SIZE2> 46 std::string to_string(const hidl_array<T, SIZE1, SIZE2> &array) { in to_string() argument 69 template<typename T> 70 std::string to_string(const hidl_vec<T> &vec) { in to_string()
|
/hardware/interfaces/audio/2.0/vts/functional/utility/ |
D | ValidateXml.cpp | 36 template <class T> 37 constexpr void (*xmlDeleter)(T* t); 48 template <class T> 49 constexpr auto make_xmlUnique(T* t) { in make_xmlUnique() 51 auto deleter = [](T* t) { xmlDeleter<T>(t); }; in make_xmlUnique() 52 return std::unique_ptr<T, decltype(deleter)>{t, deleter}; in make_xmlUnique()
|
/hardware/interfaces/audio/2.0/default/ |
D | Stream.h | 99 template <typename T> 101 explicit StreamMmap(T* stream) : mStream(stream) {} in StreamMmap() 112 T *mStream; 115 template <typename T> 116 Return<Result> StreamMmap<T>::start() { in start() 122 template <typename T> 123 Return<Result> StreamMmap<T>::stop() { in stop() 129 template <typename T> 130 Return<void> StreamMmap<T>::createMmapBuffer(int32_t minSizeFrames, size_t frameSize, in createMmapBuffer() 157 template <typename T> [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehicleUtils.cpp | 79 template<typename T> 80 inline void copyHidlVec(hidl_vec <T>* dest, const hidl_vec <T>& src) { in copyHidlVec() 95 template<typename T> 96 void shallowCopyHidlVec(hidl_vec <T>* dest, const hidl_vec <T>& src) { in shallowCopyHidlVec() 98 dest->setToExternal(const_cast<T*>(&src[0]), src.size()); in shallowCopyHidlVec()
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_tags.h | 276 template <typename T> struct reference_initializer { 277 static T&& init() { return *static_cast<std::remove_reference_t<T>*>(nullptr); } 279 template <typename T> struct pointer_initializer { 280 static T init() { return nullptr; } 282 template <typename T> struct value_initializer { 283 static T init() { return T(); } 285 template <typename T> 287 std::conditional_t<std::is_lvalue_reference<T>::value, reference_initializer<T>, 288 std::conditional_t<std::is_pointer<T>::value, pointer_initializer<T>, 289 value_initializer<T>>>; [all …]
|
D | authorization_set.h | 164 template <typename T> bool Contains(T tag) const { return find(tag) != -1; } in Contains() 179 template <typename T> 180 inline NullOr<const typename TypedTag2ValueType<T>::type&> GetTagValue(T tag) const { in GetTagValue() 291 template <typename... T> AuthorizationSetBuilder& BlockMode(T&&... a) { in BlockMode() 292 return BlockMode({std::forward<T>(a)...}); in BlockMode() 294 template <typename... T> AuthorizationSetBuilder& Digest(T&&... a) { in Digest() 295 return Digest({std::forward<T>(a)...}); in Digest() 297 template <typename... T> AuthorizationSetBuilder& Padding(T&&... a) { in Padding() 298 return Padding({std::forward<T>(a)...}); in Padding()
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
D | hwc_utils.h | 264 template<typename T> inline T max(T a, T b) { return (a > b) ? a : b; } in max() 265 template<typename T> inline T min(T a, T b) { return (a < b) ? a : b; } in min() 288 template <class T> 289 inline void swap(T& a, T& b) { in swap() 290 T tmp = a; in swap()
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlayUtils.h | 383 template <class T> 384 inline void memset0(T& t) { ::memset(&t, 0, sizeof(t)); } in memset0() 386 template <class T> inline void swap ( T& a, T& b ) in swap() 388 T c(a); a=b; b=c; in swap() 391 template<typename T> inline T max(T a, T b) { return (a > b) ? a : b; } in max() 393 template<typename T> inline T min(T a, T b) { return (a < b) ? a : b; } in min() 531 template <class T> 532 inline void even_ceil(T& value) { in even_ceil() 537 template <class T> 538 inline void even_floor(T& value) { in even_floor()
|
/hardware/qcom/display/msm8909/liboverlay/ |
D | overlayUtils.h | 380 template <class T> 381 inline void memset0(T& t) { ::memset(&t, 0, sizeof(t)); } in memset0() 383 template <class T> inline void swap ( T& a, T& b ) in swap() 385 T c(a); a=b; b=c; in swap() 388 template<typename T> inline T max(T a, T b) { return (a > b) ? a : b; } in max() 390 template<typename T> inline T min(T a, T b) { return (a < b) ? a : b; } in min() 524 template <class T> 525 inline void even_ceil(T& value) { in even_ceil() 530 template <class T> 531 inline void even_floor(T& value) { in even_floor()
|
/hardware/interfaces/media/omx/1.0/vts/functional/common/ |
D | media_hidl_test_common.h | 171 template <class T> 172 void InitOMXParams(T* params) { in InitOMXParams() 173 params->nSize = sizeof(T); in InitOMXParams() 180 template <class T> 182 sp<IOmxNode> omxNode, OMX_INDEXTYPE omxIdx, T* params) { in getParam() 196 template <class T> 198 sp<IOmxNode> omxNode, OMX_INDEXTYPE omxIdx, T* params) { in setParam() 204 template <class T> 206 sp<IOmxNode> omxNode, OMX_INDEXTYPE omxIdx, OMX_U32 nPortIndex, T* params) { in getPortParam() 221 template <class T> [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VehicleHalTestUtils.h | 180 template<typename T> 181 inline std::string hexString(T value) { in hexString() 187 template <typename T, typename Collection> 189 std::initializer_list<T> expected, in assertAllExistsAnyOrder() 192 std::set<T> expectedSet = expected; in assertAllExistsAnyOrder() 209 template<typename T> 210 inline std::string enumToHexString(T value) { in enumToHexString() 214 template <typename T> 215 inline std::string vecToString(const hidl_vec<T>& vec) { in vecToString()
|
D | VehicleObjectPool_test.cpp | 88 const int T = 2; in TEST_F() local 96 for (int i = 0; i < T; i++) { in TEST_F() 115 ASSERT_EQ(static_cast<uint32_t>(T * C * O), stats->Obtained); in TEST_F() 116 ASSERT_EQ(static_cast<uint32_t>(T * C * O), stats->Recycled); in TEST_F() 118 ASSERT_GE(static_cast<uint32_t>(T * O), stats->Created); in TEST_F()
|
/hardware/qcom/display/msm8996/sdm/include/core/ |
D | debug_interface.h | 148 template <class T> 152 T::Get()->BeginTrace(class_name, function_name, ""); in ScopeTracer() 155 ~ScopeTracer() { T::Get()->EndTrace(); } in ~ScopeTracer()
|
/hardware/qcom/display/msm8998/sdm/include/core/ |
D | debug_interface.h | 148 template <class T> 152 T::Get()->BeginTrace(class_name, function_name, ""); in ScopeTracer() 155 ~ScopeTracer() { T::Get()->EndTrace(); } in ~ScopeTracer()
|