mirror of
https://github.com/androidx/media.git
synced 2025-05-11 17:49:52 +08:00
Suppress warnings emitted by Checker Framework version 2.6.0
PiperOrigin-RevId: 234917536
This commit is contained in:
parent
e502672b89
commit
1450b3713f
@ -68,6 +68,8 @@ public abstract class GvrPlayerActivity extends GvrActivity {
|
||||
mainHandler = new Handler(Looper.getMainLooper());
|
||||
}
|
||||
|
||||
// TODO(b/124903498): Incompatible parameter type for savedInstanceState.
|
||||
@SuppressWarnings("nullness:override.param.invalid")
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
@ -136,7 +136,10 @@ public final class DrmInitData implements Comparator<SchemeData>, Parcelable {
|
||||
Arrays.sort(this.schemeDatas, this);
|
||||
}
|
||||
|
||||
/* package */ DrmInitData(Parcel in) {
|
||||
/* package */
|
||||
// TODO(b/124903498): incompatible types in assignment.
|
||||
@SuppressWarnings("nullness:assignment.type.incompatible")
|
||||
DrmInitData(Parcel in) {
|
||||
schemeType = in.readString();
|
||||
schemeDatas = in.createTypedArray(SchemeData.CREATOR);
|
||||
schemeDataCount = schemeDatas.length;
|
||||
|
@ -45,7 +45,10 @@ public final class ChapterTocFrame extends Id3Frame {
|
||||
this.subFrames = subFrames;
|
||||
}
|
||||
|
||||
/* package */ ChapterTocFrame(Parcel in) {
|
||||
/* package */
|
||||
// TODO(b/124903498): incompatible types in assignment.
|
||||
@SuppressWarnings("nullness:assignment.type.incompatible")
|
||||
ChapterTocFrame(Parcel in) {
|
||||
super(ID);
|
||||
this.elementId = castNonNull(in.readString());
|
||||
this.isRoot = in.readByte() != 0;
|
||||
|
@ -44,7 +44,10 @@ public final class MlltFrame extends Id3Frame {
|
||||
this.millisecondsDeviations = millisecondsDeviations;
|
||||
}
|
||||
|
||||
/* package */ MlltFrame(Parcel in) {
|
||||
/* package */
|
||||
// TODO(b/124903498): incompatible types in assignment.
|
||||
@SuppressWarnings("nullness:assignment.type.incompatible")
|
||||
MlltFrame(Parcel in) {
|
||||
super(ID);
|
||||
this.mpegFramesBetweenReference = in.readInt();
|
||||
this.bytesBetweenReference = in.readInt();
|
||||
|
@ -363,6 +363,8 @@ public final class DownloadHelper {
|
||||
* Looper}, in which case it will be called on the application's main thread.
|
||||
* @throws IllegalStateException If the download helper has already been prepared.
|
||||
*/
|
||||
// TODO(b/124903498): incompatible types in argument.
|
||||
@SuppressWarnings("nullness:argument.type.incompatible")
|
||||
public void prepare(Callback callback) {
|
||||
Assertions.checkState(this.callback == null);
|
||||
this.callback = callback;
|
||||
|
@ -888,7 +888,10 @@ public class DefaultTrackSelector extends MappingTrackSelector {
|
||||
this.rendererDisabledFlags = rendererDisabledFlags;
|
||||
}
|
||||
|
||||
/* package */ Parameters(Parcel in) {
|
||||
/* package */
|
||||
// TODO(b/124903498): incompatible types in assignment.
|
||||
@SuppressWarnings("nullness:assignment.type.incompatible")
|
||||
Parameters(Parcel in) {
|
||||
super(in);
|
||||
// Video
|
||||
this.maxVideoWidth = in.readInt();
|
||||
|
@ -162,6 +162,8 @@ public final class Util {
|
||||
* @param intent The intent to pass to the called method.
|
||||
* @return The result of the called method.
|
||||
*/
|
||||
// TODO(b/124903498): incompatible types in return.
|
||||
@SuppressWarnings("nullness:return.type.incompatible")
|
||||
public static ComponentName startForegroundService(Context context, Intent intent) {
|
||||
if (Util.SDK_INT >= 26) {
|
||||
return context.startForegroundService(intent);
|
||||
|
@ -1265,6 +1265,8 @@ public class PlayerNotificationManager {
|
||||
|
||||
private class NotificationBroadcastReceiver extends BroadcastReceiver {
|
||||
|
||||
// TODO(b/124903498): incompatible types in argument.
|
||||
@SuppressWarnings("nullness:argument.type.incompatible")
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Player player = PlayerNotificationManager.this.player;
|
||||
|
Loading…
x
Reference in New Issue
Block a user