Skip to content

Commit f052ec6

Browse files
committed
Merge tag 'android-16.0.0_r1' into lineage-23.0
Android 16.0.0 release 1 # -----BEGIN PGP SIGNATURE----- # # iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCaEhhFQAKCRDorT+BmrEO # eGfzAJ9l52bDFnS2376/AvaErebujT+T2gCfYPSFz4FxpQkoDhSeUVA6EHaTWRI= # =CbQe # -----END PGP SIGNATURE----- # gpg: Signature made Tue Jun 10 19:45:09 2025 EEST # gpg: using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78 # gpg: Good signature from "The Android Open Source Project <[email protected]>" [ultimate] # By Adrian Roos (1) and others # Via Android Build Coastguard Worker (8) and others * tag 'android-16.0.0_r1': packages/inputmethods/LatinIME: remove deprecated Mockito usages Explicitly keep default constructor in rules without members Fix crash: NPE in SuggestionStripView in LatinIME Change-Id: Ic916c37f6894b2b222b54c8a95ead314829b339e
2 parents ee57620 + 83c7f18 commit f052ec6

File tree

5 files changed

+35
-11
lines changed

5 files changed

+35
-11
lines changed

java/proguard.flags

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Keep classes and methods that have the @UsedForTesting annotation
2-
-keep @com.android.inputmethod.annotations.UsedForTesting class *
2+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
3+
-keep @com.android.inputmethod.annotations.UsedForTesting class * {
4+
void <init>();
5+
}
36
-keepclassmembers class * {
47
@com.android.inputmethod.annotations.UsedForTesting *;
58
}
69

710
# Keep classes and methods that have the @ExternallyReferenced annotation
8-
-keep @com.android.inputmethod.annotations.ExternallyReferenced class *
11+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
12+
-keep @com.android.inputmethod.annotations.ExternallyReferenced class * {
13+
void <init>();
14+
}
915
-keepclassmembers class * {
1016
@com.android.inputmethod.annotations.ExternallyReferenced *;
1117
}
@@ -17,11 +23,26 @@
1723

1824
# Keep classes that are used as a parameter type of methods that are also marked as keep
1925
# to preserve changing those methods' signature.
20-
-keep class com.android.inputmethod.latin.AssetFileAddress
21-
-keep class com.android.inputmethod.latin.Dictionary
22-
-keep class com.android.inputmethod.latin.NgramContext
23-
-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo
24-
-keep class com.android.inputmethod.latin.utils.LanguageModelParam
26+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
27+
-keep class com.android.inputmethod.latin.AssetFileAddress {
28+
void <init>();
29+
}
30+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
31+
-keep class com.android.inputmethod.latin.Dictionary {
32+
void <init>();
33+
}
34+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
35+
-keep class com.android.inputmethod.latin.NgramContext {
36+
void <init>();
37+
}
38+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
39+
-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo {
40+
void <init>();
41+
}
42+
# TODO(b/373579455): Evaluate if <init> needs to be kept.
43+
-keep class com.android.inputmethod.latin.utils.LanguageModelParam {
44+
void <init>();
45+
}
2546

2647
# TODO: remove once used in code.
2748
-keep class com.android.inputmethod.keyboard.KeyboardLayout { *; }

java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ boolean showMoreSuggestions() {
343343
new GestureDetector.SimpleOnGestureListener() {
344344
@Override
345345
public boolean onScroll(MotionEvent down, MotionEvent me, float deltaX, float deltaY) {
346+
if (down == null) {
347+
return false;
348+
}
346349
final float dy = me.getY() - down.getY();
347350
if (deltaY > 0 && dy < 0) {
348351
return showMoreSuggestions();

tests/src/com/android/inputmethod/latin/ContactsContentObserverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import static org.junit.Assert.assertFalse;
2020
import static org.junit.Assert.assertTrue;
21-
import static org.mockito.Matchers.eq;
21+
import static org.mockito.ArgumentMatchers.eq;
2222
import static org.mockito.Mockito.validateMockitoUsage;
2323
import static org.mockito.Mockito.when;
2424

tests/src/com/android/inputmethod/latin/network/BlockingHttpClientTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import static org.junit.Assert.assertEquals;
2020
import static org.junit.Assert.assertTrue;
2121
import static org.junit.Assert.fail;
22-
import static org.mockito.Matchers.any;
23-
import static org.mockito.Matchers.eq;
22+
import static org.mockito.ArgumentMatchers.any;
23+
import static org.mockito.ArgumentMatchers.eq;
2424
import static org.mockito.Mockito.verify;
2525
import static org.mockito.Mockito.when;
2626

tests/src/com/android/inputmethod/latin/settings/AccountsSettingsFragmentTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import static org.junit.Assert.assertEquals;
2020
import static org.junit.Assert.assertNull;
2121
import static org.junit.Assert.fail;
22-
import static org.mockito.Matchers.any;
22+
import static org.mockito.ArgumentMatchers.any;
2323
import static org.mockito.Mockito.when;
2424

2525
import android.app.AlertDialog;

0 commit comments

Comments
 (0)