Home
last modified time | relevance | path

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

/hardware/google/av/media/eco/tests/
DEcoDataTest.cpp40 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(); in TEST()
41 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_UNKNOWN); in TEST()
46 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS); in TEST()
47 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_STATS); in TEST()
52 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
53 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_STATS); in TEST()
58 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
72 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
91 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
108 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST()
[all …]
DEcoSessionTest.cpp99 ECOData providerConfig; in TEST_F()
112 ECOData providerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
126 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
142 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
161 ECOData ListenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
175 ECOData ListenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
189 ECOData ListenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
209 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
222 ECOData listenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
233 ECOData info; in TEST_F()
[all …]
DFakeECOServiceStatsProvider.h67 bool injectSessionStats(const ECOData& stats);
71 bool injectFrameStats(const ECOData& stats);
DFakeECOServiceInfoListener.h52 std::function<void(const ::android::media::eco::ECOData& newInfo)>;
66 virtual Status onNewInfo(const ::android::media::eco::ECOData& newInfo);
DEcoServiceTest.cpp200 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F()
214 ECOData listenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
DFakeECOServiceInfoListener.cpp74 Status FakeECOServiceInfoListener::onNewInfo(const ::android::media::eco::ECOData& newInfo) { in onNewInfo()
/hardware/google/av/media/eco/
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()
53 bool copyKeyValue(const ECOData& src, ECOData* dst) { in copyKeyValue()
DECOData.cpp38 status_t ECOData::readFromParcel(const Parcel* parcel) { in readFromParcel()
118 status_t ECOData::writeToParcel(Parcel* parcel) const { in writeToParcel()
176 int32_t ECOData::getDataType() const { in getDataType()
180 int64_t ECOData::getDataTimeUs() const { in getDataTimeUs()
186 ECODataStatus ECOData::setString(const std::string& key, const std::string& value) { in setString()
197 ECODataStatus ECOData::findString(const std::string& key, std::string* value) const { in findString()
217 ECODataStatus ECOData::setValue(const std::string& key, T value) { in setValue()
227 ECODataStatus ECOData::findValue(const std::string& key, T* out) const { in findValue()
242 ECODataStatus ECOData::setInt32(const std::string& key, int32_t value) { in setInt32()
246 ECODataStatus ECOData::findInt32(const std::string& key, int32_t* out) const { in findInt32()
[all …]
DECOSession.cpp124 ECOData sessionInfo = generateLatestSessionInfoEcoData(); in run()
138 ECOData stats = mStatsQueue.front(); in run()
147 bool ECOSession::processStats(const ECOData& stats) { in processStats()
150 if (stats.getDataType() != ECOData::DATA_TYPE_STATS) { in processStats()
174 void ECOSession::processSessionStats(const ECOData& stats) { in processSessionStats()
177 ECOData info(ECOData::DATA_TYPE_INFO, systemTime(SYSTEM_TIME_BOOTTIME)); in processSessionStats()
182 ECOData::ECODataKeyValuePair entry = iter.next(); in processSessionStats()
184 const ECOData::ECODataValueType value = entry.second; in processSessionStats()
249 ECOData ECOSession::generateLatestSessionInfoEcoData() { in generateLatestSessionInfoEcoData()
252 ECOData info(ECOData::DATA_TYPE_INFO, systemTime(SYSTEM_TIME_BOOTTIME)); in generateLatestSessionInfoEcoData()
[all …]
DECOServiceStatsProvider.cpp60 bool ECOServiceStatsProvider::updateStats(const ECOData& data) { in updateStats()
72 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, systemTime() / 1000); in addProvider()
DAndroid.bp27 "ECOData.cpp",
/hardware/google/av/media/eco/include/eco/
DECOSession.h59 const ECOData& statsConfig, /*out*/ bool* status);
64 const ECOData& listenerConfig,
69 virtual Status pushNewStats(const ECOData&, bool*);
105 bool processStats(const ECOData& stats);
111 void processSessionStats(const ECOData& stats);
114 void processFrameStats(const ECOData& stats);
117 ECOData generateLatestSessionInfoEcoData();
122 std::deque<ECOData> mStatsQueue; // GUARDED_BY(mStatsQueueLock)
189 std::list<ECOData> mStatsDebugBuffer;
192 void logStats(const ECOData& data);
[all …]
DECOUtils.h85 ECOData toEcoData(ECOData::ECODatatype dataType);
121 ECOData toEcoData(ECOData::ECODatatype dataType);
124 bool copyKeyValue(const ECOData& src, ECOData* dst);
DECOData.h74 class ECOData : public Parcelable {
80 ECOData() : mDataType(0), mDataTimeUs(-1) {} in ECOData() function
81 ECOData(int32_t type) : mDataType(type), mDataTimeUs(-1) {} in ECOData() function
82 ECOData(int32_t type, int64_t timeUs) : mDataType(type), mDataTimeUs(timeUs) {} in ECOData() function
159 friend bool copyKeyValue(const ECOData& src, ECOData* dst);
201 ECODataKeyValueIterator(const ECOData& data) in ECODataKeyValueIterator()
207 ECOData::ECODataKeyValuePair next() const;
210 const std::unordered_map<std::string, ECOData::ECODataValueType>& mKeyValueStore;
211 std::unordered_map<std::string, ECOData::ECODataValueType>::const_iterator mIterator;
DECOServiceInfoListener.h54 virtual Status onNewInfo(const ::android::media::eco::ECOData& newInfo) = 0;
DECOServiceStatsProvider.h58 bool updateStats(const ECOData& data);
/hardware/google/av/media/eco/aidl/android/media/eco/
DIECOServiceInfoListener.aidl19 import android.media.eco.ECOData;
62 oneway void onNewInfo(in ECOData newInfo); in onNewInfo()
DECOData.aidl20 parcelable ECOData cpp_header "eco/ECOData.h";