The change is disabled by default. To enable remote animation, one needs to set a property and to restart the WMS. % adb root % adb shell setprop persist.wm.enable_remote_keyguard_animation 1 % adb reboot Test: Existing tests pass. Bug: 175686676 Bug: 179122467 Exempt-From-Owner-Approval: The owner already gave +2 on the exactly same CL. Change-Id: I3054ce4bbb296f09ab8bc12595f2ad17b32db7b4
35 lines
1.2 KiB
Java
35 lines
1.2 KiB
Java
/*
|
|
* Copyright (C) 2020 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package com.android.launcher3;
|
|
|
|
import android.os.Handler;
|
|
|
|
import com.android.systemui.shared.system.RemoteAnimationTargetCompat;
|
|
|
|
/**
|
|
* Used with WrappedLauncherAnimationRunner as an interface for the runner to call back to the
|
|
* implementation.
|
|
*/
|
|
public interface WrappedAnimationRunnerImpl {
|
|
Handler getHandler();
|
|
void onCreateAnimation(int transit,
|
|
RemoteAnimationTargetCompat[] appTargets,
|
|
RemoteAnimationTargetCompat[] wallpaperTargets,
|
|
RemoteAnimationTargetCompat[] nonAppTargets,
|
|
LauncherAnimationRunner.AnimationResult result);
|
|
}
|