Replace the android support annotation library with androidx's one.

This change does not affect downstream dependencies as androidx.annotation
is fully compatible with android.support.annotation.

Bug: webrtc:11962
Change-Id: I714b473df8d0fee8000ddf3a9beca7c5613db5ff
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/226881
Commit-Queue: Xavier Lepaul‎ <xalep@webrtc.org>
Reviewed-by: Xavier Lepaul‎ <xalep@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#34839}
This commit is contained in:
Byoungchan Lee 2021-08-14 11:41:59 +09:00 committed by WebRTC LUCI CQ
parent e9716de2cd
commit 02334e07c5
92 changed files with 108 additions and 109 deletions

View file

@ -150,7 +150,7 @@ if (is_android) {
"../sdk/android:video_api_java", "../sdk/android:video_api_java",
"../sdk/android:video_java", "../sdk/android:video_java",
"androidapp/third_party/autobanh:autobanh_java", "androidapp/third_party/autobanh:autobanh_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -864,7 +864,7 @@ if (is_android) {
"../sdk/android:peerconnection_java", "../sdk/android:peerconnection_java",
"../sdk/android:video_api_java", "../sdk/android:video_api_java",
"../sdk/android:video_java", "../sdk/android:video_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -880,7 +880,7 @@ if (is_android) {
"../rtc_base:base_java", "../rtc_base:base_java",
"../sdk/android:libjingle_peerconnection_java", "../sdk/android:libjingle_peerconnection_java",
"../sdk/android:libjingle_peerconnection_metrics_default_java", "../sdk/android:libjingle_peerconnection_metrics_default_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }

View file

@ -46,7 +46,7 @@ dependencies {
implementation fileTree(dir: project.aarDir, include: ['google-webrtc-*.aar']) implementation fileTree(dir: project.aarDir, include: ['google-webrtc-*.aar'])
} }
implementation fileTree(dir: '../../androidapp/third_party/autobanh/lib', include: ['autobanh.jar']) implementation fileTree(dir: '../../androidapp/third_party/autobanh/lib', include: ['autobanh.jar'])
implementation 'com.android.support:support-annotations:26.1.0' implementation 'androidx.annotation:annotation:1.2.0'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

View file

@ -15,3 +15,8 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit # This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true # org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true

View file

@ -20,8 +20,8 @@ import android.media.AudioDeviceInfo;
import android.media.AudioManager; import android.media.AudioManager;
import android.os.Build; import android.os.Build;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;

View file

@ -24,8 +24,8 @@ import android.media.AudioManager;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.os.Process; import android.os.Process;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import org.appspot.apprtc.util.AppRTCUtils; import org.appspot.apprtc.util.AppRTCUtils;

View file

@ -16,8 +16,8 @@ import android.hardware.SensorEvent;
import android.hardware.SensorEventListener; import android.hardware.SensorEventListener;
import android.hardware.SensorManager; import android.hardware.SensorManager;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import org.appspot.apprtc.util.AppRTCUtils; import org.appspot.apprtc.util.AppRTCUtils;
import org.webrtc.ThreadUtils; import org.webrtc.ThreadUtils;

View file

@ -24,7 +24,6 @@ import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.support.annotation.Nullable;
import android.util.DisplayMetrics; import android.util.DisplayMetrics;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
@ -32,6 +31,7 @@ import android.view.Window;
import android.view.WindowManager; import android.view.WindowManager;
import android.view.WindowManager.LayoutParams; import android.view.WindowManager.LayoutParams;
import android.widget.Toast; import android.widget.Toast;
import androidx.annotation.Nullable;
import java.io.IOException; import java.io.IOException;
import java.lang.RuntimeException; import java.lang.RuntimeException;
import java.util.ArrayList; import java.util.ArrayList;

View file

@ -22,7 +22,6 @@ import android.net.Uri;
import android.os.Build; import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.preference.PreferenceManager; import android.preference.PreferenceManager;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import android.view.ContextMenu; import android.view.ContextMenu;
import android.view.KeyEvent; import android.view.KeyEvent;
@ -38,6 +37,7 @@ import android.widget.EditText;
import android.widget.ImageButton; import android.widget.ImageButton;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Random; import java.util.Random;
import org.json.JSONArray; import org.json.JSONArray;

View file

@ -17,8 +17,8 @@ import android.content.IntentFilter;
import android.os.BatteryManager; import android.os.BatteryManager;
import android.os.Build; import android.os.Build;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;

