xref: /aosp_15_r20/prebuilts/sdk/29/public/api/incompatibilities.txt (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1// Baseline format: 1.0
2ChangedThrows: android.app.admin.DevicePolicyManager#setAlwaysOnVpnPackage(android.content.ComponentName, String, boolean):
3    Method android.app.admin.DevicePolicyManager.setAlwaysOnVpnPackage no longer throws exception java.lang.UnsupportedOperationException
4ChangedThrows: java.util.Optional#orElseThrow(java.util.function.Supplier<? extends X>):
5    Method java.util.Optional.orElseThrow added thrown exception X
6ChangedThrows: java.util.OptionalDouble#orElseThrow(java.util.function.Supplier<X>):
7    Method java.util.OptionalDouble.orElseThrow added thrown exception X
8ChangedThrows: java.util.OptionalInt#orElseThrow(java.util.function.Supplier<X>):
9    Method java.util.OptionalInt.orElseThrow added thrown exception X
10ChangedThrows: java.util.OptionalLong#orElseThrow(java.util.function.Supplier<X>):
11    Method java.util.OptionalLong.orElseThrow added thrown exception X
12ChangedThrows: java.util.regex.Matcher#start(int):
13    Method java.util.regex.Matcher.start no longer throws exception java.lang.IllegalStateException
14ChangedThrows: java.util.regex.Pattern#compile(String, int):
15    Method java.util.regex.Pattern.compile no longer throws exception java.util.regex.PatternSyntaxException
16
17
18ChangedType: android.os.Parcel#readSparseArray(ClassLoader):
19    Method android.os.Parcel.readSparseArray has changed return type from android.util.SparseArray to android.util.SparseArray<T>
20
21
22InvalidNullConversion: android.os.DropBoxManager#getNextEntry(String, long) parameter #0:
23    Attempted to remove @NonNull annotation from parameter tag in android.os.DropBoxManager.getNextEntry(String tag, long msec)
24InvalidNullConversion: java.io.PrintWriter#format(String, java.lang.Object...) parameter #1:
25    Attempted to change parameter from @Nullable to @NonNull: incompatible change for parameter args in java.io.PrintWriter.format(String format, java.lang.Object... args)
26InvalidNullConversion: java.io.PrintWriter#format(java.util.Locale, String, java.lang.Object...) parameter #2:
27    Attempted to change parameter from @Nullable to @NonNull: incompatible change for parameter args in java.io.PrintWriter.format(java.util.Locale l, String format, java.lang.Object... args)
28InvalidNullConversion: java.io.PrintWriter#printf(String, java.lang.Object...) parameter #1:
29    Attempted to change parameter from @Nullable to @NonNull: incompatible change for parameter args in java.io.PrintWriter.printf(String format, java.lang.Object... args)
30InvalidNullConversion: java.io.PrintWriter#printf(java.util.Locale, String, java.lang.Object...) parameter #2:
31    Attempted to change parameter from @Nullable to @NonNull: incompatible change for parameter args in java.io.PrintWriter.printf(java.util.Locale l, String format, java.lang.Object... args)
32InvalidNullConversion: java.lang.Character#toChars(int):
33    Attempted to remove @NonNull annotation from method java.lang.Character.toChars(int)
34InvalidNullConversion: java.lang.Class#getEnumConstants():
35    Attempted to change method return from @NonNull to @Nullable: incompatible change for method java.lang.Class.getEnumConstants()
36InvalidNullConversion: java.lang.Class#getSigners():
37    Attempted to change method return from @NonNull to @Nullable: incompatible change for method java.lang.Class.getSigners()
38InvalidNullConversion: java.lang.String#format(String, java.lang.Object...) parameter #1:
39    Attempted to change parameter from @Nullable to @NonNull: incompatible change for parameter args in java.lang.String.format(String format, java.lang.Object... args)
40InvalidNullConversion: java.lang.String#format(java.util.Locale, String, java.lang.Object...) parameter #2:
41    Attempted to change parameter from @Nullable to @NonNull: incompatible change for parameter args in java.lang.String.format(java.util.Locale l, String format, java.lang.Object... args)
42InvalidNullConversion: java.util.Map#put(K, V) parameter #0:
43    Attempted to remove @NonNull annotation from parameter key in java.util.Map.put(K key, V value)
44InvalidNullConversion: java.util.Map#put(K, V) parameter #1:
45    Attempted to remove @NonNull annotation from parameter value in java.util.Map.put(K key, V value)
46InvalidNullConversion: java.util.Map#putIfAbsent(K, V) parameter #0:
47    Attempted to remove @NonNull annotation from parameter key in java.util.Map.putIfAbsent(K key, V value)
48InvalidNullConversion: java.util.Map#putIfAbsent(K, V) parameter #1:
49    Attempted to remove @NonNull annotation from parameter value in java.util.Map.putIfAbsent(K key, V value)
50InvalidNullConversion: java.util.Map#replace(K, V) parameter #0:
51    Attempted to remove @NonNull annotation from parameter key in java.util.Map.replace(K key, V value)
52InvalidNullConversion: java.util.Map#replace(K, V) parameter #1:
53    Attempted to remove @NonNull annotation from parameter value in java.util.Map.replace(K key, V value)
54
55
56RemovedDeprecatedMethod: android.graphics.Picture#createFromStream(java.io.InputStream):
57    Removed deprecated method android.graphics.Picture.createFromStream(java.io.InputStream)
58RemovedDeprecatedMethod: android.graphics.Picture#writeToStream(java.io.OutputStream):
59    Removed deprecated method android.graphics.Picture.writeToStream(java.io.OutputStream)
60RemovedDeprecatedMethod: android.icu.text.CollationElementIterator#hashCode():
61    Removed deprecated method android.icu.text.CollationElementIterator.hashCode()
62RemovedDeprecatedMethod: android.icu.text.CurrencyPluralInfo#hashCode():
63    Removed deprecated method android.icu.text.CurrencyPluralInfo.hashCode()
64RemovedDeprecatedMethod: android.icu.text.PluralRules#hashCode():
65    Removed deprecated method android.icu.text.PluralRules.hashCode()
66RemovedDeprecatedMethod: android.icu.text.StringPrepParseException#hashCode():
67    Removed deprecated method android.icu.text.StringPrepParseException.hashCode()
68RemovedDeprecatedMethod: android.location.LocationManager#addNmeaListener(android.location.GpsStatus.NmeaListener):
69    Removed deprecated method android.location.LocationManager.addNmeaListener(android.location.GpsStatus.NmeaListener)
70RemovedDeprecatedMethod: android.location.LocationManager#removeNmeaListener(android.location.GpsStatus.NmeaListener):
71    Removed deprecated method android.location.LocationManager.removeNmeaListener(android.location.GpsStatus.NmeaListener)
72RemovedDeprecatedMethod: android.telephony.TelephonyManager#getNeighboringCellInfo():
73    Removed deprecated method android.telephony.TelephonyManager.getNeighboringCellInfo()
74
75
76RemovedMethod: android.companion.AssociationRequest.Builder#checkNotUsed():
77    Removed method android.companion.AssociationRequest.Builder.checkNotUsed()
78RemovedMethod: android.companion.AssociationRequest.Builder#markUsed():
79    Removed method android.companion.AssociationRequest.Builder.markUsed()
80RemovedMethod: android.companion.BluetoothDeviceFilter.Builder#checkNotUsed():
81    Removed method android.companion.BluetoothDeviceFilter.Builder.checkNotUsed()
82RemovedMethod: android.companion.BluetoothDeviceFilter.Builder#markUsed():
83    Removed method android.companion.BluetoothDeviceFilter.Builder.markUsed()
84RemovedMethod: android.companion.BluetoothLeDeviceFilter.Builder#checkNotUsed():
85    Removed method android.companion.BluetoothLeDeviceFilter.Builder.checkNotUsed()
86RemovedMethod: android.companion.BluetoothLeDeviceFilter.Builder#markUsed():
87    Removed method android.companion.BluetoothLeDeviceFilter.Builder.markUsed()
88RemovedMethod: android.companion.WifiDeviceFilter.Builder#checkNotUsed():
89    Removed method android.companion.WifiDeviceFilter.Builder.checkNotUsed()
90RemovedMethod: android.companion.WifiDeviceFilter.Builder#markUsed():
91    Removed method android.companion.WifiDeviceFilter.Builder.markUsed()
92