Home
last modified time | relevance | path

Searched refs:filterId (Results 1 – 25 of 30) sorted by relevance

12

/hardware/interfaces/tv/tuner/1.1/vts/functional/
DFilterTests.cpp165 AssertionResult FilterTests::getNewlyOpenedFilterId_64bit(uint64_t& filterId) { in getNewlyOpenedFilterId_64bit() argument
174 filter_v1_1->getId64Bit([&](Result result, uint64_t filterId) { in getNewlyOpenedFilterId_64bit() argument
175 mFilterId = filterId; in getNewlyOpenedFilterId_64bit()
189 filterId = mFilterId; in getNewlyOpenedFilterId_64bit()
195 AssertionResult FilterTests::getSharedAvMemoryHandle(uint64_t filterId) { in getSharedAvMemoryHandle() argument
196 EXPECT_TRUE(mFilters[filterId]) << "Open media filter first."; in getSharedAvMemoryHandle()
199 android::hardware::tv::tuner::V1_1::IFilter::castFrom(mFilters[filterId]); in getSharedAvMemoryHandle()
213 AssertionResult FilterTests::releaseShareAvHandle(uint64_t filterId) { in releaseShareAvHandle() argument
215 EXPECT_TRUE(mFilters[filterId]) << "Open media filter first."; in releaseShareAvHandle()
217 status = mFilters[filterId]->releaseAvHandle(mAvSharedHandle, 0 /*dataId*/); in releaseShareAvHandle()
[all …]
DVtsHalTvTunerV1_1TargetTest.cpp30 uint64_t filterId; in configSingleFilterInDemuxTest() local
42 ASSERT_TRUE(mFilterTests.getNewlyOpenedFilterId_64bit(filterId)); in configSingleFilterInDemuxTest()
43 ASSERT_TRUE(mFilterTests.configFilter(filterConf.config1_0.settings, filterId)); in configSingleFilterInDemuxTest()
45 ASSERT_TRUE(mFilterTests.configIpFilterCid(filterConf.ipCid, filterId)); in configSingleFilterInDemuxTest()
48 ASSERT_TRUE(mFilterTests.configureMonitorEvent(filterId, filterConf.monitorEventTypes)); in configSingleFilterInDemuxTest()
50 ASSERT_TRUE(mFilterTests.getFilterMQDescriptor(filterId, filterConf.config1_0.getMqDesc)); in configSingleFilterInDemuxTest()
51 ASSERT_TRUE(mFilterTests.startFilter(filterId)); in configSingleFilterInDemuxTest()
54 ASSERT_TRUE(mFilterTests.testMonitorEvent(filterId, filterConf.monitorEventTypes)); in configSingleFilterInDemuxTest()
57 ASSERT_TRUE(mFilterTests.stopFilter(filterId)); in configSingleFilterInDemuxTest()
58 ASSERT_TRUE(mFilterTests.closeFilter(filterId)); in configSingleFilterInDemuxTest()
[all …]
DFilterTests.h113 void setFilterId(uint32_t filterId) { mFilterId = filterId; } in setFilterId() argument
150 sp<IFilter> getFilterById(uint64_t filterId) { return mFilters[filterId]; } in getFilterById() argument
155 AssertionResult getNewlyOpenedFilterId_64bit(uint64_t& filterId);
156 AssertionResult getSharedAvMemoryHandle(uint64_t filterId);
157 AssertionResult releaseShareAvHandle(uint64_t filterId);
158 AssertionResult configFilter(DemuxFilterSettings setting, uint64_t filterId);
159 AssertionResult configAvFilterStreamType(AvStreamType type, uint64_t filterId);
160 AssertionResult configIpFilterCid(uint32_t ipCid, uint64_t filterId);
161 AssertionResult configureMonitorEvent(uint64_t filterId, uint32_t monitorEventTypes);
162 AssertionResult testMonitorEvent(uint64_t filterId, uint32_t monitorEventTypes);
[all …]
/hardware/interfaces/tv/tuner/aidl/vts/functional/
DFilterTests.cpp187 AssertionResult FilterTests::getNewlyOpenedFilterId_64bit(int64_t& filterId) { in getNewlyOpenedFilterId_64bit() argument
200 filterId = mFilterId; in getNewlyOpenedFilterId_64bit()
210 AssertionResult FilterTests::getSharedAvMemoryHandle(int64_t filterId) { in getSharedAvMemoryHandle() argument
211 EXPECT_TRUE(mFilters[filterId]) << "Open media filter first."; in getSharedAvMemoryHandle()
214 ndk::ScopedAStatus status = mFilters[filterId]->getAvSharedHandle(&avMemory, &avMemSize); in getSharedAvMemoryHandle()
223 AssertionResult FilterTests::releaseShareAvHandle(int64_t filterId) { in releaseShareAvHandle() argument
225 EXPECT_TRUE(mFilters[filterId]) << "Open media filter first."; in releaseShareAvHandle()
227 status = mFilters[filterId]->releaseAvHandle(::android::makeToAidl(mAvSharedHandle), in releaseShareAvHandle()
236 AssertionResult FilterTests::configFilter(DemuxFilterSettings setting, int64_t filterId) { in configFilter() argument
238 EXPECT_TRUE(mFilters[filterId]) << "Test with getNewlyOpenedFilterId first."; in configFilter()
[all …]
DFilterTests.h80 void setFilterId(int32_t filterId) { mFilterId = filterId; } in setFilterId() argument
115 std::shared_ptr<IFilter> getFilterById(int64_t filterId) { return mFilters[filterId]; } in getFilterById() argument
120 AssertionResult getNewlyOpenedFilterId_64bit(int64_t& filterId);
121 AssertionResult getSharedAvMemoryHandle(int64_t filterId);
122 AssertionResult releaseShareAvHandle(int64_t filterId);
123 AssertionResult configFilter(DemuxFilterSettings setting, int64_t filterId);
124 AssertionResult configAvFilterStreamType(AvStreamType type, int64_t filterId);
125 AssertionResult configIpFilterCid(int32_t ipCid, int64_t filterId);
126 AssertionResult configureMonitorEvent(int64_t filterId, int32_t monitorEventTypes);
127 AssertionResult testMonitorEvent(uint64_t filterId, uint32_t monitorEventTypes);
[all …]
DVtsHalTvTunerTargetTest.cpp43 int64_t filterId; in configSingleFilterInDemuxTest() local
54 ASSERT_TRUE(mFilterTests.getNewlyOpenedFilterId_64bit(filterId)); in configSingleFilterInDemuxTest()
55 ASSERT_TRUE(mFilterTests.configFilter(filterConf.settings, filterId)); in configSingleFilterInDemuxTest()
57 ASSERT_TRUE(mFilterTests.configIpFilterCid(filterConf.ipCid, filterId)); in configSingleFilterInDemuxTest()
60 ASSERT_TRUE(mFilterTests.configureMonitorEvent(filterId, filterConf.monitorEventTypes)); in configSingleFilterInDemuxTest()
62 ASSERT_TRUE(mFilterTests.getFilterMQDescriptor(filterId, filterConf.getMqDesc)); in configSingleFilterInDemuxTest()
63 ASSERT_TRUE(mFilterTests.startFilter(filterId)); in configSingleFilterInDemuxTest()
66 ASSERT_TRUE(mFilterTests.testMonitorEvent(filterId, filterConf.monitorEventTypes)); in configSingleFilterInDemuxTest()
69 ASSERT_TRUE(mFilterTests.stopFilter(filterId)); in configSingleFilterInDemuxTest()
70 ASSERT_TRUE(mFilterTests.closeFilter(filterId)); in configSingleFilterInDemuxTest()
[all …]
DVtsHalTvTunerTestConfigurations.h895 for (auto& filterId : descrambling.extraFilters) { in validateConnections()
896 filterIsValid &= filterMap.find(filterId) != filterMap.end(); in validateConnections()
907 for (auto& filterId : lnbRecord.extraFilters) { in validateConnections()
908 filterIsValid &= filterMap.find(filterId) != filterMap.end(); in validateConnections()
911 for (auto& filterId : lnbLive.extraFilters) { in validateConnections()
912 filterIsValid &= filterMap.find(filterId) != filterMap.end(); in validateConnections()
923 for (auto& filterId : playback.extraFilters) { in validateConnections()
925 playback.hasExtraFilters ? filterMap.find(filterId) != filterMap.end() : true; in validateConnections()
/hardware/interfaces/tv/tuner/1.0/default/
DDemux.cpp60 uint32_t filterId; in openFilter() local
61 filterId = ++mLastUsedFilterId; in openFilter()
69 sp<Filter> filter = new Filter(type, filterId, bufferSize, cb, this); in openFilter()
76 mFilters[filterId] = filter; in openFilter()
78 mPcrFilterIds.insert(filterId); in openFilter()
84 mPlaybackFilterIds.insert(filterId); in openFilter()
86 result = mDvrPlayback->addPlaybackFilter(filterId, filter); in openFilter()
110 filter->getId([&](Result result, uint32_t filterId) { in getAvSyncHwId() argument
111 id = filterId; in getAvSyncHwId()
229 Result Demux::removeFilter(uint32_t filterId) { in removeFilter() argument
[all …]
DDemux.h85 Result removeFilter(uint32_t filterId);
86 bool attachRecordFilter(int filterId);
87 bool detachRecordFilter(int filterId);
88 Result startFilterHandler(uint32_t filterId);
89 void updateFilterOutput(uint16_t filterId, vector<uint8_t> data);
90 void updateMediaFilterOutput(uint16_t filterId, vector<uint8_t> data, uint64_t pts);
91 uint16_t getFilterTpid(uint32_t filterId);
116 uint32_t filterId; member
DDvr.cpp64 uint32_t filterId; in attachFilter() local
68 filterId = id; in attachFilter()
77 if (!mDemux->attachRecordFilter(filterId)) { in attachFilter()
87 uint32_t filterId; in detachFilter() local
91 filterId = id; in detachFilter()
99 if (!mDemux->detachRecordFilter(filterId)) { in detachFilter()
464 bool Dvr::addPlaybackFilter(uint32_t filterId, sp<IFilter> filter) { in addPlaybackFilter() argument
465 mFilters[filterId] = filter; in addPlaybackFilter()
469 bool Dvr::removePlaybackFilter(uint32_t filterId) { in removePlaybackFilter() argument
470 mFilters.erase(filterId); in removePlaybackFilter()
DDvr.h93 bool addPlaybackFilter(uint32_t filterId, sp<IFilter> filter);
94 bool removePlaybackFilter(uint32_t filterId);
DFilter.h55 Filter(DemuxFilterType type, uint32_t filterId, uint32_t bufferSize,
/hardware/interfaces/tv/tuner/1.1/default/
DDemux.cpp63 uint64_t filterId; in openFilter() local
64 filterId = ++mLastUsedFilterId; in openFilter()
72 sp<Filter> filter = new Filter(type, filterId, bufferSize, cb, this); in openFilter()
79 mFilters[filterId] = filter; in openFilter()
81 mPcrFilterIds.insert(filterId); in openFilter()
87 mPlaybackFilterIds.insert(filterId); in openFilter()
89 result = mDvrPlayback->addPlaybackFilter(filterId, filter); in openFilter()
115 filter_v1_1->getId64Bit([&](Result result, uint64_t filterId) { in getAvSyncHwId() argument
116 id = filterId; in getAvSyncHwId()
120 filter->getId([&](Result result, uint32_t filterId) { in getAvSyncHwId() argument
[all …]
DDemux.h80 Result removeFilter(uint64_t filterId);
81 bool attachRecordFilter(uint64_t filterId);
82 bool detachRecordFilter(uint64_t filterId);
83 Result startFilterHandler(uint64_t filterId);
84 void updateFilterOutput(uint64_t filterId, vector<uint8_t> data);
85 void updateMediaFilterOutput(uint64_t filterId, vector<uint8_t> data, uint64_t pts);
86 uint16_t getFilterTpid(uint64_t filterId);
113 uint64_t filterId; member
DDvr.cpp64 uint64_t filterId; in attachFilter() local
70 filterId = id; in attachFilter()
75 filterId = id; in attachFilter()
84 if (!mDemux->attachRecordFilter(filterId)) { in attachFilter()
94 uint64_t filterId; in detachFilter() local
100 filterId = id; in detachFilter()
105 filterId = id; in detachFilter()
114 if (!mDemux->detachRecordFilter(filterId)) { in detachFilter()
491 bool Dvr::addPlaybackFilter(uint64_t filterId, sp<IFilter> filter) { in addPlaybackFilter() argument
492 mFilters[filterId] = filter; in addPlaybackFilter()
[all …]
DDvr.h89 bool addPlaybackFilter(uint64_t filterId, sp<IFilter> filter);
90 bool removePlaybackFilter(uint64_t filterId);
/hardware/interfaces/tv/tuner/1.0/vts/functional/
DFilterTests.cpp188 AssertionResult FilterTests::getNewlyOpenedFilterId(uint32_t& filterId) { in getNewlyOpenedFilterId() argument
194 mFilter->getId([&](Result result, uint32_t filterId) { in getNewlyOpenedFilterId() argument
195 mFilterId = filterId; in getNewlyOpenedFilterId()
205 filterId = mFilterId; in getNewlyOpenedFilterId()
211 AssertionResult FilterTests::configFilter(DemuxFilterSettings setting, uint32_t filterId) { in configFilter() argument
213 EXPECT_TRUE(mFilters[filterId]) << "Test with getNewlyOpenedFilterId first."; in configFilter()
214 status = mFilters[filterId]->configure(setting); in configFilter()
219 AssertionResult FilterTests::getFilterMQDescriptor(uint32_t filterId, bool getMqDesc) { in getFilterMQDescriptor() argument
225 EXPECT_TRUE(mFilters[filterId]) << "Test with getNewlyOpenedFilterId first."; in getFilterMQDescriptor()
226 EXPECT_TRUE(mFilterCallbacks[filterId]) << "Test with getNewlyOpenedFilterId first."; in getFilterMQDescriptor()
[all …]
DVtsHalTvTunerV1_0TargetTest.cpp38 uint32_t filterId; in configSingleFilterInDemuxTest() local
48 ASSERT_TRUE(mFilterTests.getNewlyOpenedFilterId(filterId)); in configSingleFilterInDemuxTest()
49 ASSERT_TRUE(mFilterTests.configFilter(filterConf.settings, filterId)); in configSingleFilterInDemuxTest()
50 ASSERT_TRUE(mFilterTests.getFilterMQDescriptor(filterId, filterConf.getMqDesc)); in configSingleFilterInDemuxTest()
51 ASSERT_TRUE(mFilterTests.startFilter(filterId)); in configSingleFilterInDemuxTest()
52 ASSERT_TRUE(mFilterTests.stopFilter(filterId)); in configSingleFilterInDemuxTest()
53 ASSERT_TRUE(mFilterTests.closeFilter(filterId)); in configSingleFilterInDemuxTest()
80 uint32_t filterId; in broadcastSingleFilterTest() local
96 ASSERT_TRUE(mFilterTests.getNewlyOpenedFilterId(filterId)); in broadcastSingleFilterTest()
97 ASSERT_TRUE(mFilterTests.configFilter(filterConf.settings, filterId)); in broadcastSingleFilterTest()
[all …]
DFilterTests.h93 void setFilterId(uint32_t filterId) { mFilterId = filterId; } in setFilterId() argument
137 sp<IFilter> getFilterById(uint32_t filterId) { return mFilters[filterId]; } in getFilterById() argument
145 AssertionResult getNewlyOpenedFilterId(uint32_t& filterId);
146 AssertionResult configFilter(DemuxFilterSettings setting, uint32_t filterId);
147 AssertionResult getFilterMQDescriptor(uint32_t filterId, bool getMqDesc);
149 AssertionResult setFilterDataSourceToDemux(uint32_t filterId);
150 AssertionResult startFilter(uint32_t filterId);
152 AssertionResult stopFilter(uint32_t filterId);
153 AssertionResult closeFilter(uint32_t filterId);
/hardware/interfaces/tv/tuner/aidl/default/
DDemux.cpp268 int64_t filterId; in openFilter() local
269 filterId = ++mLastUsedFilterId; in openFilter()
279 in_type, filterId, in_bufferSize, in_cb, this->ref<Demux>()); in openFilter()
286 mFilters[filterId] = filter; in openFilter()
288 mPcrFilterIds.insert(filterId); in openFilter()
294 mPlaybackFilterIds.insert(filterId); in openFilter()
296 result = mDvrPlayback->addPlaybackFilter(filterId, filter); in openFilter()
407 ::ndk::ScopedAStatus Demux::removeFilter(int64_t filterId) { in removeFilter() argument
411 mDvrPlayback->removePlaybackFilter(filterId); in removeFilter()
413 mPlaybackFilterIds.erase(filterId); in removeFilter()
[all …]
DDemux.h99 ::ndk::ScopedAStatus removeFilter(int64_t filterId);
100 bool attachRecordFilter(int64_t filterId);
101 bool detachRecordFilter(int64_t filterId);
102 ::ndk::ScopedAStatus startFilterHandler(int64_t filterId);
103 void updateFilterOutput(int64_t filterId, vector<int8_t> data);
104 void updateMediaFilterOutput(int64_t filterId, vector<int8_t> data, uint64_t pts);
105 uint16_t getFilterTpid(int64_t filterId);
148 int64_t filterId; member
DDvr.cpp67 int64_t filterId; in attachFilter() local
68 ::ndk::ScopedAStatus status = in_filter->getId64Bit(&filterId); in attachFilter()
73 if (!mDemux->attachRecordFilter(filterId)) { in attachFilter()
84 int64_t filterId; in detachFilter() local
85 ::ndk::ScopedAStatus status = in_filter->getId64Bit(&filterId); in detachFilter()
90 if (!mDemux->detachRecordFilter(filterId)) { in detachFilter()
526 bool Dvr::addPlaybackFilter(int64_t filterId, std::shared_ptr<Filter> filter) { in addPlaybackFilter() argument
527 mFilters[filterId] = filter; in addPlaybackFilter()
531 bool Dvr::removePlaybackFilter(int64_t filterId) { in removePlaybackFilter() argument
532 mFilters.erase(filterId); in removePlaybackFilter()
DDvr.h98 bool addPlaybackFilter(int64_t filterId, std::shared_ptr<Filter> filter);
99 bool removePlaybackFilter(int64_t filterId);
/hardware/interfaces/tv/tuner/1.1/
DIFilter.hal42 * @return filterId the hardware resource Id for the filter.
44 getId64Bit() generates (Result result, uint64_t filterId);
/hardware/interfaces/tv/tuner/1.0/
DIFilter.hal111 * @return filterId the hardware resource Id for the filter.
113 getId() generates (Result result, uint32_t filterId);

12