Methods Summary |
---|
public void | cancelWakeUpTrigger()
synchronized (mLock) {
if (mSensor != null && mTriggerRequested) {
mTriggerRequested = false;
mSensorManager.cancelTriggerSensor(mListener, mSensor);
}
}
|
public void | dump(java.io.PrintWriter pw, java.lang.String prefix)
synchronized (mLock) {
pw.println(prefix + TAG);
prefix += " ";
pw.println(prefix + "mTriggerRequested=" + mTriggerRequested);
pw.println(prefix + "mSensor=" + mSensor);
}
|
public boolean | isSupported()
synchronized (mLock) {
return mSensor != null;
}
|
public abstract void | onWakeUp()
|
public void | requestWakeUpTrigger()
synchronized (mLock) {
if (mSensor != null && !mTriggerRequested) {
mTriggerRequested = true;
mSensorManager.requestTriggerSensor(mListener, mSensor);
}
}
|