History log of /packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f8c29641da07a5d5e9314ddf6dd758af97a86e6c 28-Sep-2016 Fan Zhang <zhfan@google.com> Connect button click handler for bluetooth forget dialog.

Bug: 31761184
Test: manual
Change-Id: I48aac6899cb9a49bf988d3b9e6480dfd6fe0c1c2
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
aece754d77c99c22083949f5c3075946fe86de38 24-Sep-2016 Andre Eisenbach <eisenbach@google.com> Move Bluetooth device "Forget" button to the left

"Forget" and "OK" actions are too close together.

Bug: 31693959
Change-Id: Iee452347a53b186df7aecad5d971edcfb7645f1d
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
39b467482d1bf256a111c757e9b7621c6f523271 10-Sep-2015 Jason Monk <jmonk@google.com> Depend on support lib preferences

Bug: 24576551
Change-Id: Ic6190bacd3f7582c9bbc8de972da4612bd92421e
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
53e74f510be255b00d06da44f8a91c61608ffade 22-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Fix display of "Contact sharing" option in Car kit for BT Settings.

Bug: 21879473
Change-Id: I0d2f839c525d2a5179f9ef59ab12a94f1aab9b6f
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
0da0573b7015f76c0fd5563bbba594ba3219f548 03-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Fix Bluetooth device Settings checkbox issue on clicking "Input device"

Bug: 19937357
Change-Id: I6f74577a062df407e50972b84dd4e5d7d2da529b
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
0d7d927216e536ead911f4949134ca362af345ab 02-Jun-2015 Jason Monk <jmonk@google.com> Change DeviceProfilesSettings to DialogFragment

This makes the lifecycle simpler to fix a crash after rotation.
Also do some adjusting of alignment while here.

Bug: 21444336
Bug: 21205689
Change-Id: I67eccf4833f53b5e5088ae5e6038d041e8653565
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
6a6ae2dc8401eafdb1710c97c4b07aa53c797ba1 02-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Merge "Fix UI checkbox issue while disabling "Phone Audio" in Blueotooth Settings." into mnc-dev
8a7472b59444ba582d54c41b001c422db486d7a9 02-Jun-2015 Sanket Padawe <sanketpadawe@google.com> Fix UI checkbox issue while disabling "Phone Audio" in Blueotooth Settings.

Bug: 18048121
Change-Id: If837a58a4840be3d5b9f3cc16ecb261d9ab4420a
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
901ce5de8d7276770bc6dc0b0fd66138218640d8 02-Jun-2015 Andre Eisenbach <eisenbach@google.com> Bluetooth PAN: Set isPreferred to true (2/2)

isPreferred must always be true for PAN so that the DUT can initiate
a PANU connection with the remote device not only from the internet
access menu in the profile setting, but also from the paired device
list menu.

Currently isPreferred is only true when PAN is in connected state
for the PANU role, so it will return false when the PAN profile is
not connected and the PANU connection will never be initiated
from the paired device list menu.

Change-Id: I3d52d89136269508ac6416b695b22842f4bb557a
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
8a963babe2e36b7a41f77b8d2598c97658196e58 20-Mar-2015 Chris Wren <cwren@android.com> log visibility of views

Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f
Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
9a23adf69dc53126c9858b19760eab5b67c23b97 18-Mar-2015 John Spurlock <jspurlock@google.com> Settings: Remove all unused imports.

Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
f2982a9ba19340b474bafb6b0bf5832673984e0d 04-Feb-2015 Jason Monk <jmonk@google.com> Move isolatable bluetooth code to SettingsLib

Move the non-ui bluetooth control/tracking code to SettingsLib so
that it can be shared with others.

Mostly just move classes to frameworks/base/packages/SettingsLib,
however a few things had to move around.
- Dock handling had to move back to code still in settings
- Local preference related code had to be moved back to settings
- Added an error flow from SettingsLib to Settings

Depends on I69fd888362c6dbb325f6113b32c4b15cc6a23a41
Bug: 19180466
Change-Id: Ie57fe26a27bbb0adc2ef69e042a05c7290c6a52a
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
0ba89bd54c4b44b3803342da10b0c08b0bf76ad4 10-Oct-2014 Alan Viverette <alanv@google.com> Update Settings to use themed Context.getDrawable()

