/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/base/tools/aapt2/util/ |
D | Maybe.h | 46 template <typename U> 47 Maybe(const Maybe<U>& rhs); // NOLINT(google-explicit-constructor) 51 template <typename U> 52 Maybe(Maybe<U>&& rhs); // NOLINT(google-explicit-constructor) 56 template <typename U> 57 Maybe& operator=(const Maybe<U>& rhs); 61 template <typename U> 62 Maybe& operator=(Maybe<U>&& rhs); 95 template <typename U> 98 template <typename U> [all …]
|
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/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;
|
D | variant.h | 41 template <typename T, typename U> 42 struct IsConstructible<T, U> 44 std::is_constructible<T, U>::value && 46 std::is_pointer<std::decay_t<U>>::value)> {}; 62 template <typename T, typename U> 63 struct HasType<T, U> : std::is_same<std::decay_t<T>, std::decay_t<U>> {}; 249 template <typename T, typename U> 250 Union(std::int32_t index, std::int32_t* index_out, TypeTag<T>, U&& value) 251 : rest_(index + 1, index_out, TypeTag<T>{}, std::forward<U>(value)) {} 346 template <typename T, typename U> [all …]
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | AndroidFuture.java | 119 public static <U> AndroidFuture<U> completedFuture(U value) { in completedFuture() 120 AndroidFuture<U> future = new AndroidFuture<>(); in completedFuture() 308 public <U> AndroidFuture<U> thenCompose( in thenCompose() 309 @NonNull Function<? super T, ? extends CompletionStage<U>> fn) { in thenCompose() 314 public <U> AndroidFuture<U> thenComposeAsync( in thenComposeAsync() 315 @NonNull Function<? super T, ? extends CompletionStage<U>> fn, in thenComposeAsync() 320 private static class ThenComposeAsync<T, U> extends AndroidFuture<U> 324 private volatile Function<? super T, ? extends CompletionStage<U>> mFn; 327 @NonNull Function<? super T, ? extends CompletionStage<U>> fn, in ThenComposeAsync() 348 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()
|
D | Unicode_test.cpp | 29 std::u32string valid_input = U"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZˮø"; in TEST() 32 std::u32string invalid_input = U"$;\'/<>+=-.{}[]()\\|?@#%^&*!~`\",1234567890_"; in TEST() 37 std::u32string valid_input = U"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_ˮø"; in TEST() 40 std::u32string invalid_input = U"$;\'/<>+=-.{}[]()\\|?@#%^&*!~`\","; in TEST()
|
/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/av/media/libstagefright/omx/ |
D | OMXUtils.cpp | 274 image.mPlane[image.U].mOffset = image.mPlane[image.V].mOffset in DescribeDefaultColorFormat() 276 image.mPlane[image.U].mColInc = 1; in DescribeDefaultColorFormat() 277 image.mPlane[image.U].mRowInc = cstride; in DescribeDefaultColorFormat() 278 image.mPlane[image.U].mHorizSubsampling = 2; in DescribeDefaultColorFormat() 279 image.mPlane[image.U].mVertSubsampling = 2; in DescribeDefaultColorFormat() 288 image.mPlane[image.U].mOffset = params.nStride * params.nSliceHeight; in DescribeDefaultColorFormat() 289 image.mPlane[image.U].mColInc = 1; in DescribeDefaultColorFormat() 290 image.mPlane[image.U].mRowInc = params.nStride / 2; in DescribeDefaultColorFormat() 291 image.mPlane[image.U].mHorizSubsampling = 2; in DescribeDefaultColorFormat() 292 image.mPlane[image.U].mVertSubsampling = 2; in DescribeDefaultColorFormat() [all …]
|
/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/libs/androidfw/include/androidfw/ |
D | ApkAssets.h | 79 const std::string& path, package_property_t flags = 0U, 88 base::unique_fd fd, const std::string& friendly_name, package_property_t flags = 0U, 94 const std::string& path, package_property_t flags = 0U, 102 base::unique_fd fd, const std::string& friendly_name, package_property_t flags = 0U, 109 package_property_t flags = 0U); 114 const std::string& path, package_property_t flags = 0U, 119 package_property_t flags = 0U, 189 package_property_t property_flags_ = 0U;
|
D | MutexGuard.h | 53 template <typename U = T> 55 typename std::enable_if<std::is_copy_constructible<U>::value>::type = void()) 59 template <typename U = T> 61 typename std::enable_if<std::is_move_constructible<U>::value>::type = void())
|
/frameworks/native/libs/vr/libvrflinger/ |
D | hwc_types.h | 71 template <typename T, typename U, typename ReturnType = void> 74 std::is_same<U, typename UnderlyingType<T>::Type>::value, 79 template <typename T, typename U, typename Return = void> 81 sizeof(T) == sizeof(U) && alignof(T) == alignof(U) && 83 typename UnderlyingType<U>::Type>::value, 90 template <typename T, typename U> 91 EnableIfSafeCast<T, U, std::vector<T>*> VectorCast(std::vector<U>* in) {
|