Home
last modified time | relevance | path

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

12345678

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDictionaryTests+UInt32.m43 //%PDDM-EXPAND TEST_FOR_POD_KEY(UInt32, uint32_t, 1U, 2U, 3U, 4U)
96 XCTAssertEqual(dict.count, 0U);
97 XCTAssertFalse([dict getUInt32:NULL forKey:1U]);
106 GPBUInt32UInt32Dictionary *dict = [GPBUInt32UInt32Dictionary dictionaryWithUInt32:100U forKey:1U];
108 XCTAssertEqual(dict.count, 1U);
110 XCTAssertTrue([dict getUInt32:NULL forKey:1U]);
111 XCTAssertTrue([dict getUInt32:&value forKey:1U]);
112 XCTAssertEqual(value, 100U);
113 XCTAssertFalse([dict getUInt32:NULL forKey:2U]);
115 XCTAssertEqual(aKey, 1U);
[all …]
DGPBArrayTests.m97 //% XCTAssertEqual(array.count, 0U);
114 //% XCTAssertEqual(array.count, 1U);
118 //% XCTAssertEqual(idx, 0U);
124 //% XCTAssertEqual(idx, 0U);
136 //% XCTAssertEqual(array.count, 4U);
164 //% XCTAssertNotEqual(idx, 2U);
165 //% XCTAssertNotEqual(idx, 3U);
175 //% XCTAssertNotEqual(idx, 1U);
176 //% XCTAssertNotEqual(idx, 0U);
257 //% XCTAssertEqual(array.count, 0U);
[all …]
DGPBDictionaryTests+Int32.m96 XCTAssertEqual(dict.count, 0U);
106 GPBInt32UInt32Dictionary *dict = [GPBInt32UInt32Dictionary dictionaryWithUInt32:100U forKey:11];
108 XCTAssertEqual(dict.count, 1U);
112 XCTAssertEqual(value, 100U);
116 XCTAssertEqual(aValue, 100U);
123 const uint32_t kValues[] = { 100U, 101U, 102U };
129 XCTAssertEqual(dict.count, 3U);
133 XCTAssertEqual(value, 100U);
136 XCTAssertEqual(value, 101U);
139 XCTAssertEqual(value, 102U);
[all …]
DGPBDictionaryTests+Bool.m43 //%PDDM-EXPAND BOOL_TESTS_FOR_POD_VALUE(UInt32, uint32_t, 100U, 101U)
56 XCTAssertEqual(dict.count, 0U);
66 GPBBoolUInt32Dictionary *dict = [GPBBoolUInt32Dictionary dictionaryWithUInt32:100U forKey:YES];
68 XCTAssertEqual(dict.count, 1U);
72 XCTAssertEqual(value, 100U);
76 XCTAssertEqual(aValue, 100U);
83 const uint32_t kValues[] = { 100U, 101U };
89 XCTAssertEqual(dict.count, 2U);
93 XCTAssertEqual(value, 100U);
96 XCTAssertEqual(value, 101U);
[all …]
DGPBDictionaryTests+String.m96 XCTAssertEqual(dict.count, 0U);
106 …GPBStringUInt32Dictionary *dict = [GPBStringUInt32Dictionary dictionaryWithUInt32:100U forKey:@"fo…
108 XCTAssertEqual(dict.count, 1U);
112 XCTAssertEqual(value, 100U);
116 XCTAssertEqual(aValue, 100U);
123 const uint32_t kValues[] = { 100U, 101U, 102U };
129 XCTAssertEqual(dict.count, 3U);
133 XCTAssertEqual(value, 100U);
136 XCTAssertEqual(value, 101U);
139 XCTAssertEqual(value, 102U);
[all …]
DGPBDictionaryTests+UInt64.m96 XCTAssertEqual(dict.count, 0U);
106 …GPBUInt64UInt32Dictionary *dict = [GPBUInt64UInt32Dictionary dictionaryWithUInt32:100U forKey:31UL…
108 XCTAssertEqual(dict.count, 1U);
112 XCTAssertEqual(value, 100U);
116 XCTAssertEqual(aValue, 100U);
123 const uint32_t kValues[] = { 100U, 101U, 102U };
129 XCTAssertEqual(dict.count, 3U);
133 XCTAssertEqual(value, 100U);
136 XCTAssertEqual(value, 101U);
139 XCTAssertEqual(value, 102U);
[all …]
DGPBDictionaryTests+Int64.m96 XCTAssertEqual(dict.count, 0U);
106 GPBInt64UInt32Dictionary *dict = [GPBInt64UInt32Dictionary dictionaryWithUInt32:100U forKey:21LL];
108 XCTAssertEqual(dict.count, 1U);
112 XCTAssertEqual(value, 100U);
116 XCTAssertEqual(aValue, 100U);
123 const uint32_t kValues[] = { 100U, 101U, 102U };
129 XCTAssertEqual(dict.count, 3U);
133 XCTAssertEqual(value, 100U);
136 XCTAssertEqual(value, 101U);
139 XCTAssertEqual(value, 102U);
[all …]
DGPBMessageTests+Runtime.m929 XCTAssertEqual(msg.oneofUint32, 102U);
930 XCTAssertEqual(msg.oneofUint64, 103U);
933 XCTAssertEqual(msg.oneofFixed32, 106U);
934 XCTAssertEqual(msg.oneofFixed64, 107U);
953 XCTAssertEqual(msg.oneofUint32, 102U);
954 XCTAssertEqual(msg.oneofUint64, 103U);
957 XCTAssertEqual(msg.oneofFixed32, 106U);
958 XCTAssertEqual(msg.oneofFixed64, 107U);
975 XCTAssertEqual(msg.oneofUint32, 102U);
976 XCTAssertEqual(msg.oneofUint64, 103U);
[all …]
DGPBMessageTests+Merge.m98 XCTAssertEqual(dst.optionalUint32, 1U);
99 XCTAssertEqual(dst.optionalUint64, 1U);
102 XCTAssertEqual(dst.optionalFixed32, 1U);
103 XCTAssertEqual(dst.optionalFixed64, 1U);
136 XCTAssertEqual(dst.optionalUint32, 1U);
137 XCTAssertEqual(dst.optionalUint64, 2U);
140 XCTAssertEqual(dst.optionalFixed32, 1U);
141 XCTAssertEqual(dst.optionalFixed64, 2U);
174 XCTAssertEqual(dst.optionalUint32, 3U);
175 XCTAssertEqual(dst.optionalUint64, 2U);
[all …]
/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 …]
/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dshared_ptr.h107 template <typename U> friend class weak_ptr;
123 template <typename U>
124 shared_ptr(const shared_ptr<U>& ptr)
138 template <typename U>
139 shared_ptr<T>& operator=(const shared_ptr<U>& ptr) {
235 template <typename U>
236 void Initialize(const shared_ptr<U>& r) {
240 InitializeWithStaticCast<U>(r);
248 template <typename U, typename V>
253 ptr_ = static_cast<U*>(r.ptr_);
[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()
/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 …]

12345678