Explicit null theme is passed when using Resources.getDrawable() and
no theme is available, e.g. when using getResourcesForApplication().
This fixes an issue with ic_text_dot theming and helps avoid similar
issues in the future.

BUG: 17648301
Change-Id: I3e97c3490b6f2a55744f567b21284f2935ae9af7
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
00656b8e46e187e5fa63b8a80cd4f42367c1c924 25-Sep-2014 PauloftheWest <paulofthewest@google.com> Fixed multiple MAP issues.

+ Bluetooth Settings properly stores the MAP state as a shared
preference.
+ A Bluetooth's Settings profile will display MAP even if it was
previously denied.

Bug: 17391677
Change-Id: I94dd7d1a75cc4fe09647c85d84d9e3651a07a673
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
a539716a94cbfe33e32229549b70d7cb418d8840 05-Sep-2014 Edward Jee <edjee@google.com> Do not show phonebook access permission dialog if pairing dialog has already been shown.

Bug: 16964116, 13886947, 16345619

Change-Id: I9cf2622b49c3812771d57432fed030affaa5ba48
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
8d6991348b79bd2a5878018bd9b28a5da2b6401e 10-Sep-2014 PauloftheWest <paulofthewest@google.com> Fixed multiple Bluetooth Settings crashes.

+ Fixed a crash when selecting On/Off multiple times on an input device.
+ Fixed a crash when visiting different Bluetooth Settings after
disabling an input device.

Bug: 17402421
Change-Id: I23efa3a36ba8cf0df02cf41397586a10dae9e08c
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
c009b8a4961451c3ab2d9fecb8c4559adc55425d 09-Sep-2014 PauloftheWest <paulofthewest@google.com> Fixed a Null Pointer Error in Bluetooth Settings.

+ The root of the problem is that the callback for a device change may be
set before the fragment has a layout. Then if a change does come in,
getView() would return null. This fix delays registering the callback
until appropiate.

Bug: 17404518
Change-Id: Ibd0e90f82593d45729f427bcc2e40fe9195eb42a
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
8677d04512355aae5b61553de7a6332d38e9a156 24-Aug-2014 PauloftheWest <paulofthewest@google.com> Material design updates for Bluetooth Settings dialog.

Bug: 17140512
Change-Id: I93dd89c3f12d8abe2041dd68faef8daf981252fb
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
b358f6d0f20b064cf2f15084003022199190d85f 21-Aug-2014 PauloftheWest <paulofthewest@google.com> Fixed a crash when sharing video through Bluetooth.

+ Fixed an issue where Settings would crash when the user tries to share a
youtube video through Bluetooth and rotates the screen.

Bug: 17023413
Change-Id: Ied284da736cf9bfc7424982a516c8305c700dd0b
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
b58e2005abc5482a744963e6a8a1c986d0839fc8 20-Aug-2014 PauloftheWest <paulofthewest@google.com> Fixed a Settings dialog crash.

+ Fixed a bug where Settings would crash when trying to open paired bluetooth
device settings after device orientation change.

Bug: 16972564
Change-Id: I0e93551ae7d8f21711d85093756fc33b62f59b24
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
689d2ce29b3093c32d1d2b70caa6fb36a4ecefcb 04-Aug-2014 PauloftheWest <paulofthewest@google.com> Changed a Bluetooth device's settings from an activity to a dialog.

+ Replace the “Paired bluetooth device” screen with a “Pair device” dialog
+ Add device name text field at the top
+ Replace “Unpair” list item with a “Forget" button at bottom of dialog
+ Change “Profiles” section header to “Use for”
+ Remove status under profile titles
+ Move checkboxes to left side of labels

Bug: 15719219
Change-Id: I3b0e8c82c761fae98f16508b9fd9c58aff651f80
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
361d870e5415f8642cb106b4329d194673b4dd02 25-Jul-2014 PauloftheWest <paulofthewest@google.com> Added ability for user to automatically accept/deny Bluetooth Phonebook Syncs

