diff options
| author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-09-07 14:33:34 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-09-07 14:33:34 +0000 |
| commit | 0ee62e910b3b2f3145682d9cbd9a7884159f156a (patch) | |
| tree | 8fb1718507e676f895b010dd57add1c103b23956 /core/java | |
| parent | 6487f0961a5e009870c27254866a853ccaf1ff4f (diff) | |
| parent | eeecbc866f1ecd456bcd2aa4545f74929e57fa87 (diff) | |
Merge "create library for mainline module" am: c59870928e am: 26531301a0 am: eeecbc866f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1818896
Change-Id: If4d803fb10b4fe5f77b308200ed93fd43681190e
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/Android.bp | 21 | ||||
| -rw-r--r-- | core/java/com/android/internal/util/IState.java | 4 | ||||
| -rw-r--r-- | core/java/com/android/internal/util/StateMachine.java | 6 |
3 files changed, 26 insertions, 5 deletions
diff --git a/core/java/Android.bp b/core/java/Android.bp index 427bbd82f561..0703f7c3e71f 100644 --- a/core/java/Android.bp +++ b/core/java/Android.bp @@ -380,6 +380,27 @@ filegroup { ], } +java_library { + name: "modules-utils-statemachine", + srcs: [ + "com/android/internal/util/IState.java", + "com/android/internal/util/State.java", + "com/android/internal/util/StateMachine.java", + ], + libs: [ + "framework-annotations-lib", + "unsupportedappusage", + ], + sdk_version: "module_current", + min_sdk_version: "29", + + visibility: ["//visibility:public"], + apex_available: [ + "//apex_available:anyapex", + "//apex_available:platform", + ], +} + filegroup { name: "framework-ims-common-shared-srcs", srcs: [ diff --git a/core/java/com/android/internal/util/IState.java b/core/java/com/android/internal/util/IState.java index 07837bf8f587..41b3d5e0a11f 100644 --- a/core/java/com/android/internal/util/IState.java +++ b/core/java/com/android/internal/util/IState.java @@ -27,12 +27,12 @@ import android.os.Message; public interface IState { /** - * Returned by processMessage to indicate the the message was processed. + * Returned by processMessage to indicate the message was processed. */ static final boolean HANDLED = true; /** - * Returned by processMessage to indicate the the message was NOT processed. + * Returned by processMessage to indicate the message was NOT processed. */ static final boolean NOT_HANDLED = false; diff --git a/core/java/com/android/internal/util/StateMachine.java b/core/java/com/android/internal/util/StateMachine.java index 4cff785cd671..cb8d9d127415 100644 --- a/core/java/com/android/internal/util/StateMachine.java +++ b/core/java/com/android/internal/util/StateMachine.java @@ -48,7 +48,7 @@ import java.util.Vector; * in Object Oriented programming and are used to perform initialization and * cleanup of the state respectively. The <code>getName</code> method returns the * name of the state; the default implementation returns the class name. It may be - * desirable to have <code>getName</code> return the the state instance name instead, + * desirable to have <code>getName</code> return the state instance name instead, * in particular if a particular state class has multiple instances.</p> * * <p>When a state machine is created, <code>addState</code> is used to build the @@ -433,14 +433,14 @@ public class StateMachine { /** * Convenience constant that maybe returned by processMessage - * to indicate the the message was processed and is not to be + * to indicate the message was processed and is not to be * processed by parent states */ public static final boolean HANDLED = true; /** * Convenience constant that maybe returned by processMessage - * to indicate the the message was NOT processed and is to be + * to indicate the message was NOT processed and is to be * processed by parent states */ public static final boolean NOT_HANDLED = false; |
