/aosp12/system/core/libutils/include/utils/ |
H A D | Vector.h | 237 Vector<TYPE>::Vector(const Vector<TYPE>& rhs) in Vector() 252 Vector<TYPE>& Vector<TYPE>::operator = (const Vector<TYPE>& rhs) { 258 const Vector<TYPE>& Vector<TYPE>::operator = (const Vector<TYPE>& rhs) const { 264 Vector<TYPE>& Vector<TYPE>::operator = (const SortedVector<TYPE>& rhs) { 270 const Vector<TYPE>& Vector<TYPE>::operator = (const SortedVector<TYPE>& rhs) const { 276 const TYPE* Vector<TYPE>::array() const { in array() 281 TYPE* Vector<TYPE>::editArray() { in editArray() 300 const TYPE& Vector<TYPE>::top() const { in top() 310 TYPE& Vector<TYPE>::editTop() { in editTop() 340 void Vector<TYPE>::push(const TYPE& item) { in push() [all …]
|
H A D | SortedVector.h | 169 SortedVector<TYPE>::SortedVector(const SortedVector<TYPE>& rhs) in SortedVector() 179 SortedVector<TYPE>& SortedVector<TYPE>::operator = (const SortedVector<TYPE>& rhs) { 185 const SortedVector<TYPE>& SortedVector<TYPE>::operator = (const SortedVector<TYPE>& rhs) const { 191 const TYPE* SortedVector<TYPE>::array() const { in array() 196 TYPE* SortedVector<TYPE>::editArray() { in editArray() 210 const TYPE& SortedVector<TYPE>::itemAt(size_t index) const { in itemAt() 215 const TYPE& SortedVector<TYPE>::top() const { in top() 220 ssize_t SortedVector<TYPE>::add(const TYPE& item) { in add() 225 ssize_t SortedVector<TYPE>::indexOf(const TYPE& item) const { in indexOf() 230 size_t SortedVector<TYPE>::orderOf(const TYPE& item) const { in orderOf() [all …]
|
H A D | TypeHelpers.h | 42 template <typename TYPE> 120 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) { 125 int compare_type(const TYPE& lhs, const TYPE& rhs) { 157 copy_type(TYPE* d, const TYPE* s, size_t n) { 164 copy_type(TYPE* d, const TYPE* s, size_t n) { 173 void splat_type(TYPE* where, const TYPE* what, size_t n) { 190 (traits<TYPE>::has_trivial_dtor && traits<TYPE>::has_trivial_copy) 197 move_forward_type(TYPE* d, const TYPE* s, size_t n = 1) { 204 move_forward_type(TYPE* d, const TYPE* s, size_t n = 1) { 224 move_backward_type(TYPE* d, const TYPE* s, size_t n = 1) { [all …]
|
H A D | Singleton.h | 47 template <typename TYPE> 51 static TYPE& getInstance() { in getInstance() 53 TYPE* instance = sInstance; in getInstance() 55 instance = new TYPE(); in getInstance() 74 static TYPE* sInstance; 90 #define ANDROID_SINGLETON_STATIC_INSTANCE(TYPE) \ argument 92 (::android::Singleton< TYPE >::sLock)(::android::Mutex::PRIVATE); \ 93 template<> TYPE* ::android::Singleton< TYPE >::sInstance(nullptr); /* NOLINT */ \ 94 template class ::android::Singleton< TYPE >;
|
H A D | RefBase.h | 714 void move_references(sp<TYPE>* dest, sp<TYPE> const* src, size_t n) { in move_references() 717 sp<TYPE>* d_; in move_references() 724 Renamer(sp<TYPE>* d, sp<TYPE> const* s) : d_(d), s_(s) { } in move_references() 734 void move_references(wp<TYPE>* dest, wp<TYPE> const* src, size_t n) { in move_references() 737 wp<TYPE>* d_; in move_references() 744 Renamer(wp<TYPE>* rd, wp<TYPE> const* rs) : d_(rd), s_(rs) { } in move_references() 760 template<typename TYPE> inline 761 void move_forward_type(sp<TYPE>* d, sp<TYPE> const* s, size_t n) { in move_forward_type() 766 void move_backward_type(sp<TYPE>* d, sp<TYPE> const* s, size_t n) { in move_backward_type() 771 void move_forward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) { in move_forward_type() [all …]
|
/aosp12/bionic/tests/headers/posix/ |
H A D | sys_types_h.c | 38 TYPE(dev_t); in sys_types_h() 41 TYPE(gid_t); in sys_types_h() 42 TYPE(id_t); in sys_types_h() 43 TYPE(ino_t); in sys_types_h() 44 TYPE(key_t); in sys_types_h() 45 TYPE(mode_t); in sys_types_h() 47 TYPE(off_t); in sys_types_h() 48 TYPE(pid_t); in sys_types_h() 62 TYPE(size_t); in sys_types_h() 65 TYPE(time_t); in sys_types_h() [all …]
|
H A D | stdint_h.c | 34 TYPE(int8_t); in stdint_h() 35 TYPE(int16_t); in stdint_h() 36 TYPE(int32_t); in stdint_h() 37 TYPE(uint8_t); in stdint_h() 38 TYPE(uint16_t); in stdint_h() 39 TYPE(uint32_t); in stdint_h() 41 TYPE(int64_t); in stdint_h() 42 TYPE(uint64_t); in stdint_h() 62 TYPE(intptr_t); in stdint_h() 63 TYPE(uintptr_t); in stdint_h() [all …]
|
H A D | sys_stat_h.c | 34 TYPE(struct stat); in sys_stat_h() 92 TYPE(blkcnt_t); in sys_stat_h() 93 TYPE(blksize_t); in sys_stat_h() 94 TYPE(dev_t); in sys_stat_h() 95 TYPE(ino_t); in sys_stat_h() 96 TYPE(mode_t); in sys_stat_h() 97 TYPE(nlink_t); in sys_stat_h() 98 TYPE(uid_t); in sys_stat_h() 99 TYPE(gid_t); in sys_stat_h() 100 TYPE(off_t); in sys_stat_h() [all …]
|
H A D | netinet_in_h.c | 34 TYPE(in_port_t); in netinet_in_h() 35 TYPE(in_addr_t); in netinet_in_h() 36 TYPE(sa_family_t); in netinet_in_h() 37 TYPE(uint8_t); in netinet_in_h() 38 TYPE(uint32_t); in netinet_in_h() 40 TYPE(struct in_addr); in netinet_in_h() 43 TYPE(struct sockaddr_in); in netinet_in_h() 48 TYPE(struct in6_addr); in netinet_in_h() 51 TYPE(struct sockaddr_in6); in netinet_in_h() 63 TYPE(struct ipv6_mreq); in netinet_in_h()
|
H A D | signal_h.c | 40 TYPE(pthread_t); in signal_h() 41 TYPE(size_t); in signal_h() 42 TYPE(uid_t); in signal_h() 46 TYPE(sig_atomic_t); in signal_h() 47 TYPE(pid_t); in signal_h() 49 TYPE(pthread_attr_t); in signal_h() 66 TYPE(union sigval); in signal_h() 127 TYPE(mcontext_t); in signal_h() 129 TYPE(ucontext_t); in signal_h() 135 TYPE(stack_t); in signal_h() [all …]
|
H A D | time_h.c | 36 TYPE(clock_t); in time_h() 37 TYPE(size_t); in time_h() 38 TYPE(time_t); in time_h() 40 TYPE(clockid_t); in time_h() 41 TYPE(timer_t); in time_h() 43 TYPE(locale_t); in time_h() 45 TYPE(pid_t); in time_h() 47 TYPE(struct tm); in time_h() 58 TYPE(struct timespec); in time_h() 62 TYPE(struct itimerspec); in time_h()
|
/aosp12/frameworks/native/services/sensorservice/ |
H A D | vec.h | 50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { in doAssign() argument 64 typename TYPE, 79 typename TYPE, 195 TYPE r(0); in dot_product() 206 TYPE PURE length(const V<TYPE, SIZE>& v) { in length() argument 215 TYPE PURE length_squared(const V<TYPE, SIZE>& v) { in length_squared() argument 224 V<TYPE, SIZE> PURE normalize(const V<TYPE, SIZE>& v) { in normalize() argument 245 vec<TYPE, SIZE> PURE operator - (const vec<TYPE, SIZE>& lhs) { 405 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator += (const vec<TYPE, SIZE>& rhs) { 413 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator -= (const vec<TYPE, SIZE>& rhs) { [all …]
|
H A D | mat.h | 47 mat<TYPE, C, R> res; in doMul() 50 TYPE v(0); in doMul() 65 vec<TYPE, R> res; in doMul() 67 TYPE v(0); in doMul() 199 const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) { 256 class mat<TYPE, 1, R> : public vec<TYPE, R> { 290 mat<TYPE, R, C> PURE transpose(const mat<TYPE, C, R>& m) { in transpose() argument 299 template <typename TYPE, size_t C> static TYPE trace(const mat<TYPE, C, C>& m) { in trace() argument 300 TYPE t; in trace() 324 typename TYPE, [all …]
|
H A D | quat.h | 29 template <typename TYPE> 30 mat<TYPE, 3, 3> quatToMatrix(const vec<TYPE, 4>& q) { in quatToMatrix() argument 31 mat<TYPE, 3, 3> R; in quatToMatrix() 32 TYPE q0(q.w); in quatToMatrix() 33 TYPE q1(q.x); in quatToMatrix() 34 TYPE q2(q.y); in quatToMatrix() 35 TYPE q3(q.z); in quatToMatrix() 58 vec<TYPE, 4> matrixToQuat(const mat<TYPE, 3, 3>& R) { in matrixToQuat() argument 62 inline TYPE operator()(TYPE v) { in matrixToQuat() 67 vec<TYPE, 4> q; in matrixToQuat() [all …]
|
/aosp12/frameworks/rs/cpp/util/ |
H A D | TypeHelpers.h | 41 template <typename TYPE> 119 int strictly_order_type(const TYPE& lhs, const TYPE& rhs) { 124 int compare_type(const TYPE& lhs, const TYPE& rhs) { 136 new(p++) TYPE; 145 p->~TYPE(); 152 void copy_type(TYPE* d, const TYPE* s, size_t n) { 164 void splat_type(TYPE* where, const TYPE* what, size_t n) { 178 void move_forward_type(TYPE* d, const TYPE* s, size_t n = 1) { 179 if ((traits<TYPE>::has_trivial_dtor && traits<TYPE>::has_trivial_copy) 201 void move_backward_type(TYPE* d, const TYPE* s, size_t n = 1) { [all …]
|
H A D | RefBase.h | 465 template <typename TYPE> 469 sp<TYPE> const* sptr(reinterpret_cast<sp<TYPE> const*>(p)); in getReferenceBase() 474 template <typename TYPE> 478 wp<TYPE> const* sptr(reinterpret_cast<wp<TYPE> const*>(p)); in getReferenceBase() 485 void move_references(sp<TYPE>* d, sp<TYPE> const* s, size_t n) { in move_references() 491 void move_references(wp<TYPE>* d, wp<TYPE> const* s, size_t n) { in move_references() 505 template<typename TYPE> inline 506 void move_forward_type(sp<TYPE>* d, sp<TYPE> const* s, size_t n) { in move_forward_type() 511 void move_backward_type(sp<TYPE>* d, sp<TYPE> const* s, size_t n) { in move_backward_type() 516 void move_forward_type(wp<TYPE>* d, wp<TYPE> const* s, size_t n) { in move_forward_type() [all …]
|
/aosp12/frameworks/base/libs/hwui/ |
H A D | VertexBuffer.h | 57 template <class TYPE> 60 TYPE* reallocBuffer = (TYPE*)mReallocBuffer; in alloc() 79 template <class TYPE> 90 template <class TYPE> 94 TYPE* dst = alloc<TYPE>(verticesToCopy); in copyInto() 95 TYPE* src = (TYPE*)srcBuffer.getBuffer(); in copyInto() 106 template <class TYPE> 116 TYPE* current = (TYPE*)mBuffer; 143 template <class TYPE> 145 TYPE* end = (TYPE*)mBuffer + mVertexCount; in createDegenerateSeparators() [all …]
|
/aosp12/system/iorap/src/common/ |
H A D | introspection.h | 160 #define IORAP_INTROSPECT_ADAPT_STRUCT_IMPL_1(TYPE) \ 164 #define IORAP_INTROSPECT_ADAPT_STRUCT_IMPL_2(TYPE, m1) \ 166 return std::make_tuple(::iorap::introspect::member_type<&TYPE::m1>{}\ 170 #define IORAP_INTROSPECT_ADAPT_STRUCT_IMPL_3(TYPE, m1, m2) \ 173 ::iorap::introspect::member_type<&TYPE::m2>{}\ 177 #define IORAP_INTROSPECT_ADAPT_STRUCT_IMPL_4(TYPE, m1, m2, m3) \ 181 ::iorap::introspect::member_type<&TYPE::m3>{}\ 185 #define IORAP_INTROSPECT_ADAPT_STRUCT_IMPL_5(TYPE, m1, m2, m3, m4) \ 190 ::iorap::introspect::member_type<&TYPE::m4>{}\ 194 #define IORAP_INTROSPECT_ADAPT_STRUCT_IMPL_6(TYPE, m1, m2, m3, m4, m5) \ [all …]
|
/aosp12/frameworks/native/libs/renderengine/include/renderengine/ |
H A D | Mesh.h | 42 template <typename TYPE> 56 TYPE& operator[](size_t index) { 64 template <typename TYPE> 65 VertexArray<TYPE> getPositionArray() { in getPositionArray() 69 template <typename TYPE> 70 VertexArray<TYPE> getTexCoordArray() { in getTexCoordArray() 74 template <typename TYPE> 75 VertexArray<TYPE> getCropCoordArray() { in getCropCoordArray() 79 template <typename TYPE> 80 VertexArray<TYPE> getShadowColorArray() { in getShadowColorArray() [all …]
|
/aosp12/frameworks/av/media/libstagefright/renderfright/include/renderengine/ |
H A D | Mesh.h | 42 template <typename TYPE> 56 TYPE& operator[](size_t index) { 64 template <typename TYPE> 65 VertexArray<TYPE> getPositionArray() { in getPositionArray() 69 template <typename TYPE> 70 VertexArray<TYPE> getTexCoordArray() { in getTexCoordArray() 74 template <typename TYPE> 75 VertexArray<TYPE> getCropCoordArray() { in getCropCoordArray() 79 template <typename TYPE> 80 VertexArray<TYPE> getShadowColorArray() { in getShadowColorArray() [all …]
|
/aosp12/art/tools/jvmti-agents/list-extensions/ |
H A D | list-extensions.cc | 62 CASE(TYPE, JBYTE); in operator <<() 63 CASE(TYPE, JCHAR); in operator <<() 64 CASE(TYPE, JSHORT); in operator <<() 65 CASE(TYPE, JINT); in operator <<() 66 CASE(TYPE, JLONG); in operator <<() 67 CASE(TYPE, JFLOAT); in operator <<() 72 CASE(TYPE, JCLASS); in operator <<() 73 CASE(TYPE, JVALUE); in operator <<() 76 CASE(TYPE, CCHAR); in operator <<() 77 CASE(TYPE, CVOID); in operator <<() [all …]
|
/aosp12/frameworks/native/libs/ui/include_private/ui/ |
H A D | RegionHelper.h | 33 static const TYPE max_value = std::numeric_limits<TYPE>::max(); 49 TYPE dx; 50 TYPE dy; 54 inline region(RECT const* _r, size_t _c, TYPE _dx, TYPE _dy) in region() 100 TYPE lhs_head; 101 TYPE lhs_tail; 102 TYPE rhs_head; 103 TYPE rhs_tail; 164 inline int next(TYPE& top, TYPE& bottom) { in next() 238 inline int next(TYPE& left, TYPE& right) { in next() [all …]
|
/aosp12/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
H A D | VCardImporterTests.java | 520 .put(Phone.TYPE, Phone.TYPE_HOME); in testV21PrefToIsPrimary() 523 .put(Phone.TYPE, Phone.TYPE_WORK) in testV21PrefToIsPrimary() 527 .put(Phone.TYPE, Phone.TYPE_ISDN); in testV21PrefToIsPrimary() 530 .put(Email.TYPE, Email.TYPE_HOME) in testV21PrefToIsPrimary() 642 .put(Phone.TYPE, Phone.TYPE_WORK) in testComplicatedCase() 646 .put(Phone.TYPE, Phone.TYPE_HOME) in testComplicatedCase() 660 .put(Phone.TYPE, Phone.TYPE_OTHER) in testComplicatedCase() 1175 .put(Nickname.TYPE, "1"); in testIMV21() 1178 .put(Im.TYPE, Im.TYPE_HOME) in testIMV21() 1232 .put(Phone.TYPE, Phone.TYPE_HOME) in testSipV40() [all …]
|
/aosp12/frameworks/native/libs/ui/include/ui/ |
H A D | ANativeObjectBase.h | 37 template <typename NATIVE_TYPE, typename TYPE, typename REF, 51 typedef ANativeObjectBase<NATIVE_TYPE, TYPE, REF, NATIVE_BASE> BASE; 56 static inline TYPE* getSelf(NATIVE_TYPE* self) { in getSelf() 57 return static_cast<TYPE*>(self); in getSelf() 59 static inline TYPE const* getSelf(NATIVE_TYPE const* self) { in getSelf() 60 return static_cast<TYPE const *>(self); in getSelf() 62 static inline TYPE* getSelf(NATIVE_BASE* base) { in getSelf() 65 static inline TYPE const * getSelf(NATIVE_BASE const* base) { in getSelf()
|
/aosp12/frameworks/native/libs/ui/include_vndk/ui/ |
H A D | ANativeObjectBase.h | 37 template <typename NATIVE_TYPE, typename TYPE, typename REF, 51 typedef ANativeObjectBase<NATIVE_TYPE, TYPE, REF, NATIVE_BASE> BASE; 56 static inline TYPE* getSelf(NATIVE_TYPE* self) { in getSelf() 57 return static_cast<TYPE*>(self); in getSelf() 59 static inline TYPE const* getSelf(NATIVE_TYPE const* self) { in getSelf() 60 return static_cast<TYPE const *>(self); in getSelf() 62 static inline TYPE* getSelf(NATIVE_BASE* base) { in getSelf() 65 static inline TYPE const * getSelf(NATIVE_BASE const* base) { in getSelf()
|