Bug: 16040292
Change-Id: Ieeaa014052f53787cf7057578e0b2ac048dc6eb1
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
fa46de5c68f078a595aa61d61ceae6b7951c3aa7 11-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Search - fix remembered Bluetooth devices indexing

We were indexing the remembered device names but we were missing the
informations for launching the correct Activity from the Search result.

- add the missing information: className and iconResId

Change-Id: Ib6781d4c492c296e822da1b5a8a2a76c92ecd586
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
3b2269567004d47a287e3fc7a711557802424c54 09-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix issue about at which time Bluetooth devices name are indexed

- remembered devices name were only indexed when BT was turned on/off
- allow the same when they are paired
- remove device name from the Index if it is un-paired

Change-Id: I1206a591b0132789c3b003e52c7ffac630e80758
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
904d3726d4f72178d3df77da398ab055c66577fd 05-Oct-2012 Jake Hamby <jhamby@google.com> Allow disconnected BT profiles to be unchecked in Settings.

In the Bluetooth profile list, the checkbox indicates whether the
profile is preferred (we should auto connect). If the profile is
not connected, selecting it will try to connect the profile and set
it to preferred. If the profile can't be connected, then the user
could not turn off the preferred setting for the profile.

Change the behavior so that when a profile is not connected,
but is marked as preferred, selecting the profile will turn off the
preferred setting (no auto connect) instead of trying to connect.
This enables the user to turn off auto connect for a profile when
it can't be connected. Tapping a second time will try to connect
the profile and set it as preferred, as usual.

Also change PanProfile to return the current connection status for
isPreferred() instead of always returning true. Currently, the
PAN profile is always checked, which is confusing because it looks
like PAN is always connected. Also, because of the new behavior
when a profile is selected, it's now necessary to return false for
isPreferred() when PAN isn't connected, so that we will try to
connect when the user selects it, instead of trying to turn off
the preferred setting, which isn't supported for PAN.

Bug: 7007641
Change-Id: Ifb0f51a15379bc254933168c43bdfc8b22f26051
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
c78d71e16c4413180f79182c8e246d70928c2442 22-May-2012 Kausik Sinnaswamy <kausik@broadcom.com> Revert "Changes done to update UI with appropriate checkbox state, when AVRC Connect is initiated from the headset. Earlier, the checkbox state was not being updated when the connection state changed for media audio, when connected from headset"

This reverts commit 2f9d962940cb92c7f70576a29f263258f6abc478
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
c7b490c7a03dff00faf859d6aba3440b6a3921d5 16-May-2012 Sreenidhi T <nidhit@broadcom.com> Changes done to update UI with appropriate checkbox state, when AVRC Connect is initiated from the headset.
Earlier, the checkbox state was not being updated when the connection state changed for media audio, when connected from headset

Change-Id: Ic46a8a87b74cbe76f0e8b62428516af5594526ec
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
f5754a078c3a8506d2320375e74fefdddd560637 28-Oct-2011 Jaikumar Ganesh <jaikumar@google.com> Fix UI issue with Bluetooth Settings.

When a profile fails to connect, the preference was getting unset.

Patch generated in conversation with Jake Hamby.

Bug: 5526404
Change-Id: I27ab8d337b6d121f8d369841d3f9a691293ef922
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
79be0b3e6b5639c4cbe2bbcd9adb0ec4c28716ed 02-Aug-2011 Jake Hamby <jhamby@google.com> Fix multiple BT settings bugs.

- Change Bluetooth profiles screen to match ICS wireframes
- Remove BluetoothProfilePreference.java (no longer used)
- Remove "Pair with this device" summary below every unpaired device
- Remove "Paired but not connected" summary below unconnected paired devices
- Fix auto connection after pairing (reuse existing CachedBluetoothDevice)
- Add "Connected (no phone/media)" summaries based on ICS wireframes
- Fix visibility timeout strings.
- Fix crash when starting Bluetooth from Settings shortcut widget.

