summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/bluetooth/BluetoothSettings.java
Commit message (Collapse)AuthorAgeFilesLines
* 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-211-0/+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>
* 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: 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-061-1/+5
| | | | | | | | | 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-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* Language Update for Wi-Fi/Bluetooth ScanningLifu Tang2015-06-231-13/+25
| | | | | Bug: 22046234 Change-Id: Iea8fa2368d1e568a8e1fdd3edefa8f4fc6053e48
* Change DeviceProfilesSettings to DialogFragmentJason Monk2015-06-021-78/+9
| | | | | | | | | 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
* Fix battery usage screen issuesJason Monk2015-06-021-1/+1
| | | | | | | | | | | | 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 "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-081-0/+3
|/ | | | | | | | | | airplane mode bluetooth cell data do not disturb Bug: 20264417 Change-Id: I726033a126fba9f9dffc916806d636feea04033b
* Added links to scanning settingsLifu Tang2015-04-061-2/+35
| | | | | Bug: 19918721 Change-Id: Ifb1508807d34b675e9ea1522f86a9310ed6b663f
* log visibility of viewsChris Wren2015-03-271-0/+6
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Move isolatable bluetooth code to SettingsLibJason Monk2015-02-051-6/+4
| | | | | | | | | | | | | | | 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
* 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
* Fixed multiple Bluetooth Settings crashes.PauloftheWest2014-09-111-7/+20
| | | | | | | | | + 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
* | Merge "Do not remove bonded devices from cached device list upon a device ↵Matthew Xie2014-09-101-1/+1
|\ \ | |/ |/| | | scan" into lmp-dev
| * Do not remove bonded devices from cached device list upon a device scanMatthew Xie2014-09-091-1/+1
| | | | | | | | | | | | Bug: 17405122 Change-Id: I3f5cc6ddc8f85d3b6223f9ff60e1d5eeb76c530a
* | 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
* | Bug fix: Toggling Bluetooth off then on will now initiate a scan.PauloftheWest2014-09-041-0/+1
|/ | | | | Bug: 17380015 Change-Id: Ie07d9a4f737df32aba7e400b028144f7a81cb37e
* Fixed a crash when loading Bluetooth Settings.PauloftheWest2014-09-021-1/+1
| | | | | Bug: 17320674 Change-Id: Ibff0b5929b88b1a48c1fdd810fd8461bdb5f1274
* Merge "Entering Bluetooth in Settings will always initiate a scan." into lmp-devPauloftheWest2014-08-271-32/+27
|\
| * Entering Bluetooth in Settings will always initiate a scan.PauloftheWest2014-08-201-32/+27
| | | | | | | | | | Bug: 17060518 Change-Id: I4ba13097f664b4a758ba714f423fa8b34af60ce6
* | Fixed a Bluetooth Scanning issue.PauloftheWest2014-08-181-1/+10
|/ | | | | | | | + When refreshing Bluetooth devices, sometimes it took awhile for some devices to come back up. This is a fix. Bug: 17049458 Change-Id: Id6233b38585e003e0432707663af4d06b0ce98c2
* Revert "Add BT message access"PauloftheWest2014-08-121-16/+0
| | | | | | | - removed Message Access screen from Bluetooth overflow Bug: 15720425 Change-Id: I68191a4639ea7e6b6cd3a60e88160443fab2ba0e
* Refreshing Bluetooth devices will clear all available devices.PauloftheWest2014-08-121-1/+3
| | | | | Bug: 16851309 Change-Id: I9ffb1ddaeb8e785be145ea79467fc361a022d8d7
* Fixed Bluetooth renaming bug.PauloftheWest2014-08-081-3/+4
| | | | | | | | | | + After renaming your Bluetooth device, the title of the Bluetooth Activity stays "Bluetooth" instead of changing to the new name. + After renaming the device, the status at the bottom Bluetooth Settings is correctly displayed. Bug: 16463239 Change-Id: Ifb12df2004fe1f89bd6f918e23c2c64ae08a0191
* Changed a Bluetooth device's settings from an activity to a dialog.PauloftheWest2014-08-071-11/+64
| | | | | | | | | | | | + 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
* Use restrictionsprovider framework in Settings.Julia Reynolds2014-07-231-10/+32
| | | | | | Bug: 15305103 Change-Id: Ib0147e366fe90de3512d0cc06e2a47ee16012dff
* Numerous minor updates for Bluetooth SettingsPauloftheWest2014-07-111-46/+19
| | | | | | | | | | | | | | | | | + Remove top "this device" item from the list + Upon opening Bluetooth settings, cue a search for available, pair-ready devices + Upon opening Bluetooth settings, make the phone/tablet visible to other devices + Keep phone/tablet visible as long Bluetooth settings is open and screen is on + Filter this list so that only pair-ready devices are displayed + Add non-interactive text “<Device name> is now visible to nearby devices” at the bottom of the available devices list Overflow menu: - Remove “visibility timeout” + Replace “Search for devices” with “Refresh” Bug: 15716927 Change-Id: I7c5225784af9bfb48dde511e05503ddc59be2b2b
* Add BT message accessPauloftheWest2014-07-111-5/+16
| | | | | | | | | + List available email accounts + Allow for turning each account on/off with switches--making the message content available to bluetooth devices that can read emails (like cars) Bug: 15720425 Change-Id: Ia0c91c1e74a2644fc99a8b902c42212453d8f86e
* Fix ProgressCategory theming and layoutFabrice Di Meglio2014-06-171-1/+1
| | | | | | | - add missing constructors for correct theming - fix layout by adding missing paddingStart / paddingEnd Change-Id: I52a511d326b760a47339b2b9dad349c9f825dbd2
* Make the SwitchBar appear immediatelyFabrice Di Meglio2014-06-121-0/+8
| | | | | | | | - change the way the SwitchBar is shown and hidden - save its state - remove the delay transition code Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
* Use SwitchBar for Bluetooth SettingsFabrice Di Meglio2014-05-141-28/+4
| | | | | | | | - follow up CL to 41937766981423c9252e12e3319b2e7532739627 Related to bug #14898161 On/Off switches must move down from Action Bar Change-Id: Ic04de39599c91388cba8510bfd46d96e7bc30260
* Mode code cleaning: remove obsolete references to EXTRA_NO_HEADERSFabrice Di Meglio2014-05-131-4/+2
| | | | | | | | - the EXTRA_NO_HEADERS flag as no more meaning as we are showing the Tiles (previously named "Headers") only in the Dashboard (which is the main Settings screen) Change-Id: I55656de0d28ca9c84adbe6647d870838b4ac230b
* Make all the Settings Switches appear againFabrice Di Meglio2014-04-181-1/+1
| | | | | | | - use the ActionBar Theme context when creating the Switch for getting the correct Theming Change-Id: Ic3701c53662b0f245c7149b119de8bb5cbaae232
* Add Indexable.SearchIndexProvider.getNonIndexableKeys(Context)Fabrice Di Meglio2014-04-111-9/+2
| | | | | | | | | | - getNonIndexableKeys(Context) allow a SearchIndexProvider to tell which data he does not want to index by providing a list of the data keys - use this new API for SoundSettings and removing KEY_EMERGENCY_TONE related settings if the device is not CDMA - add a BaseSearchIndexProvider for code simplification Change-Id: I23633ace1d7e390ee05fac0a5458a33e04e72d8d
* Re-enable on/off switch for Wi-Fi and Bluetooth SettingsFabrice Di Meglio2014-04-031-8/+6
| | | | | | - the switch was no more there when launching from an Intent (it was a regression) Change-Id: I1fc95cad4523a1d3812323fb26908f925a9e623e
* Merge "Settings - update for new UI (no more Drawer)"Fabrice Di Meglio2014-03-281-2/+2
|\
| * Settings - update for new UI (no more Drawer)Fabrice Di Meglio2014-03-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - follow the UX spec by no more using a Drawer - the Dashboard is now a Fragment that contains the list of Headers - the search results are also put into a Fragment that is replacing the initial one (Dashboard or other) when expanding the SearchView - use a SearchView for query input - when tapping on a Header or a Search Result, re-launch Settings as an Activity so that we are benefiting from the Activity stack for UP affordance and BACK button - manage UP affordance to show it only when needed - move some Actions to the Menu in the ActionBar for allowing space to the Search action and removing some clutter - fix an issue with the Index and WiFiEnabler and their cached Context that was not updated when there was a Configuration change - simplify the SettingsActivity code by extracting some inner classes Change-Id: I50b5f77bb44a7fade1886114dbbc820609a5e63d
* | Skip bluetooth device iteration if LocalBluetoothManager is nullNicholas Sauer2014-03-271-10/+13
|/ | | | | | bug:13653239 Change-Id: I163c47b626825b2f83bb63d9f6900216ce44ae41
* Add dynamic Preferences indexing (part 2)Fabrice Di Meglio2014-03-201-28/+29
| | | | | | | | | | - change the Index SQL model. Add a new "enabled" column. - use that column for issuing a more restrictive search query - change the SearchIndexProvider API to pass the "enable" state - apply it to Bluetooth settings - refactor the list of indexable resources (SearchIndexableResources) Change-Id: Ic900fb27cb12a285a80d953aa1aa88f0070cd986