Home
last modified time | relevance | path

Searched refs:is_same (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/av/media/codec2/tests/
DC2_test.cpp33 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");
44 static_assert(std::is_same<decltype(min_u32_u32), const uint32_t>::value, "should be uint32_t");
46 static_assert(std::is_same<decltype(min_u32_u64), const uint32_t>::value, "should be uint32_t");
48 static_assert(std::is_same<decltype(min_u32_u8), const uint8_t>::value, "should be uint8_t");
55 static_assert(std::is_same<decltype(max_i32_i32), const int32_t>::value, "should be int32_t");
57 static_assert(std::is_same<decltype(max_i32_i64), const int64_t>::value, "should be int64_t");
59 static_assert(std::is_same<decltype(max_i8_i32), const int32_t>::value, "should be int32_t");
66 static_assert(std::is_same<decltype(max_u32_u32), const uint32_t>::value, "should be uint32_t");
[all …]
DC2ComponentInterface_test.cpp353 static_assert(std::is_same<TStorage, int32_t>::value || in getTestValues()
354 std::is_same<TStorage, uint32_t>::value || in getTestValues()
355 std::is_same<TStorage, int64_t>::value || in getTestValues()
356 std::is_same<TStorage, uint64_t>::value || in getTestValues()
357 std::is_same<TStorage, float>::value, "Invalid TField type."); in getTestValues()
390 if (std::is_same<TField, float>::value) { in getTestValues()
428 if (std::is_same<TField, float>::value) { in getTestValues()
DC2Param_test.cpp275 std::is_same<T, int32_t>::value ? FD::INT32 :
276 std::is_same<T, int64_t>::value ? FD::INT64 :
277 std::is_same<T, uint32_t>::value ? FD::UINT32 :
278 std::is_same<T, uint64_t>::value ? FD::UINT64 :
279 std::is_same<T, float>::value ? FD::FLOAT :
280 std::is_same<T, uint8_t>::value ? FD::BLOB :
281 std::is_same<T, char>::value ? FD::STRING :
282 std::is_same<T, C2SizeStruct>::value ? C2SizeStruct::TYPE : (type_t)0;
645 static_assert(std::is_same<B, int32_t>::value, "should be int32_t"); in S32()
654 static_assert(std::is_same<B, U>::value, "should be type U"); in FLX()
[all …]
/frameworks/base/core/jni/
Dandroid_os_SystemClock.cpp37 static_assert(std::is_same<int64_t, jlong>::value, "jlong isn't an int64_t");
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,
/frameworks/av/media/module/foundation/tests/
DTypeTraits_test.cpp92 static_assert(std::is_same<uint64_t, typename underlying_integral_type<uint64_t>::type>::value, in TEST_F()
94 static_assert(std::is_same<uint32_t, typename underlying_integral_type<UA>::type>::value, in TEST_F()
96 static_assert(std::is_same<int64_t, typename underlying_integral_type<int64_t>::type>::value, in TEST_F()
98 static_assert(std::is_same<int32_t, typename underlying_integral_type<IA>::type>::value, in TEST_F()
101 static_assert(std::is_same<void, typename underlying_integral_type<float, void>::type>::value, in TEST_F()
/frameworks/native/vulkan/libvulkan/
Ddriver.h202 std::is_same<DispatchableType, VkInstance>::value || in StaticAssertDispatchable()
203 std::is_same<DispatchableType, VkPhysicalDevice>::value || in StaticAssertDispatchable()
204 std::is_same<DispatchableType, VkDevice>::value || in StaticAssertDispatchable()
205 std::is_same<DispatchableType, InstanceDispatchable>::value || in StaticAssertDispatchable()
206 std::is_same<DispatchableType, VkQueue>::value || in StaticAssertDispatchable()
207 std::is_same<DispatchableType, VkCommandBuffer>::value || in StaticAssertDispatchable()
208 std::is_same<DispatchableType, DeviceDispatchable>::value, in StaticAssertDispatchable()
Ddebug_report.h135 if (std::is_same<ObjectType, VkInstance>::value) in GetObjectType()
137 else if (std::is_same<ObjectType, VkPhysicalDevice>::value) in GetObjectType()
139 else if (std::is_same<ObjectType, VkDevice>::value) in GetObjectType()
/frameworks/av/media/libaudioprocessing/tests/
Dtest_utils.h34 struct is_same struct
40 struct is_same<T, T> // partial specialization argument
48 if (is_same<T, int16_t>::value) {
50 } else if (is_same<T, int32_t>::value) {
282 if (is_same<T, float>::value) {
284 } else if (is_same<T, short>::value) {
/frameworks/av/media/libmediahelper/include/media/
DTypeConverter.h479 template <typename T, std::enable_if_t<std::is_same<T, audio_content_type_t>::value
480 || std::is_same<T, audio_devices_t>::value
481 || std::is_same<T, audio_mode_t>::value
482 || std::is_same<T, audio_source_t>::value
483 || std::is_same<T, audio_stream_type_t>::value
484 || std::is_same<T, audio_usage_t>::value
485 || std::is_same<T, audio_format_t>::value
496 template <typename T, std::enable_if_t<std::is_same<T, audio_gain_mode_t>::value
497 || std::is_same<T, audio_input_flags_t>::value
498 || std::is_same<T, audio_output_flags_t>::value
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DALookup.h33 template<typename V, typename = typename std::enable_if<!std::is_same<T, V>::value>::type>
36 template<typename V, typename = typename std::enable_if<!std::is_same<T, V>::value>::type>
DAData.h245 using enable_if_T_is_same_as = typename std::enable_if<std::is_same<U, T>::value>::type;
292 static_assert(std::is_same<Tp, void>::value, in assign()
342 using enable_if_T_is_same_as = typename std::enable_if<std::is_same<U, T>::value>::type;
374 static_assert(std::is_same<Tp, void>::value,
387 static_assert(std::is_same<Tp, void>::value,
917 if (this->flags() == Flagger::flagFor((T*)0) && std::is_same<T, B>::value) {
948 if (this->flags() == Flagger::flagFor((T*)0) && std::is_same<T, B>::value) {
/frameworks/base/tools/aapt2/dump/
DDumpManifest.cpp2904 std::make_pair("action", std::is_same<Action, T>::value), in GetExpectedTagForType()
2905 std::make_pair("activity", std::is_same<Activity, T>::value), in GetExpectedTagForType()
2906 std::make_pair("additional-certificate", std::is_same<AdditionalCertificate, T>::value), in GetExpectedTagForType()
2907 std::make_pair("application", std::is_same<Application, T>::value), in GetExpectedTagForType()
2908 std::make_pair("category", std::is_same<Category, T>::value), in GetExpectedTagForType()
2909 std::make_pair("compatible-screens", std::is_same<CompatibleScreens, T>::value), in GetExpectedTagForType()
2910 std::make_pair("feature-group", std::is_same<FeatureGroup, T>::value), in GetExpectedTagForType()
2911 std::make_pair("input-type", std::is_same<InputType, T>::value), in GetExpectedTagForType()
2912 std::make_pair("install-constraints", std::is_same<InstallConstraints, T>::value), in GetExpectedTagForType()
2913 std::make_pair("intent-filter", std::is_same<IntentFilter, T>::value), in GetExpectedTagForType()
[all …]
/frameworks/native/services/surfaceflinger/
DTracedOrdinal.h59 static_assert(std::is_same<bool, T>() || (std::is_signed<T>() && std::is_integral<T>()) ||
60 std::is_same<std::chrono::nanoseconds, T>() || std::is_enum<T>(),
/frameworks/av/media/libmediametrics/include/media/
DMediaMetricsItem.h292 std::is_same<T, int32_t>::value
293 || std::is_same<T, int64_t>::value
294 || std::is_same<T, double>::value
295 || std::is_same<T, std::pair<int64_t, int64_t>>:: value
296 || std::is_same<T, std::string>::value
297 || std::is_same<T, std::monostate>::value;
304 std::is_same<T, int32_t>::value ? kTypeInt32
305 : std::is_same<T, int64_t>::value ? kTypeInt64
306 : std::is_same<T, double>::value ? kTypeDouble
307 : std::is_same<T, std::pair<int64_t, int64_t>>:: value ? kTypeRate
[all …]
/frameworks/av/media/libaudiofoundation/include/media/
DDeviceDescriptorBase.h91 template <typename T, std::enable_if_t<std::is_same<T, struct audio_port>::value
92 || std::is_same<T, struct audio_port_v7>::value, int> = 0>
DAudioPort.h154 template <typename T, std::enable_if_t<std::is_same<T, struct audio_port>::value
155 || std::is_same<T, struct audio_port_v7>::value, int> = 0>
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirOps.h54 struct is_same struct
60 struct is_same<T, T> // partial specialization argument
/frameworks/av/media/libmediahelper/
DAudioValidator.cpp69 template <typename T, std::enable_if_t<std::is_same<T, struct audio_port>::value
70 || std::is_same<T, struct audio_port_v7>::value, int> = 0>
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSoftOMXComponent.h177 static_assert(std::is_same< decltype(a->nSize), OMX_U32>::value, "nSize has wrong type"); in isValidOMXParam()
179 static_assert(std::is_same< decltype(a->nVersion), OMX_VERSIONTYPE>::value, in isValidOMXParam()
/frameworks/native/libs/gralloc/types/
DGralloc4.cpp335 static_assert(std::is_same<T, uint32_t>::value || std::is_same<T, int32_t>::value || in encodeInteger()
336 std::is_same<T, uint64_t>::value || std::is_same<T, int64_t>::value || in encodeInteger()
337 std::is_same<T, float>::value || std::is_same<T, double>::value); in encodeInteger()
348 static_assert(std::is_same<T, uint32_t>::value || std::is_same<T, int32_t>::value || in decodeInteger()
349 std::is_same<T, uint64_t>::value || std::is_same<T, int64_t>::value || in decodeInteger()
350 std::is_same<T, float>::value || std::is_same<T, double>::value); in decodeInteger()
/frameworks/av/media/codec2/core/include/
DC2ParamDef.h770 if (arrayLen && std::is_same<T, char>::value) {
783 if (arrayLen && std::is_same<T, char>::value) {
799 if (arrayLen && std::is_same<T, char>::value) {
814 if (arrayLen && std::is_same<T, char>::value) {
833 static_assert(std::is_same<T, char>::value || std::is_same<T, uint8_t>::value,
872 static_assert(!std::is_same<T, char>::value && !std::is_same<T, uint8_t>::value,
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dfind_replace.h17 using IsSameBaseType = typename std::is_same<typename std::decay<T>::type,
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DDeviceDescriptor.h101 template <typename T, std::enable_if_t<std::is_same<T, struct audio_port>::value
102 || std::is_same<T, struct audio_port_v7>::value, int> = 0>
/frameworks/minikin/include/minikin/
DSparseBitSet.h116 static_assert(std::is_same<element, uint32_t>::value); in calcSize()
/frameworks/native/libs/math/tests/
Dmat_test.cpp487 if (std::is_same<TypeParam,float>::value) { \
491 } else if (std::is_same<TypeParam,double>::value) { \
508 if (std::is_same<TypeParam,float>::value) { \
510 } else if (std::is_same<TypeParam,double>::value) { \

12