Bug: 5064139
Bug: 5064324
Bug: 5080404
Bug: 5093513
Bug: 5104485
Change-Id: Ie87103e183ce414c86cb1831a38ef0178b1b1292
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
298365bbf3e2203aa94e8c2a69a0f5ab7623f0e2 18-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : Fix for changing the BT device icon if the calss is null (mouse)

- mouse is displayed as keyboard. if class is null, default icon is keyboard in hid profile

Change-Id: I2ff928ce1032d8eb492d81fff2e7fb218970b768
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
01525c9a05ad4e6c7488f01c9879f47f07dcf728 17-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix to finish deviceprofilesettings activity when device is not bonded

- if cached device state is "BluetoothDevice.BOND_NONE" then finish activity

Change-Id: I5c981e8c4800c10f1f8570668794301d5da03188
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
5ab6b6b004d50c67ace6f025c4926cd4c4b5e964 15-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix UI bug: Disable "OK" button if friendly name is null

- If device's name is null, BT address is set as friendly name.
- so, fixed. if name field is null "OK" button is disabled.

Change-Id: I04b59ebf13d1b3203acf7345bd531cc6c563da0d
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
e78c1879058571c00879f0d3e756951302adf513 21-Jun-2011 Gilles Debunne <debunne@google.com> Settings refactoring

Wifi and bluetooth pane refactored, main toggles moved to left pane.

Change-Id: I42ea4cf3bdf24158f3c67e0dea311258206cd78a
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
c777ee29c856e1d1a2a61ccd799b6e18b50febdc 05-Mar-2011 Jake Hamby <jhamby@google.com> Improve Bluetooth tethering UI usability.

- Updated hint text for BT tethering checkbox to
"[Sharing|not sharing] this [tablet|phone]'s mobile data connection".
- Show correct hint text when user enters tethering screen.
- Show correct status after user enables tethering when Bluetooth is off.
When BluetoothPan.setBluetoothTethering(true) is called with BT off,
BluetoothPanProfileHandler will add a broadcast receiver to enable
tethering after BT turns on. This happens too late to show the correct
status when TetherSettings gets the adapter state changed event, so set
a flag (mBluetoothEnableForTether) instead, and call setBluetoothTethering
ourselves after the state changes to ON. Also, clear the flag if the
adapter state changes to OFF or ERROR.
- Show correct status when user enables tethering, then disables Bluetooth,
then returns to the tethering screen. Previously it would show
Bluetooth tethering enabled, even though adapter state was OFF.
- Show the number of connected devices in tethering preference screen.
- Distinguish between PANU and NAP in device profiles screen, and show
appropriate text to clarify the direction of tethering.
- Remove profiles from device profiles list when the device removes the UUID
(e.g. Mac OS X turning NAP on/off) and after a NAP disconnection when the
remote device only supports PANU.

Bug: 3414575
Change-Id: I2c0830876d5b9bddb293e57c4d3ca74f105911b8
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
436b29e68e6608bed9e8e7d54385b8f62d89208e 08-Feb-2011 Jake Hamby <jhamby@google.com> Refactor Bluetooth settings for readability and performance.

Major refactoring of Bluetooth settings classes.
- Moved all functionality from LocalBluetoothManager into new
LocalBluetoothAdapter and LocalBluetoothPreferences, and into
existing classes.
- Refactored functionality from BluetoothEventRedirector into new
BluetoothEventManager class, deleting the original version. New
version uses a HashMap from action Strings to implementers of the
BluetoothEventManager.Handler interface.
- Created new BluetoothDiscoveryReceiver to update shared preferences
timestamp for Bluetooth discovery start/finish. This is the only event
handling we need to do when the settings app is not visible, so it has
its own receiver entry in AndroidManifest.xml. Edits are written using
QueuedWork.singleThreadExecutor(), which BroadcastReceiver knows about
and will wait for completion, eliminating the need for PendingResult.
- Miscellaneous cleanups to code style and logic for readability.
- Pulled some large switch statement code blocks into new methods.
- Changed all Bluetooth state references to the new BluetoothProfile
constants.
- Changed use of deprecated Notification constructor in
BluetoothPairingRequest to use Notification.Builder.
- Moved Utf8ByteLengthFilter helper function from BluetoothNamePreference
into its own class, and moved test cases into the same package.
- Moved all LocalBluetoothProfileManager functionality related to
specific profiles into new top-level classes (A2dpProfile, etc.), all
implementing the LocalBluetoothProfile interface.
- Moved all UI-related methods from CachedBluetoothDevice into the class
that uses the method, or into the static Utils class for shared methods.

