diff options
| author | Felka Chang <felkachang@google.com> | 2021-08-16 17:09:54 +0800 |
|---|---|---|
| committer | Felka Chang <felkachang@google.com> | 2021-09-10 03:25:36 +0800 |
| commit | bc6593cfd7339a812f35a1e87ce3d132507d05f3 (patch) | |
| tree | 15d664cc8390dff911a2deec2b597456198b16aa /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 291d2b44dadeb514845289fb3f6d9d35cfb98dc5 (diff) | |
Solve error prone issues GuardBy, Permission etc.
GuardedBy
* To access mProgress and mClientProgress should hold mProgressLock
* To access mInstallSource, mSessionApplied, mSessionFailed,
mCommitted should hold mLock
* remove unnecessary @GuardBy for assertNotChildLocked and change
function name to assertNotChild.
* Doesn't hold two locks as possible.
as TODO(b/197071589)
* Suppress GuardedBy for mPm.mInstaller without holding
mPm.mInstallerLock
UnusedNestedClass
* remove UnusedNestedClass that is StreamingException
AndroidFrameworkEfficientCollections
* change List<Integer> to IntArray
AndroidFrameworkEfficientStrings
* change from String.format to TextUtils.formatSimp
Test: ./build/soong/soong_ui.bash --make-mode services \
RUN_ERROR_PRONE=true
Test: atest \
CtsStagedInstallHostTestCases \
CtsPackageInstallTestCases \
CtsAtomicInstallTestCases
Test: atest com.android.server.pm.StagingManagerTest
Bug: 196675234
Change-Id: I9302115901f0298cdf48fe01d926f9edb96ae23e
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