View file

@ -10,8 +10,8 @@
package org.appspot.apprtc; package org.appspot.apprtc;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors; import java.util.concurrent.Executors;

View file

@ -13,8 +13,8 @@ package org.appspot.apprtc;
import android.content.Context; import android.content.Context;
import android.os.Environment; import android.os.Environment;
import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;

View file

@ -12,8 +12,8 @@ package org.appspot.apprtc;
import android.media.AudioFormat; import android.media.AudioFormat;
import android.os.Environment; import android.os.Environment;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.io.File; import java.io.File;
import java.io.FileNotFoundException; import java.io.FileNotFoundException;
import java.io.FileOutputStream; import java.io.FileOutputStream;

View file

@ -10,8 +10,8 @@
package org.appspot.apprtc; package org.appspot.apprtc;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.io.InputStreamReader; import java.io.InputStreamReader;

View file

@ -11,8 +11,8 @@
package org.appspot.apprtc; package org.appspot.apprtc;
import android.os.Handler; import android.os.Handler;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import de.tavendo.autobahn.WebSocket.WebSocketConnectionObserver; import de.tavendo.autobahn.WebSocket.WebSocketConnectionObserver;
import de.tavendo.autobahn.WebSocketConnection; import de.tavendo.autobahn.WebSocketConnection;
import de.tavendo.autobahn.WebSocketException; import de.tavendo.autobahn.WebSocketException;

View file

@ -12,8 +12,8 @@ package org.appspot.apprtc;
import android.os.Handler; import android.os.Handler;
import android.os.HandlerThread; import android.os.HandlerThread;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import org.appspot.apprtc.RoomParametersFetcher.RoomParametersFetcherEvents; import org.appspot.apprtc.RoomParametersFetcher.RoomParametersFetcherEvents;
import org.appspot.apprtc.WebSocketChannelClient.WebSocketChannelEvents; import org.appspot.apprtc.WebSocketChannelClient.WebSocketChannelEvents;
import org.appspot.apprtc.WebSocketChannelClient.WebSocketConnectionState; import org.appspot.apprtc.WebSocketChannelClient.WebSocketConnectionState;

View file

