Merge "Add keyguardGoingAway to the state controller." into tm-dev
This commit is contained in:
@@ -2604,6 +2604,9 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
|||||||
|
|
||||||
finishSurfaceBehindRemoteAnimation(cancelled);
|
finishSurfaceBehindRemoteAnimation(cancelled);
|
||||||
mSurfaceBehindRemoteAnimationRequested = false;
|
mSurfaceBehindRemoteAnimationRequested = false;
|
||||||
|
|
||||||
|
// The remote animation is over, so we're not going away anymore.
|
||||||
|
mKeyguardStateController.notifyKeyguardGoingAway(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
mKeyguardUnlockAnimationControllerLazy.get().notifyFinishedKeyguardExitAnimation(
|
mKeyguardUnlockAnimationControllerLazy.get().notifyFinishedKeyguardExitAnimation(
|
||||||
@@ -2622,6 +2625,7 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
|
|||||||
ActivityTaskManager.getService().keyguardGoingAway(
|
ActivityTaskManager.getService().keyguardGoingAway(
|
||||||
WindowManagerPolicyConstants.KEYGUARD_GOING_AWAY_FLAG_NO_WINDOW_ANIMATIONS
|
WindowManagerPolicyConstants.KEYGUARD_GOING_AWAY_FLAG_NO_WINDOW_ANIMATIONS
|
||||||
| WindowManagerPolicyConstants.KEYGUARD_GOING_AWAY_FLAG_WITH_WALLPAPER);
|
| WindowManagerPolicyConstants.KEYGUARD_GOING_AWAY_FLAG_WITH_WALLPAPER);
|
||||||
|
mKeyguardStateController.notifyKeyguardGoingAway(true);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
mSurfaceBehindRemoteAnimationRequested = false;
|
mSurfaceBehindRemoteAnimationRequested = false;
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package com.android.systemui.statusbar.policy;
|
package com.android.systemui.statusbar.policy;
|
||||||
|
|
||||||
|
import android.app.IActivityTaskManager;
|
||||||
|
|
||||||
import com.android.systemui.statusbar.StatusBarState;
|
import com.android.systemui.statusbar.StatusBarState;
|
||||||
import com.android.systemui.statusbar.policy.KeyguardStateController.Callback;
|
import com.android.systemui.statusbar.policy.KeyguardStateController.Callback;
|
||||||
|
|
||||||
@@ -233,6 +235,12 @@ public interface KeyguardStateController extends CallbackController<Callback> {
|
|||||||
*/
|
*/
|
||||||
default void onKeyguardFadingAwayChanged() {}
|
default void onKeyguardFadingAwayChanged() {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* We've called {@link IActivityTaskManager#keyguardGoingAway}, which initiates the unlock
|
||||||
|
* sequence.
|
||||||
|
*/
|
||||||
|
default void onKeyguardGoingAwayChanged() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Triggered when the keyguard dismiss amount has changed, via either a swipe gesture or an
|
* Triggered when the keyguard dismiss amount has changed, via either a swipe gesture or an
|
||||||
* animation.
|
* animation.
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ public class KeyguardStateControllerImpl implements KeyguardStateController, Dum
|
|||||||
Trace.traceCounter(Trace.TRACE_TAG_APP, "keyguardGoingAway",
|
Trace.traceCounter(Trace.TRACE_TAG_APP, "keyguardGoingAway",
|
||||||
keyguardGoingAway ? 1 : 0);
|
keyguardGoingAway ? 1 : 0);
|
||||||
mKeyguardGoingAway = keyguardGoingAway;
|
mKeyguardGoingAway = keyguardGoingAway;
|
||||||
|
new ArrayList<>(mCallbacks).forEach(Callback::onKeyguardGoingAwayChanged);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user