This change is the complete Widevine metrics system. It will measure and record runtime information about what is happening in the CDM - such as errors and throughput. Bug: 33745339 Bug: 26027857 Change-Id: Ic9a82074f1e2b72c72d751b235f8ae361232787d
36 lines
729 B
C++
36 lines
729 B
C++
// Copyright 2017 Google Inc. All Rights Reserved.
|
|
|
|
#ifndef CDM_AMI_ADAPTER_H_
|
|
#define CDM_AMI_ADAPTER_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <media/MediaAnalyticsItem.h>
|
|
|
|
#include "report.h"
|
|
|
|
namespace wvcdm {
|
|
|
|
class AmiAdapter : public metrics::Report {
|
|
|
|
public:
|
|
AmiAdapter();
|
|
AmiAdapter(int64_t parent);
|
|
~AmiAdapter();
|
|
|
|
metrics::Report* NewReport() const;
|
|
|
|
void UpdateString(const std::string& metric_id, const std::string& value);
|
|
void UpdateInt32(const std::string& metric_id, int32_t value);
|
|
void UpdateInt64(const std::string& metric_id, int64_t value);
|
|
void UpdateDouble(const std::string& metric_id, double value);
|
|
|
|
private:
|
|
android::MediaAnalyticsItem analytics_item_;
|
|
|
|
};
|
|
|
|
} // namespace wvcdm
|
|
|
|
#endif
|