Home
last modified time | relevance | path

Searched refs:ECOData (Results 1 – 23 of 23) sorted by relevance

/hardware/google/av/media/eco/tests/
DEcoDataTest.cpp38 using aidl::android::media::eco::ECOData;
42 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(); in TEST()
43 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_UNKNOWN); in TEST()
48 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS); in TEST()
49 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_STATS); in TEST()
54 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
55 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_STATS); in TEST()
60 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
74 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
93 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
[all …]
DEcoSessionTest.cpp102 ECOData providerConfig; in TEST_F()
117 ECOData providerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
133 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
151 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
173 ECOData ListenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
189 ECOData ListenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
205 ECOData ListenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
227 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
241 ECOData listenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
252 ECOData info; in TEST_F()
[all …]
DFakeECOServiceInfoListener.h39 using aidl::android::media::eco::ECOData;
54 std::function<void(const ::android::media::eco::ECOData& newInfo)>;
68 virtual ScopedAStatus onNewInfo(const ::android::media::eco::ECOData& newInfo);
DFakeECOServiceStatsProvider.h65 bool injectSessionStats(const ECOData& stats);
69 bool injectFrameStats(const ECOData& stats);
DEcoServiceTest.cpp196 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
211 ECOData listenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
DFakeECOServiceStatsProvider.cpp80 bool FakeECOServiceStatsProvider::injectSessionStats(const ECOData& stats) { in injectSessionStats()
88 bool FakeECOServiceStatsProvider::injectFrameStats(const ECOData& stats) { in injectFrameStats()
DFakeECOServiceInfoListener.cpp72 const ::android::media::eco::ECOData& newInfo) { in onNewInfo()
/hardware/google/av/media/eco/
DECOData.cpp40 binder_status_t ECOData::readFromParcel(const AParcel* parcel) { in readFromParcel()
114 binder_status_t ECOData::writeToParcel(AParcel* parcel) const { in writeToParcel()
175 int32_t ECOData::getDataType() const { in getDataType()
179 int64_t ECOData::getDataTimeUs() const { in getDataTimeUs()
185 ECODataStatus ECOData::setString(const std::string& key, const std::string& value) { in setString()
196 ECODataStatus ECOData::findString(const std::string& key, std::string* value) const { in findString()
216 ECODataStatus ECOData::setValue(const std::string& key, T value) { in setValue()
226 ECODataStatus ECOData::findValue(const std::string& key, T* out) const { in findValue()
241 ECODataStatus ECOData::setInt32(const std::string& key, int32_t value) { in setInt32()
245 ECODataStatus ECOData::findInt32(const std::string& key, int32_t* out) const { in findInt32()
[all …]
DECOUtils.cpp29 ECOData SimpleEncoderConfig::toEcoData(ECOData::ECODatatype dataType) { in toEcoData()
30 ECOData data(dataType, systemTime(SYSTEM_TIME_BOOTTIME)); in toEcoData()
42 ECOData SimpleEncodedFrameData::toEcoData(ECOData::ECODatatype dataType) { in toEcoData()
43 ECOData data(dataType, systemTime(SYSTEM_TIME_BOOTTIME)); in toEcoData()
DECOSession.cpp126 ECOData sessionInfo = generateLatestSessionInfoEcoData(); in run()
140 ECOData stats = mStatsQueue.front(); in run()
149 bool ECOSession::processStats(const ECOData& stats) { in processStats()
152 if (stats.getDataType() != ECOData::DATA_TYPE_STATS) { in processStats()
176 void ECOSession::processSessionStats(const ECOData& stats) { in processSessionStats()
179 ECOData info(ECOData::DATA_TYPE_INFO, systemTime(SYSTEM_TIME_BOOTTIME)); in processSessionStats()
184 ECOData::ECODataKeyValuePair entry = iter.next(); in processSessionStats()
186 const ECOData::ECODataValueType value = entry.second; in processSessionStats()
251 ECOData ECOSession::generateLatestSessionInfoEcoData() { in generateLatestSessionInfoEcoData()
254 ECOData info(ECOData::DATA_TYPE_INFO, systemTime(SYSTEM_TIME_BOOTTIME)); in generateLatestSessionInfoEcoData()
[all …]
DECOServiceStatsProvider.cpp63 bool ECOServiceStatsProvider::updateStats(const ECOData& data) { in updateStats()
75 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, systemTime() / 1000); in addProvider()
DAndroid.bp44 "ECOData.cpp",
/hardware/google/av/media/eco/include/eco/
DECOSession.h41 using aidl::android::media::eco::ECOData;
64 const std::shared_ptr<IECOServiceStatsProvider>& provider, const ECOData& statsConfig,
71 const ECOData& listenerConfig,
77 virtual ScopedAStatus pushNewStats(const ECOData&, bool*);
107 bool processStats(const ECOData& stats);
113 void processSessionStats(const ECOData& stats);
116 void processFrameStats(const ECOData& stats);
119 ECOData generateLatestSessionInfoEcoData();
124 std::deque<ECOData> mStatsQueue; // GUARDED_BY(mStatsQueueLock)
191 std::list<ECOData> mStatsDebugBuffer;
[all …]
DECOData.h76 class ECOData {
82 ECOData() : mDataType(0), mDataTimeUs(-1) {} in ECOData() function
83 ECOData(int32_t type) : mDataType(type), mDataTimeUs(-1) {} in ECOData() function
84 ECOData(int32_t type, int64_t timeUs) : mDataType(type), mDataTimeUs(timeUs) {} in ECOData() function
161 friend bool copyKeyValue(const ECOData& src, ECOData* dst);
197 static bool copyKeyValue(const ECOData& src, ECOData* dst) { in copyKeyValue()
211 ECODataKeyValueIterator(const ECOData& data) in ECODataKeyValueIterator()
217 ECOData::ECODataKeyValuePair next() const;
220 const std::unordered_map<std::string, ECOData::ECODataValueType>& mKeyValueStore;
221 std::unordered_map<std::string, ECOData::ECODataValueType>::const_iterator mIterator;
DECOUtils.h31 using aidl::android::media::eco::ECOData;
87 ECOData toEcoData(ECOData::ECODatatype dataType);
123 ECOData toEcoData(ECOData::ECODatatype dataType);
DECOServiceInfoListener.h35 using aidl::android::media::eco::ECOData;
52 virtual ScopedAStatus onNewInfo(const ::android::media::eco::ECOData& newInfo) = 0;
DECOServiceStatsProvider.h38 using aidl::android::media::eco::ECOData;
61 bool updateStats(const ECOData& data);
DECODebug.h28 using aidl::android::media::eco::ECOData;
DECOService.h36 using aidl::android::media::eco::ECOData;
/hardware/google/av/media/eco/aidl/android/media/eco/
DIECOSession.aidl19 import android.media.eco.ECOData;
53 boolean addStatsProvider(IECOServiceStatsProvider provider, in ECOData config); in addStatsProvider()
75 boolean addInfoListener(IECOServiceInfoListener listener, in ECOData config); in addInfoListener()
89 boolean pushNewStats(in ECOData newStats); in pushNewStats()
DIECOServiceInfoListener.aidl19 import android.media.eco.ECOData;
61 oneway void onNewInfo(in ECOData newInfo); in onNewInfo()
DECOData.aidl20 parcelable ECOData ndk_header "eco/ECOData.h";
DIECOService.aidl19 import android.media.eco.ECOData;