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

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.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/AppRTCProximitySensor.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java
index ebbb06699f6189283d224f33866019879d524228..57f0c78d6b33ea18a5689a279b0b7192d46922de 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/AppRTCProximitySensor.java
@@ -45,16 +45,14 @@ public class AppRTCProximitySensor implements SensorEventListener {
private boolean lastStateReportIsNear = false;
/** Construction */
- static AppRTCProximitySensor create(Context context,
- Runnable sensorStateListener) {
+ static AppRTCProximitySensor create(Context context, Runnable sensorStateListener) {
return new AppRTCProximitySensor(context, sensorStateListener);
}
private AppRTCProximitySensor(Context context, Runnable sensorStateListener) {
Log.d(TAG, "AppRTCProximitySensor" + AppRTCUtils.getThreadInfo());
onSensorStateListener = sensorStateListener;
- sensorManager = ((SensorManager) context.getSystemService(
- Context.SENSOR_SERVICE));
+ sensorManager = ((SensorManager) context.getSystemService(Context.SENSOR_SERVICE));
}
/**
@@ -68,8 +66,7 @@ public class AppRTCProximitySensor implements SensorEventListener {
// Proximity sensor is not supported on this device.
return false;
}
- sensorManager.registerListener(
- this, proximitySensor, SensorManager.SENSOR_DELAY_NORMAL);
+ sensorManager.registerListener(this, proximitySensor, SensorManager.SENSOR_DELAY_NORMAL);
return true;
}
@@ -120,8 +117,8 @@ public class AppRTCProximitySensor implements SensorEventListener {
}
Log.d(TAG, "onSensorChanged" + AppRTCUtils.getThreadInfo() + ": "
- + "accuracy=" + event.accuracy
- + ", timestamp=" + event.timestamp + ", distance=" + event.values[0]);
+ + "accuracy=" + event.accuracy + ", timestamp=" + event.timestamp + ", distance="
+ + event.values[0]);
}
/**
@@ -168,5 +165,4 @@ public class AppRTCProximitySensor implements SensorEventListener {
}
Log.d(TAG, info.toString());
}
-
}

Powered by Google App Engine
This is Rietveld 408576698