/system/core/include/log/ |
D | log_read.h | 39 log_time(const timespec &T) in log_time() 41 tv_sec = T.tv_sec; in log_time() 42 tv_nsec = T.tv_nsec; in log_time() 55 timespec T; in log_time() local 56 clock_gettime(id, &T); in log_time() 57 tv_sec = T.tv_sec; in log_time() 58 tv_nsec = T.tv_nsec; in log_time() 60 log_time(const char *T) in log_time() 62 const uint8_t *c = (const uint8_t *) T; in log_time() 68 bool operator== (const timespec &T) const [all …]
|
D | logger.h | 89 bool operator== (const log_msg &T) const 91 return (entry.sec == T.entry.sec) && (entry.nsec == T.entry.nsec); 93 bool operator!= (const log_msg &T) const 95 return !(*this == T); 97 bool operator< (const log_msg &T) const 99 return (entry.sec < T.entry.sec) 100 || ((entry.sec == T.entry.sec) 101 && (entry.nsec < T.entry.nsec)); 103 bool operator>= (const log_msg &T) const 105 return !(*this < T); [all …]
|
/system/core/include/utils/ |
D | Flattenable.h | 61 template<typename T> 62 static void write(void*& buffer, size_t& size, const T& value) { in write() 63 *static_cast<T*>(buffer) = value; in write() 64 advance(buffer, size, sizeof(T)); in write() 68 template<typename T> 69 static void read(void const*& buffer, size_t& size, T& value) { in read() 70 value = *static_cast<T const*>(buffer); in read() 71 advance(buffer, size, sizeof(T)); in read() 82 template <typename T> 108 template<typename T> [all …]
|
D | StrongPointer.h | 29 template<typename T> class wp; 34 inline bool operator _op_ (const sp<T>& o) const { \ 37 inline bool operator _op_ (const T* o) const { \ 48 inline bool operator _op_ (const wp<T>& o) const { \ 58 template<typename T> 63 sp(T* other); 64 sp(const sp<T>& other); 72 sp& operator = (T* other); 73 sp& operator = (const sp<T>& other); 79 void force_set(T* other); [all …]
|
D | RefBase.h | 39 inline bool operator _op_ (const sp<T>& o) const { \ 42 inline bool operator _op_ (const T* o) const { \ 173 template <class T> 183 delete static_cast<const T*>(this); in decStrong() 191 typedef LightRefBase<T> basetype; 199 inline static void renameRefId(T* ref, in renameRefId() 215 template <typename T> 223 wp(T* other); 224 wp(const wp<T>& other); 225 wp(const sp<T>& other); [all …]
|
D | TypeHelpers.h | 33 template <typename T> struct trait_trivial_ctor { enum { value = false }; }; 34 template <typename T> struct trait_trivial_dtor { enum { value = false }; }; 35 template <typename T> struct trait_trivial_copy { enum { value = false }; }; 36 template <typename T> struct trait_trivial_move { enum { value = false }; }; 37 template <typename T> struct trait_pointer { enum { value = false }; }; 38 template <typename T> struct trait_pointer<T*> { enum { value = true }; }; 56 template <typename T, typename U> 61 traits<T>::has_trivial_ctor && traits<U>::has_trivial_ctor, 63 traits<T>::has_trivial_dtor && traits<U>::has_trivial_dtor, 65 traits<T>::has_trivial_copy && traits<U>::has_trivial_copy, [all …]
|
D | List.h | 41 template<typename T> 50 explicit _Node(const T& val) : mVal(val) {} in _Node() 52 inline T& getRef() { return mVal; } in getRef() 53 inline const T& getRef() const { return mVal; } in getRef() 56 inline void setVal(const T& val) { mVal = val; } in setVal() 62 T mVal; 166 List(const List<T>& src) { // copy-constructor in List() 175 typedef _ListIterator<T, NON_CONST_ITERATOR> iterator; 176 typedef _ListIterator<T, CONST_ITERATOR> const_iterator; 178 List<T>& operator=(const List<T>& right); [all …]
|
D | LinearTransform.h | 57 template <class T> static void reduce(T* N, T* D);
|
/system/core/libpixelflinger/codeflinger/tinyutils/ |
D | smartpointer.h | 31 inline bool operator _op_ (const sp<T>& o) const { \ 34 inline bool operator _op_ (const T* o) const { \ 48 template <typename T> 54 sp(T* other); 55 sp(const sp<T>& other); 63 sp& operator = (T* other); 64 sp& operator = (const sp<T>& other); 74 inline T& operator* () const { return *m_ptr; } 75 inline T* operator-> () const { return m_ptr; } 76 inline T* get() const { return m_ptr; } in get() [all …]
|
/system/core/liblog/tests/ |
D | benchmark.h | 30 template <typename T> class BenchmarkWantsArg; 31 template <typename T> class BenchmarkWithArg; 58 template <typename T> 61 BenchmarkWantsArgBase(const char* name, void (*fn)(int, T)) : Benchmark(name) { in BenchmarkWantsArgBase() argument 65 BenchmarkWantsArgBase<T>* Arg(const char* arg_name, T arg) { in Arg() 66 BenchmarkRegister(new BenchmarkWithArg<T>(name_, fn_arg_, arg_name, arg)); in Arg() 72 void (*fn_arg_)(int, T); 75 template <typename T> 76 class BenchmarkWithArg : public BenchmarkWantsArg<T> { 78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : in BenchmarkWithArg() argument [all …]
|
/system/keymaster/include/keymaster/ |
D | android_keymaster_utils.h | 53 template <typename T, size_t N> inline size_t array_size(const T(&a)[N]) { in array_size() 60 template <typename T, size_t N> inline size_t array_length(const T(&)[N]) { in array_length() 68 template <typename T> inline T* dup_array(const T* a, size_t n) { in dup_array() 69 T* dup = new (std::nothrow) T[n]; in dup_array() 81 template <typename T, size_t N> inline T* dup_array(const T(&a)[N]) { in dup_array() 94 template <typename T, size_t N> inline void copy_array(const T(&arr)[N], T* dest) { in copy_array() 104 template <typename T, size_t N> inline bool array_contains(const T(&a)[N], T val) { in array_contains() 144 template <typename T> explicit Eraser(T* t); 146 template <typename T> 147 explicit Eraser(T& t) in Eraser() [all …]
|
D | serializable.h | 79 template <typename T> 80 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) { in append_uint32_to_buf() 110 template <typename T> 111 inline uint8_t* append_uint32_array_to_buf(uint8_t* buf, const uint8_t* end, const T* data, in append_uint32_array_to_buf() 146 template <typename T> 147 inline bool copy_uint32_from_buf(const uint8_t** buf_ptr, const uint8_t* end, T* value) { in copy_uint32_from_buf() 151 *value = static_cast<T>(val); in copy_uint32_from_buf() 169 template <typename T> 171 UniquePtr<T[]>* data, size_t* count) { in copy_uint32_array_from_buf() 179 data->reset(new (std::nothrow) T[*count]); in copy_uint32_array_from_buf()
|
D | authorization_set.h | 177 template <keymaster_tag_t Tag, typename T> 178 bool Contains(TypedEnumTag<KM_ENUM_REP, Tag, T> tag, T val) const { in Contains() 185 template <keymaster_tag_t Tag, typename T> 186 bool Contains(TypedEnumTag<KM_ENUM, Tag, T> tag, T val) const { in Contains() 194 template <keymaster_tag_t T> 195 inline bool GetTagValue(TypedTag<KM_UINT, T> tag, uint32_t* val) const { in GetTagValue() 213 template <keymaster_tag_t T> 214 inline bool GetTagValue(TypedTag<KM_ULONG, T> tag, uint64_t* val) const { in GetTagValue() 232 template <keymaster_tag_t Tag, typename T> 233 bool GetTagValue(TypedEnumTag<KM_ENUM, Tag, T> tag, T* val) const { in GetTagValue() [all …]
|
/system/core/liblog/ |
D | log_time.cpp | 136 log_time log_time::operator-= (const timespec &T) { in operator -=() argument 138 if (*this <= T) { in operator -=() 142 if (this->tv_nsec < (unsigned long int)T.tv_nsec) { in operator -=() 144 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec; in operator -=() 146 this->tv_nsec -= T.tv_nsec; in operator -=() 148 this->tv_sec -= T.tv_sec; in operator -=() 153 log_time log_time::operator+= (const timespec &T) { in operator +=() argument 154 this->tv_nsec += (unsigned long int)T.tv_nsec; in operator +=() 159 this->tv_sec += T.tv_sec; in operator +=() 164 log_time log_time::operator-= (const log_time &T) { in operator -=() argument [all …]
|
/system/core/logcat/tests/ |
D | logcat_benchmark.cpp | 57 bool operator< (timestamp &T) in TEST() argument 59 return !ok || !T.ok in TEST() 60 || (month < T.month) in TEST() 61 || ((month == T.month) in TEST() 62 && ((day < T.day) in TEST() 63 || ((day == T.day) in TEST() 64 && ((hour < T.hour) in TEST() 65 || ((hour == T.hour) in TEST() 66 && ((minute < T.minute) in TEST() 67 || ((minute == T.minute) in TEST() [all …]
|
/system/core/base/include/base/ |
D | memory.h | 26 template <typename T> 27 static inline T get_unaligned(const T* address) { in get_unaligned() 29 T v; in get_unaligned() 35 template <typename T> 36 static inline void put_unaligned(T* address, T v) { in put_unaligned() 38 T v; in put_unaligned()
|
D | macros.h | 81 template <typename T, size_t N> 82 char(&ArraySizeHelper(T(&array)[N]))[N]; // NOLINT(readability/casting) 135 template <typename... T> 136 void UNUSED(const T&...) { in UNUSED() argument
|
/system/keymaster/ |
D | List.h | 41 template<typename T> 50 explicit _Node(const T& val) : mVal(val) {} in _Node() 52 inline T& getRef() { return mVal; } in getRef() 53 inline const T& getRef() const { return mVal; } in getRef() 56 inline void setVal(const T& val) { mVal = val; } in setVal() 62 T mVal; 166 List(const List<T>& src) { // copy-constructor in List() 175 typedef _ListIterator<T, NON_CONST_ITERATOR> iterator; 176 typedef _ListIterator<T, CONST_ITERATOR> const_iterator; 178 List<T>& operator=(const List<T>& right); [all …]
|
D | openssl_utils.h | 72 template <typename T, typename Delete_T> 73 inline void release_because_ownership_transferred(UniquePtr<T, Delete_T>& p) { in release_because_ownership_transferred() argument 74 T* val __attribute__((unused)) = p.release(); in release_because_ownership_transferred()
|
/system/core/include/sysutils/ |
D | List.h | 42 template<typename T> 51 explicit _Node(const T& val) : mVal(val) {} in _Node() 53 inline T& getRef() { return mVal; } in getRef() 54 inline const T& getRef() const { return mVal; } in getRef() 57 inline void setVal(const T& val) { mVal = val; } in setVal() 63 T mVal; 167 List(const List<T>& src) { // copy-constructor in List() 176 typedef _ListIterator<T, NON_CONST_ITERATOR> iterator; 177 typedef _ListIterator<T, CONST_ITERATOR> const_iterator; 179 List<T>& operator=(const List<T>& right); [all …]
|
/system/netd/server/ |
D | List.h | 42 template<typename T> 51 explicit _Node(const T& val) : mVal(val) {} in _Node() 53 inline T& getRef() { return mVal; } in getRef() 54 inline const T& getRef() const { return mVal; } in getRef() 57 inline void setVal(const T& val) { mVal = val; } in setVal() 63 T mVal; 167 List(const List<T>& src) { // copy-constructor in List() 176 typedef _ListIterator<T, NON_CONST_ITERATOR> iterator; 177 typedef _ListIterator<T, CONST_ITERATOR> const_iterator; 179 List<T>& operator=(const List<T>& right); [all …]
|
/system/extras/perfprofd/quipper/base/ |
D | macros.h | 63 template <typename T, size_t N> 64 char (&ArraySizeHelper(T (&array)[N]))[N]; 70 template <typename T, size_t N> 71 char (&ArraySizeHelper(const T (&array)[N]))[N]; 229 template<typename T> 230 inline void ignore_result(const T&) { in ignore_result() argument
|
/system/core/libutils/ |
D | LinearTransform.cpp | 26 template<class T> static inline T ABS(T x) { return (x < 0) ? -x : x; } in ABS() 213 template <class T> void LinearTransform::reduce(T* N, T* D) { in reduce() 214 T a, b; in reduce() 230 T tmp = a; in reduce() 237 const T remainder = a % b; in reduce()
|
/system/core/libpixelflinger/codeflinger/ |
D | CodeCache.h | 41 template <typename T> 45 AssemblyKey(const T& rhs) : mKey(rhs) { } in AssemblyKey() 47 const T& rhs = static_cast<const AssemblyKey&>(key).mKey; in compare_type() 51 T mKey;
|
/system/core/libcutils/tests/ |
D | PropertiesTest.cpp | 38 template <typename T> 39 static std::string HexString(T value) { in HexString() 45 template <typename T> 48 T m, in AssertEqualHex() 49 T n) { in AssertEqualHex() 73 template <typename T> 74 static std::string ToString(T value) { in ToString()
|