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

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java

Issue 2377003002: Format all Java in WebRTC. (Closed)
Patch Set: Rebase. Created 4 years, 3 months 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/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
index 7b6c2902cf0d1052e752b0f403eb93a19800b028..ca571bb6ba4a9ff7ece4c12ea361430f31d123cf 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/HudFragment.java
@@ -41,8 +41,8 @@ public class HudFragment extends Fragment {
private CpuMonitor cpuMonitor;
@Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
+ public View onCreateView(
+ LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
controlView = inflater.inflate(R.layout.fragment_hud, container, false);
// Create UI controls.
@@ -57,8 +57,8 @@ public class HudFragment extends Fragment {
@Override
public void onClick(View view) {
if (displayHud) {
- int visibility = (hudViewBwe.getVisibility() == View.VISIBLE)
- ? View.INVISIBLE : View.VISIBLE;
+ int visibility =
+ (hudViewBwe.getVisibility() == View.VISIBLE) ? View.INVISIBLE : View.VISIBLE;
hudViewsSetProperties(visibility);
}
}
@@ -126,8 +126,7 @@ public class HudFragment extends Fragment {
String actualBitrate = null;
for (StatsReport report : reports) {
- if (report.type.equals("ssrc") && report.id.contains("ssrc")
- && report.id.contains("send")) {
+ if (report.type.equals("ssrc") && report.id.contains("ssrc") && report.id.contains("send")) {
// Send video statistics.
Map<String, String> reportMap = getReportMap(report);
String trackId = reportMap.get("googTrackId");
@@ -195,9 +194,11 @@ public class HudFragment extends Fragment {
if (cpuMonitor != null) {
encoderStat.append("CPU%: ")
- .append(cpuMonitor.getCpuUsageCurrent()).append("/")
- .append(cpuMonitor.getCpuUsageAverage())
- .append(". Freq: ").append(cpuMonitor.getFrequencyScaleAverage());
+ .append(cpuMonitor.getCpuUsageCurrent())
+ .append("/")
+ .append(cpuMonitor.getCpuUsageAverage())
+ .append(". Freq: ")
+ .append(cpuMonitor.getFrequencyScaleAverage());
}
encoderStatView.setText(encoderStat.toString());
}

Powered by Google App Engine
This is Rietveld 408576698