Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Unified Diff: webrtc/api/android/java/src/org/webrtc/StatsReport.java

Issue 2547483003: Move /webrtc/api/android files to /webrtc/sdk/android (Closed)
Patch Set: Move to api folder under Android instead of src Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/android/java/src/org/webrtc/StatsReport.java
diff --git a/webrtc/api/android/java/src/org/webrtc/StatsReport.java b/webrtc/api/android/java/src/org/webrtc/StatsReport.java
deleted file mode 100644
index a72ea5d861ba5fcfd38b8147916776cdf173fe99..0000000000000000000000000000000000000000
--- a/webrtc/api/android/java/src/org/webrtc/StatsReport.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2013 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-package org.webrtc;
-
-/** Java version of webrtc::StatsReport. */
-public class StatsReport {
- /** Java version of webrtc::StatsReport::Value. */
- public static class Value {
- public final String name;
- public final String value;
-
- public Value(String name, String value) {
- this.name = name;
- this.value = value;
- }
-
- public String toString() {
- StringBuilder builder = new StringBuilder();
- builder.append("[").append(name).append(": ").append(value).append("]");
- return builder.toString();
- }
- }
-
- public final String id;
- public final String type;
- // Time since 1970-01-01T00:00:00Z in milliseconds.
- public final double timestamp;
- public final Value[] values;
-
- public StatsReport(String id, String type, double timestamp, Value[] values) {
- this.id = id;
- this.type = type;
- this.timestamp = timestamp;
- this.values = values;
- }
-
- public String toString() {
- StringBuilder builder = new StringBuilder();
- builder.append("id: ")
- .append(id)
- .append(", type: ")
- .append(type)
- .append(", timestamp: ")
- .append(timestamp)
- .append(", values: ");
- for (int i = 0; i < values.length; ++i) {
- builder.append(values[i].toString()).append(", ");
- }
- return builder.toString();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698