Ran clang-format on android/cdm/ files.
[ Merge of http://go/wvgerrit/87123 ] Certain android files have yet to be formated since we introduced clang-formatting. Test: built for android Bug: 134365840 Change-Id: Ia316b039e7469f7cf803464ee95a919fe7966450
This commit is contained in:
@@ -8,59 +8,40 @@
|
||||
|
||||
namespace wvcdm {
|
||||
|
||||
AmiAdapter::AmiAdapter() :
|
||||
analytics_item_("widevine") {
|
||||
AmiAdapter::AmiAdapter() : analytics_item_("widevine") {
|
||||
analytics_item_.generateSessionID();
|
||||
}
|
||||
|
||||
AmiAdapter::AmiAdapter(int64_t parent) :
|
||||
analytics_item_("widevine") {
|
||||
AmiAdapter::AmiAdapter(int64_t parent) : analytics_item_("widevine") {
|
||||
analytics_item_.generateSessionID();
|
||||
analytics_item_.setInt64("/drm/widevine/parent/external", parent);
|
||||
}
|
||||
|
||||
AmiAdapter::~AmiAdapter() {
|
||||
analytics_item_.selfrecord();
|
||||
}
|
||||
AmiAdapter::~AmiAdapter() { analytics_item_.selfrecord(); }
|
||||
|
||||
void AmiAdapter::UpdateString(const std::string& metric_id,
|
||||
const std::string& value) {
|
||||
analytics_item_.setCString(metric_id.c_str(), value.c_str());
|
||||
LOGV(
|
||||
"AmiAdapter (%lld) %s : %s",
|
||||
analytics_item_.getSessionID(),
|
||||
metric_id.c_str(),
|
||||
value.c_str());
|
||||
LOGV("AmiAdapter (%lld) %s : %s", analytics_item_.getSessionID(),
|
||||
metric_id.c_str(), value.c_str());
|
||||
}
|
||||
|
||||
void AmiAdapter::UpdateInt32(const std::string& metric_id,
|
||||
int32_t value) {
|
||||
void AmiAdapter::UpdateInt32(const std::string& metric_id, int32_t value) {
|
||||
analytics_item_.setInt32(metric_id.c_str(), value);
|
||||
LOGV(
|
||||
"AmiAdapter (%lld) %s : %ld",
|
||||
analytics_item_.getSessionID(),
|
||||
metric_id.c_str(),
|
||||
value);
|
||||
LOGV("AmiAdapter (%lld) %s : %ld", analytics_item_.getSessionID(),
|
||||
metric_id.c_str(), value);
|
||||
}
|
||||
|
||||
void AmiAdapter::UpdateInt64(const std::string& metric_id,
|
||||
int64_t value) {
|
||||
void AmiAdapter::UpdateInt64(const std::string& metric_id, int64_t value) {
|
||||
analytics_item_.setInt64(metric_id.c_str(), value);
|
||||
LOGV(
|
||||
"AmiAdapter (%lld) %s : %lld",
|
||||
analytics_item_.getSessionID(),
|
||||
metric_id.c_str(),
|
||||
value);
|
||||
LOGV("AmiAdapter (%lld) %s : %lld", analytics_item_.getSessionID(),
|
||||
metric_id.c_str(), value);
|
||||
}
|
||||
|
||||
void AmiAdapter::UpdateDouble(const std::string& metric_id,
|
||||
double value) {
|
||||
void AmiAdapter::UpdateDouble(const std::string& metric_id, double value) {
|
||||
analytics_item_.setDouble(metric_id.c_str(), value);
|
||||
LOGV(
|
||||
"AmiAdapter (%lld) %s : %f",
|
||||
analytics_item_.getSessionID(),
|
||||
metric_id.c_str(),
|
||||
value);
|
||||
LOGV("AmiAdapter (%lld) %s : %f", analytics_item_.getSessionID(),
|
||||
metric_id.c_str(), value);
|
||||
}
|
||||
|
||||
} // namespace wvcdm
|
||||
|
||||
Reference in New Issue
Block a user