Home
last modified time | relevance | path

Searched refs:bluetoothDevice (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java228 for (CachedBluetoothDevice bluetoothDevice : bluetoothDevices) { in getBluetoothRowBuilder()
230 .setTitleItem(getBluetoothDeviceIcon(bluetoothDevice), ListBuilder.ICON_IMAGE) in getBluetoothRowBuilder()
231 .setTitle(bluetoothDevice.getName()) in getBluetoothRowBuilder()
232 .setSubtitle(bluetoothDevice.getConnectionSummary()); in getBluetoothRowBuilder()
234 if (bluetoothDevice.isConnectedA2dpDevice()) { in getBluetoothRowBuilder()
237 rowBuilder.setPrimaryAction(buildMediaBluetoothAction(bluetoothDevice)); in getBluetoothRowBuilder()
238 rowBuilder.addEndItem(buildBluetoothDetailDeepLinkAction(bluetoothDevice)); in getBluetoothRowBuilder()
241 rowBuilder.setPrimaryAction(buildBluetoothDetailDeepLinkAction(bluetoothDevice)); in getBluetoothRowBuilder()
251 SliceAction buildMediaBluetoothAction(CachedBluetoothDevice bluetoothDevice) { in buildMediaBluetoothAction() argument
255 .putExtra(BLUETOOTH_DEVICE_HASH_CODE, bluetoothDevice.hashCode()); in buildMediaBluetoothAction()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java231 for (CachedBluetoothDevice bluetoothDevice : bluetoothDevices) { in getBluetoothRowBuilder()
233 .setTitleItem(getBluetoothDeviceIcon(bluetoothDevice), ListBuilder.ICON_IMAGE) in getBluetoothRowBuilder()
234 .setTitle(bluetoothDevice.getName()) in getBluetoothRowBuilder()
235 .setSubtitle(bluetoothDevice.getConnectionSummary()); in getBluetoothRowBuilder()
237 if (bluetoothDevice.isConnectedA2dpDevice()) { in getBluetoothRowBuilder()
240 rowBuilder.setPrimaryAction(buildMediaBluetoothAction(bluetoothDevice)); in getBluetoothRowBuilder()
241 rowBuilder.addEndItem(buildBluetoothDetailDeepLinkAction(bluetoothDevice)); in getBluetoothRowBuilder()
244 rowBuilder.setPrimaryAction(buildBluetoothDetailDeepLinkAction(bluetoothDevice)); in getBluetoothRowBuilder()
254 SliceAction buildMediaBluetoothAction(CachedBluetoothDevice bluetoothDevice) { in buildMediaBluetoothAction() argument
258 .putExtra(BLUETOOTH_DEVICE_HASH_CODE, bluetoothDevice.hashCode()); in buildMediaBluetoothAction()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java136 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in enableProfile() local
138 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in enableProfile()
143 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in enableProfile()
145 profile.setEnabled(bluetoothDevice, true); in enableProfile()
152 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in disableProfile() local
153 profile.setEnabled(bluetoothDevice, false); in disableProfile()
155 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_REJECTED); in disableProfile()
157 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in disableProfile()
DAdvancedBluetoothDetailsHeaderController.java206 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateSubLayout() local
207 final String iconUri = BluetoothUtils.getStringMetaData(bluetoothDevice, iconMetaKey); in updateSubLayout()
213 final int batteryLevel = BluetoothUtils.getIntMetaData(bluetoothDevice, batteryMetaKey); in updateSubLayout()
214 final boolean charging = BluetoothUtils.getBooleanMetaData(bluetoothDevice, chargeMetaKey); in updateSubLayout()
245 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateDisconnectLayout() local
246 final String iconUri = BluetoothUtils.getStringMetaData(bluetoothDevice, in updateDisconnectLayout()
DBluetoothFeatureProviderImpl.java35 public Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice) { in getBluetoothDeviceSettingsUri() argument
36 final byte[] uriByte = bluetoothDevice.getMetadata( in getBluetoothDeviceSettingsUri()
DBluetoothFeatureProvider.java32 Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice); in getBluetoothDeviceSettingsUri() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DAbstractBluetoothA2dpPreferenceController.java185 BluetoothDevice bluetoothDevice = in setCodecConfigPreference() local
187 if (bluetoothDevice != null) { in setCodecConfigPreference()
188 mBluetoothA2dp.setCodecConfigPreference(bluetoothDevice, config); in setCodecConfigPreference()
195 BluetoothDevice bluetoothDevice = in getCodecConfig() local
197 if (bluetoothDevice == null) { in getCodecConfig()
200 BluetoothCodecStatus codecStatus = mBluetoothA2dp.getCodecStatus(bluetoothDevice); in getCodecConfig()
/packages/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java192 BluetoothDevice bluetoothDevice = in setCodecConfigPreference() local
194 if (bluetoothDevice == null) { in setCodecConfigPreference()
197 mBluetoothA2dp.setCodecConfigPreference(bluetoothDevice, config); in setCodecConfigPreference()
203 BluetoothDevice bluetoothDevice = in getCodecConfig() local
205 if (bluetoothDevice == null) { in getCodecConfig()
208 BluetoothCodecStatus codecStatus = mBluetoothA2dp.getCodecStatus(bluetoothDevice); in getCodecConfig()
/packages/apps/Dialer/java/com/android/incallui/audioroute/
DAudioRouteSelectorDialogFragment.java177 private TextView createBluetoothItem(BluetoothDevice bluetoothDevice, boolean selected) { in createBluetoothItem() argument
181 textView.setText(getAliasName(bluetoothDevice)); in createBluetoothItem()
196 TelecomAdapter.getInstance().requestBluetoothAudio(bluetoothDevice); in createBluetoothItem()
204 private String getAliasName(BluetoothDevice bluetoothDevice) { in getAliasName() argument
206 Method getActiveDeviceMethod = bluetoothDevice.getClass().getDeclaredMethod("getAliasName"); in getAliasName()
208 return (String) getActiveDeviceMethod.invoke(bluetoothDevice); in getAliasName()
211 return bluetoothDevice.getName(); in getAliasName()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DUtils.java158 public static boolean getBooleanMetaData(BluetoothDevice bluetoothDevice, int key) { in getBooleanMetaData() argument
159 if (bluetoothDevice == null) { in getBooleanMetaData()
166 public static String getStringMetaData(BluetoothDevice bluetoothDevice, int key) { in getStringMetaData() argument
167 if (bluetoothDevice == null) { in getStringMetaData()
173 public static int getIntMetaData(BluetoothDevice bluetoothDevice, int key) { in getIntMetaData() argument
174 if (bluetoothDevice == null) { in getIntMetaData()
DBluetoothFeatureProvider.java32 Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice); in getBluetoothDeviceSettingsUri() argument
DBluetoothFeatureProviderImpl.java35 public Uri getBluetoothDeviceSettingsUri(BluetoothDevice bluetoothDevice) { in getBluetoothDeviceSettingsUri() argument
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
DToolbarTitleLiveData.java89 BluetoothDevice bluetoothDevice = hfpDeviceList.get(0); in updateDeviceName() local
90 setValue(bluetoothDevice.getName()); in updateDeviceName()
/packages/apps/Dialer/java/com/android/incallui/call/
DTelecomAdapter.java200 public void requestBluetoothAudio(BluetoothDevice bluetoothDevice) { in requestBluetoothAudio() argument
202 inCallService.requestBluetoothAudio(bluetoothDevice); in requestBluetoothAudio()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManagerTest.java224 BluetoothDevice bluetoothDevice = BluetoothAdapter.getDefaultAdapter() in getChannelForAssociation() local
226 bleManagerCallback.onRemoteDeviceConnected(bluetoothDevice); in getChannelForAssociation()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DMapMceTestFragment.java88 mBluetoothDevice = (TextView) v.findViewById(R.id.bluetoothDevice); in onCreateView()