Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/native/include/ui/
DTVecHelpers.h68 template <template<typename T> class BASE, typename T>
75 BASE<T>& operator += (const BASE<OTHER>& v) {
76 BASE<T>& rhs = static_cast<BASE<T>&>(*this);
77 for (size_t i=0 ; i<BASE<T>::size() ; i++) {
83 BASE<T>& operator -= (const BASE<OTHER>& v) {
84 BASE<T>& rhs = static_cast<BASE<T>&>(*this);
85 for (size_t i=0 ; i<BASE<T>::size() ; i++) {
96 BASE<T>& operator += (const BASE<T>& v) {
97 BASE<T>& rhs = static_cast<BASE<T>&>(*this);
98 for (size_t i=0 ; i<BASE<T>::size() ; i++) {
[all …]
Dmat4.h34 template <typename T>
35 class tmat44 : public TVecUnaryOperators<tmat44, T>,
36 public TVecComparisonOperators<tmat44, T>,
37 public TVecAddOperators<tmat44, T>,
38 public TMatProductOperators<tmat44, T>,
39 public TMatSquareFunctions<tmat44, T>,
40 public TMatDebug<tmat44, T>
44 typedef T value_type;
45 typedef T& reference;
46 typedef T const& const_reference;
[all …]
/frameworks/native/services/surfaceflinger/
Dclz.h27 template <typename T>
28 static inline T min(T a, T b) { in min()
31 template <typename T>
32 static inline T min(T a, T b, T c) { in min()
35 template <typename T>
36 static inline T min(T a, T b, T c, T d) { in min()
40 template <typename T>
41 static inline T max(T a, T b) { in max()
44 template <typename T>
45 static inline T max(T a, T b, T c) { in max()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DPredicates.java35 public static <T> Predicate<T> and(Predicate<? super T>... components) { in and()
47 public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> components) { in and()
56 public static <T> Predicate<T> or(Predicate<? super T>... components) { in or()
68 public static <T> Predicate<T> or(Iterable<? extends Predicate<? super T>> components) { in or()
76 public static <T> Predicate<T> not(Predicate<? super T> predicate) { in not()
77 return new NotPredicate<T>(predicate); in not()
80 private static class AndPredicate<T> implements Predicate<T> {
81 private final Iterable<? extends Predicate<? super T>> components;
83 private AndPredicate(Iterable<? extends Predicate<? super T>> components) { in AndPredicate()
87 public boolean apply(T t) { in apply()
[all …]
DArrayUtils.java105 public static <T> T[] emptyArray(Class<T> kind) { in emptyArray()
107 return (T[]) EMPTY; in emptyArray()
120 return (T[]) cache; in emptyArray()
129 public static <T> boolean contains(T[] array, T value) { in contains()
137 public static <T> int indexOf(T[] array, T value) { in indexOf()
151 public static <T> boolean containsAll(T[] array, T[] check) { in containsAll()
152 for (T checkItem : check) { in containsAll()
185 public static <T> T[] appendElement(Class<T> kind, T[] array, T element) { in appendElement()
186 final T[] result; in appendElement()
190 result = (T[])Array.newInstance(kind, end + 1); in appendElement()
[all …]
/frameworks/av/media/libeffects/loudness/common/core/
Dbyte_swapper.h40 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/rs/server/
DStrongPointer.h32 template<typename T> class wp;
37 inline bool operator _op_ (const sp<T>& o) const { \
40 inline bool operator _op_ (const T* o) const { \
51 inline bool operator _op_ (const wp<T>& o) const { \
61 template <typename T>
67 sp(T* other);
68 sp(const sp<T>& other);
76 sp& operator = (T* other);
77 sp& operator = (const sp<T>& other);
83 void force_set(T* other);
[all …]
DRefBase.h38 inline bool operator _op_ (const sp<T>& o) const { \
41 inline bool operator _op_ (const T* o) const { \
162 template <class T>
172 delete static_cast<const T*>(this); in decStrong()
180 typedef LightRefBase<T> basetype;
196 template <typename T>
204 wp(T* other);
205 wp(const wp<T>& other);
206 wp(const sp<T>& other);
215 wp& operator = (T* other);
[all …]
/frameworks/rs/cpp/util/
DStrongPointer.h33 template<typename T> class wp;
38 inline bool operator _op_ (const sp<T>& o) const { \
41 inline bool operator _op_ (const T* o) const { \
52 inline bool operator _op_ (const wp<T>& o) const { \
62 template <typename T>
68 sp(T* other);
69 sp(const sp<T>& other);
77 sp& operator = (T* other);
78 sp& operator = (const sp<T>& other);
84 void force_set(T* other);
[all …]
DRefBase.h39 inline bool operator _op_ (const sp<T>& o) const { \
42 inline bool operator _op_ (const T* o) const { \
163 template <class T>
173 delete static_cast<const T*>(this); in decStrong()
181 typedef LightRefBase<T> basetype;
197 template <typename T>
205 wp(T* other);
206 wp(const wp<T>& other);
207 wp(const sp<T>& other);
216 wp& operator = (T* other);
[all …]
/frameworks/base/media/mca/filterpacks/native/base/
Dvec_types.h23 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/av/media/libeffects/loudness/dsp/core/
Dinterpolator_linear.h36 template <typename T>
37 class InterpolatorLinear: public InterpolatorBase<T, InterpolatorLinear<T> > {
45 T MethodSpecificInterpolation(T x);
51 friend class InterpolatorBase<T, InterpolatorLinear<T> >;
52 typedef InterpolatorBase<T, InterpolatorLinear<T> > BaseClass;
60 LE_FX_DISALLOW_COPY_AND_ASSIGN(InterpolatorLinear<T>);
63 template <typename T>
64 inline T InterpolatorLinear<T>::MethodSpecificInterpolation(T x) { in MethodSpecificInterpolation()
65 T dX = x_data_[cached_index_ + 1] - x_data_[cached_index_]; in MethodSpecificInterpolation()
66 T dY = y_data_[cached_index_ + 1] - y_data_[cached_index_]; in MethodSpecificInterpolation()
[all …]
Dinterpolator_base-inl.h30 template <typename T, class Algorithm>
31 InterpolatorBase<T, Algorithm>::InterpolatorBase() { in InterpolatorBase()
44 template <typename T, class Algorithm>
45 InterpolatorBase<T, Algorithm>::~InterpolatorBase() { in ~InterpolatorBase()
52 template <typename T, class Algorithm>
53 bool InterpolatorBase<T, Algorithm>::Initialize(const vector<T> &x_data, in Initialize()
54 const vector<T> &y_data) { in Initialize()
64 template <typename T, class Algorithm>
65 bool InterpolatorBase<T, Algorithm>::Initialize(double x_start_offset, in Initialize()
67 const vector<T> &y_data) { in Initialize()
[all …]
Dinterpolator_base.h40 template <typename T, class Algorithm>
49 T Interpolate(T x);
60 bool Initialize(const T *x_data, const T *y_data, int data_length);
66 bool Initialize(const vector<T> &x_data, const vector<T> &y_data);
72 const vector<T> &y_data);
78 const T *y_data,
89 const T *x_data_; // Externally or internally owned, depending on own_x_data_
90 const T *y_data_; // Externally owned (always)
96 T x_start_offset_;
/frameworks/rs/driver/runtime/arch/
Dclamp.c19 #define S_CLAMP(T) \ argument
20 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
39 #define V_CLAMP(T) \ argument
40 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
41 T##2 r; \
47 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
48 T##3 r; \
55 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
56 T##4 r; \
64 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
[all …]
/frameworks/native/services/sensorservice/
Dtraits.h29 template <typename T, typename U>
31 typedef T Head;
43 template <typename TList, typename T> struct IndexOf;
45 template <typename T>
46 struct IndexOf<NullType, T> {
50 template <typename T, typename Tail>
51 struct IndexOf<TypeList<T, Tail>, T> {
55 template <typename Head, typename Tail, typename T>
56 struct IndexOf<TypeList<Head, Tail>, T> {
58 enum { temp = IndexOf<Tail, T>::value };
[all …]
/frameworks/av/services/audioflinger/
DStateQueue.cpp43 template<typename T> StateQueue<T>::StateQueue() : in StateQueue()
53 template<typename T> StateQueue<T>::~StateQueue() in ~StateQueue()
59 template<typename T> const T* StateQueue<T>::poll() in poll()
61 const T *next = (const T *) android_atomic_acquire_load((volatile int32_t *) &mNext); in poll()
74 template<typename T> T* StateQueue<T>::begin() in begin()
81 template<typename T> void StateQueue<T>::end(bool didModify) in end()
92 template<typename T> bool StateQueue<T>::push(StateQueue<T>::block_t block) in push()
118 const T *ack = (const T *) mAck; // no additional barrier needed in push()
162 const T *ack = (const T *) mAck; // no additional barrier needed in push()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java94 public <T> T get(Key<T> key) { in get()
95 T value = getOverride(key); in get()
116 public <T> void set(Key<T> key, T value) { in set()
198 private static <T> int packSingleNative(T value, ByteBuffer buffer, Class<T> type, in packSingleNative()
212 value = (T) (Byte) asByte; in packSingleNative()
216 value = (T) (Byte) asByte; in packSingleNative()
244 private static <T> int packSingle(T value, ByteBuffer buffer, Class<T> type, int nativeType, in packSingle()
262 private static <T extends Enum<T>> int packEnum(T value, ByteBuffer buffer, Class<T> type, in packEnum()
270 private static <T> int packClass(T value, ByteBuffer buffer, Class<T> type, int nativeType, in packClass()
273 MetadataMarshalClass<T> marshaler = getMarshaler(type, nativeType); in packClass()
[all …]
/frameworks/av/media/libmedia/
DSingleStateQueue.cpp24 template<typename T> SingleStateQueue<T>::Mutator::Mutator(Shared *shared) in Mutator()
31 template<typename T> int32_t SingleStateQueue<T>::Mutator::push(const T& value) in push()
45 template<typename T> bool SingleStateQueue<T>::Mutator::ack() in ack()
50 template<typename T> bool SingleStateQueue<T>::Mutator::ack(int32_t sequence) in ack()
56 template<typename T> SingleStateQueue<T>::Observer::Observer(Shared *shared) in Observer()
63 template<typename T> bool SingleStateQueue<T>::Observer::poll(T& value) in poll()
79 T temp = shared->mValue; in poll()
96 template<typename T> SingleStateQueue<T>::SingleStateQueue(void /*Shared*/ *shared)
/frameworks/base/core/java/android/util/
DFastImmutableArraySet.java30 public final class FastImmutableArraySet<T> extends AbstractSet<T> {
31 FastIterator<T> mIterator;
32 T[] mContents;
34 public FastImmutableArraySet(T[] contents) { in FastImmutableArraySet()
39 public Iterator<T> iterator() { in iterator()
40 FastIterator<T> it = mIterator; in iterator()
42 it = new FastIterator<T>(mContents); in iterator()
55 private static final class FastIterator<T> implements Iterator<T> {
56 private final T[] mContents;
59 public FastIterator(T[] contents) { in FastIterator()
[all …]
DPools.java50 public static interface Pool<T> {
55 public T acquire(); in acquire()
65 public boolean release(T instance); in release()
77 public static class SimplePool<T> implements Pool<T> {
98 public T acquire() { in acquire()
101 T instance = (T) mPool[lastPooledIndex]; in acquire()
110 public boolean release(T instance) { in release()
122 private boolean isInPool(T instance) { in isInPool()
137 public static class SynchronizedPool<T> extends SimplePool<T> {
152 public T acquire() { in acquire()
[all …]
/frameworks/rs/
DrsCppUtils.h94 template <class T> class Vector: public std::vector<T> {
96 void push(T obj) { in push()
102 ssize_t add(const T& obj) { in add()
110 T* editArray() { in editArray()
111 return (T*)(this->begin()); in editArray()
114 const T* array() { in array()
115 return (const T*)(this->begin()); in array()
198 template<typename T>
199 T rsMin(T in1, T in2) in rsMin()
207 template<typename T>
[all …]
/frameworks/rs/driver/runtime/
Drs_allocation.c58 #define ELEMENT_AT(T) \ argument
60 rsSetElementAt_##T(rs_allocation a, const T *val, uint32_t x); \
62 rsSetElementAt_##T(rs_allocation a, const T *val, uint32_t x, uint32_t y); \
64 rsSetElementAt_##T(rs_allocation a, const T *val, uint32_t x, uint32_t y, uint32_t z); \
66 rsGetElementAt_##T(rs_allocation a, T *val, uint32_t x); \
68 rsGetElementAt_##T(rs_allocation a, T *val, uint32_t x, uint32_t y); \
70 rsGetElementAt_##T(rs_allocation a, T *val, uint32_t x, uint32_t y, uint32_t z); \
73 rsSetElementAt_##T(rs_allocation a, T val, uint32_t x) { \
74 rsSetElementAt_##T(a, &val, x); \
77 rsSetElementAt_##T(rs_allocation a, T val, uint32_t x, uint32_t y) { \
[all …]
/frameworks/volley/src/com/android/volley/
DResponse.java24 public class Response<T> {
27 public interface Listener<T> {
29 public void onResponse(T response); in onResponse()
42 public static <T> Response<T> success(T result, Cache.Entry cacheEntry) { in success()
43 return new Response<T>(result, cacheEntry); in success()
50 public static <T> Response<T> error(VolleyError error) { in error()
51 return new Response<T>(error); in error()
55 public final T result;
74 private Response(T result, Cache.Entry cacheEntry) { in Response()
/frameworks/opt/mailcommon/java/com/android/mailcommon/
DMergedAdapter.java36 public class MergedAdapter<T extends MergedAdapter.ListSpinnerAdapter> extends BaseAdapter {
38 private List<T> mAdapters;
48 public static class LocalAdapterPosition<T extends ListSpinnerAdapter> {
49 public final T mAdapter;
52 public LocalAdapterPosition(T adapter, int offset) { in LocalAdapterPosition()
67 public void setAdapters(T... adapters) { in setAdapters()
69 for (T adapter : mAdapters) { in setAdapters()
76 for (T adapter : mAdapters) { in setAdapters()
85 public T getSubAdapter(int index) { in getSubAdapter()
92 for (T adapter : mAdapters) { in getCount()
[all …]

12345678910>>...14