Home
last modified time | relevance | path

Searched refs:TypeParam (Results 1 – 18 of 18) sorted by relevance

/system/media/audio_utils/tests/
Dintrinsic_tests.cpp29 constexpr TypeParam a = 0.25f; in TYPED_TEST()
30 constexpr TypeParam b = 0.5f; in TYPED_TEST()
31 constexpr TypeParam result = a + b; in TYPED_TEST()
36 constexpr TypeParam value = 1.f; in TYPED_TEST()
37 ASSERT_EQ(value, android::audio_utils::intrinsics::vdupn<TypeParam>(value)); in TYPED_TEST()
41 constexpr TypeParam value = 2.f; in TYPED_TEST()
42 ASSERT_EQ(value, android::audio_utils::intrinsics::vld1<TypeParam>(&value)); in TYPED_TEST()
46 constexpr TypeParam a = 2.125f; in TYPED_TEST()
47 constexpr TypeParam b = 2.25f; in TYPED_TEST()
48 constexpr TypeParam c = 2.5f; in TYPED_TEST()
[all …]
/system/unwinding/libunwindstack/tests/
DSymbolsTest.cpp42 template <typename TypeParam>
47 void InitSym(TypeParam* sym, uint32_t st_value, uint32_t st_size, uint32_t st_name) { in InitSym()
61 Symbols symbols(0x1000, sizeof(TypeParam), sizeof(TypeParam), 0x2000, 0x100); in TYPED_TEST_P()
63 TypeParam sym; in TYPED_TEST_P()
73 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
78 ASSERT_TRUE(symbols.GetName<TypeParam>(0x500f, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
83 ASSERT_FALSE(symbols.GetName<TypeParam>(0x4fff, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
84 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5010, &this->memory_, &name, &func_offset)); in TYPED_TEST_P()
88 Symbols symbols(0x1000, sizeof(TypeParam), sizeof(TypeParam), 0x2000, 0x100); in TYPED_TEST_P()
90 TypeParam sym; in TYPED_TEST_P()
[all …]
DDwarfSectionImplTest.cpp37 template <typename TypeParam>
43 section_.reset(new DwarfSectionImplFake<TypeParam>(memory)); in SetUp()
48 std::unique_ptr<DwarfSectionImplFake<TypeParam>> section_;
78 RegsImplFake<TypeParam> regs(10); in TYPED_TEST_P()
94 RegsImplFake<TypeParam> regs(10); in TYPED_TEST_P()
110 RegsImplFake<TypeParam> regs(10); in TYPED_TEST_P()
118 TypeParam cfa_value = 0x12345; in TYPED_TEST_P()
128 RegsImplFake<TypeParam> regs(10); in TYPED_TEST_P()
146 RegsImplFake<TypeParam> regs(10); in TYPED_TEST_P()
162 RegsImplFake<TypeParam> regs(10); in TYPED_TEST_P()
[all …]
DDwarfOpTest.cpp36 template <typename TypeParam>
44 op_.reset(new DwarfOp<TypeParam>(mem_.get(), &regular_memory_)); in SetUp()
51 std::unique_ptr<DwarfOp<TypeParam>> op_;
169 if (sizeof(TypeParam) == 8) { in TYPED_TEST_P()
180 if (sizeof(TypeParam) == 4) { in TYPED_TEST_P()
197 TypeParam value = 0x12345678; in TYPED_TEST_P()
217 TypeParam value = 0x12345678; in TYPED_TEST_P()
224 for (size_t i = 1; i < sizeof(TypeParam); i++) { in TYPED_TEST_P()
230 TypeParam expected_value = 0; in TYPED_TEST_P()
242 std::vector<uint8_t>{0x0a, 0x10, 0x20, 0x94, sizeof(TypeParam) + 1}); in TYPED_TEST_P()
[all …]
DDwarfOpLogTest.cpp36 template <typename TypeParam>
44 op_.reset(new DwarfOp<TypeParam>(mem_.get(), &regular_memory_)); in SetUp()
51 std::unique_ptr<DwarfOp<TypeParam>> op_;
DDwarfEhFrameWithHdrTest.cpp37 template <typename TypeParam>
38 class TestDwarfEhFrameWithHdr : public DwarfEhFrameWithHdr<TypeParam> {
41 : DwarfEhFrameWithHdr<TypeParam>(memory) {} in TestDwarfEhFrameWithHdr()
50 …void TestSetFdeInfo(uint64_t index, const typename DwarfEhFrameWithHdr<TypeParam>::FdeInfo& info) { in TestSetFdeInfo()
62 template <typename TypeParam>
68 eh_frame_.reset(new TestDwarfEhFrameWithHdr<TypeParam>(memory)); in SetUp()
73 std::unique_ptr<TestDwarfEhFrameWithHdr<TypeParam>> eh_frame_;
433 typename DwarfEhFrameWithHdr<TypeParam>::FdeInfo info; in TYPED_TEST_P()
448 TypeParam pc = 0x1000 * (i + 1); in TYPED_TEST_P()
461 TypeParam pc = 0x1000 * (i + 1); in TYPED_TEST_P()
[all …]
DDwarfEhFrameTest.cpp33 template <typename TypeParam>
39 eh_frame_.reset(new DwarfEhFrame<TypeParam>(memory)); in SetUp()
44 std::unique_ptr<DwarfEhFrame<TypeParam>> eh_frame_;
DDwarfCfaLogTest.cpp39 template <typename TypeParam>
61 cfa_.reset(new DwarfCfa<TypeParam>(dmem_.get(), &fde_, ARCH_UNKNOWN)); in SetUp()
66 std::unique_ptr<DwarfCfa<TypeParam>> cfa_;
214 uint8_t buffer[1 + sizeof(TypeParam)]; in TYPED_TEST_P()
216 TypeParam address; in TYPED_TEST_P()
219 if (std::is_same<TypeParam, uint32_t>::value) { in TYPED_TEST_P()
233 ASSERT_TRUE(this->cfa_->Log(0, this->fde_.pc_start, 0x50, 0x51 + sizeof(TypeParam))); in TYPED_TEST_P()
245 ASSERT_TRUE(this->cfa_->Log(0, this->fde_.pc_start, 0x50, 0x51 + sizeof(TypeParam))); in TYPED_TEST_P()
779 this->cfa_.reset(new DwarfCfa<TypeParam>(this->dmem_.get(), &this->fde_, ARCH_ARM64)); in TYPED_TEST_P()
DDwarfCfaTest.cpp39 template <typename TypeParam>
61 cfa_.reset(new DwarfCfa<TypeParam>(dmem_.get(), &fde_, ARCH_UNKNOWN)); in SetUp()
66 std::unique_ptr<DwarfCfa<TypeParam>> cfa_;
260 uint8_t buffer[1 + sizeof(TypeParam)]; in TYPED_TEST_P()
262 TypeParam address; in TYPED_TEST_P()
265 if (sizeof(TypeParam) == 4) { in TYPED_TEST_P()
280 this->cfa_->GetLocationInfo(this->fde_.pc_start, 0x50, 0x51 + sizeof(TypeParam), &loc_regs)); in TYPED_TEST_P()
281 ASSERT_EQ(0x51 + sizeof(TypeParam), this->dmem_->cur_offset()); in TYPED_TEST_P()
293 this->cfa_->GetLocationInfo(this->fde_.pc_start, 0x50, 0x51 + sizeof(TypeParam), &loc_regs)); in TYPED_TEST_P()
294 ASSERT_EQ(0x51 + sizeof(TypeParam), this->dmem_->cur_offset()); in TYPED_TEST_P()
[all …]
DRegsIterateTest.cpp201 std::vector<Register> expected = ExpectedRegisters<TypeParam>(); in TYPED_TEST()
202 TypeParam regs; in TYPED_TEST()
DDwarfDebugFrameTest.cpp35 template <typename TypeParam>
41 debug_frame_ = new DwarfDebugFrame<TypeParam>(memory); in SetUp()
48 DwarfDebugFrame<TypeParam>* debug_frame_ = nullptr;
/system/core/libutils/binder/
DStrongPointer_test.cpp56 sp<TypeParam> sp1 = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
57 TypeParam* foo = sp1.get(); in TYPED_TEST()
60 sp<TypeParam> sp2 = std::move(sp1); in TYPED_TEST()
70 sp<TypeParam> sp2 = std::move(sp1); in TYPED_TEST()
76 sp<TypeParam> foo; in TYPED_TEST()
83 sp<TypeParam> foo = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
92 sp<TypeParam> foo = sp<TypeParam>::make(&isDeleted); in TYPED_TEST()
94 auto foo2 = sp<TypeParam>::fromExisting(foo.get()); in TYPED_TEST()
105 TypeParam* foo = new TypeParam(&isDeleted); in TYPED_TEST()
106 EXPECT_DEATH(sp<TypeParam>::fromExisting(foo), ""); in TYPED_TEST()
[all …]
/system/chre/apps/wifi_offload/test/
Dflatbuffersserialization_test.cc45 TypeParam test_obj; in TYPED_TEST()
59 TypeParam test_obj; in TYPED_TEST()
65 TypeParam deserialized_obj; in TYPED_TEST()
71 TypeParam test_obj; in TYPED_TEST()
79 TypeParam test_obj; in TYPED_TEST()
88 TypeParam new_obj; in TYPED_TEST()
/system/unwinding/libunwindstack/utils/
DDwarfSectionImplFake.h27 template <typename TypeParam>
28 class DwarfSectionImplFake : public DwarfSectionImpl<TypeParam> {
30 DwarfSectionImplFake(std::shared_ptr<Memory>& memory) : DwarfSectionImpl<TypeParam>(memory) {} in DwarfSectionImplFake()
DRegsFake.h73 template <typename TypeParam>
74 class RegsImplFake : public RegsImpl<TypeParam> {
77 : RegsImpl<TypeParam>(total_regs, Regs::Location(Regs::LOCATION_UNKNOWN, 0)) {} in RegsImplFake()
/system/libfmq/tests/
Dmsgq_test_client.cpp347 typename TypeParam::MQType* queue = nullptr; in TYPED_TEST()
349 this->getQueue(&queue, true /* setupQueue */, TypeParam::UserFd /* userFd */); in TYPED_TEST()
392 typename TypeParam::MQType* queue = nullptr; in TYPED_TEST()
670 if (TypeParam::UserFd) { in TYPED_TEST()
680 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
715 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
761 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
942 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
1123 typename TypeParam::MQType* mQueue2 = this->newQueue(); in TYPED_TEST()
1155 typename TypeParam::MQType* mQueue2 = this->newQueue(); in TYPED_TEST()
[all …]
Dfmq_unit_tests.cpp306 typename TypeParam::MQType fmq(numElementsInQueue); in TYPED_TEST()
630 std::thread Reader(BlockingReadWrites<TypeParam>::ReaderThreadBlocking, this->mQueue, in TYPED_TEST()
668 std::thread Reader(BlockingReadWrites<TypeParam>::ReaderThreadBlocking2, this->mQueue, in TYPED_TEST()
817 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
845 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
898 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
938 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
1006 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
1091 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
1169 typename TypeParam::MQType::MemTransaction tx; in TYPED_TEST()
/system/tools/aidl/
Daidl_unittest.cpp5657 struct TypeParam { struct
5662 const TypeParam kTypeParams[] = {
5851 : public testing::TestWithParam<std::tuple<Options::Language, TypeParam, bool>> {
5893 [](const testing::TestParamInfo<std::tuple<Options::Language, TypeParam, bool>>& info) { in __anon52baf79a0702() argument