Home
last modified time | relevance | path

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

/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.java142 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in enableProfile() local
144 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in enableProfile()
149 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_ALLOWED); in enableProfile()
151 profile.setEnabled(bluetoothDevice, true); in enableProfile()
158 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in disableProfile() local
159 profile.setEnabled(bluetoothDevice, false); in disableProfile()
161 bluetoothDevice.setMessageAccessPermission(BluetoothDevice.ACCESS_REJECTED); in disableProfile()
163 bluetoothDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED); in disableProfile()
DAdvancedBluetoothDetailsHeaderController.java211 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateSubLayout() local
212 final String iconUri = BluetoothUtils.getStringMetaData(bluetoothDevice, iconMetaKey); in updateSubLayout()
218 final int batteryLevel = BluetoothUtils.getIntMetaData(bluetoothDevice, batteryMetaKey); in updateSubLayout()
219 final boolean charging = BluetoothUtils.getBooleanMetaData(bluetoothDevice, chargeMetaKey); in updateSubLayout()
279 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in updateDisconnectLayout() local
280 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/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java186 BluetoothDevice bluetoothDevice = in setCodecConfigPreference() local
188 if (bluetoothDevice == null) { in setCodecConfigPreference()
191 mBluetoothA2dp.setCodecConfigPreference(bluetoothDevice, config); in setCodecConfigPreference()
197 BluetoothDevice bluetoothDevice = in getCodecConfig() local
199 if (bluetoothDevice == null) { in getCodecConfig()
202 BluetoothCodecStatus codecStatus = mBluetoothA2dp.getCodecStatus(bluetoothDevice); in getCodecConfig()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DAbstractBluetoothA2dpPreferenceController.java188 BluetoothDevice bluetoothDevice = in setCodecConfigPreference() local
190 if (bluetoothDevice != null) { in setCodecConfigPreference()
191 mBluetoothA2dp.setCodecConfigPreference(bluetoothDevice, config); in setCodecConfigPreference()
198 BluetoothDevice bluetoothDevice = in getCodecConfig() local
200 if (bluetoothDevice == null) { in getCodecConfig()
203 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.java159 public static boolean getBooleanMetaData(BluetoothDevice bluetoothDevice, int key) { in getBooleanMetaData() argument
160 if (bluetoothDevice == null) { in getBooleanMetaData()
167 public static String getStringMetaData(BluetoothDevice bluetoothDevice, int key) { in getStringMetaData() argument
168 if (bluetoothDevice == null) { in getStringMetaData()
174 public static int getIntMetaData(BluetoothDevice bluetoothDevice, int key) { in getIntMetaData() argument
175 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/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java338 SliceAction buildPrimaryBluetoothAction(CachedBluetoothDevice bluetoothDevice) { in buildPrimaryBluetoothAction() argument
341 .putExtra(BLUETOOTH_DEVICE_HASH_CODE, bluetoothDevice.hashCode()); in buildPrimaryBluetoothAction()
344 PendingIntent.getBroadcast(mContext, bluetoothDevice.hashCode(), intent, 0), in buildPrimaryBluetoothAction()
345 getBluetoothDeviceIcon(bluetoothDevice), in buildPrimaryBluetoothAction()
347 bluetoothDevice.getName()); in buildPrimaryBluetoothAction()
351 SliceAction buildBluetoothDetailDeepLinkAction(CachedBluetoothDevice bluetoothDevice) { in buildBluetoothDetailDeepLinkAction() argument
353 getBluetoothDetailIntent(bluetoothDevice), in buildBluetoothDetailDeepLinkAction()
356 bluetoothDevice.getName()); in buildBluetoothDetailDeepLinkAction()
/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothDialogPreferenceController.java176 BluetoothDevice bluetoothDevice = in getSelectableConfigs() local
178 if (bluetoothDevice == null) { in getSelectableConfigs()
181 final BluetoothCodecStatus codecStatus = bluetoothA2dp.getCodecStatus(bluetoothDevice); in getSelectableConfigs()
/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.java237 BluetoothDevice bluetoothDevice = BluetoothAdapter.getDefaultAdapter() in getChannelForAssociation() local
239 bleManagerCallback.onRemoteDeviceConnected(bluetoothDevice); in getChannelForAssociation()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DMapMceTestFragment.java129 mBluetoothDevice = (TextView) v.findViewById(R.id.bluetoothDevice); in onCreateView()