diff options
| author | 2022-12-02 19:29:39 +0000 | |
|---|---|---|
| committer | 2022-12-02 19:29:39 +0000 | |
| commit | 93c881e9dc91e910fb5dc6f69350c77382ae6ecf (patch) | |
| tree | bdad6b1cff135a6c8853603fd84ecb28ef54b6be | |
| parent | f205d39189772514856986574fe97bc3990a742d (diff) | |
| parent | 61fe1c62c85aa7c9ee7bd25949790b17de5f6ace (diff) | |
Merge "New javadoc for SysUI CoreStartables" into tm-qpr-dev am: 61fe1c62c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20500982
Change-Id: I14047cd05a63ebbf16bd3a77009d612c6545d841
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/CoreStartable.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/CoreStartable.java b/packages/SystemUI/src/com/android/systemui/CoreStartable.java index 929ebea37eef..becf5b39e9df 100644 --- a/packages/SystemUI/src/com/android/systemui/CoreStartable.java +++ b/packages/SystemUI/src/com/android/systemui/CoreStartable.java @@ -39,10 +39,13 @@ import java.io.PrintWriter; */ public interface CoreStartable extends Dumpable { - /** Main entry point for implementations. Called shortly after app startup. */ + /** Main entry point for implementations. Called shortly after SysUI startup. */ void start(); - /** */ + /** Called when the device configuration changes. This will not be called before + * {@link #start()}, but it could be called before {@link #onBootCompleted()}. + * + * @see android.app.Application#onConfigurationChanged(Configuration) */ default void onConfigurationChanged(Configuration newConfig) { } @@ -50,7 +53,11 @@ public interface CoreStartable extends Dumpable { default void dump(@NonNull PrintWriter pw, @NonNull String[] args) { } - /** Called when the device reports BOOT_COMPLETED. */ + /** Called immediately after the system broadcasts + * {@link android.content.Intent#ACTION_LOCKED_BOOT_COMPLETED} or during SysUI startup if the + * property {@code sys.boot_completed} is already set to 1. The latter typically occurs when + * starting a new SysUI instance, such as when starting SysUI for a secondary user. + * {@link #onBootCompleted()} will never be called before {@link #start()}. */ default void onBootCompleted() { } } |