Test: adb shell dumpsys activity service com.android.systemui
Bug:
130204212
Change-Id: I75a74a46a2bd5e63a0f13a877741cc1ab806d6d0
public static final int TYPE_WAKE_DISPLAY = 2;
public static final int TYPE_SWIPE = 3;
- int mType;
+ private int mType;
+ public Sensor(int type) {
+ mType = type;
+ }
public int getType() {
return mType;
}
-
- public Sensor(int type) {
- mType = type;
+ public String toString() {
+ return "{PluginSensor type=\"" + mType + "\"}";
}
}
/** Dump current state */
public void dump(PrintWriter pw) {
for (TriggerSensor s : mSensors) {
- pw.print("Sensor: "); pw.println(s.toString());
+ pw.print(" Sensor: "); pw.println(s.toString());
}
- pw.print("ProxSensor: "); pw.println(mProxSensor.toString());
+ pw.print(" ProxSensor: "); pw.println(mProxSensor.toString());
}
/**