/hardware/google/av/media/eco/tests/ |
D | EcoDataTest.cpp | 40 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 …]
|
D | EcoSessionTest.cpp | 99 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 …]
|
D | FakeECOServiceStatsProvider.h | 67 bool injectSessionStats(const ECOData& stats); 71 bool injectFrameStats(const ECOData& stats);
|
D | FakeECOServiceInfoListener.h | 52 std::function<void(const ::android::media::eco::ECOData& newInfo)>; 66 virtual Status onNewInfo(const ::android::media::eco::ECOData& newInfo);
|
D | EcoServiceTest.cpp | 200 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F() 214 ECOData listenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
|
D | FakeECOServiceInfoListener.cpp | 74 Status FakeECOServiceInfoListener::onNewInfo(const ::android::media::eco::ECOData& newInfo) { in onNewInfo()
|
/hardware/google/av/media/eco/ |
D | ECOUtils.cpp | 29 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()
|
D | ECOData.cpp | 38 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 …]
|
D | ECOSession.cpp | 124 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 …]
|
D | ECOServiceStatsProvider.cpp | 60 bool ECOServiceStatsProvider::updateStats(const ECOData& data) { in updateStats() 72 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, systemTime() / 1000); in addProvider()
|
D | Android.bp | 27 "ECOData.cpp",
|
/hardware/google/av/media/eco/include/eco/ |
D | ECOSession.h | 59 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 …]
|
D | ECOUtils.h | 85 ECOData toEcoData(ECOData::ECODatatype dataType); 121 ECOData toEcoData(ECOData::ECODatatype dataType); 124 bool copyKeyValue(const ECOData& src, ECOData* dst);
|
D | ECOData.h | 74 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;
|
D | ECOServiceInfoListener.h | 54 virtual Status onNewInfo(const ::android::media::eco::ECOData& newInfo) = 0;
|
D | ECOServiceStatsProvider.h | 58 bool updateStats(const ECOData& data);
|
/hardware/google/av/media/eco/aidl/android/media/eco/ |
D | IECOServiceInfoListener.aidl | 19 import android.media.eco.ECOData; 62 oneway void onNewInfo(in ECOData newInfo); in onNewInfo()
|
D | ECOData.aidl | 20 parcelable ECOData cpp_header "eco/ECOData.h";
|