You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
src/api-impl: fix up code style, mainly for code imported from AOSP
used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,4 @@
|
||||
package android.hardware;
|
||||
|
||||
public interface SensorEventListener {
|
||||
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@ package android.hardware;
|
||||
import android.os.Handler;
|
||||
|
||||
public class SensorManager {
|
||||
public Sensor getDefaultSensor(int type) {
|
||||
public Sensor getDefaultSensor(int type) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean registerListener (SensorEventListener listener, Sensor sensor, int samplingPeriodUs, Handler handler) {
|
||||
public boolean registerListener(SensorEventListener listener, Sensor sensor, int samplingPeriodUs, Handler handler) {
|
||||
return true; // we could try saying that the sensor doesn't exist and hope the app just doesn't use it then, but as long as we never call the handler the app should leave this alone
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user