Use android Nullable instead of javax Nullable

This is a propagation of upstream chromium change needed to
resume DEPS autorolls into WebRTC.

Original comment from upstream change:

> This change is made in preparation for an ErrorProne
> check to catch this at compile time. See bug for details.

Bug: chromium:771683
Change-Id: I56aed15f73a633dcadae7ece6c645cd3596f9257
Reviewed-on: https://webrtc-review.googlesource.com/c/113505
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Artem Titarenko <artit@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25951}
This commit is contained in:
Artem Titarenko
2018-12-10 12:30:46 +01:00
committed by Commit Bot
parent 57011626bd
commit 69540f4419
93 changed files with 118 additions and 113 deletions

View File

@ -11,7 +11,7 @@
package org.webrtc;
import android.content.Context;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
public class Camera1Capturer extends CameraCapturer {
private final boolean captureToTexture;

View File

@ -11,9 +11,9 @@
package org.webrtc;
import android.os.SystemClock;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;
import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
@SuppressWarnings("deprecation")

View File

@ -13,7 +13,7 @@ package org.webrtc;
import android.annotation.TargetApi;
import android.content.Context;
import android.hardware.camera2.CameraManager;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
@TargetApi(21)
public class Camera2Capturer extends CameraCapturer {

View File

@ -20,13 +20,13 @@ import android.hardware.camera2.CameraMetadata;
import android.hardware.camera2.params.StreamConfigurationMap;
import android.os.Build;
import android.os.SystemClock;
import android.support.annotation.Nullable;
import android.util.AndroidException;
import android.util.Range;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
@TargetApi(21)

View File

@ -11,7 +11,7 @@
package org.webrtc;
import android.media.MediaRecorder;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/**
* Base interface for camera1 and camera2 implementations. Extends VideoCapturer with a

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.List;

View File

@ -11,8 +11,8 @@
package org.webrtc;
import android.graphics.SurfaceTexture;
import android.support.annotation.Nullable;
import android.view.Surface;
import javax.annotation.Nullable;
import javax.microedition.khronos.egl.EGL10;
/**

View File

@ -18,6 +18,7 @@ import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.support.annotation.Nullable;
import android.view.Surface;
import java.nio.ByteBuffer;
import java.text.DecimalFormat;
@ -25,7 +26,6 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
/**
* Implements VideoSink by displaying the video stream on an EGL Surface. This class is intended to

View File

@ -11,8 +11,8 @@
package org.webrtc;
import android.media.MediaCodecInfo;
import android.support.annotation.Nullable;
import java.util.Arrays;
import javax.annotation.Nullable;
/** Factory for Android hardware VideoDecoders. */
public class HardwareVideoDecoderFactory extends MediaCodecVideoDecoderFactory {

View File

@ -17,11 +17,11 @@ import static org.webrtc.MediaCodecUtils.QCOM_PREFIX;
import android.media.MediaCodecInfo;
import android.media.MediaCodecList;
import android.os.Build;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
/** Factory for android hardware video encoders. */
@SuppressWarnings("deprecation") // API 16 requires the use of deprecated methods.

View File

@ -10,8 +10,8 @@
package org.webrtc;
import android.support.annotation.Nullable;
import java.nio.ByteBuffer;
import javax.annotation.Nullable;
import org.webrtc.VideoFrame.I420Buffer;
/** Implementation of VideoFrame.I420Buffer backed by Java direct byte buffers. */

View File

@ -18,6 +18,7 @@ import android.media.MediaCodecList;
import android.media.MediaFormat;
import android.os.Build;
import android.os.SystemClock;
import android.support.annotation.Nullable;
import android.view.Surface;
import java.nio.ByteBuffer;
import java.util.ArrayDeque;
@ -30,7 +31,6 @@ import java.util.Queue;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import org.webrtc.EglBase;
import org.webrtc.VideoFrame;

View File

@ -20,6 +20,7 @@ import android.media.MediaFormat;
import android.opengl.GLES20;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Surface;
import java.nio.ByteBuffer;
import java.util.ArrayList;
@ -30,7 +31,6 @@ import java.util.List;
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import javax.annotation.Nullable;
import org.webrtc.EglBase;
import org.webrtc.EglBase14;
import org.webrtc.VideoFrame;

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/** Java wrapper for a C++ MediaStreamTrackInterface. */
public class MediaStreamTrack {

View File

@ -14,9 +14,9 @@ import static org.webrtc.NetworkMonitorAutoDetect.INVALID_NET_ID;
import android.content.Context;
import android.os.Build;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;
import org.webrtc.NetworkMonitorAutoDetect;
/**

View File

@ -28,6 +28,7 @@ import android.net.wifi.WifiManager;
import android.net.wifi.p2p.WifiP2pGroup;
import android.net.wifi.p2p.WifiP2pManager;
import android.os.Build;
import android.support.annotation.Nullable;
import android.telephony.TelephonyManager;
import java.net.InetAddress;
import java.net.NetworkInterface;
@ -35,7 +36,6 @@ import java.net.SocketException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nullable;
/**
* Borrowed from Chromium's

View File

@ -10,10 +10,10 @@
package org.webrtc;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nullable;
import org.webrtc.DataChannel;
import org.webrtc.MediaStreamTrack;
import org.webrtc.RtpTransceiver;

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/**
* PeerConnectionDependencies holds all PeerConnection dependencies that are

View File

@ -11,8 +11,8 @@
package org.webrtc;
import android.content.Context;
import android.support.annotation.Nullable;
import java.util.List;
import javax.annotation.Nullable;
import org.webrtc.Logging.Severity;
import org.webrtc.PeerConnection;
import org.webrtc.audio.AudioDeviceModule;

View File

@ -11,8 +11,8 @@
package org.webrtc;
import android.media.MediaCodecInfo;
import android.support.annotation.Nullable;
import java.util.Arrays;
import javax.annotation.Nullable;
/** Factory for Android platform software VideoDecoders. */
public class PlatformSoftwareVideoDecoderFactory extends MediaCodecVideoDecoderFactory {

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import org.webrtc.MediaStreamTrack;
/** Java wrapper for a C++ RtpReceiverInterface. */

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/** Java wrapper for a C++ RtpSenderInterface. */
public class RtpSender {

View File

@ -18,8 +18,8 @@ import android.hardware.display.DisplayManager;
import android.hardware.display.VirtualDisplay;
import android.media.projection.MediaProjection;
import android.media.projection.MediaProjectionManager;
import android.support.annotation.Nullable;
import android.view.Surface;
import javax.annotation.Nullable;
/**
* An implementation of VideoCapturer to capture the screen content as a video stream.

View File

@ -10,10 +10,10 @@
package org.webrtc;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Nullable;
public class SoftwareVideoDecoderFactory implements VideoDecoderFactory {
@Deprecated

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

View File

@ -18,9 +18,9 @@ import android.opengl.GLES20;
import android.os.Build;
import android.os.Handler;
import android.os.HandlerThread;
import android.support.annotation.Nullable;
import java.nio.ByteBuffer;
import java.util.concurrent.Callable;
import javax.annotation.Nullable;
import org.webrtc.EglBase;
import org.webrtc.VideoFrame.TextureBuffer;

View File

@ -11,8 +11,8 @@
package org.webrtc;
import android.graphics.Matrix;
import javax.annotation.Nullable;
import android.os.Handler;
import android.support.annotation.Nullable;
/**
* Android texture buffer that glues together the necessary information together with a generic

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import java.util.Arrays;
import java.util.Locale;
import java.util.Map;

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/** Factory for creating VideoDecoders. */
public interface VideoDecoderFactory {

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
import org.webrtc.EncodedImage;
/**

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/** Factory for creating VideoEncoders. */
public interface VideoEncoderFactory {

View File

@ -13,8 +13,8 @@ package org.webrtc;
import android.graphics.Matrix;
import android.opengl.GLES11Ext;
import android.opengl.GLES20;
import android.support.annotation.Nullable;
import java.nio.ByteBuffer;
import javax.annotation.Nullable;
/**
* Java version of webrtc::VideoFrame and webrtc::VideoFrameBuffer. A difference from the C++

View File

@ -13,8 +13,8 @@ package org.webrtc;
import android.graphics.Matrix;
import android.graphics.Point;
import android.opengl.GLES20;
import android.support.annotation.Nullable;
import java.nio.ByteBuffer;
import javax.annotation.Nullable;
/**
* Helper class to draw VideoFrames. Calls either drawer.drawOes, drawer.drawRgb, or

View File

@ -10,7 +10,7 @@
package org.webrtc;
import javax.annotation.Nullable;
import android.support.annotation.Nullable;
/**
* Java wrapper of native AndroidVideoTrackSource.