Loading libs/WindowManager/Shell/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ filegroup { } // Sources that have no dependencies that can be used directly downstream of this library // TODO(b/322791067): move these sources to WindowManager-Shell-shared filegroup { name: "wm_shell_util-sources", srcs: [ Loading Loading @@ -137,6 +138,12 @@ java_library { }, } java_library { name: "WindowManager-Shell-shared", srcs: ["shared/**/*.java"], } android_library { name: "WindowManager-Shell", srcs: [ Loading @@ -162,6 +169,7 @@ android_library { "com_android_wm_shell_flags_lib", "com.android.window.flags.window-aconfig-java", "WindowManager-Shell-proto", "WindowManager-Shell-shared", "perfetto_trace_java_protos", "dagger2", "jsr330", Loading libs/WindowManager/Shell/src/com/android/wm/shell/util/CounterRotator.java→libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/CounterRotator.java +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package com.android.wm.shell.util; package com.android.wm.shell.shared; import android.graphics.Point; import android.util.RotationUtils; Loading libs/WindowManager/Shell/src/com/android/wm/shell/util/TransitionUtil.java→libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TransitionUtil.java +4 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package com.android.wm.shell.util; package com.android.wm.shell.shared; import static android.app.ActivityTaskManager.INVALID_TASK_ID; import static android.view.RemoteAnimationTarget.MODE_CHANGING; Loading @@ -28,14 +28,13 @@ import static android.view.WindowManager.TRANSIT_KEYGUARD_GOING_AWAY; import static android.view.WindowManager.TRANSIT_OPEN; import static android.view.WindowManager.TRANSIT_TO_BACK; import static android.view.WindowManager.TRANSIT_TO_FRONT; import static android.window.TransitionInfo.FLAG_FIRST_CUSTOM; import static android.window.TransitionInfo.FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY; import static android.window.TransitionInfo.FLAG_IS_DISPLAY; import static android.window.TransitionInfo.FLAG_IS_WALLPAPER; import static android.window.TransitionInfo.FLAG_MOVED_TO_TOP; import static android.window.TransitionInfo.FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT; import static com.android.wm.shell.common.split.SplitScreenConstants.FLAG_IS_DIVIDER_BAR; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SuppressLint; Loading @@ -53,6 +52,8 @@ import java.util.function.Predicate; /** Various utility functions for transitions. */ public class TransitionUtil { /** Flag applied to a transition change to identify it as a divider bar for animation. */ public static final int FLAG_IS_DIVIDER_BAR = FLAG_FIRST_CUSTOM; /** @return true if the transition was triggered by opening something vs closing something */ public static boolean isOpeningType(@WindowManager.TransitionType int type) { Loading libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/ActivityEmbeddingAnimationAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ import android.window.TransitionInfo; import androidx.annotation.NonNull; import com.android.wm.shell.util.TransitionUtil; import com.android.wm.shell.shared.TransitionUtil; /** * Wrapper to handle the ActivityEmbedding animation update in one Loading libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/ActivityEmbeddingAnimationRunner.java +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ import androidx.annotation.Nullable; import com.android.internal.annotations.VisibleForTesting; import com.android.wm.shell.activityembedding.ActivityEmbeddingAnimationAdapter.SnapshotAdapter; import com.android.wm.shell.common.ScreenshotUtils; import com.android.wm.shell.util.TransitionUtil; import com.android.wm.shell.shared.TransitionUtil; import java.util.ArrayList; import java.util.List; Loading Loading
libs/WindowManager/Shell/Android.bp +8 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ filegroup { } // Sources that have no dependencies that can be used directly downstream of this library // TODO(b/322791067): move these sources to WindowManager-Shell-shared filegroup { name: "wm_shell_util-sources", srcs: [ Loading Loading @@ -137,6 +138,12 @@ java_library { }, } java_library { name: "WindowManager-Shell-shared", srcs: ["shared/**/*.java"], } android_library { name: "WindowManager-Shell", srcs: [ Loading @@ -162,6 +169,7 @@ android_library { "com_android_wm_shell_flags_lib", "com.android.window.flags.window-aconfig-java", "WindowManager-Shell-proto", "WindowManager-Shell-shared", "perfetto_trace_java_protos", "dagger2", "jsr330", Loading
libs/WindowManager/Shell/src/com/android/wm/shell/util/CounterRotator.java→libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/CounterRotator.java +1 −1 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package com.android.wm.shell.util; package com.android.wm.shell.shared; import android.graphics.Point; import android.util.RotationUtils; Loading
libs/WindowManager/Shell/src/com/android/wm/shell/util/TransitionUtil.java→libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/TransitionUtil.java +4 −3 Original line number Diff line number Diff line Loading @@ -14,7 +14,7 @@ * limitations under the License. */ package com.android.wm.shell.util; package com.android.wm.shell.shared; import static android.app.ActivityTaskManager.INVALID_TASK_ID; import static android.view.RemoteAnimationTarget.MODE_CHANGING; Loading @@ -28,14 +28,13 @@ import static android.view.WindowManager.TRANSIT_KEYGUARD_GOING_AWAY; import static android.view.WindowManager.TRANSIT_OPEN; import static android.view.WindowManager.TRANSIT_TO_BACK; import static android.view.WindowManager.TRANSIT_TO_FRONT; import static android.window.TransitionInfo.FLAG_FIRST_CUSTOM; import static android.window.TransitionInfo.FLAG_IN_TASK_WITH_EMBEDDED_ACTIVITY; import static android.window.TransitionInfo.FLAG_IS_DISPLAY; import static android.window.TransitionInfo.FLAG_IS_WALLPAPER; import static android.window.TransitionInfo.FLAG_MOVED_TO_TOP; import static android.window.TransitionInfo.FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT; import static com.android.wm.shell.common.split.SplitScreenConstants.FLAG_IS_DIVIDER_BAR; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.SuppressLint; Loading @@ -53,6 +52,8 @@ import java.util.function.Predicate; /** Various utility functions for transitions. */ public class TransitionUtil { /** Flag applied to a transition change to identify it as a divider bar for animation. */ public static final int FLAG_IS_DIVIDER_BAR = FLAG_FIRST_CUSTOM; /** @return true if the transition was triggered by opening something vs closing something */ public static boolean isOpeningType(@WindowManager.TransitionType int type) { Loading
libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/ActivityEmbeddingAnimationAdapter.java +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ import android.window.TransitionInfo; import androidx.annotation.NonNull; import com.android.wm.shell.util.TransitionUtil; import com.android.wm.shell.shared.TransitionUtil; /** * Wrapper to handle the ActivityEmbedding animation update in one Loading
libs/WindowManager/Shell/src/com/android/wm/shell/activityembedding/ActivityEmbeddingAnimationRunner.java +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ import androidx.annotation.Nullable; import com.android.internal.annotations.VisibleForTesting; import com.android.wm.shell.activityembedding.ActivityEmbeddingAnimationAdapter.SnapshotAdapter; import com.android.wm.shell.common.ScreenshotUtils; import com.android.wm.shell.util.TransitionUtil; import com.android.wm.shell.shared.TransitionUtil; import java.util.ArrayList; import java.util.List; Loading