|
Introduces Android API level linting, fixes all current API lint errors.
This CL attempts to annotate accesses on >16 API levels using as
small scopes as possible. The TargetApi notations mean "yes, I know
I'm accessing a higher API and I take responsibility for gating the
call on Android API level". The Encoder/Decoder classes are annotated
on the whole class, but they're only accessed through JNI; we should
annotate on method level otherwise and preferably on private methods.
This patch also fixes some compiler-level deprecation warnings (i.e.
-Xlint:deprecation), but probably not all of them.
BUG= webrtc:5063
R=henrika@webrtc.org, kjellander@webrtc.org, magjed@webrtc.org
Committed: https://crrev.com/68876f990ea1ea365d2d8155df261b38ec9fbeff
Cr-Commit-Position: refs/heads/master@{#10624}
Total comments: 14
Total comments: 2
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+159 lines, -75 lines) |
Patch |
 |
M |
talk/app/webrtc/java/android/org/webrtc/Camera2Enumerator.java
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
talk/app/webrtc/java/android/org/webrtc/CameraEnumerationAndroid.java
|
View
|
1
2
3
4
5
|
6 chunks |
+20 lines, -19 lines |
0 comments
|
Download
|
 |
M |
talk/app/webrtc/java/android/org/webrtc/CameraEnumerator.java
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
talk/app/webrtc/java/android/org/webrtc/VideoCapturerAndroid.java
|
View
|
1
2
3
4
5
|
16 chunks |
+32 lines, -30 lines |
0 comments
|
Download
|
 |
M |
talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoDecoder.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
talk/app/webrtc/java/src/org/webrtc/MediaCodecVideoEncoder.java
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
talk/libjingle.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
A |
webrtc/build/android/AndroidManifest.xml
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
A |
webrtc/build/android/suppressions.xml
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webrtc/examples/androidapp/AndroidManifest.xml
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java
|
View
|
1
2
3
4
|
5 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java
|
View
|
1
2
3
4
5
6
|
2 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java
|
View
|
|
4 chunks |
+22 lines, -11 lines |
0 comments
|
Download
|
 |
M |
webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 36 (13 generated)
|