/aosp12/frameworks/av/media/codec2/tests/ |
H A D | C2_test.cpp | 33 static_assert(std::is_same<decltype(min_i32_i32), const int32_t>::value, "should be int32_t"); 35 static_assert(std::is_same<decltype(min_i32_i64), const int64_t>::value, "should be int64_t"); 37 static_assert(std::is_same<decltype(min_i8_i32), const int32_t>::value, "should be int32_t"); 48 static_assert(std::is_same<decltype(min_u32_u8), const uint8_t>::value, "should be uint8_t"); 59 static_assert(std::is_same<decltype(max_i8_i32), const int32_t>::value, "should be int32_t"); 87 …static_assert(std::is_same<decltype(c32_a + c64_a), decltype(c64_a + c32_a)>::value, "+ should res… in c2_cntr_static_test() 91 …static_assert(std::is_same<decltype(c32_a + 1), decltype(1 + c32_a)>::value, "+ should result same… in c2_cntr_static_test() 94 …static_assert(std::is_same<decltype(c32_a - c64_a), decltype(c64_a - c32_a)>::value, "- should res… in c2_cntr_static_test() 98 …static_assert(std::is_same<decltype(c32_a - 1), decltype(1 - c32_a)>::value, "- should result same… in c2_cntr_static_test() 101 …static_assert(std::is_same<decltype(c32_a * c64_a), decltype(c64_a * c32_a)>::value, "* should res… in c2_cntr_static_test() [all …]
|
/aosp12/art/libartbase/base/ |
H A D | transform_array_ref_test.cc | 45 using TarefIter = decltype(taref)::iterator; in TEST() 46 using ConstTarefIter = decltype(taref)::const_iterator; in TEST() 47 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST() 48 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST() 49 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST() 50 static_assert(std::is_same<ConstTarefIter, decltype(taref)::const_pointer>::value, in TEST() 86 using TarefIter = decltype(taref)::iterator; in TEST() 90 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST() 123 static_assert(std::is_same<int*, decltype(taref)::pointer>::value, "pointer"); in TEST() 126 static_assert(std::is_same<const int&, decltype(taref)::const_reference>::value, in TEST() [all …]
|
H A D | transform_iterator_test.cc | 136 decltype(MakeTransformIterator(input.cbegin(), add1)) cit = it; in TEST() 137 static_assert(!std::is_same<decltype(it), decltype(cit)>::value, "Types must be different"); in TEST() 140 decltype(MakeTransformIterator(input.crbegin(), add1)) crit(rit); in TEST() 141 static_assert(!std::is_same<decltype(rit), decltype(crit)>::value, "Types must be different"); in TEST() 204 decltype(MakeTransformIterator(input.cbegin(), sub1)) cit = it; in TEST() 205 static_assert(!std::is_same<decltype(it), decltype(cit)>::value, "Types must be different"); in TEST() 242 decltype(MakeTransformIterator(input.cbegin(), mul3)) cit = it; in TEST() 243 static_assert(!std::is_same<decltype(it), decltype(cit)>::value, "Types must be different"); in TEST() 502 decltype(MakeTransformIterator(input.cbegin(), ref)) cit = it; in TEST() 503 static_assert(!std::is_same<decltype(it), decltype(cit)>::value, "Types must be different"); in TEST() [all …]
|
H A D | iteration_range.h | 54 inline auto MakeIterationRange(List& list) -> IterationRange<decltype(list.begin())> { 55 static_assert(std::is_same_v<decltype(list.begin()), decltype(list.end())>, 67 typedef typename std::reverse_iterator<decltype(c.begin())> riter; in ReverseRange()
|
/aosp12/art/runtime/ |
H A D | experimental_flags.h | 33 constexpr ExperimentalFlags(decltype(kNone) t) // NOLINT [runtime/explicit] in ExperimentalFlags() 36 constexpr operator decltype(kNone)() const { in decltype() function 37 return static_cast<decltype(kNone)>(value_); in decltype() 44 constexpr ExperimentalFlags operator|(const decltype(kNone)& b) const { 45 return static_cast<decltype(kNone)>(value_ | static_cast<uint32_t>(b)); 48 return static_cast<decltype(kNone)>(value_ | b.value_); 52 return static_cast<decltype(kNone)>(value_ & b.value_); 54 constexpr ExperimentalFlags operator&(const decltype(kNone)& b) const { in decltype() function 55 return static_cast<decltype(kNone)>(value_ & static_cast<uint32_t>(b)); in decltype() 78 inline std::ostream& operator<<(std::ostream& stream, const decltype(ExperimentalFlags::kNone)& e) {
|
/aosp12/frameworks/native/libs/gui/ |
H A D | IGraphicBufferConsumer.cpp | 69 using Signature = decltype(&IGraphicBufferConsumer::acquireBuffer); in acquireBuffer() 74 using Signature = decltype(&IGraphicBufferConsumer::detachBuffer); in detachBuffer() 79 using Signature = decltype(&IGraphicBufferConsumer::attachBuffer); in attachBuffer() 91 using Signature = decltype(&IGraphicBufferConsumer::consumerConnect); in consumerConnect() 96 return callRemote<decltype(&IGraphicBufferConsumer::consumerDisconnect)>( in consumerDisconnect() 101 using Signature = decltype(&IGraphicBufferConsumer::getReleasedBuffers); in getReleasedBuffers() 106 using Signature = decltype(&IGraphicBufferConsumer::setDefaultBufferSize); in setDefaultBufferSize() 111 using Signature = decltype(&IGraphicBufferConsumer::setMaxBufferCount); in setMaxBufferCount() 121 using Signature = decltype(&IGraphicBufferConsumer::setConsumerName); in setConsumerName() 146 using Signature = decltype(&IGraphicBufferConsumer::setTransformHint); in setTransformHint() [all …]
|
H A D | IConsumerListener.cpp | 47 callRemoteAsync<decltype(&IConsumerListener::onDisconnect)>(Tag::ON_DISCONNECT); in onDisconnect() 51 callRemoteAsync<decltype(&IConsumerListener::onFrameDequeued)>(Tag::ON_FRAME_DEQUEUED, in onFrameDequeued() 56 callRemoteAsync<decltype(&IConsumerListener::onFrameDetached)>(Tag::ON_FRAME_DETACHED, in onFrameDetached() 61 callRemoteAsync<decltype(&IConsumerListener::onFrameCancelled)>(Tag::ON_FRAME_CANCELLED, in onFrameCancelled() 66 callRemoteAsync<decltype(&IConsumerListener::onFrameAvailable)>(Tag::ON_FRAME_AVAILABLE, in onFrameAvailable() 71 callRemoteAsync<decltype(&IConsumerListener::onFrameReplaced)>(Tag::ON_FRAME_REPLACED, in onFrameReplaced() 76 callRemoteAsync<decltype(&IConsumerListener::onBuffersReleased)>(Tag::ON_BUFFERS_RELEASED); in onBuffersReleased() 80 callRemoteAsync<decltype(&IConsumerListener::onSidebandStreamChanged)>( in onSidebandStreamChanged()
|
H A D | ISurfaceComposerClient.cpp | 54 return callRemote<decltype(&ISurfaceComposerClient::createSurface)>(Tag::CREATE_SURFACE, in createSurface() 68 return callRemote<decltype( in createWithSurfaceParent() 77 return callRemote<decltype( in clearLayerFrameStats() 83 return callRemote<decltype( in getLayerFrameStats() 90 return callRemote<decltype(&ISurfaceComposerClient::mirrorSurface)>(Tag::MIRROR_SURFACE, in mirrorSurface()
|
H A D | IDisplayEventConnection.cpp | 42 return callRemote<decltype( in stealReceiveChannel() 48 return callRemote<decltype(&IDisplayEventConnection::setVsyncRate)>(Tag::SET_VSYNC_RATE, in setVsyncRate() 53 callRemoteAsync<decltype(&IDisplayEventConnection::requestNextVsync)>( in requestNextVsync()
|
/aosp12/art/libdexfile/dex/ |
H A D | dex_file_types.h | 34 constexpr DexIndex() : index_(std::numeric_limits<decltype(index_)>::max()) {} in DexIndex() 38 return index_ != std::numeric_limits<decltype(index_)>::max(); in IsValid() 41 return DexIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 66 explicit constexpr ProtoIndex(uint16_t index) : DexIndex<decltype(index_)>(index) {} in ProtoIndex() 68 return ProtoIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 76 explicit constexpr StringIndex(uint32_t index) : DexIndex<decltype(index_)>(index) {} in StringIndex() 78 return StringIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 88 return TypeIndex(std::numeric_limits<decltype(index_)>::max()); in Invalid() 100 return hash<decltype(index.index_)>()(index.index_); 106 return hash<decltype(index.index_)>()(index.index_); [all …]
|
/aosp12/system/media/audio_utils/include/audio_utils/ |
H A D | intrinsic_utils.h | 101 if constexpr (std::is_array_v<decltype(retval)>) { in vdupn() 104 val = vdupn<std::decay_t<decltype(val)>>(f); in vdupn() 109 using r1_type = std::decay_t<decltype(r1)>; in vdupn() 110 using r2_type = std::decay_t<decltype(r2)>; in vdupn() 138 if constexpr (std::is_array_v<decltype(retval)>) { in vld1() 149 using r1_type = std::decay_t<decltype(r1)>; in vld1() 150 using r2_type = std::decay_t<decltype(r2)>; in vld1() 182 if constexpr (std::is_array_v<decltype(retval)>) { in vmla() 222 if constexpr (std::is_array_v<decltype(retval)>) { in vmul() 260 if constexpr (std::is_array_v<decltype(retval)>) { in vneg() [all …]
|
/aosp12/system/update_engine/payload_consumer/ |
H A D | certificate_parser_android.cc | 39 std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration); in IterateZipEntriesAndSearchForKeys() 71 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>* in ReadPublicKeysFromCertificates() 92 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> result; in ReadPublicKeysFromCertificates() 94 std::unique_ptr<BIO, decltype(&BIO_free)> input( in ReadPublicKeysFromCertificates() 97 std::unique_ptr<X509, decltype(&X509_free)> x509( in ReadPublicKeysFromCertificates() 104 std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> public_key( in ReadPublicKeysFromCertificates()
|
/aosp12/frameworks/native/libs/binder/ndk/include_cpp/android/ |
H A D | binder_to_string.h | 72 static auto _test(int) -> decltype(std::declval<_U>().toString(), std::true_type()); 77 enum { value = decltype(_test<_T>(0))::value }; 84 static auto _test(int) -> decltype(toString(std::declval<_U>()), std::true_type()); 89 enum { value = decltype(_test<_T>(0))::value }; 118 enum { value = decltype(_test<_T>(0))::value }; 126 -> decltype(begin(std::declval<_U>()), end(std::declval<_U>()), std::true_type()); 131 enum { value = decltype(_test<_T>(0))::value }; 153 enum { value = decltype(_test<_T>(0))::value };
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_os_SystemClock.cpp | 38 static_assert(std::is_same<decltype(uptimeMillis()), int64_t>::value, 40 static_assert(std::is_same<decltype(uptimeNanos()), int64_t>::value, 42 static_assert(std::is_same<decltype(elapsedRealtime()), int64_t>::value, 44 static_assert(std::is_same<decltype(elapsedRealtimeNano()), int64_t>::value,
|
/aosp12/frameworks/native/libs/vr/libpdx/ |
H A D | serialization_tests.cpp | 716 expected = decltype(expected)( in TEST() 881 value = decltype(value)((1 << 4), 'x'); in TEST() 897 value = decltype(value)((1 << 16), 'x'); in TEST() 1070 value = decltype(value)((1 << 4), 'x'); in TEST() 1088 value = decltype(value)((1 << 16), 'x'); in TEST() 1190 expected = decltype(expected)( in TEST() 1206 expected = decltype(expected)( in TEST() 1220 expected = decltype(expected)( in TEST() 1917 buffer = decltype(buffer)( in TEST() 2027 expected = decltype(expected)(0xffff, 1); in TEST() [all …]
|
/aosp12/hardware/qcom/sdm845/display/libhistogram/ |
H A D | ringbuffer.cpp | 61 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 73 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after()
|
/aosp12/hardware/qcom/sm8150/display/libhistogram/ |
H A D | ringbuffer.cpp | 61 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 73 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 83 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 90 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 96 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 107 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after()
|
/aosp12/hardware/qcom/sm7250/display/libhistogram/ |
H A D | ringbuffer.cpp | 68 std::unique_lock<decltype(mutex)> lk(mutex); in insert() 84 std::unique_lock<decltype(mutex)> lk(mutex); in resize() 94 std::unique_lock<decltype(mutex)> lk(mutex); in collect_cumulative() 101 std::unique_lock<decltype(mutex)> lk(mutex); in collect_ringbuffer_all() 106 std::unique_lock<decltype(mutex)> lk(mutex); in collect_after() 111 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max() 117 std::unique_lock<decltype(mutex)> lk(mutex); in collect_max_after()
|
/aosp12/system/tools/aidl/tests/ |
H A D | aidl_test_client_utf8_strings.cpp | 71 decltype(input) repeated; in TEST_F() 73 repeated = decltype(input)(input.size()); in TEST_F() 75 decltype(input) reversed; in TEST_F() 81 decltype(input) reversed_input(input); in TEST_F() 92 decltype(input) repeated; in DoTest() 93 decltype(input) reversed; in DoTest()
|
/aosp12/frameworks/base/libs/hwui/thread/ |
H A D | CommonPool.h | 87 static auto async(F&& func) -> std::future<decltype(func())> { 88 typedef std::packaged_task<decltype(func())()> task_t; 95 static auto runSync(F&& func) -> decltype(func()) { 96 std::packaged_task<decltype(func())()> task{std::forward<F>(func)};
|
/aosp12/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
H A D | confirmationui_utils.h | 123 static int* f(const U* u, decltype(u->data())) { 126 static constexpr bool value = std::is_pointer<decltype(f((T*)nullptr, ""))>::value; 131 ByteBufferProxy(const T& buffer, decltype(buffer.data()) = nullptr) 133 static_assert(sizeof(decltype(*buffer.data())) == 1, "elements to large"); 140 std::enable_if_t<!has_data<T>::value, decltype(buffer.c_str())> = nullptr) 142 static_assert(sizeof(decltype(*buffer.c_str())) == 1, "elements to large");
|
/aosp12/system/keymaster/ng/include/ |
H A D | keymaster_tags.h | 199 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 203 ->const decltype(param.field_name)& { \ 208 ->decltype(param.field_name)& { \ 222 template <> struct TypedTag2ValueType<decltype(typed_tag)> { \ 223 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 225 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \ 226 ->const decltype(param.field_name)& { \ 229 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \ 230 ->decltype(param.field_name)& { \
|
/aosp12/hardware/interfaces/keymaster/3.0/vts/functional/ |
H A D | keymaster_tags.h | 182 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 186 ->const decltype(param.field_name)& { \ 191 ->decltype(param.field_name)& { \ 205 template <> struct TypedTag2ValueType<decltype(typed_tag)> { \ 206 typedef decltype(static_cast<KeyParameter*>(nullptr)->field_name) type; \ 208 inline auto accessTagValue(decltype(typed_tag), const KeyParameter& param) \ 209 ->const decltype(param.field_name)& { \ 212 inline auto accessTagValue(decltype(typed_tag), KeyParameter& param) \ 213 ->decltype(param.field_name)& { \
|
/aosp12/art/cmdline/detail/ |
H A D | cmdline_parser_detail.h | 38 … std::remove_reference<decltype(os << value)>* = 0); // NOLINT [whitespace/operators] [3] 45 decltype(InsertionOperatorTest(FakeReference<TStream2>(), std::declval<T2>()))::value; 56 … std::remove_reference<decltype(left == right)>* = 0); // NOLINT [whitespace/operators] [3] 63 decltype(EqualityOperatorTest(std::declval<TLeft>(), std::declval<TRight>()))::value;
|
/aosp12/art/libdexfile/external/ |
H A D | dex_file_supp.cc | 37 #define DEFINE_ADEX_FILE_SYMBOL(DLFUNC) decltype(DLFUNC)* g_##DLFUNC = DLFUNC; 39 #define DEFINE_ADEX_FILE_SYMBOL(DLFUNC) decltype(DLFUNC)* g_##DLFUNC = nullptr; 74 auto DLFUNC##_ptr = reinterpret_cast<decltype(DLFUNC)*>(dlsym(handle, #DLFUNC)); \ in FOR_EACH_ADEX_FILE_SYMBOL()
|