@ -21,7 +21,7 @@ if (is_android) {
"//sdk/android:surfaceviewrenderer_java", "//sdk/android:surfaceviewrenderer_java",
"//sdk/android:video_api_java", "//sdk/android:video_api_java",
"//sdk/android:video_java", "//sdk/android:video_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
shared_libraries = [ ":examples_androidnativeapi_jni" ] shared_libraries = [ ":examples_androidnativeapi_jni" ]

View file

@ -13,8 +13,8 @@ package org.webrtc.examples.androidnativeapi;
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button; import android.widget.Button;
import androidx.annotation.Nullable;
import org.webrtc.Camera1Enumerator; import org.webrtc.Camera1Enumerator;
import org.webrtc.Camera2Enumerator; import org.webrtc.Camera2Enumerator;
import org.webrtc.CameraEnumerator; import org.webrtc.CameraEnumerator;

View file

@ -11,7 +11,7 @@
package org.webrtc; package org.webrtc;
import android.content.Context; import android.content.Context;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
public class UnityUtility { public class UnityUtility {
private static final String VIDEO_CAPTURER_THREAD_NAME = "VideoCapturerThread"; private static final String VIDEO_CAPTURER_THREAD_NAME = "VideoCapturerThread";

View file

@ -442,7 +442,7 @@ if (!build_with_chromium && is_android) {
] ]
deps = [ deps = [
"../../rtc_base:base_java", "../../rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
} }

View file

@ -15,7 +15,7 @@ import android.media.audiofx.AudioEffect;
import android.media.audiofx.AudioEffect.Descriptor; import android.media.audiofx.AudioEffect.Descriptor;
import android.media.audiofx.NoiseSuppressor; import android.media.audiofx.NoiseSuppressor;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import org.webrtc.Logging; import org.webrtc.Logging;

View file

@ -17,7 +17,7 @@ import android.media.AudioManager;
import android.media.AudioRecord; import android.media.AudioRecord;
import android.media.AudioTrack; import android.media.AudioTrack;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.Timer; import java.util.Timer;
import java.util.TimerTask; import java.util.TimerTask;
import org.webrtc.ContextUtils; import org.webrtc.ContextUtils;

View file

@ -15,7 +15,7 @@ import android.media.AudioRecord;
import android.media.MediaRecorder.AudioSource; import android.media.MediaRecorder.AudioSource;
import android.os.Build; import android.os.Build;
import android.os.Process; import android.os.Process;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.lang.System; import java.lang.System;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.Arrays; import java.util.Arrays;

View file

@ -18,7 +18,7 @@ import android.media.AudioManager;
import android.media.AudioTrack; import android.media.AudioTrack;
import android.os.Build; import android.os.Build;
import android.os.Process; import android.os.Process;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.lang.Thread; import java.lang.Thread;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import org.webrtc.ContextUtils; import org.webrtc.ContextUtils;

View file

@ -1577,9 +1577,7 @@ if (is_android) {
"java/src/org/webrtc/Size.java", "java/src/org/webrtc/Size.java",
"java/src/org/webrtc/ThreadUtils.java", "java/src/org/webrtc/ThreadUtils.java",
] ]
deps = [ deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
"//third_party/android_deps:com_android_support_support_annotations_java",
]
} }
java_cpp_enum("network_monitor_enums") { java_cpp_enum("network_monitor_enums") {
sources = [ "network_monitor.h" ] sources = [ "network_monitor.h" ]

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.io.StringWriter; import java.io.StringWriter;
import java.util.EnumSet; import java.util.EnumSet;

View file

@ -13,7 +13,7 @@ package org.webrtc;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View file

@ -164,9 +164,7 @@ if (is_android) {
"src/java/org/webrtc/WebRtcClassLoader.java", "src/java/org/webrtc/WebRtcClassLoader.java",
] ]
deps = [ deps = [ "//third_party/androidx:androidx_annotation_annotation_java" ]
"//third_party/android_deps:com_android_support_support_annotations_java",
]
} }
rtc_android_library("audio_api_java") { rtc_android_library("audio_api_java") {
@ -201,7 +199,6 @@ if (is_android) {
deps = [ deps = [
":base_java", ":base_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java",
"//third_party/androidx:androidx_annotation_annotation_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
srcjar_deps = [ "//api/video:video_frame_enums" ] srcjar_deps = [ "//api/video:video_frame_enums" ]
@ -246,7 +243,7 @@ if (is_android) {
":base_java", ":base_java",
":video_api_java", ":video_api_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -320,7 +317,6 @@ if (is_android) {
":video_java", ":video_java",
"//modules/audio_device:audio_device_java", "//modules/audio_device:audio_device_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java",
"//third_party/androidx:androidx_annotation_annotation_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
srcjar_deps = [ srcjar_deps = [
@ -352,7 +348,7 @@ if (is_android) {
":video_api_java", ":video_api_java",
":video_java", ":video_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -368,7 +364,7 @@ if (is_android) {
":swcodecs_java", ":swcodecs_java",
":video_api_java", ":video_api_java",
":video_java", ":video_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -412,7 +408,7 @@ if (is_android) {
":video_api_java", ":video_api_java",
":video_java", ":video_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -433,7 +429,7 @@ if (is_android) {
":audio_api_java", ":audio_api_java",
":base_java", ":base_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -455,7 +451,7 @@ if (is_android) {
":video_api_java", ":video_api_java",
":video_java", ":video_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
@ -531,7 +527,7 @@ if (is_android) {
":video_api_java", ":video_api_java",
":video_java", ":video_java",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java", "//third_party/androidx:androidx_annotation_annotation_java",
] ]
} }
} }
@ -1453,10 +1449,10 @@ if (is_android) {
":video_java", ":video_java",
"//base:base_java_test_support", "//base:base_java_test_support",
"//rtc_base:base_java", "//rtc_base:base_java",
"//third_party/android_deps:com_android_support_support_annotations_java",
"//third_party/android_deps:guava_android_java", "//third_party/android_deps:guava_android_java",
"//third_party/android_support_test_runner:rules_java", "//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java", "//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_runner_java", "//third_party/androidx:androidx_test_runner_java",
"//third_party/google-truth:google_truth_java", "//third_party/google-truth:google_truth_java",
"//third_party/hamcrest:hamcrest_java", "//third_party/hamcrest:hamcrest_java",
@ -1634,8 +1630,8 @@ if (is_android) {
":video_api_java", ":video_api_java",
":video_java", ":video_java",
"//base:base_java_test_support", "//base:base_java_test_support",
"//third_party/android_deps:com_android_support_support_annotations_java",
"//third_party/android_deps:guava_android_java", "//third_party/android_deps:guava_android_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/google-truth:google_truth_java", "//third_party/google-truth:google_truth_java",
] ]

View file

@ -11,7 +11,7 @@
package org.webrtc; package org.webrtc;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.webrtc.CameraEnumerationAndroid.CaptureFormat; import org.webrtc.CameraEnumerationAndroid.CaptureFormat;

View file

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

View file

@ -20,9 +20,9 @@ import android.hardware.camera2.CameraMetadata;
import android.hardware.camera2.params.StreamConfigurationMap; import android.hardware.camera2.params.StreamConfigurationMap;
import android.os.Build; import android.os.Build;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.annotation.Nullable;
import android.util.AndroidException; import android.util.AndroidException;
import android.util.Range; import android.util.Range;
import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;

View file

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

View file

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

View file

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

View file

@ -18,8 +18,8 @@ import android.os.Handler;
import android.os.HandlerThread; import android.os.HandlerThread;
import android.os.Looper; import android.os.Looper;
import android.os.Message; import android.os.Message;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.text.DecimalFormat; import java.text.DecimalFormat;
import java.util.ArrayList; import java.util.ArrayList;

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View file

@ -11,7 +11,7 @@
package org.webrtc; package org.webrtc;
import android.media.MediaCodecInfo; import android.media.MediaCodecInfo;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.Arrays; import java.util.Arrays;
/** Factory for Android hardware VideoDecoders. */ /** Factory for Android hardware VideoDecoders. */

View file

@ -17,7 +17,7 @@ import static org.webrtc.MediaCodecUtils.QCOM_PREFIX;
import android.media.MediaCodecInfo; import android.media.MediaCodecInfo;
import android.media.MediaCodecList; import android.media.MediaCodecList;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.Arrays; import java.util.Arrays;
import org.webrtc.PeerConnection; import org.webrtc.PeerConnection;

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import org.webrtc.VideoFrame.I420Buffer; import org.webrtc.VideoFrame.I420Buffer;

View file

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

View file

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

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.List; import java.util.List;
/** Interface for detecting network changes */ /** Interface for detecting network changes */

View file

@ -12,7 +12,7 @@ package org.webrtc;
import android.content.Context; import android.content.Context;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.webrtc.NetworkChangeDetector; import org.webrtc.NetworkChangeDetector;

View file

@ -28,8 +28,8 @@ import android.net.wifi.WifiManager;
import android.net.wifi.p2p.WifiP2pGroup; import android.net.wifi.p2p.WifiP2pGroup;
import android.net.wifi.p2p.WifiP2pManager; import android.net.wifi.p2p.WifiP2pManager;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable;
import android.telephony.TelephonyManager; import android.telephony.TelephonyManager;
import androidx.annotation.Nullable;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.NetworkInterface; import java.net.NetworkInterface;
import java.net.SocketException; import java.net.SocketException;

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;

View file

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

View file

@ -12,7 +12,7 @@ package org.webrtc;
import android.content.Context; import android.content.Context;
import android.os.Process; import android.os.Process;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.List; import java.util.List;
import org.webrtc.Logging.Severity; import org.webrtc.Logging.Severity;
import org.webrtc.PeerConnection; import org.webrtc.PeerConnection;

View file

@ -11,7 +11,7 @@
package org.webrtc; package org.webrtc;
import android.media.MediaCodecInfo; import android.media.MediaCodecInfo;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.Arrays; import java.util.Arrays;
/** Factory for Android platform software VideoDecoders. */ /** Factory for Android platform software VideoDecoders. */

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.lang.Double; import java.lang.Double;
import java.lang.String; import java.lang.String;
import java.util.List; import java.util.List;

View file

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

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.List; import java.util.List;
/** Java wrapper for a C++ RtpSenderInterface. */ /** Java wrapper for a C++ RtpSenderInterface. */

View file

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

View file

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

View file

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

View file

@ -17,7 +17,7 @@ import android.opengl.GLES20;
import android.os.Build; import android.os.Build;
import android.os.Handler; import android.os.Handler;
import android.os.HandlerThread; import android.os.HandlerThread;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import org.webrtc.EglBase.Context; import org.webrtc.EglBase.Context;
import org.webrtc.TextureBufferImpl.RefCountMonitor; import org.webrtc.TextureBufferImpl.RefCountMonitor;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -13,7 +13,7 @@ package org.webrtc;
import android.graphics.Matrix; import android.graphics.Matrix;
import android.graphics.Point; import android.graphics.Point;
import android.opengl.GLES20; import android.opengl.GLES20;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
/** /**

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
/** /**
* Lightweight abstraction for an object that can receive video frames, process them, and pass them * Lightweight abstraction for an object that can receive video frames, process them, and pass them

View file

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

View file

@ -13,7 +13,7 @@ package org.webrtc;
import android.graphics.Matrix; import android.graphics.Matrix;
import android.opengl.GLES20; import android.opengl.GLES20;
import android.opengl.GLException; import android.opengl.GLException;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import org.webrtc.VideoFrame.I420Buffer; import org.webrtc.VideoFrame.I420Buffer;
import org.webrtc.VideoFrame.TextureBuffer; import org.webrtc.VideoFrame.TextureBuffer;

View file

@ -15,7 +15,7 @@ import android.media.AudioAttributes;
import android.media.AudioDeviceInfo; import android.media.AudioDeviceInfo;
import android.media.AudioManager; import android.media.AudioManager;
import android.os.Build; import android.os.Build;
import android.support.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledExecutorService;
import org.webrtc.JniCommon; import org.webrtc.JniCommon;
import org.webrtc.Logging; import org.webrtc.Logging;

View file

@ -13,7 +13,7 @@ package org.webrtc;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View file

@ -19,8 +19,8 @@ import android.hardware.camera2.CameraDevice;
import android.hardware.camera2.CameraManager; import android.hardware.camera2.CameraManager;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.support.annotation.Nullable;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import androidx.annotation.Nullable;
import androidx.test.filters.LargeTest; import androidx.test.filters.LargeTest;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;

View file

@ -16,7 +16,7 @@ import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail; import static org.junit.Assert.fail;
import android.content.Context; import android.content.Context;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch;

View file

@ -12,7 +12,7 @@ package org.webrtc;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;

View file

@ -18,8 +18,8 @@ import static org.junit.Assert.fail;
import android.annotation.TargetApi; import android.annotation.TargetApi;
import android.graphics.Matrix; import android.graphics.Matrix;
import android.opengl.GLES11Ext; import android.opengl.GLES11Ext;
import android.support.annotation.Nullable;
import android.util.Log; import android.util.Log;
import androidx.annotation.Nullable;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.ArrayList; import java.util.ArrayList;

View file

@ -24,10 +24,10 @@ import android.net.Network;
import android.os.Build; import android.os.Build;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.support.annotation.Nullable;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import android.support.test.annotation.UiThreadTest; import android.support.test.annotation.UiThreadTest;
import android.support.test.rule.UiThreadTestRule; import android.support.test.rule.UiThreadTestRule;
import androidx.annotation.Nullable;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import java.util.List; import java.util.List;

View file

@ -17,8 +17,8 @@ import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull; import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
import android.support.annotation.Nullable;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import androidx.annotation.Nullable;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;

View file

@ -16,7 +16,7 @@ import static org.junit.Assert.fail;
import android.opengl.GLES20; import android.opengl.GLES20;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;

View file

@ -14,8 +14,8 @@ import android.media.MediaCodec;
import android.media.MediaCodecInfo.CodecCapabilities; import android.media.MediaCodecInfo.CodecCapabilities;
import android.media.MediaFormat; import android.media.MediaFormat;
import android.os.SystemClock; import android.os.SystemClock;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable;
import java.io.IOException; import java.io.IOException;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.concurrent.BlockingDeque; import java.util.concurrent.BlockingDeque;

View file

@ -21,9 +21,9 @@ import android.hardware.camera2.CameraMetadata;
import android.hardware.camera2.CaptureFailure; import android.hardware.camera2.CaptureFailure;
import android.hardware.camera2.CaptureRequest; import android.hardware.camera2.CaptureRequest;
import android.os.Handler; import android.os.Handler;
import android.support.annotation.Nullable;
import android.util.Range; import android.util.Range;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;

View file

@ -13,7 +13,7 @@ package org.webrtc;
import android.content.Context; import android.content.Context;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;

View file

@ -13,9 +13,9 @@ package org.webrtc;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Rect; import android.graphics.Rect;
import android.graphics.SurfaceTexture; import android.graphics.SurfaceTexture;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import android.view.SurfaceHolder; import android.view.SurfaceHolder;
import androidx.annotation.Nullable;
import javax.microedition.khronos.egl.EGL10; import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLContext; import javax.microedition.khronos.egl.EGLContext;

View file

@ -19,8 +19,8 @@ import android.opengl.EGLDisplay;
import android.opengl.EGLExt; import android.opengl.EGLExt;
import android.opengl.EGLSurface; import android.opengl.EGLSurface;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable;
import org.webrtc.EglBase; import org.webrtc.EglBase;
/** /**

View file

@ -12,7 +12,7 @@ package org.webrtc;
import android.opengl.GLES11Ext; import android.opengl.GLES11Ext;
import android.opengl.GLES20; import android.opengl.GLES20;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.FloatBuffer; import java.nio.FloatBuffer;
import org.webrtc.GlShader; import org.webrtc.GlShader;
import org.webrtc.GlUtil; import org.webrtc.GlUtil;

View file

@ -16,8 +16,8 @@ import android.media.MediaCodecInfo;
import android.media.MediaFormat; import android.media.MediaFormat;
import android.opengl.GLES20; import android.opengl.GLES20;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable;
import java.io.IOException; import java.io.IOException;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.Map; import java.util.Map;

View file

@ -14,7 +14,7 @@ import android.annotation.TargetApi;
import android.media.MediaCodecInfo; import android.media.MediaCodecInfo;
import android.media.MediaCodecInfo.CodecCapabilities; import android.media.MediaCodecInfo.CodecCapabilities;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View file

@ -17,7 +17,7 @@ import android.media.MediaCodecInfo;
import android.media.MediaCodecInfo.CodecCapabilities; import android.media.MediaCodecInfo.CodecCapabilities;
import android.media.MediaCodecList; import android.media.MediaCodecList;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
public class NV12Buffer implements VideoFrame.Buffer { public class NV12Buffer implements VideoFrame.Buffer {

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
public class NV21Buffer implements VideoFrame.Buffer { public class NV21Buffer implements VideoFrame.Buffer {

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import org.webrtc.VideoFrame; import org.webrtc.VideoFrame;
import org.webrtc.VideoProcessor; import org.webrtc.VideoProcessor;

View file

@ -10,7 +10,7 @@
package org.webrtc; package org.webrtc;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/** /**

View file

@ -11,7 +11,7 @@
package org.webrtc; package org.webrtc;
// Explicit imports necessary for JNI generation. // Explicit imports necessary for JNI generation.
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import org.webrtc.VideoEncoder; import org.webrtc.VideoEncoder;
/** /**

View file

@ -11,7 +11,7 @@
package org.webrtc.audio; package org.webrtc.audio;
import android.media.AudioManager; import android.media.AudioManager;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.Timer; import java.util.Timer;
import java.util.TimerTask; import java.util.TimerTask;
import org.webrtc.Logging; import org.webrtc.Logging;

View file

@ -15,7 +15,7 @@ import android.media.audiofx.AudioEffect;
import android.media.audiofx.AudioEffect.Descriptor; import android.media.audiofx.AudioEffect.Descriptor;
import android.media.audiofx.NoiseSuppressor; import android.media.audiofx.NoiseSuppressor;
import android.os.Build; import android.os.Build;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.util.UUID; import java.util.UUID;
import org.webrtc.Logging; import org.webrtc.Logging;

View file

@ -20,8 +20,8 @@ import android.media.AudioRecordingConfiguration;
import android.media.MediaRecorder.AudioSource; import android.media.MediaRecorder.AudioSource;
import android.os.Build; import android.os.Build;
import android.os.Process; import android.os.Process;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import android.support.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import java.lang.System; import java.lang.System;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.Arrays; import java.util.Arrays;

View file

@ -18,7 +18,7 @@ import android.media.AudioManager;
import android.media.AudioTrack; import android.media.AudioTrack;
import android.os.Build; import android.os.Build;
import android.os.Process; import android.os.Process;
import android.support.annotation.Nullable; import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import org.webrtc.CalledByNative; import org.webrtc.CalledByNative;
import org.webrtc.Logging; import org.webrtc.Logging;

View file

@ -16,8 +16,8 @@ import android.media.MediaCodecInfo.CodecCapabilities;
import android.media.MediaCrypto; import android.media.MediaCrypto;
import android.media.MediaFormat; import android.media.MediaFormat;
import android.os.Bundle; import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Surface; import android.view.Surface;
import androidx.annotation.Nullable;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;