Searched refs:cachedDevice (Results 1 – 3 of 3) sorted by relevance
325 CachedBluetoothDevice cachedDevice = in updateConnectedDevicesSlice() local329 if (cachedDevice != null && cachedDevice.isConnected()) { in updateConnectedDevicesSlice()448 CachedBluetoothDevice cachedDevice = in createBluetoothDeviceSlice() local516 && cachedDevice != null && !cachedDevice.isBusy() in createBluetoothDeviceSlice()517 && BluetoothUtils.isConnected(device) && cachedDevice.isConnected() in createBluetoothDeviceSlice()519 || BluetoothUtils.hasAudioProfile(cachedDevice))) { in createBluetoothDeviceSlice()551 if (cachedDevice != null && !cachedDevice.isBusy()) { in createBluetoothDeviceSlice()553 boolean isConnected = BluetoothUtils.isConnected(device) && cachedDevice.isConnected(); in createBluetoothDeviceSlice()
354 CachedBluetoothDevice cachedDevice = in connectDevice() local356 if (cachedDevice != null) { in connectDevice()357 cachedDevice.connect(); in connectDevice()364 CachedBluetoothDevice cachedDevice = in disconnectDevice() local366 if (cachedDevice != null) { in disconnectDevice()367 cachedDevice.disconnect(); in disconnectDevice()
376 public static boolean hasAudioProfile(CachedBluetoothDevice cachedDevice) { in hasAudioProfile() argument377 if (cachedDevice != null) { in hasAudioProfile()378 for (LocalBluetoothProfile profile : cachedDevice.getProfiles()) { in hasAudioProfile()