Home
last modified time | relevance | path

Searched refs:U (Results 1 – 25 of 162) sorted by relevance

1234567

/frameworks/av/media/codec2/core/include/
DC2.h199 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/
DMaybe.h46 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 …]
DTypeTraits.h25 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/
Dmat3.h179 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 …]
Dmat2.h169 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 …]
Dmat4.h183 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/
DALookup.h26 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 …]
DAData.h240 template<typename U>
241 using enable_if_T_is_same_as = typename std::enable_if<std::is_same<U, T>::value>::type;
246 template<typename Tp, typename U, typename=enable_if_T_is_same_as<sp<Tp>>>
247 inline static void assign(sp<Tp> *data, const sp<U> &src) { in assign()
251 template<typename Tp, typename U, typename=enable_if_T_is_same_as<wp<Tp>>>
252 inline static void assign(wp<Tp> *data, const wp<U> &src) { in assign()
253 sp<U> __tmp = src.promote(); in assign()
257 template<typename Tp, typename U, typename=enable_if_T_is_same_as<sp<Tp>>>
258 inline static void assign(sp<Tp> *data, sp<U> &&src) { in assign()
259 sp<U> __tmp = std::move(src); // move src out as get cannot in assign()
[all …]
DAUtils.h44 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()
DTypeTraits.h49 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/
DStrongPointer.h45 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 …]
DRefBase.h46 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/
Ddefault_initialization_allocator.h23 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()
Dcopy_cv_reference.h13 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;
Dvariant.h41 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/tools/aapt2/text/
DUtf8Iterator_test.cpp31 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()
DUnicode.cpp89 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()
DUnicode_test.cpp29 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/
Dtraits.h29 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/
DOMXUtils.cpp274 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/
DBufferHubDefs.h69 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/
DMutexGuard.h53 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/
Dhwc_types.h71 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) {
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dbitfield.rscript49 uint U:3;
57 static union CommonInitialSequence U, V;
74 rsDebug("argL.lo ", (unsigned)argL & ~0U);
75 rsDebug("bf->L.lo", (unsigned)bf->L & ~0U);
94 // accesses through U or V.
97 nbf = &U.nbf;
98 bf = &U. bf;
/frameworks/ml/nn/common/operations/
DSimpleMath.cpp47 template <typename T, typename U>
59 U* tempSumBuffer = new (std::nothrow) U[getNumberOfElements(outputShape)]; in meanGeneric()
65 tflite::reference_ops::Mean<T, U>( in meanGeneric()

1234567