summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
Commit message (Collapse)AuthorAgeFilesLines
* Device Discoverability not set properly when Bluetooth is toggledAvish Shah2015-07-011-0/+4
| | | | | | | | | | | | | Issue: When BT is turned off/on staying in the same BT Settings screen discoverability was not set again. Fix: Handle setting discoverability Bluetooth state change intents also when BT state is turned ON. Bug: 21944289 Change-Id: Ic3c8d476c53673b21d40ea2bd9669758d89c2aee
* Bluetooth: Fix to avoid taking space as name upon orientationSrinu Jella2015-06-251-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Use case: Renaming the DUT name on orientation chnage STR: 1) Go for the option of rename phone. 2) give only space characters. 3) The rename option shows disabled. 4) Change the orientation of the phone. 5) Check whether it accepts space as a name. Failure: Renaming a phone with space characters gets accepted during change in orientation.Accepted space as BT name upon changing orientation Root cause: There is no check for validating the input string while renaming the device name on orientation change. Fix: This fix is to avoid taking space character as a name in the BluetoothNameDialogFragment upon orientation change from PORTRAIT mode to LANDSCAPE mode and vice versa. Change-Id: Ia66f27bb9b06739e42d73b15745c12a42512a1fc
* Language Update for Wi-Fi/Bluetooth ScanningLifu Tang2015-06-231-13/+25
| | | | | Bug: 22046234 Change-Id: Iea8fa2368d1e568a8e1fdd3edefa8f4fc6053e48
* Fix display of "Contact sharing" option in Car kit for BT Settings.Sanket Padawe2015-06-221-10/+1
| | | | | Bug: 21879473 Change-Id: I0d2f839c525d2a5179f9ef59ab12a94f1aab9b6f
* Add PBAP checkbox for BT pairing consent dialog.Sanket Padawe2015-06-121-0/+37
| | | | | Bug: 20488109 Change-Id: Ib6c98c27e6d2b8e59fa4b640df15214a6b197853
* SAP: Make it possible to enforce a 16-digit pin code (5/5)Casper Bonde2015-06-091-1/+13
| | | | | | | | | | This change enable the posibility to enforce using a 16-digit pin or MITM for a RFCOMM or L2CAP connection. This is needed for the SIM access profile. Change-Id: I6bb2b0dff1ebf4b4f1d8faad97aa7c480000d3ea Signed-off-by: Casper Bonde <c.bonde@samsung.com>
* Fix Bluetooth device Settings checkbox issue on clicking "Input device"Sanket Padawe2015-06-021-2/+1
| | | | | Bug: 19937357 Change-Id: I6f74577a062df407e50972b84dd4e5d7d2da529b
* Change DeviceProfilesSettings to DialogFragmentJason Monk2015-06-022-159/+111
| | | | | | | | | 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
* Merge "Fix battery usage screen issues" into mnc-devJason Monk2015-06-022-3/+3
|\
| * Fix battery usage screen issuesJason Monk2015-06-022-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Tint icons properly Bug: 21077770 Show better icons for wifi and bt (remove the old ones) Bug: 21172936 Also add a way to show fake items in power list for testing. Change-Id: I6b6804673a68190ebc3f2ea32802e30811a7f5b2
* | Merge "Fix UI checkbox issue while disabling "Phone Audio" in Blueotooth ↵Sanket Padawe2015-06-021-2/+2
|\ \ | |/ |/| | | Settings." into mnc-dev
| * Fix UI checkbox issue while disabling "Phone Audio" in Blueotooth Settings.Sanket Padawe2015-06-021-2/+2
| | | | | | | | | | Bug: 18048121 Change-Id: If837a58a4840be3d5b9f3cc16ecb261d9ab4420a
* | Bluetooth: Acquire wakelock to turn on LCD for MAP authorizationHemant Gupta2015-06-021-0/+8
| | | | | | | | | | | | | | | | | | | | This patch acquires a wakelock to turn on the LCD display if the screen is off during an access request for MAP. Without this patch it was observed that if the screen was off, the LCD remained off for incoming connection access request from remote devices and the user only heard the notification sound without the LDC being lit up. Change-Id: I87c296fce4cd8e0c133f74169d991eee263fed08
* | Bluetooth PAN: Set isPreferred to true (2/2)Andre Eisenbach2015-06-021-3/+13
|/ | | | | | | | | | | | | | 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
* Merge "Start bluetooth scan on screen orientation change." into mnc-devSanket Padawe2015-05-131-1/+1
|\
| * Start bluetooth scan on screen orientation change.Sanket Padawe2015-05-111-1/+1
| | | | | | | | | | Bug: 20666842 Change-Id: I95975f46c1ead1399c8f1a9197bd7357992cc3b0
* | log more settings actionsChris Wren2015-05-082-0/+6
|/ | | | | | | | | | airplane mode bluetooth cell data do not disturb Bug: 20264417 Change-Id: I726033a126fba9f9dffc916806d636feea04033b
* Settings UI for SIM access profile (1/2)Casper Bonde2015-05-052-2/+38
| | | | Change-Id: Iff14295ac0eb65561a2097f25c70e8b5f8be5003
* Added links to scanning settingsLifu Tang2015-04-061-2/+35
| | | | | Bug: 19918721 Change-Id: Ifb1508807d34b675e9ea1522f86a9310ed6b663f
* Merge commit 'fe47522' into mergeEtan Cohen2015-03-311-1/+1
|\
| * Fix "Rename device" BT settings to avoid accepting blank spaces.Sanket Padawe2015-03-231-1/+1
| | | | | | | | | | Bug: 16157293 Change-Id: I0eddafd9fad89b76ab1d00005ca4a4f2725eb83e
* | log visibility of viewsChris Wren2015-03-273-0/+18
| | | | | | | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* | Clean up usage of theme colors, deprecated Resources.getColor* methodsAlan Viverette2015-03-182-2/+2
| | | | | | | | Change-Id: I34e11e0773c9f8e00e3eab422781094e19a16d3d
* | Settings: Remove all unused imports.John Spurlock2015-03-185-23/+0
| | | | | | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* | Support some changes to SettingsLibJason Monk2015-02-243-55/+4
| | | | | | | | | | | | | | | | SettingsLib has a couple of bluetooth changes to support quick settings and as a result a few updates are needed in Settings. Depends on I7f828f0038ad0cf39274986ece6d486d545f0286 Change-Id: I9b207b74abb0175148fd4a3c421d33ab9a861587
* | Move isolatable bluetooth code to SettingsLibJason Monk2015-02-0535-3807/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Move some wifi tracking code to SettingsLibJason Monk2015-02-041-3/+2
|/ | | | | | | | Move tracking of which networks are available/saved and their state over to SettingsLib to share it with Quick Settings. Bug: 19180466 Change-Id: Iaeef06b26da8cb38e1ba09a7d105d04d499dc181
* Do not perform SDP during pairingAndre Eisenbach2015-01-152-17/+17
| | | | | | | | | | | | | | | | | | | | As a result of commit 7de119c (ag/591931), SDP is performed when the pairing dialog pops up. There are multiple problems with this. On badly behaved devices an SDP request might trigger pairing from the remote side, other devices (like Logitech keyboards) will close the connection once SDP disconnects, causing the pairing to fail. Further more, fetchUuidsWithSdk() is an asynchronous call. The code that was added does not wait for SDP to complete. Thus the check for the PBAP UUID will always fail and cause the permission check to still be displayed. With this change, SDP is not performed when the dialog is popped up and PBAP permission is granted after bonding and subsequent service discovery in accordance with final consensus in bug 16964116. Bug: 18948640 Change-Id: I149afa8ae59b63f59ba579c12f97c3ea3d70112c
* Block BluetoothPermissionRequest notification on managed profiles.Benjamin Franz2015-01-021-0/+7
| | | | | | | | | | This notification is triggered when a bluetooth device that supports the PBAP protocol. On managed profiles this functionality is not yet available and therefore the notification and resulting acvitivity have no function. Bug: 18782769 Change-Id: Iaea12eee8ec4727d9448f690861f8344e2296028
* Check remote device uuids for phone book access permissionMatthew Xie2014-11-262-3/+18
| | | | | | | | Only give phone book access permission for remote devices that handle PBAP. Bug: 18140961 Change-Id: I128f15460b151d7e0a47cd9b4b15dae10ec586c5
* Update Settings to use themed Context.getDrawable()Alan Viverette2014-10-101-1/+1
| | | | | | | | | | 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
* Fixed a Setting Bluetooth Airplane mode bug.PauloftheWest2014-10-011-2/+2
| | | | | | | | | | + This patch moves the switch listeners from setup/teardown of the SwitchBar to pause/resume of Bluetooth Settings. This prevents Bluetooth from receiving connect messages while Airplane mode is turning off Bluetooth (which is what caused Bluetooth to re-enable.) Bug: 17465951 Change-Id: I4d32fcf5bb3a2241ed03e2295c86390e15743954
* Fixed multiple MAP issues.PauloftheWest2014-09-244-11/+30
| | | | | | | | | | + 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
* Fixed a Bluetooth discovery bug.PauloftheWest2014-09-191-1/+8
| | | | | | | | + Now when a user goes to Settings->Bluetooth and turns on Bluetooth, the device will be discoverable. Bug: 17368189 Change-Id: Ia0d8000ddf7e3c3b43172c08ee28e7305d205462
* Merge "Do not overwrite alias with device name" into lmp-devMatthew Xie2014-09-192-8/+19
|\
| * Do not overwrite alias with device nameMatthew Xie2014-09-182-8/+19
| | | | | | | | | | Bug: 17287682 Change-Id: Iea29e85125ae4720fd99f893f516c301b7aed7c6
* | Removed an extraneous messge when pairing.PauloftheWest2014-09-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | + When two devices are executing Bluetooth simply pairing, which does not need keyboard input, the message "Type the pairing code then press Return or Enter." has been removed. + Note that in legacy pairing the message to type in the pairing key should remain even if the user is only verifying the key. The reason is that we are not able to guarantee the other device does not have to input the key. + Also updated pin entry to Material/Quantum specification. Bug: 17400402 Change-Id: I7853fa13835f7f60d0e71102de9a079708f3544e
* | Migrates PBAP and MAP access permission data from Settings to Bluetooth.Edward Jee2014-09-163-146/+164
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, users' preference in phonebook and call history or message access per each Bluetooth-paired device is stored in Settings application's shared preferences. However, some privileged applications other than Settings need to access such data. So we decided to migrate the data from Settings application's shared preferences to Bluetooth application's. Bug: 17158953 Change-Id: I44fde350ea35027df0de77feec1ea19c65f2f1c6
* | Do not show phonebook access permission dialog if pairing dialog has already ↵Edward Jee2014-09-153-63/+44
| | | | | | | | | | | | | | | | been shown. Bug: 16964116, 13886947, 16345619 Change-Id: I9cf2622b49c3812771d57432fed030affaa5ba48
* | Fixed multiple Bluetooth Settings crashes.PauloftheWest2014-09-112-8/+21
|/ | | | | | | | | + 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
* Merge "Made Bluetooth device dialog fully scrollable." into lmp-devPauloftheWest2014-09-101-1/+11
|\
| * Made Bluetooth device dialog fully scrollable.PauloftheWest2014-09-101-1/+11
| | | | | | | | | | | | | | | | + Also updated padding around Available Devices. + Also updated opacity on Bluetooth's "your device is visible" message. Bug: 17398966 Change-Id: Id9631334ee0f3a01e40b00470d6debf6a31abe47
* | Updated Bluetooth keyboard icon to teal.PauloftheWest2014-09-101-2/+2
| | | | | | | | | | Bug: 17140804 Change-Id: I59a4c0ff81b723ff4676b607e3da6cdc5c73625e
* | Merge "Do not remove bonded devices from cached device list upon a device ↵Matthew Xie2014-09-102-5/+10
|\ \ | | | | | | | | | scan" into lmp-dev
| * | Do not remove bonded devices from cached device list upon a device scanMatthew Xie2014-09-092-5/+10
| | | | | | | | | | | | | | | | | | Bug: 17405122 Change-Id: I3f5cc6ddc8f85d3b6223f9ff60e1d5eeb76c530a
* | | Fixed a Null Pointer Error in Bluetooth Settings.PauloftheWest2014-09-091-1/+1
| |/ |/| | | | | | | | | | | | | | | | | + 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
* | Merge "Turning Bluetooth on will make the device discoverable." into lmp-devPauloftheWest2014-09-081-2/+11
|\ \ | |/ |/|
| * Turning Bluetooth on will make the device discoverable.PauloftheWest2014-09-081-2/+11
| | | | | | | | | | Bug: 17368189 Change-Id: Ic526fb1ff9dcc15e6fe1db055a471cc570b6a2e1
* | Material design updates for Bluetooth Settings dialog.PauloftheWest2014-09-051-0/+1
| | | | | | | | | | Bug: 17140512 Change-Id: I93dd89c3f12d8abe2041dd68faef8daf981252fb
* | Merge "Bug fix: Toggling Bluetooth off then on will now initiate a scan." ↵PauloftheWest2014-09-041-0/+1
|\ \ | | | | | | | | | into lmp-dev