summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth
Commit message (Collapse)AuthorAgeFilesLines
* Break out Bluetooth device icon from dashboard reference.Dave Kover2016-07-071-1/+1
| | | | | | | | | | | If a theme wants to use a different visual iconography style in the subsettings, the bluetooth icon is shared between the dashboard and that view. By adding this new reference, a themer can choose to independently theme the subsettings version if their design calls for that. Change-Id: Iac3a58175f90357e0c42efe57b1e698d5c8e2ad3 Ticket: CYNGNOS-3176
* Don't start auto scan if screen recovers from frozen statevenkata Jagadeesh2016-07-011-1/+2
| | | | | | | | | | | | | | | | | | | Use case:Inquiry initiated from UI after connecting with blackberryZ30 Failure: Inquiry initiated from UI automatically after connecting with blackberryZ30,which is not expected Test steps: 1. Go to BT settings page. 2. Initiate pair and connect remote device from the available devices list Root cause:mInitialScanStarted set always to false and for every onActivityCreated,scan will be triggered from UI Fix: mInitialScanStarted set to false only for new instance,if any screen recover case,it should not be set as its not a new instance. Change-Id: Ia38323d5136857e6fe8fa69ed6336d889e29287b
* Settings: fix BT switch enabling discoverable modeRoman Birg2016-03-212-1/+4
| | | | | | | | | | Signed-off-by: Roman Birg <roman@cyngn.com> Conflicts: src/com/android/settings/bluetooth/BluetoothEnabler.java Bug: CYNGNOS-2271 Change-Id: I6b2dff88fb858d34a1b534705b2c67f5ab4c2d29
* Bluetooth: Underp "Accept all files" settingRicardo Cerqueira2016-02-031-2/+2
| | | | | | | | | This was reading/writing to the wrong database, making the setting a no-op. My bad. Still CYNGNOS-1825 Change-Id: Ibf02b186f8e19066b0113ab1c72e31164a686af1
* [3/3]Settings: add "Accept all files" option for incoming files via BTHamster Tian2016-02-021-0/+18
| | | | | | | | | | | | | | | | | | | * Adapted for CM13. * PS2: empty line fix * PS3: variable name fix BT server in AOSP will check MIME type of incoming file. Only those with explicitly allowed types will be accepted. The MIME type whitelist is in packages/apps/Bluetooth/src/com/android/bluetooth/opp/Constants.java But this can be annoying when we want to transfer RAR, APK or conf files etc which do not exist in the list. This patch adds the option "Accept all files" in Settings -> Bluetooth -> menu. This option is disabled by default, which ensures security. Ref CYNGNOS-1825 Change-Id: I76e008211429bf3bd28183713043bee5d326c21a
* Bluetooth/Wifi: center empty view and set textAppearance to mediumAlexander Martinz2016-01-311-6/+0
| | | | | | | * does not look weird anymore when toggling bluetooth or wifi Change-Id: Ibbf375e241f091bc27b76c273598da9fc0d67ed9 Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
* Merge tag 'android-6.0.1_r10' into HEADJessica Wagantall2016-01-051-16/+17
|\ | | | | | | | | | | | | Ticket: CYNGNOS-1404 Android 6.0.1 release 10 Change-Id: I40f4f8e3e1c508807323ec222eeb4baeb329fd5e
| * Uncheck checkbox for contact sharing by default for non carkit devices.Sanket Padawe2015-12-011-16/+17
| | | | | | | | | | | | | | | | + In BT pairing dialog, uncheck checkbox for contact sharing by default for devices not recognized as carkits at pair time. Bug: 23607427 Change-Id: I7f1d40d86e713e248d3c225459be4895c4f75d76
* | bluetooth: Show a refresh icon on the select devices screenDiogo Ferreira2015-12-221-1/+2
| | | | | | | | | | | | | | | | The refresh menu is hidden behind an overflow which is pointless. This patch shows the refresh icon if there is enough room. Change-Id: I35f19c42054b05388f7b8fcb82e0f3bd60e2d618
* | Settings: add switches for dashboard itemsRoman Birg2015-12-151-43/+38
| | | | | | | | | | Change-Id: Ibff81510270745807a4b133457d60d47dd629df6 Signed-off-by: Roman Birg <roman@cyngn.com>
* | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-073-10/+26
|\ \ | |/ | | | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Settings into HEAD Android 6.0.1 release 3 Change-Id: If54bacef03fc826fd02ca48db5ef3a25c8fc7127
| * Always show pairing dialog for device-specific keyboard.Michael Wright2015-09-173-10/+26
| | | | | | | | | | Bug: 22876536 Change-Id: Ief9f6343d435747050bb7910f934e4777f5116de
* | Merge branch 'LA.BF64.1.2.2_rb4.7' of ↵Steve Kondik2015-11-161-14/+19
|\ \ | | | | | | | | | git://codeaurora.org/platform/packages/apps/Settings into cm-13.0
| * | Bluetooth: PBAP: Add support for PBAP UI preferenceHemant Gupta2015-11-051-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This pach adds support for PBAP UI preference in SettingsLib. Without this change it is not possible to properly use the pbap checkbox preference from Bluetooth subsettings menu. Also some map profile specific bug fixes are also incorporated in this change. Change-Id: I4981aa063b2541b58ce1d36e3576578cbeb02acc CRs-Fixed: 758697
* | | Merge branch 'LA.BF64.1.2.2_rb4.6' of ↵Steve Kondik2015-11-042-6/+9
|\ \ \ | |/ / | | | | | | git://codeaurora.org/platform/packages/apps/Settings into cm-13.0
| * | Merge "Bluetooth: GAP: Rejecting the empty string in Bluetooth rename"Linux Build Service Account2015-10-231-2/+5
| |\ \
| | * | Bluetooth: GAP: Rejecting the empty string in Bluetooth renameBalraj Selvaraj2015-10-221-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for rejecting the empty string in bluetooth rename dialogue as part of DONE button as well as trimming the empty string at head and tail end of the valid string as part of both rename tab and DONE button. CRs-Fixed: 910174 Change-Id: I0b7472ad7777ff0b0b7e197f3c6b822e0afbb0d4
| * | | Bluetooth: GAP: Handled Null check for getbluetoothclassvenkata Jagadeesh2015-10-221-4/+4
| |/ / | | | | | | | | | | | | | | | | | | Handled Null check for getbluetoothclass in BluetoothPairingDialog Change-Id: I549b3cd997b2749c7f0d0dd01a842267cdd20311 CRs-Fixed: 920191
* | | bluetooth: Don't crash when the local adapter is not setDiogo Ferreira2015-10-281-1/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | In devices where bluetooth is not working (like the emulator or devices in development), the bluetooth Settings crashes when closing the activity. Most of the code checks for the nullability of the local adapter except for this particular piece. This is usually not a worry for production devices and I wouldn't usually worry about this but since the rest of the code performs the nullability check it seems silly to crash onPause. Change-Id: I7c1d3b43969b516336be770957008ef2054d312f
* | Bluetooth: Remove notification once device is bondedHemant Gupta2015-10-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | This change removes the pairing notification once the bonding process is successfully completed. This scenario is specific to the cases where external apps set the Pin Key while bonding and the pairing popups or the notifications that are generated by the Settings apk need to be removed at the end of successful pairing or a failed bond. CRs-Fixed: 914262 Change-Id: I11ce77e257dcc957d7074b544da777dbdba0b3b1
* | Bluetooth: Add Manifest configure to fix settings crash issue.Matadeen Mishra2015-10-081-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Settings is crashed when press back key after rotating screen when Bluetooth profile activity is opened. Add manifest configure to enable screen orientation feature. Settings: Change the text size of title when rotate screen The text size of bluetooth settings' title is not changed when rotate the screen. According to the configuration, change the text size of title. Change-Id: I3f08d0dd8181ffc8999ed29ac31dcc19a7dd56e9 CRs-Fixed: 917010
* | Settings App: Fix to resolve NULL pointer exceptionsMatadeen Mishra2015-10-062-2/+9
| | | | | | | | | | | | | | | | | | This fix resolves any NULL pointer exceptions and Array Index Out of Bounds exceptions seen in Settings Application code space. Change-Id: Ib478a1460910a2eb34b308c94cec9817bab93b34 CRs-Fixed: 908156
* | Bluetooth: Ignore the second button if one already pressedSai Aitharaju2015-10-062-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore the second buton if already one button is pressed, this case comes when user is trying to press the both cancel and ok for the pairing dialog Change-Id: I77516ec59a972b4451bb8cff69645f7b9089497f CRs-Fixed: 624285 Bluetooth: disable scan icon when BT state is off Usually onScanningStateChanged function should take care of disabling the scan icon when the scan is completed. But When the BT scan is going on and try to switch of the BT, as onScanningStateChanged function doesn't have the reference for scan icon it will not disable it, so disabling is taken care in BluetoothSettings on receiving BT Off state. On receiving BT Off state, disable the scan progress icon only when available device category is present. Change-Id: Ib827903d4f5c80eeb6ac8a06fb1a945140dd20c9 CRs-Fixed: 543777,596214 Change-Id: Ia9c936fc53b099c18e0f5eadfb293eec028077a5
* | Bluetooth: GAP: Handled Null pointer deference in unregisterReceiverVenkata Jagadeesh2015-10-061-1/+3
| | | | | | | | | | | | | | | | Handled Null pointer deference in unregisterReceiver event of pairing dialog Change-Id: Ie0d0561cb3c0f09a018e1aeb20579700c6e8d783 CRs-fixed: 761872
* | Bluetooth: Fix resource leak in OPP (2/3)Hemant Gupta2015-10-061-0/+18
| | | | | | | | | | | | | | | | | | | | This patch handles onPause in DevicePickerFragment class, which would be called when user presses back button and does not select any device. This will send intent to class that called DevicePickerFragment that no device is selected. CRs-Fixed: 662147, 706665 Change-Id: I3dcf2811b300e44c0f3cb713c1397b5d334e8284
* | Bluetooth: Handle pairing Cancel intent.venkata Jagadeesh2015-10-061-1/+11
| | | | | | | | | | | | | | | | | | Receive Pairing cancel intent and clear pairing request from notification window. CRs-fixed: 463362 Change-Id: I63c9299edca4356485f26cbc6332e3be9bdfbf17
* | Bluetooth: Enable Page and Inquiry ScanSai Aitharaju2015-10-061-0/+1
| | | | | | | | | | | | | | | | | | When Bluetooth Setting is in foreground enable both Page Scan and Inquiry Scan. Changes made to make device both connectable and discoverable if user is in Bluetooth settings menu. Change-Id: I5258149e375f4d6951055eac12d7127133e6af92
* | Destroy BT disconnect dialog on BT power off.Anubhav Gupta2015-10-063-10/+48
|/ | | | | | | Check for bluetooth off intent to destroy disconnect dialog when bluetooth is turned off from power widget. Change-Id: I47a261c7d98803feaf6d46660fe3d39325bead9a
* Allow Contact sharing by default while connecting Car Kit.Sanket Padawe2015-07-311-26/+34
| | | | | Bug: 22556703 Change-Id: I335115bd1f6a2b043fb2ac8eeb1f9512b542e030
* 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