create library for mainline module

This library is a temporary work to link all mainline module using
statemachine.
Once this is done, we will be able to move the library to
frameworks/libs/modules-utils

also fix some typo in state* files

Cherry picked from aosp/1818896

Bug: 198418216
Tag: #refactor
Test: None
Merged-In: I1bec7c7bdb25bf3397a742a356aa1f18fddf7d89
Change-Id: I1bec7c7bdb25bf3397a742a356aa1f18fddf7d89
This commit is contained in:
William Escande
2021-09-03 16:00:25 +02:00
parent 8d140d1a78
commit 5c1d0fe88e
4 changed files with 65 additions and 44 deletions

View File

@@ -359,6 +359,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: [