/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | type_traits.h | 88 template <bool cond, class T = void> struct enable_if; 89 template <class T> struct is_integral; 90 template <class T> struct is_floating_point; 91 template <class T> struct is_pointer; 95 template <class T> struct is_enum; 97 template <class T> struct is_reference; 98 template <class T> struct is_pod; 99 template <class T> struct has_trivial_constructor; 100 template <class T> struct has_trivial_copy; 101 template <class T> struct has_trivial_assign; [all …]
|
D | mathutil.h | 43 template<typename T> 44 bool IsNan(T value) { in IsNan() 64 template<typename T> 65 bool AlmostEquals(T a, T b) { in AlmostEquals() 81 template<typename T> 82 static T Sign(T value) { in Sign() 83 if (value == T(0) || ::google::protobuf::internal::IsNan<T>(value)) { in Sign() 86 return value > T(0) ? 1 : -1; in Sign() 89 template<typename T> 90 static bool AlmostEquals(T a, T b) { in AlmostEquals() [all …]
|
D | statusor.h | 96 template<typename T> 127 StatusOr(const T& value); // NOLINT 153 const T& ValueOrDie() const; 157 T value_; 171 template<typename T> 175 template<typename T> 178 static inline bool IsValueNull(const T& t) { return false; } in IsValueNull() 181 template<typename T> 182 struct StatusOrHelper::Specialize<T*> { 183 static inline bool IsValueNull(const T* t) { return t == NULL; } [all …]
|
/frameworks/av/media/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 …]
|
/frameworks/base/tools/aapt2/util/ |
D | Maybe.h | 34 template <typename T> 67 Maybe(const T& value); // NOLINT(google-explicit-constructor) 72 Maybe(T&& value); // NOLINT(google-explicit-constructor) 84 T& value(); 90 const T& value() const; 92 T value_or_default(const T& def) const; 108 typename std::aligned_storage<sizeof(T), alignof(T)>::type storage_; 111 template <typename T> 112 Maybe<T>::Maybe() : nothing_(true) {} in Maybe() 114 template <typename T> [all …]
|
/frameworks/native/libs/math/include/math/ |
D | TQuatHelpers.h | 50 template <template<typename T> class QUATERNION, typename T> 57 QUATERNION<T>& operator *= (const QUATERNION<OTHER>& r) { 58 QUATERNION<T>& q = static_cast<QUATERNION<T>&>(*this); 65 QUATERNION<T>& operator *= (T v) { 66 QUATERNION<T>& lhs = static_cast<QUATERNION<T>&>(*this); 67 for (size_t i = 0; i < QUATERNION<T>::size(); i++) { 72 QUATERNION<T>& operator /= (T v) { 73 QUATERNION<T>& lhs = static_cast<QUATERNION<T>&>(*this); 74 for (size_t i = 0; i < QUATERNION<T>::size(); i++) { 93 constexpr QUATERNION<T> PURE operator *(const QUATERNION<T>& q, const QUATERNION<RT>& r) { [all …]
|
D | TVecHelpers.h | 55 template <template<typename T> class VECTOR, typename T> 62 VECTOR<T>& operator +=(const VECTOR<OTHER>& v) { 63 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); 70 VECTOR<T>& operator -=(const VECTOR<OTHER>& v) { 71 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); 83 VECTOR<T>& operator +=(const VECTOR<T>& v) { 84 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); 90 VECTOR<T>& operator -=(const VECTOR<T>& v) { 91 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this); 110 friend inline constexpr VECTOR<T> PURE operator +(VECTOR<T> lv, const VECTOR<RT>& rv) { [all …]
|
D | scalar.h | 24 template<typename T> 25 static constexpr T saturate(T v) noexcept { in saturate() 26 return T(std::min(T(1), std::max(T(0), v))); in saturate() 29 template<typename T> 30 static constexpr T clamp(T v, T min, T max) noexcept { in clamp() 31 return T(std::min(max, std::max(min, v))); in clamp() 34 template<typename T> 35 static constexpr T mix(T x, T y, T a) noexcept { in mix() 36 return x * (T(1) - a) + y * a; in mix() 39 template<typename T> [all …]
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | AUtils.h | 24 template<class T> 25 inline static const T divRound(const T &num, const T &den) { in divRound() 34 template<class T> 35 inline static const T divUp(const T &num, const T &den) { in divUp() 44 template<class T, class U> 45 inline static const T align(const T &num, const U &den) { in align() 46 return (num + (T)(den - 1)) & (T)~(den - 1); in align() 49 template<class T> 50 inline static T abs(const T &a) { in abs() 54 template<class T> [all …]
|
D | TypeTraits.h | 36 template<typename T> 38 : std::integral_constant<bool, std::is_integral<T>::value || std::is_enum<T>::value> { }; 48 template<typename T, 49 typename U=typename std::enable_if<is_integral_or_enum<T>::value>::type, 50 bool=std::is_enum<T>::value, 51 bool=std::is_integral<T>::value> 53 static_assert(!std::is_enum<T>::value, "T should not be enum here"); 54 static_assert(!std::is_integral<T>::value, "T should not be integral here"); 59 template<typename T, typename U> 60 struct HIDE underlying_integral_type<T, U, true, false> { [all …]
|
D | AData.h | 95 template<typename T, typename ...Args> 96 inline static void emplace(size_t totalSize, T *addr, Args&&... args) { in emplace() 97 new(addr)T(std::forward<Args>(args)...); in emplace() 99 constexpr size_t size = sizeof(T); in emplace() 111 template<typename T> 112 inline static void del(T *addr) { in del() 113 addr->~T(); in del() 161 typename T, typename ...Args, 162 typename=typename std::enable_if<is_one_of<T, void, Ts...>::value>::type> 165 sizeof(_type), reinterpret_cast<T*>(&mValue), std::forward<Args>(args)...); in emplace() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | arena.h | 74 template<typename T> void arena_destruct_object(void* object) { in arena_destruct_object() 75 reinterpret_cast<T*>(object)->~T(); in arena_destruct_object() 77 template<typename T> void arena_delete_object(void* object) { in arena_delete_object() 78 delete reinterpret_cast<T*>(object); in arena_delete_object() 249 template <typename T> GOOGLE_ATTRIBUTE_ALWAYS_INLINE 250 static T* CreateMessage(::google::protobuf::Arena* arena) { in CreateMessage() 252 return new T; in CreateMessage() 254 return arena->CreateMessageInternal<T>(static_cast<T*>(0)); in CreateMessage() 261 template <typename T, typename Arg> GOOGLE_ATTRIBUTE_ALWAYS_INLINE 262 static T* CreateMessage(::google::protobuf::Arena* arena, const Arg& arg) { in CreateMessage() [all …]
|
/frameworks/av/media/libmedia/include/media/ |
D | RingBuffer.h | 35 template <class T> 47 class iterator : public std::iterator<std::forward_iterator_tag, T> { 49 iterator(T* ptr, size_t size, size_t pos, size_t ctr); 59 T& operator*(); 61 T* operator->(); 64 T* mPtr; 73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> { 75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr); 85 const T& operator*(); 87 const T* operator->(); [all …]
|
/frameworks/native/services/sensorservice/ |
D | RingBuffer.h | 35 template <class T> 47 class iterator : public std::iterator<std::forward_iterator_tag, T> { 49 iterator(T* ptr, size_t size, size_t pos, size_t ctr); 59 T& operator*(); 61 T* operator->(); 64 T* mPtr; 73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> { 75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr); 85 const T& operator*(); 87 const T* operator->(); [all …]
|
/frameworks/av/include/media/ |
D | RingBuffer.h | 35 template <class T> 47 class iterator : public std::iterator<std::forward_iterator_tag, T> { 49 iterator(T* ptr, size_t size, size_t pos, size_t ctr); 59 T& operator*(); 61 T* operator->(); 64 T* mPtr; 73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> { 75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr); 85 const T& operator*(); 87 const T* operator->(); [all …]
|
/frameworks/av/media/libeffects/loudness/common/core/ |
D | byte_swapper.h | 40 template <typename T, unsigned int kValSize> 42 static T Swap(const T &val) { in Swap() 43 T new_val = val; in Swap() 54 template <typename T> 55 struct ByteSwapper<T, 1> { 56 static T Swap(const T &val) { 61 template <typename T> 62 struct ByteSwapper<T, 2> { 63 static T Swap(const T &val) { 64 T new_val; [all …]
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | Result.h | 49 template <typename T> 52 Result(const T& value); // NOLINT(runtime/explicit) 53 Result(T&& value) noexcept; // NOLINT(runtime/explicit) 65 constexpr const T& operator*() const&; 66 T& operator*() &; 68 constexpr const T* operator->() const&; 69 T* operator->() &; 77 std::variant<T, Error> data_; 80 template <typename T> 81 Result<T>::Result(const T& value) : data_(std::in_place_type<T>, value) { in Result() [all …]
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | numeric.h | 27 template <typename T> 28 T NormalizePeriodicRange(T x, T lo, T hi) { in NormalizePeriodicRange() 29 T range_size = hi - lo; in NormalizePeriodicRange() 46 template <typename T> 47 T NormalizeDegrees(T x, T centre = static_cast<T>(180.0)) { 48 return NormalizePeriodicRange(x, centre - static_cast<T>(180.0), 49 centre + static_cast<T>(180.0)); 61 template <typename T> 62 T NormalizeRadians(T x, T centre = static_cast<T>(M_PI)) { 63 return NormalizePeriodicRange(x, centre - static_cast<T>(M_PI), [all …]
|
/frameworks/rs/cpp/util/ |
D | StrongPointer.h | 34 template<typename T> class wp; 39 inline bool operator _op_ (const sp<T>& o) const { \ 42 inline bool operator _op_ (const T* o) const { \ 53 inline bool operator _op_ (const wp<T>& o) const { \ 63 template <typename T> 69 sp(T* other); // NOLINT, implicit 70 sp(const sp<T>& other); 78 sp& operator = (T* other); 79 sp& operator = (const sp<T>& other); 85 void force_set(T* other); [all …]
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
D | global.rsh | 19 #define DEFINE_TEST(T) \ 20 T g_##T=7, notUsed_##T; \ 22 rs_allocation allocNotUsed_##T; \ 24 static T static_##T; \ 26 static T *ptr1_##T; \ 27 static T *ptr2_##T; \ 28 T __attribute__((kernel)) T##_kernel1(T in) { \ 29 return g_##T; \ 31 T __attribute__((kernel)) T##_kernel2(T in) { \ 32 return *ptr1_##T + *ptr2_##T; \ [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | ExtensionController.java | 29 <T> ExtensionBuilder<T> newExtension(Class<T> cls); in newExtension() 31 interface Extension<T> { 32 T get(); in get() 35 void addCallback(Consumer<T> callback); in addCallback() 40 T reload(); in reload() 50 interface ExtensionBuilder<T> { 51 ExtensionBuilder<T> withTunerFactory(TunerFactory<T> factory); in withTunerFactory() 52 <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls); in withPlugin() 53 <P extends T> ExtensionBuilder<T> withPlugin(Class<P> cls, String action); in withPlugin() 54 <P> ExtensionBuilder<T> withPlugin(Class<P> cls, String action, in withPlugin() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CollectionUtils.java | 51 public static @NonNull <T> List<T> filter(@Nullable List<T> list, in filter() 52 java.util.function.Predicate<? super T> predicate) { in filter() 53 ArrayList<T> result = null; in filter() 55 final T item = list.get(i); in filter() 66 public static @NonNull <T> Set<T> filter(@Nullable Set<T> set, in filter() 67 java.util.function.Predicate<? super T> predicate) { in filter() 69 ArraySet<T> result = null; in filter() 71 ArraySet<T> arraySet = (ArraySet<T>) set; in filter() 74 final T item = arraySet.valueAt(i); in filter() 80 for (T item : set) { in filter() [all …]
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | vec_types.h | 23 template < class T, int dim> 26 T data[dim]; 28 VecBase<T,dim>& operator = (const VecBase<T, dim> &x) { 29 memcpy(data, x.data, sizeof(T)*dim); 32 T & operator [] (int i) { 36 const T & operator [] (int i) const { 40 T Length() { in Length() 44 return static_cast<T>(sqrt(sum)); in Length() 48 template < class T, int dim> 49 class Vec : public VecBase<T,dim> { [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraErrorCollector.java | 91 public <T> void checkThat(final T value, final Matcher<T> matcher) { in checkThat() 102 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { in checkThat() 147 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() 169 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() 189 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() 214 public <T> boolean expectNotEquals(String msg, T[] expected, T[] actual) { in expectNotEquals() 236 public <T extends Comparable<? super T>> boolean expectGreater(String msg, T expected, in expectGreater() 237 T actual) { in expectGreater() 250 public <T extends Comparable<? super T>> boolean expectGreaterOrEqual(String msg, T expected, in expectGreaterOrEqual() 251 T actual) { in expectGreaterOrEqual() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/ |
D | FieldCodec.cs | 207 … public static FieldCodec<T> ForEnum<T>(uint tag, Func<T, int> toInt32, Func<int, T> fromInt32) in ForEnum() argument 209 return new FieldCodec<T>(input => fromInt32( in ForEnum() 221 … public static FieldCodec<T> ForMessage<T>(uint tag, MessageParser<T> parser) where T : IMessage<T> 223 …return new FieldCodec<T>(input => { T message = parser.CreateTemplate(); input.ReadMessage(message… 230 public static FieldCodec<T> ForClassWrapper<T>(uint tag) where T : class 232 var nestedCodec = WrapperCodecs.GetCodec<T>(); 233 return new FieldCodec<T>( 234 input => WrapperCodecs.Read<T>(input, nestedCodec), 235 (output, value) => WrapperCodecs.Write<T>(output, value, nestedCodec), 236 value => WrapperCodecs.CalculateSize<T>(value, nestedCodec), [all …]
|