Merge changes Ie8ddf1db,Ice6de114 into tm-dev am: edb497c9bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19065708 Change-Id: I8a291df07add9f33af3eacd0dea5292f0f9a984d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -599,9 +599,7 @@ public abstract class PanelViewController {
|
|||||||
float collapseSpeedUpFactor, boolean expandBecauseOfFalsing) {
|
float collapseSpeedUpFactor, boolean expandBecauseOfFalsing) {
|
||||||
if (target == mExpandedHeight && mOverExpansion == 0.0f) {
|
if (target == mExpandedHeight && mOverExpansion == 0.0f) {
|
||||||
// We're at the target and didn't fling and there's no overshoot
|
// We're at the target and didn't fling and there's no overshoot
|
||||||
endJankMonitoring(CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
|
onFlingEnd(false /* cancelled */);
|
||||||
mKeyguardStateController.notifyPanelFlingEnd();
|
|
||||||
notifyExpandingFinished();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mIsFlinging = true;
|
mIsFlinging = true;
|
||||||
|
|||||||
@@ -985,6 +985,21 @@ public class NotificationPanelViewControllerTest extends SysuiTestCase {
|
|||||||
verify(mKeyguardStateController).notifyPanelFlingEnd();
|
verify(mKeyguardStateController).notifyPanelFlingEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSwipe_exactlyToTarget_notifiesNssl() {
|
||||||
|
// No over-expansion
|
||||||
|
mNotificationPanelViewController.setOverExpansion(0f);
|
||||||
|
// Fling to a target that is equal to the current position (i.e. a no-op fling).
|
||||||
|
mNotificationPanelViewController.flingToHeight(
|
||||||
|
0f,
|
||||||
|
true,
|
||||||
|
mNotificationPanelViewController.mExpandedHeight,
|
||||||
|
1f,
|
||||||
|
false);
|
||||||
|
// Verify that the NSSL is notified that the panel is *not* flinging.
|
||||||
|
verify(mNotificationStackScrollLayoutController).setPanelFlinging(false);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testDoubleTapRequired_Keyguard() {
|
public void testDoubleTapRequired_Keyguard() {
|
||||||
FalsingManager.FalsingTapListener listener = getFalsingTapListener();
|
FalsingManager.FalsingTapListener listener = getFalsingTapListener();
|
||||||
|
|||||||
Reference in New Issue
Block a user