diff options
| author | Hai Zhang <zhanghai@google.com> | 2021-01-21 17:37:39 -0800 |
|---|---|---|
| committer | Hai Zhang <zhanghai@google.com> | 2021-01-22 14:27:00 -0800 |
| commit | 0de31fe1e24a4aa7bb30f296f8cb911ca44e983e (patch) | |
| tree | 7df1f4bfbf283a61c68cd860232f81994b1b58ed /core/java/android/annotation/MainThread.java | |
| parent | 84705c4ae303b97e9529325439239dc84a7c73c7 (diff) | |
Prepare role code for modularization.
- PooledLambda: PoolLambda is replaced with plain lambdas, to avoid
adding ~20 classes to boot classpath (for each module that uses
lambda).
- SystemServiceRegistry: RoleFrameworkInitializer is added to add
ROLE_SERVICE, similar to other modules.
- RoleService: RoleManagerService is renamed to RoleService to better
reflect the manager/service relationship.
- @MainThread: import for Looper is removed because it's only used in
javadoc and triggers package not exist error during build. @linkplain
in the javadoc is also removed because it triggers an error in
Metalava parsing and isn't critical.
- Added small utilities: These utilities has their full version in
platform, but is too large and contains too many internal references
in methods unreferenced by role, whereas actually role only needs 1 or
2 methods from them. So just create a small copy of the used methods
for role modularization, and they will be moved into APEX with role.
Bug: 158736025
Test: manual
Change-Id: I74f20b37d23370e258e7fc7130e28c5312abf46c
Diffstat (limited to 'core/java/android/annotation/MainThread.java')
| -rw-r--r-- | core/java/android/annotation/MainThread.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/java/android/annotation/MainThread.java b/core/java/android/annotation/MainThread.java index 556fdb4e7742..a070246e5ef3 100644 --- a/core/java/android/annotation/MainThread.java +++ b/core/java/android/annotation/MainThread.java @@ -21,8 +21,6 @@ import static java.lang.annotation.ElementType.PARAMETER; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.SOURCE; -import android.os.Looper; - import java.lang.annotation.Retention; import java.lang.annotation.Target; @@ -40,8 +38,7 @@ import java.lang.annotation.Target; * </code> * </pre> * - * @memberDoc This method must be called from the - * {@linkplain Looper#getMainLooper() main thread} of your app. + * @memberDoc This method must be called from the main thread of your app. * @hide */ @Retention(SOURCE) |
