Annotate AppRTCMobile with @Nulllable.

Bug: webrtc:8881
Change-Id: I32390b1e2586415757f0453b60d35b23160d2862
Reviewed-on: https://webrtc-review.googlesource.com/63641
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22580}
This commit is contained in:
Sami Kalliomäki
2018-03-22 13:42:50 +01:00
committed by Commit Bot
parent 6a4d411023
commit 06e363a6e6
13 changed files with 79 additions and 9 deletions

View File

@ -24,6 +24,7 @@ import android.media.AudioManager;
import android.os.Handler;
import android.os.Looper;
import android.os.Process;
import javax.annotation.Nullable;
import android.util.Log;
import java.util.List;
import java.util.Set;
@ -64,14 +65,18 @@ public class AppRTCBluetoothManager {
private final Context apprtcContext;
private final AppRTCAudioManager apprtcAudioManager;
@Nullable
private final AudioManager audioManager;
private final Handler handler;
int scoConnectionAttempts;
private State bluetoothState;
private final BluetoothProfile.ServiceListener bluetoothServiceListener;
@Nullable
private BluetoothAdapter bluetoothAdapter;
@Nullable
private BluetoothHeadset bluetoothHeadset;
@Nullable
private BluetoothDevice bluetoothDevice;
private final BroadcastReceiver bluetoothHeadsetReceiver;
@ -390,6 +395,7 @@ public class AppRTCBluetoothManager {
/**
* Stubs for test mocks.
*/
@Nullable
protected AudioManager getAudioManager(Context context) {
return (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
}