Loading android/app/src/com/android/bluetooth/hap/HapClientService.java +5 −4 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ import static android.Manifest.permission.BLUETOOTH_CONNECT; import static android.Manifest.permission.BLUETOOTH_PRIVILEGED; import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNullElse; import static java.util.Objects.requireNonNullElseGet; import android.bluetooth.BluetoothCsipSetCoordinator; import android.bluetooth.BluetoothDevice; Loading Loading @@ -122,8 +122,9 @@ public class HapClientService extends ProfileService { super(adapterService); mAdapterService = requireNonNull(adapterService); mHapClientNativeInterface = requireNonNullElse( requireNonNullElseGet( nativeInterface, () -> new HapClientNativeInterface( new HapClientNativeCallback(adapterService, this))); mDatabaseManager = requireNonNull(mAdapterService.getDatabase()); Loading android/app/src/com/android/bluetooth/telephony/BluetoothInCallService.java +1 −1 Original line number Diff line number Diff line Loading @@ -363,7 +363,7 @@ public class BluetoothInCallService extends InCallService { private BluetoothInCallService(CallInfo callInfo) { Log.i(TAG, "BluetoothInCallService is created"); mCallInfo = Objects.requireNonNullElse(callInfo, new CallInfo()); mCallInfo = Objects.requireNonNullElseGet(callInfo, () -> new CallInfo()); sInstance = this; mExecutor = Executors.newSingleThreadExecutor(); } Loading Loading
android/app/src/com/android/bluetooth/hap/HapClientService.java +5 −4 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ import static android.Manifest.permission.BLUETOOTH_CONNECT; import static android.Manifest.permission.BLUETOOTH_PRIVILEGED; import static java.util.Objects.requireNonNull; import static java.util.Objects.requireNonNullElse; import static java.util.Objects.requireNonNullElseGet; import android.bluetooth.BluetoothCsipSetCoordinator; import android.bluetooth.BluetoothDevice; Loading Loading @@ -122,8 +122,9 @@ public class HapClientService extends ProfileService { super(adapterService); mAdapterService = requireNonNull(adapterService); mHapClientNativeInterface = requireNonNullElse( requireNonNullElseGet( nativeInterface, () -> new HapClientNativeInterface( new HapClientNativeCallback(adapterService, this))); mDatabaseManager = requireNonNull(mAdapterService.getDatabase()); Loading
android/app/src/com/android/bluetooth/telephony/BluetoothInCallService.java +1 −1 Original line number Diff line number Diff line Loading @@ -363,7 +363,7 @@ public class BluetoothInCallService extends InCallService { private BluetoothInCallService(CallInfo callInfo) { Log.i(TAG, "BluetoothInCallService is created"); mCallInfo = Objects.requireNonNullElse(callInfo, new CallInfo()); mCallInfo = Objects.requireNonNullElseGet(callInfo, () -> new CallInfo()); sInstance = this; mExecutor = Executors.newSingleThreadExecutor(); } Loading