/hardware/google/av/media/eco/tests/ |
D | EcoDataTest.cpp | 38 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 …]
|
D | EcoSessionTest.cpp | 102 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 …]
|
D | FakeECOServiceInfoListener.h | 39 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);
|
D | FakeECOServiceStatsProvider.h | 65 bool injectSessionStats(const ECOData& stats); 69 bool injectFrameStats(const ECOData& stats);
|
D | EcoServiceTest.cpp | 196 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, in TEST_F() 211 ECOData listenerConfig(ECOData::DATA_TYPE_INFO_LISTENER_CONFIG, in TEST_F()
|
D | FakeECOServiceStatsProvider.cpp | 80 bool FakeECOServiceStatsProvider::injectSessionStats(const ECOData& stats) { in injectSessionStats() 88 bool FakeECOServiceStatsProvider::injectFrameStats(const ECOData& stats) { in injectFrameStats()
|
D | FakeECOServiceInfoListener.cpp | 72 const ::android::media::eco::ECOData& newInfo) { in onNewInfo()
|
/hardware/google/av/media/eco/ |
D | ECOData.cpp | 40 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 …]
|
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()
|
D | ECOSession.cpp | 126 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 …]
|
D | ECOServiceStatsProvider.cpp | 63 bool ECOServiceStatsProvider::updateStats(const ECOData& data) { in updateStats() 75 ECOData providerConfig(ECOData::DATA_TYPE_STATS_PROVIDER_CONFIG, systemTime() / 1000); in addProvider()
|
D | Android.bp | 44 "ECOData.cpp",
|
/hardware/google/av/media/eco/include/eco/ |
D | ECOSession.h | 41 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 …]
|
D | ECOData.h | 76 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;
|
D | ECOUtils.h | 31 using aidl::android::media::eco::ECOData; 87 ECOData toEcoData(ECOData::ECODatatype dataType); 123 ECOData toEcoData(ECOData::ECODatatype dataType);
|
D | ECOServiceInfoListener.h | 35 using aidl::android::media::eco::ECOData; 52 virtual ScopedAStatus onNewInfo(const ::android::media::eco::ECOData& newInfo) = 0;
|
D | ECOServiceStatsProvider.h | 38 using aidl::android::media::eco::ECOData; 61 bool updateStats(const ECOData& data);
|
D | ECODebug.h | 28 using aidl::android::media::eco::ECOData;
|
D | ECOService.h | 36 using aidl::android::media::eco::ECOData;
|
/hardware/google/av/media/eco/aidl/android/media/eco/ |
D | IECOSession.aidl | 19 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()
|
D | IECOServiceInfoListener.aidl | 19 import android.media.eco.ECOData; 61 oneway void onNewInfo(in ECOData newInfo); in onNewInfo()
|
D | ECOData.aidl | 20 parcelable ECOData ndk_header "eco/ECOData.h";
|
D | IECOService.aidl | 19 import android.media.eco.ECOData;
|