Change-Id: I6d49b7f4ae0c7d7dcf62551ee40b51ecb5fe4f47
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
51cd0d6d29c8f8f5320968f778b04b448984abc8 25-Jan-2011 Jake Hamby <jhamby@google.com> Remove "Allow incoming file transfers" option from BT settings.

The user preference to allow automatic incoming file transfers for
specific devices isn't implemented yet. Remove the preference from
the settings UI.

Bug: 3385941
Change-Id: Ib8fee9a0d99063a8c05d52a960664364e4812ace
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
55b7d27936f39c2d6e609c15b1086e9698dbbcfd 12-Jan-2011 Jake Hamby <jhamby@google.com> Only show "Allow incoming file transfer" option if device supports OPP

In the Bluetooth profiles settings screen for a device, the "Allow
incoming file transfer" item should only be shown if the device
supports the Object Push Profile.

Bug: 3297633
Change-Id: I4bbe66ef901feef9dd8a3916fb9827120c1fdfc0
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
39ef225e7c44a48aa9cfdf5c56ecd4ddfb95ae89 17-Dec-2010 Jake Hamby <jhamby@google.com> Enable reverse tethering in BT settings screen.

- Enable support for reverse tethering in BT settings.
- Add string resource for "Auto connect" preference.
- Remove unused imports and other minor cleanups.
- Add isConnectable() and isAutoConnectable() methods to Profile
enum type and remove isConnectableProfile() method.

Change-Id: Ie606db04028a8278e98231f0671a388671f2f067
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
c090feb64f674d9840993736a24f9667f8b0e0d5 08-Dec-2010 Jake Hamby <jhamby@google.com> Implement BT settings functionality for new UI.

- Removed context menu logic for long press (no longer used).
- Converted device picker to run in its own Activity, using a dialog
theme on large screen devices and full-screen on phones.
- Removed unused resources.
- Add device to "Paired devices" list when pairing is initiated by the
remote device.
- Return to Bluetooth settings pane after successfully pairing a new
device from the "Find nearby device" pane.
- Add support for renaming devices (TODO: persist the custom name and
update the "bread crumb" in the action bar to the new device name).
- Add support for incoming file transfer and auto connect checkboxes
in DeviceProfilesSettings.
- Show available and connected device profiles as icons instead of
summary text. Available but disconnected profiles are drawn in gray.
- Fixed bluetooth_notif_message to include the device name as a parameter
instead of appending the name to the end of the localized string.
- Changed some fields from private to package scope for more efficient
access from inner classes.

Bug: 3137982

Change-Id: Ic2d6ee5be60c9c5b3f3a8a58846d58efedfa5c93
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
43a673053f2e9b1ace7ad9f32a58ae37f3e431d3 18-Nov-2010 Amith Yamasani <yamasani@google.com> Use the new Preference:icon attribute and placeholder for showing icons on the left.
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
e79f990490de49b39097433707c2bae6d8238330 03-Nov-2010 Jake Hamby <jhamby@google.com> Implement individual Bluetooth profile connect/disconnect.

Allow individual Bluetooth profiles to be connected/disconnected from
the device's settings pane.

Bug: 3137982
Change-Id: I21512c5bf965fc523f3dc1e83d029b16b5e22440
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java
48e90002839e662eb1667471aebeb0483e9fb7db 26-Oct-2010 Amith Yamasani <yamasani@google.com> Bluetooth settings revamp

Added a separate scanning screen.
UI changes to not require long-press options.
Needs TODOs to be filled by BT team.

Bug: 3038327
/packages/apps/Settings/src/com/android/settings/bluetooth/DeviceProfilesSettings.java