/frameworks/av/media/codec2/core/include/ |
D | C2.h | 199 template<typename U, typename E=typename std::enable_if<std::is_integral<U>::value>::type> 201 inline static constexpr T get(const U &value) { in get() 205 template<typename U, typename E=typename std::enable_if<(sizeof(U) >= sizeof(T))>::type> 207 inline static constexpr T get(const c2_cntr_t<U, void> &value) { in get() 242 template<typename U> 254 template<typename U> 255 inline constexpr c2_cntr_t(const U &value) : mValue(compat::get(value)) {} in c2_cntr_t() 291 template<typename U, typename E=typename std::enable_if<(sizeof(U) < sizeof(T))>::type> 292 inline constexpr operator c2_cntr_t<U>() { 293 return c2_cntr_t<U>(mValue); [all …]
|
/frameworks/native/libs/math/include/math/ |
D | mat3.h | 179 template<typename U> 180 explicit CONSTEXPR TMat33(U v); 195 template <typename U> 196 explicit CONSTEXPR TMat33(const TVec3<U>& v); 201 template <typename U> 202 explicit CONSTEXPR TMat33(const TMat33<U>& rhs); 242 template <typename U> 243 explicit CONSTEXPR TMat33(const TQuaternion<U>& q); 248 template <typename U> 249 explicit CONSTEXPR TMat33(U const* rawArray); [all …]
|
D | mat2.h | 169 template<typename U> 170 explicit CONSTEXPR TMat22(U v); 184 template <typename U> 185 explicit CONSTEXPR TMat22(const TVec2<U>& v); 190 template <typename U> 191 explicit CONSTEXPR TMat22(const TMat22<U>& rhs); 226 template <typename U> 227 explicit CONSTEXPR TMat22(U const* rawArray); 256 template <typename U> 257 CONSTEXPR TMat22<T>::TMat22(U v) { in TMat22() [all …]
|
D | mat4.h | 183 template<typename U> 184 explicit CONSTEXPR TMat44(U v); 199 template <typename U> 200 explicit CONSTEXPR TMat44(const TVec4<U>& v); 203 template <typename U> 204 explicit CONSTEXPR TMat44(const TMat44<U>& rhs); 246 template <typename U> 247 explicit CONSTEXPR TMat44(const TQuaternion<U>& q); 252 template <typename U> 253 explicit CONSTEXPR TMat44(U const* rawArray); [all …]
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | ALookup.h | 26 template<typename T, typename U> 28 ALookup(std::initializer_list<std::pair<T, U>> list); 30 bool lookup(const T& from, U *to) const; 31 bool rlookup(const U& from, T *to) const; 40 std::vector<std::pair<T, U>> mTable; 43 template<typename T, typename U> 44 ALookup<T, U>::ALookup(std::initializer_list<std::pair<T, U>> list) in ALookup() 48 template<typename T, typename U> 49 bool ALookup<T, U>::lookup(const T& from, U *to) const { in lookup() 59 template<typename T, typename U> [all …]
|
D | AData.h | 244 template<typename U> 245 using enable_if_T_is_same_as = typename std::enable_if<std::is_same<U, T>::value>::type; 250 template<typename Tp, typename U, typename=enable_if_T_is_same_as<sp<Tp>>> 251 inline static void assign(sp<Tp> *data, const sp<U> &src) { in assign() 255 template<typename Tp, typename U, typename=enable_if_T_is_same_as<wp<Tp>>> 256 inline static void assign(wp<Tp> *data, const wp<U> &src) { in assign() 257 sp<U> __tmp = src.promote(); in assign() 261 template<typename Tp, typename U, typename=enable_if_T_is_same_as<sp<Tp>>> 262 inline static void assign(sp<Tp> *data, sp<U> &&src) { in assign() 263 sp<U> __tmp = std::move(src); // move src out as get cannot in assign() [all …]
|
D | AUtils.h | 44 template<class T, class U> 45 inline static const T align(const T &num, const U &den) { in align() 70 template<class T, class U> 72 inline static bool isInRange(const T &hayStart, const U &haySize, const T &needle) { in isInRange() 73 ENSURE_UNSIGNED_TYPE<U>(); in isInRange() 74 …return (T)(hayStart + haySize) >= hayStart && needle >= hayStart && (U)(needle - hayStart) < haySi… in isInRange() 78 template<class T, class U> 81 const T &hayStart, const U &haySize, const T &needleStart, const U &needleSize) { in isInRange() 82 ENSURE_UNSIGNED_TYPE<U>(); in isInRange() 85 && (U)(needleStart + needleSize - hayStart) <= haySize; in isInRange()
|
D | TypeTraits.h | 49 typename U=typename std::enable_if<is_integral_or_enum<T>::value>::type, 55 typedef U type; 59 template<typename T, typename U> 60 struct HIDE underlying_integral_type<T, U, true, false> { 67 template<typename T, typename U> 68 struct HIDE underlying_integral_type<T, U, false, true> { 110 template<typename T, typename U, typename ...Us> 111 struct HIDE is_one_of<T, U, Us...> : is_one_of<T, Us...> {}; 163 template<size_t Base, typename T, typename U, typename ...Us> 164 struct HIDE _find_first_impl<Base, T, U, Us...> [all …]
|
/frameworks/rs/cpp/util/ |
D | StrongPointer.h | 45 template<typename U> \ 46 inline bool operator _op_ (const sp<U>& o) const { \ 49 template<typename U> \ 50 inline bool operator _op_ (const U* o) const { \ 56 template<typename U> \ 57 inline bool operator _op_ (const wp<U>& o) const { \ 71 template<typename U> sp(U* other); // NOLINT, implicit 72 template<typename U> sp(const sp<U>& other); // NOLINT, implicit 81 template<typename U> sp& operator = (const sp<U>& other); 82 template<typename U> sp& operator = (U* other); [all …]
|
D | RefBase.h | 46 template<typename U> \ 47 inline bool operator _op_ (const sp<U>& o) const { \ 50 template<typename U> \ 51 inline bool operator _op_ (const U* o) const { \ 209 template<typename U> explicit wp(U* other); 210 template<typename U> explicit wp(const sp<U>& other); 211 template<typename U> explicit wp(const wp<U>& other); 221 template<typename U> wp& operator = (U* other); 222 template<typename U> wp& operator = (const wp<U>& other); 223 template<typename U> wp& operator = (const sp<U>& other); [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | default_initialization_allocator.h | 23 template <typename U> 26 U, typename AllocatorTraits::template rebind_alloc<U>>; 31 template <typename U> 32 void construct(U* pointer) noexcept( in construct() 33 std::is_nothrow_default_constructible<U>::value) { in construct() 34 ::new (static_cast<void*>(pointer)) U; in construct() 36 template <typename U, typename... Args> 37 void construct(U* pointer, Args&&... args) { in construct()
|
D | copy_cv_reference.h | 13 template <typename T, typename U> 19 typename std::add_const<U>::type, U>::type; 36 template <typename T, typename U> 37 using CopyCVReferenceType = typename CopyCVReference<T, U>::Type;
|
/frameworks/av/media/utils/include/mediautils/ |
D | Synchronization.h | 63 template <typename U> 64 void operator=(U&& u) { 65 store(std::forward<U>(u)); 75 template <typename U> 76 void store(U&& u) { in store() 80 mT = std::forward<U>(u); in store() 84 mT = std::forward<U>(u); in store() 124 template <typename U> 125 explicit Defer(U &&f) : mThunk(std::forward<U>(f)) {} in Defer()
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | AndroidFuture.java | 127 public static <U> AndroidFuture<U> completedFuture(U value) { in completedFuture() 128 AndroidFuture<U> future = new AndroidFuture<>(); in completedFuture() 313 public <U> AndroidFuture<U> thenCompose( in thenCompose() 314 @NonNull Function<? super T, ? extends CompletionStage<U>> fn) { in thenCompose() 319 public <U> AndroidFuture<U> thenComposeAsync( in thenComposeAsync() 320 @NonNull Function<? super T, ? extends CompletionStage<U>> fn, in thenComposeAsync() 325 private static class ThenComposeAsync<T, U> extends AndroidFuture<U> 329 private volatile Function<? super T, ? extends CompletionStage<U>> mFn; 332 @NonNull Function<? super T, ? extends CompletionStage<U>> fn, in ThenComposeAsync() 353 complete((U) res); in accept() [all …]
|
/frameworks/base/tools/aapt2/text/ |
D | Utf8Iterator_test.cpp | 31 EXPECT_THAT(iter.Next(), Eq(U'h')); in TEST() 34 EXPECT_THAT(iter.Next(), Eq(U'e')); in TEST() 37 EXPECT_THAT(iter.Next(), Eq(U'l')); in TEST() 40 EXPECT_THAT(iter.Next(), Eq(U'l')); in TEST() 43 EXPECT_THAT(iter.Next(), Eq(U'o')); in TEST() 53 EXPECT_THAT(iter.Next(), Eq(U'華')); in TEST() 56 EXPECT_THAT(iter.Next(), Eq(U'勵')); in TEST() 59 EXPECT_THAT(iter.Next(), Eq(U'蓮')); in TEST() 62 EXPECT_THAT(iter.Next(), Eq(U'')); in TEST()
|
D | Unicode.cpp | 89 if (!IsXidStart(first_codepoint) && first_codepoint != U'_' && first_codepoint != U'$') { in IsJavaIdentifier() 95 if (!IsXidContinue(codepoint) && codepoint != U'$') { in IsJavaIdentifier() 112 if (!IsXidStart(first_codepoint) && first_codepoint != U'_') { in IsValidResourceEntryName() 118 if (!IsXidContinue(codepoint) && codepoint != U'.' && codepoint != U'-') { in IsValidResourceEntryName()
|
/frameworks/native/services/sensorservice/ |
D | traits.h | 29 template <typename T, typename U> 32 typedef U Tail; 66 template <bool flag, typename T, typename U> 70 template <typename T, typename U> 71 struct Select<false, T, U> { 72 typedef U Result; 94 template<typename U> struct PointerTraits { 98 template<typename U> struct PointerTraits<U*> { 100 typedef U PointeeType;
|
/frameworks/native/include/ftl/ |
D | flags.h | 39 using U = std::underlying_type_t<F>; variable 42 constexpr Flags(F f) : mFlags(static_cast<U>(f)) {} in Flags() 50 template <typename T = U> 53 template <typename T = U> 59 static_assert(sizeof(U) <= sizeof(Bits)); 73 mCurrFlag = static_cast<U>(static_cast<Bits>(1) << bit); 111 U mCurrFlag = 0; 118 U f = static_cast<U>(flag); in test() 156 inline Flags<F>& clear(Flags<F> f = static_cast<F>(~static_cast<U>(0))) { 171 U get() const { return mFlags; } in get() [all …]
|
/frameworks/opt/net/ims/src/java/com/android/ims/ |
D | FeatureConnector.java | 40 public class FeatureConnector<U extends FeatureUpdates> { 91 public interface ManagerFactory<U extends FeatureUpdates> { 95 U createManager(Context context, int phoneId); in createManager() 103 public interface Listener<U extends FeatureUpdates> { 107 void connectionReady(U manager, int subId) throws ImsException; in connectionReady() 156 final U manager; 206 private final ManagerFactory<U> mFactory; 207 private final Listener<U> mListener; 216 private U mManager; 226 public FeatureConnector(Context context, int phoneId, ManagerFactory<U> factory, in FeatureConnector() [all …]
|
/frameworks/native/include/ftl/details/ |
D | array_traits.h | 24 #define FTL_ARRAY_TRAIT(T, U) using U = typename details::ArrayTraits<T>::U argument 140 template <typename T, typename U, std::size_t N, std::size_t M> 141 friend bool operator==(const Array<T, N>& lhs, const Array<U, M>& rhs) { 145 template <typename T, typename U, std::size_t N, std::size_t M> 146 friend bool operator<(const Array<T, N>& lhs, const Array<U, M>& rhs) { 150 template <typename T, typename U, std::size_t N, std::size_t M> 151 friend bool operator>(const Array<T, N>& lhs, const Array<U, M>& rhs) { 155 template <typename T, typename U, std::size_t N, std::size_t M> 156 friend bool operator!=(const Array<T, N>& lhs, const Array<U, M>& rhs) { 160 template <typename T, typename U, std::size_t N, std::size_t M> [all …]
|
/frameworks/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 276 image.mPlane[image.U].mOffset = image.mPlane[image.V].mOffset in DescribeDefaultColorFormat() 278 image.mPlane[image.U].mColInc = 1; in DescribeDefaultColorFormat() 279 image.mPlane[image.U].mRowInc = cstride; in DescribeDefaultColorFormat() 280 image.mPlane[image.U].mHorizSubsampling = 2; in DescribeDefaultColorFormat() 281 image.mPlane[image.U].mVertSubsampling = 2; in DescribeDefaultColorFormat() 290 image.mPlane[image.U].mOffset = params.nStride * params.nSliceHeight; in DescribeDefaultColorFormat() 291 image.mPlane[image.U].mColInc = 1; in DescribeDefaultColorFormat() 292 image.mPlane[image.U].mRowInc = params.nStride / 2; in DescribeDefaultColorFormat() 293 image.mPlane[image.U].mHorizSubsampling = 2; in DescribeDefaultColorFormat() 294 image.mPlane[image.U].mVertSubsampling = 2; in DescribeDefaultColorFormat() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BaseAppStateEventsTracker.java | 45 <T extends BaseAppStateEventsPolicy, U extends BaseAppStateEvents> 46 extends BaseAppStateTracker<T> implements BaseAppStateEvents.Factory<U> { 50 final UidProcessMap<U> mPkgEvents = new UidProcessMap<>(); 69 U getUidEventsLocked(int uid) { in getUidEventsLocked() 70 U events = null; in getUidEventsLocked() 71 final ArrayMap<String, U> map = mPkgEvents.getMap().get(uid); in getUidEventsLocked() 76 final U event = map.valueAt(i); in getUidEventsLocked() 95 final SparseArray<ArrayMap<String, U>> map = mPkgEvents.getMap(); in trimLocked() 97 final ArrayMap<String, U> val = map.valueAt(i); in trimLocked() 99 final U v = val.valueAt(j); in trimLocked() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | TypeTraits.h | 25 template <typename T, typename U> \ 36 static constexpr bool value = test<T, U>(int()); \ 45 template <typename T, typename U> 48 has_eq_op<T, U>::value && has_lt_op<T, U>::value;
|
/frameworks/native/libs/ui/include/ui/ |
D | BufferHubDefs.h | 69 return highBits == lowBits && lowBits != 0U; in isAnyClientGained() 88 if (clientBits == 0U) return false; in isClientPosted() 90 return lowBits == 0U; in isClientPosted() 104 if (clientBits == 0U) return false; in isClientAcquired() 106 return highBits == 0U; in isClientAcquired() 111 return (state & client_bit_mask) == 0U; in isClientReleased() 118 if (lowUnion == kLowbitsMask) return 0U; in findNextAvailableClientStateMask()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | StartUserClient.java | 36 public abstract class StartUserClient<T, U> extends HalClientMonitor<T> { 42 public interface UserStartedCallback<U> { 43 void onUserStarted(int newUserId, U newUser, int halInterfaceVersion); in onUserStarted() 47 protected final UserStartedCallback<U> mUserStartedCallback; 52 @NonNull UserStartedCallback<U> callback) { in StartUserClient()
|