| 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());
|
| }
|
|
|