Home
last modified time | relevance | path

Searched refs:static_assert (Results 1 – 25 of 74) sorted by relevance

123

/hardware/google/av/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");
39 static_assert(c2_const_checker<min_i32_i32>::num() == 1, "should be 1");
40 static_assert(c2_const_checker<min_i32_i64>::num() == 2, "should be 2");
41 static_assert(c2_const_checker<min_i8_i32>::num() == 0xffffffff, "should be 0xffffffff");
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");
50 static_assert(c2_const_checker<min_u32_u32>::num() == 1, "should be 1");
[all …]
DC2Param_test.cpp636 static_assert(!std::is_array<T>::value, "should not be an array"); in S32()
637 static_assert(std::is_same<B, int32_t>::value, "should be int32_t"); in S32()
644 static_assert(std::is_array<T>::value, "should be an array"); in FLX()
645 static_assert(std::extent<T>::value == 0, "should be an array of 0 extent"); in FLX()
646 static_assert(std::is_same<B, U>::value, "should be type U"); in FLX()
653static_assert(!std::is_same<U, UnexpectedU>::value, "should not be member pointer of the base type… in MP()
654static_assert(std::is_same<U, ExpectedU>::value, "should be member pointer of the derived type"); in MP()
669 static_assert(std::is_same<decltype(&C2TestAInfo::signed32), int32_t C2TestAStruct::*>::value, in compiledStatic_arrayTypePropagationTest()
686 static_assert(offsetof(C2TestAInfo, signed32) == 8, "offset should be 8"); in TEST_F()
705 static_assert(offsetof(C2TestFlexEndSizeInfo, m.signed32) == 8, "offset should be 8"); in TEST_F()
[all …]
DC2UtilTest.cpp32 static_assert(0 == _C2_ARGC(), "should be 0");
33 static_assert(1 == _C2_ARGC(1), "should be 1");
34 static_assert(2 == _C2_ARGC(1, 2), "should be 2");
35 static_assert(64 == _C2_ARGC(
40 static_assert(0 == _C2_ARGC(,), "should be 0");
41 static_assert(1 == _C2_ARGC(1,), "should be 1");
42 static_assert(2 == _C2_ARGC(1, 2,), "should be 2");
43 static_assert(64 == _C2_ARGC(
/hardware/interfaces/tv/cec/1.0/default/
DHdmiCec.cpp31 static_assert(CEC_DEVICE_INACTIVE == static_cast<int>(CecDeviceType::INACTIVE),
33 static_assert(CEC_DEVICE_TV == static_cast<int>(CecDeviceType::TV),
35 static_assert(CEC_DEVICE_RECORDER == static_cast<int>(CecDeviceType::RECORDER),
37 static_assert(CEC_DEVICE_TUNER == static_cast<int>(CecDeviceType::TUNER),
39 static_assert(CEC_DEVICE_PLAYBACK == static_cast<int>(CecDeviceType::PLAYBACK),
41 static_assert(CEC_DEVICE_AUDIO_SYSTEM == static_cast<int>(CecDeviceType::AUDIO_SYSTEM),
43 static_assert(CEC_DEVICE_MAX == static_cast<int>(CecDeviceType::MAX),
46 static_assert(CEC_ADDR_TV == static_cast<int>(CecLogicalAddress::TV),
48 static_assert(CEC_ADDR_RECORDER_1 == static_cast<int>(CecLogicalAddress::RECORDER_1),
50 static_assert(CEC_ADDR_RECORDER_2 == static_cast<int>(CecLogicalAddress::RECORDER_2),
[all …]
/hardware/interfaces/tv/cec/2.0/default/
DHdmiCec.cpp31 static_assert(CEC_DEVICE_INACTIVE == static_cast<int>(CecDeviceType::INACTIVE),
33 static_assert(CEC_DEVICE_TV == static_cast<int>(CecDeviceType::TV),
35 static_assert(CEC_DEVICE_RECORDER == static_cast<int>(CecDeviceType::RECORDER),
37 static_assert(CEC_DEVICE_TUNER == static_cast<int>(CecDeviceType::TUNER),
39 static_assert(CEC_DEVICE_PLAYBACK == static_cast<int>(CecDeviceType::PLAYBACK),
41 static_assert(CEC_DEVICE_AUDIO_SYSTEM == static_cast<int>(CecDeviceType::AUDIO_SYSTEM),
47 static_assert(CEC_ADDR_TV == static_cast<int>(CecLogicalAddress::TV),
49 static_assert(CEC_ADDR_RECORDER_1 == static_cast<int>(CecLogicalAddress::RECORDER_1),
51 static_assert(CEC_ADDR_RECORDER_2 == static_cast<int>(CecLogicalAddress::RECORDER_2),
53 static_assert(CEC_ADDR_TUNER_1 == static_cast<int>(CecLogicalAddress::TUNER_1),
[all …]
/hardware/google/av/codec2/tests/vndk/
DC2BufferTest.cpp32 static_assert(C2Segment(123u, 456u).offset == 123, ""); in StaticSegmentTest()
33 static_assert(C2Segment(123u, 456u).size == 456, ""); in StaticSegmentTest()
36 static_assert(!C2Segment(123u, 456u).isEmpty(), ""); in StaticSegmentTest()
37 static_assert(C2Segment(123u, 0u).isEmpty(), ""); in StaticSegmentTest()
40 static_assert(C2Segment(123u, 456u).isValid(), ""); in StaticSegmentTest()
41 static_assert(C2Segment(123u, ~123u).isValid(), ""); in StaticSegmentTest()
42 static_assert(!C2Segment(123u, 1 + ~123u).isValid(), ""); in StaticSegmentTest()
45 static_assert(C2Segment(123u, 456u), ""); in StaticSegmentTest()
46 static_assert((bool)C2Segment(123u, ~123u), ""); in StaticSegmentTest()
47 static_assert(!bool(C2Segment(123u, 1 + ~123u)), ""); in StaticSegmentTest()
[all …]
/hardware/interfaces/broadcastradio/1.0/default/
DUtils.cpp38 static_assert(RADIO_CLASS_AM_FM == static_cast<int>(Class::AM_FM),
40 static_assert(RADIO_CLASS_SAT == static_cast<int>(Class::SAT),
42 static_assert(RADIO_CLASS_DT == static_cast<int>(Class::DT),
45 static_assert(RADIO_BAND_AM == static_cast<int>(Band::AM),
47 static_assert(RADIO_BAND_FM == static_cast<int>(Band::FM),
49 static_assert(RADIO_BAND_AM_HD == static_cast<int>(Band::AM_HD),
51 static_assert(RADIO_BAND_FM_HD == static_cast<int>(Band::FM_HD),
54 static_assert(RADIO_RDS_NONE == static_cast<int>(Rds::NONE),
56 static_assert(RADIO_RDS_WORLD == static_cast<int>(Rds::WORLD),
58 static_assert(RADIO_RDS_US == static_cast<int>(Rds::US),
[all …]
/hardware/interfaces/tv/input/1.0/default/
DTvInput.cpp29 static_assert(TV_INPUT_TYPE_OTHER_HARDWARE == static_cast<int>(TvInputType::OTHER),
31 static_assert(TV_INPUT_TYPE_TUNER == static_cast<int>(TvInputType::TUNER),
33 static_assert(TV_INPUT_TYPE_COMPOSITE == static_cast<int>(TvInputType::COMPOSITE),
35 static_assert(TV_INPUT_TYPE_SVIDEO == static_cast<int>(TvInputType::SVIDEO),
37 static_assert(TV_INPUT_TYPE_SCART == static_cast<int>(TvInputType::SCART),
39 static_assert(TV_INPUT_TYPE_COMPONENT == static_cast<int>(TvInputType::COMPONENT),
41 static_assert(TV_INPUT_TYPE_VGA == static_cast<int>(TvInputType::VGA),
43 static_assert(TV_INPUT_TYPE_DVI == static_cast<int>(TvInputType::DVI),
45 static_assert(TV_INPUT_TYPE_HDMI == static_cast<int>(TvInputType::HDMI),
47 static_assert(TV_INPUT_TYPE_DISPLAY_PORT == static_cast<int>(TvInputType::DISPLAY_PORT),
[all …]
/hardware/interfaces/wifi/1.0/vts/functional/
Dwifi_hidl_call_util_selftest.cpp76 static_assert(std::is_same<int, detail::functionArgSaver<
80 static_assert(
85 static_assert(
91 static_assert(std::is_same<Dummy, detail::functionArgSaver<std::function<
/hardware/google/interfaces/light/1.0/default/
DLight.cpp31 static_assert(LIGHT_FLASH_NONE == static_cast<int>(Flash::NONE),
33 static_assert(LIGHT_FLASH_TIMED == static_cast<int>(Flash::TIMED),
35 static_assert(LIGHT_FLASH_HARDWARE == static_cast<int>(Flash::HARDWARE),
38 static_assert(BRIGHTNESS_MODE_USER == static_cast<int>(Brightness::USER),
40 static_assert(BRIGHTNESS_MODE_SENSOR == static_cast<int>(Brightness::SENSOR),
42 static_assert(BRIGHTNESS_MODE_LOW_PERSISTENCE ==
/hardware/google/interfaces/light/1.1/default/
DLight.cpp31 static_assert(LIGHT_FLASH_NONE == static_cast<int>(Flash::NONE),
33 static_assert(LIGHT_FLASH_TIMED == static_cast<int>(Flash::TIMED),
35 static_assert(LIGHT_FLASH_HARDWARE == static_cast<int>(Flash::HARDWARE),
38 static_assert(BRIGHTNESS_MODE_USER == static_cast<int>(Brightness::USER),
40 static_assert(BRIGHTNESS_MODE_SENSOR == static_cast<int>(Brightness::SENSOR),
42 static_assert(BRIGHTNESS_MODE_LOW_PERSISTENCE ==
/hardware/interfaces/light/2.0/default/
DLight.cpp31 static_assert(LIGHT_FLASH_NONE == static_cast<int>(Flash::NONE),
33 static_assert(LIGHT_FLASH_TIMED == static_cast<int>(Flash::TIMED),
35 static_assert(LIGHT_FLASH_HARDWARE == static_cast<int>(Flash::HARDWARE),
38 static_assert(BRIGHTNESS_MODE_USER == static_cast<int>(Brightness::USER),
40 static_assert(BRIGHTNESS_MODE_SENSOR == static_cast<int>(Brightness::SENSOR),
42 static_assert(BRIGHTNESS_MODE_LOW_PERSISTENCE ==
/hardware/interfaces/boot/1.1/default/boot_control/include/private/
Dboot_control_definition.h52 static_assert(sizeof(struct bootloader_message_ab) == 4096,
107 static_assert(sizeof(struct bootloader_control) ==
/hardware/ti/am57x/bootctrl/
Dbootloader_message.h87 static_assert(sizeof(struct bootloader_message) == 2048,
124 static_assert(sizeof(struct bootloader_message_ab) == 4096,
177 static_assert(sizeof(struct bootloader_control) ==
/hardware/interfaces/cas/1.0/default/
DDescramblerImpl.cpp41 static_assert(sizeof(SubSample) == sizeof(type::SubSample), \
43 static_assert(offsetof(SubSample, numBytesOfClearData) \
46 static_assert(offsetof(SubSample, numBytesOfEncryptedData) \
/hardware/interfaces/cas/1.1/default/
DDescramblerImpl.cpp40 static_assert(sizeof(SubSample) == sizeof(type::SubSample), "SubSample: size doesn't match"); \
41 static_assert(offsetof(SubSample, numBytesOfClearData) == \
44 static_assert(offsetof(SubSample, numBytesOfEncryptedData) == \
/hardware/interfaces/cas/1.2/default/
DDescramblerImpl.cpp40 static_assert(sizeof(SubSample) == sizeof(type::SubSample), "SubSample: size doesn't match"); \
41 static_assert(offsetof(SubSample, numBytesOfClearData) == \
44 static_assert(offsetof(SubSample, numBytesOfEncryptedData) == \
/hardware/libhardware_legacy/include/hardware_legacy/
Dgscan.h10 #if !(__has_feature(cxx_static_assert)) && !defined(static_assert)
11 #define static_assert(__b, __m) \ macro
105 static_assert(MAX_BUCKETS <= 8 * sizeof(unsigned),
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dconfirmationui_utils.h133 static_assert(sizeof(decltype(*buffer.data())) == 1, "elements to large");
142 static_assert(sizeof(decltype(*buffer.c_str())) == 1, "elements to large");
148 static_assert(size > 0, "even an empty string must be 0-terminated"); in ByteBufferProxy()
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_tags.h91 static_assert(typeFromTag(tag) == tag_type, "mismatch between tag and tag_type"); in TypedTag()
255 static_assert(tag_type != TagType::BOOL || (sizeof...(args) == 0),
257 static_assert(tag_type == TagType::BOOL || (sizeof...(args) == 1),
259 static_assert(
322 static_assert(std::is_convertible<std::remove_reference_t<Default>,
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dkeymaster_tags.h92 static_assert(typeFromTag(tag) == tag_type, "mismatch between tag and tag_type"); in TypedTag()
267 static_assert(tag_type != TagType::BOOL || (sizeof...(args) == 0),
269 static_assert(tag_type == TagType::BOOL || (sizeof...(args) == 1),
271 static_assert(
350 static_assert(std::is_convertible<std::remove_reference_t<Default>,
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DValidateBurst.cpp329 static_assert( in isSanitized()
332 static_assert( in isSanitized()
335 static_assert(offsetof(FmqResultDatum::OperandInformation, numberOfDimensions) == 4, in isSanitized()
338 static_assert(sizeof(FmqResultDatum::OperandInformation::numberOfDimensions) == 4, in isSanitized()
341 static_assert(sizeof(FmqResultDatum::OperandInformation) == 8, in isSanitized()
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DValidateBurst.cpp335 static_assert( in isSanitized()
338 static_assert( in isSanitized()
341 static_assert(offsetof(FmqResultDatum::OperandInformation, numberOfDimensions) == 4, in isSanitized()
344 static_assert(sizeof(FmqResultDatum::OperandInformation::numberOfDimensions) == 4, in isSanitized()
347 static_assert(sizeof(FmqResultDatum::OperandInformation) == 8, in isSanitized()
/hardware/libhardware/tests/hardware/
Dstruct-size.cpp40 static_assert(sizeof(T) == mySize, "struct is the wrong size"); in CheckTypeSize()
Dstruct-last.cpp32 static_assert(sizeof(type) == calc_size + GET_PADDING(alignof(type), calc_size), \

123