summaryrefslogtreecommitdiffstats
path: root/packages/SettingsLib/src
Commit message (Collapse)AuthorAgeFilesLines
* Add Null checks while processing pairing cancel intentSanket Padawe2015-07-091-1/+3
| | | | | | | | | | | | Use case: Exception while handling pairing cancel Intent received 1. Initiate pairing from DUT to remote 2. Power off DUT after getting pairing popup Root Cause:Crash observed in settings application Change-Id: Ia05fe196ecf6a1d4ec26f85b0cf984e23089c728 Fix: Fixed by adding Null check in PairingCancelHandler
* Merge "Make StorageMeasurement multiprofile aware." into mnc-devZoltan Szatmary-Ban2015-07-081-35/+57
|\
| * Make StorageMeasurement multiprofile aware.Zoltan Szatmary-Ban2015-07-031-35/+57
| | | | | | | | | | | | Bug: 22117317 Bug: 22223456 Change-Id: Ic8a5c1fedcf71c5b1fcae04f32c3d9734a098517
* | Fix wifi crashJason Monk2015-07-061-4/+11
|/ | | | | | | | Handle clearing state for resume on the same worker thread as everything else, this way there can't be concurrent modification. Bug: 22040227 Change-Id: I9ac78a19fc126c8103f3218e657ca93911d3890d
* Mark a connection as a Wifi Assistant connection based on theShirish Kalele2015-06-261-3/+4
| | | | | | | ephemeral flag in WifiInfo. Add this private field to WifiInfo. Change-Id: Ic815b87a24e8272faa6e9e820b8fa55224af882a
* Merge "Make BluetoothEventManager listen to ALIAS_CHANGED" into mnc-devJason Monk2015-06-251-0/+1
|\
| * Make BluetoothEventManager listen to ALIAS_CHANGEDJason Monk2015-06-031-0/+1
| | | | | | | | | | Bug: 20341903 Change-Id: Ibc0836bfd7f033f57ff6ae9c3ccce22fd92595f3
* | Remove unused PermissionsInfo classTodd Volkert2015-06-241-192/+0
| | | | | | | | | | | | b/22008424 Change-Id: I53fc04af89c89cc1726dd80b05f2e18d5cc53524
* | Address API review commentsVinit Deshpande2015-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Added a flags field in ScanResult; along with flag values and methods to read them. Changed types of passpoint related fields. Bug: 21342042 Bug: 21572290 Bug: 21343777 Change-Id: I413960de88b387853d11b9e10f92665e9c06a81b
* | Merge "Fix access point list jumping around in WifiSettings" into mnc-devVinit Deshpande2015-06-202-131/+221
|\ \
| * | Fix access point list jumping around in WifiSettingsVinit Deshpande2015-06-182-131/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This happens because the scan times are very aggressive (to save power); and we don't find all APs on each scan. So on each scan, some APs are considered lost and some other are considered found; resulting in reordering the list. This change fixes that by requiring 3 scans to confirm absence of an AP. Bug: 7263326 Change-Id: I04f61ec5e5aa1589f457645acbf538c7e275a4bf
* | | Set default PBAP checkbox state to false (checkbox unselected).Sanket Padawe2015-06-181-1/+1
|/ / | | | | | | | | Bug: 20488109 Change-Id: I6259ea8d048cbface2ba63b8c1077af12d0fee1b
* | Merge "Don't try to get entries for uninstalled apps." into mnc-devJason Monk2015-06-151-1/+3
|\ \
| * | Don't try to get entries for uninstalled apps.Jason Monk2015-06-151-1/+3
| | | | | | | | | | | | | | | Bug: 21837824 Change-Id: I6f7bbc309e9edf1db12476f55ab8be424739fae0
* | | Make references to ssid use a verbatim TtsSpanJason Monk2015-06-152-10/+19
|/ / | | | | | | | | Bug: 20059794 Change-Id: Id92ef11e78547e168f55515dea2fc28519871d6f
* | Merge "Animations/success state for external confirm device credentials ↵Jorim Jaggi2015-06-103-0/+293
|\ \ | | | | | | | | | (1/2)" into mnc-dev
| * | Animations/success state for external confirm device credentials (1/2)Jorim Jaggi2015-06-093-0/+293
| | | | | | | | | | | | | | | Bug: 20929186 Change-Id: I8ca396e353189da7da3e9c98f841b76c876e461e
* | | Fix work apps showing as not installed for ownerJason Monk2015-06-101-0/+15
| | | | | | | | | | | | | | | Bug: 21717956 Change-Id: Ia00537f3b50f958a2e35094abf1bfc73dc1f79af
* | | Merge "Stop showing long names for local timezones when it is ambiguous" ↵Neil Fuller2015-06-101-57/+125
|\ \ \ | | | | | | | | | | | | into mnc-dev
| * | | Stop showing long names for local timezones when it is ambiguousNeil Fuller2015-06-091-57/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Context: Android uses a hand-crafted list for timezones to pick from in Settings. Independently of what we actually show the user, when a user is selecting their timezone they are selecting an olson timezone ID. Separate olson ids exist for a sets of zone rules. If two places have differed in their zone rules in the past they have different olson ids. Olson Ids are usually named after cities and have "exemplar locations", e.g. "Europe/London" covers the UK and the exemplar location is "London". Exemplar locations were often chosen based on historic considerations and do not necessarily make sense to contemporary users. Normal Android users don't know or care about any of this, but they do understand geography/cities and sometimes understand things like timezone names like "British Summer Time" (but usually not in other countries). Unfortunately timezone names understood by users also don't have a one-to-one mapping with olson IDs. Two places can have the same timezone name for part of the year but not the rest. For example, all of a the country Foo may be using "Foo Standard Time" for part of the year, but in summer some parts of the country may switch to "Foo Summer Time" while others stay on "Foo Standard Time". These would have different Olson Ids. Also, two places that historically differed in their choice of timezone rules may have since aligned. e.g. parts of Europe. They still have their own olson ids. The Android hand-crafted list is (I assume) based on a set of compromises to provide reasonable coverage of users' needs without overwhelming them with too many choices for historic irrelevancies. To assist with picking a timezone that makes sense to a user, Android currently does the following: When selecting a timezone: For "local" timezones Android shows the timezone "long name". e.g. "British Summer Time", "Eastern Standard Time". For non-local timezones Android uses the exemplar location (e.g. the city). This had an issue: Some "local" timezones, e.g. Australia for English (Australian), would show multiple entries for the same long timezone name without any way of telling them apart. After this change: This change means that settings now uses the exemplar location in preference when the Android display strings would be ambiguous. For countries where there is no ambiguity (e.g. the UK) Android continues to use the timezone long name. Bug: 19058953 Bug: https://code.google.com/p/android-developer-preview/issues/detail?id=2132 Change-Id: I01651f2416f500652bd2bcf447d056efd4fd3598
* | | | Fix build.Jason Monk2015-06-091-6/+6
| | | | | | | | | | | | | | | | Change-Id: I560dc798a238173d72e3835962ed82681977dba1
* | | | Tweak ApplicationsState for use by TvSettingsTony Mantler2015-06-091-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | b/21328967 Change-Id: I1da8a908491ec4ade7fcc729acf6c08f043cc495
* | | | Move ApplicationsState to SettingsLibTony Mantler2015-06-092-0/+1376
|/ / / | | | | | | | | | | | | | | | | | | | | | Also take InterestingConfigChanges along for the ride b/21328967 Change-Id: I48af51cc4694ba5c492794631a1e1a54a60fce0b
* | | Add a missing check for null pointer.Pavlin Radoslavov2015-06-041-1/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a race condition when processing intents inside PairingCancelHandler.onReceive() that could trigger NPE. A speculative list of events (untested) that could trigger it: 1. Trigger Pairing Cancel for a Bluetooth device. 2. Turn Off Bluetooth This should call CachedBluetoothDeviceManager.onBluetoothStateChanged() and should remove the device from (1) from the list of cached devices 3. BluetoothEventManager.PairincCancelHander.onReceive() receives an intent about about Pairing Cancel event. Within the processing of that intent, cachedDevice.getName() is called without checking whether cachedDevice is null. In this specific example, cachedDevice could be null because of (2) Bug: 21368124 Change-Id: I86f5d5287b440d1d2e0fe147278b1c2257902e95
* | SettingsLib/Wifi: Run pause/resumes on main threadJason Monk2015-06-031-12/+22
|/ | | | | | | To avoid our objects from disappearing out from under us. Bug: 21581533 Change-Id: Ia6fc9e56271f79c7d8b0f86f9c35351c39c35d29
* Merge "Add ability to get device by address" into mnc-devJason Monk2015-06-021-0/+4
|\
| * Add ability to get device by addressJason Monk2015-06-021-0/+4
| | | | | | | | | | Bug: 21444336 Change-Id: I003092a12e93e2eccab736e7da20a6a23df30bbf
* | Handle network info updates while scanning is pausedJason Monk2015-06-021-10/+12
|/ | | | | Bug: 21581533 Change-Id: I4216c3e9b64cb758e32dd93c39061f9d7a642ee0
* Bluetooth PAN: Set isPreferred to true (1/2)Andre Eisenbach2015-06-021-3/+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: I120e681a113f56b74b45e01870adf96cdc2ca262
* Fix issue related selecting of "Contact sharing" in BT Settings.Sanket Padawe2015-06-011-1/+3
| | | | | Bug: 20041014 Change-Id: I84b59fdfd82c4bf25965bcb10a15fbff2dfbe721
* Be more careful with mAccessPoints usageJason Monk2015-06-011-6/+10
| | | | | Bug: 21559453 Change-Id: I1a0bcf7282ad1a651169dea7e8ac5bc618b580d1
* Move ZoneGetter into SettingsLibTony Mantler2015-05-281-0/+147
| | | | Change-Id: I8ecfc018e6de2514e9ada4c1b6fe9c8d71cc4e88
* Fix display of "null" string shown in Wifi Settings for AP.Sanket Padawe2015-05-281-1/+1
| | | | | Bug: 21476825 Change-Id: I643dcaa3112ff896e7b0abd998f2ad5e13187706
* SettingsLib: Fix wifi crash during settings indexJason Monk2015-05-221-0/+4
| | | | | | | and test it Bug: 21365029 Change-Id: I9a914773577dcbe591b41c9114ba4d078b5e7369
* SysUI: Move BT receivers to bgJason Monk2015-05-191-3/+12
| | | | | Bug: 19520495 Change-Id: I58e7d023b9eaf67fccd1634e00803c8c8d871fff
* Revert a deleted file.Svet Ganov2015-05-171-0/+192
| | | | Change-Id: I48067da4316762e8a8a4562977c4b84655fdf0f4
* Hide platform platform legacy permissions behind a menu option - framework.Svet Ganov2015-05-161-192/+0
| | | | | | bug:21195624 Change-Id: I563c448e2abd7d33070ed2d8f62ba1b60a3744e8
* Merge "Hotspot 2.0 UI." into mnc-devSanket Padawe2015-05-141-0/+3
|\
| * Hotspot 2.0 UI.Sanket Padawe2015-05-121-0/+3
| | | | | | | | | | Bug: 20182930 Change-Id: Ice6df509889fa7eb0494bb04af65890f07b4a2b1
* | Merge "Add default icon for permissions" into mnc-devJason Monk2015-05-131-3/+4
|\ \
| * | Add default icon for permissionsJason Monk2015-05-131-3/+4
| | | | | | | | | | | | | | | Bug: 21119477 Change-Id: Ie982a1b42d2195ab79c33cf87756efb3bd9eab29
* | | Merge "SettingsLib: Track permission's packageName" into mnc-devJason Monk2015-05-131-0/+3
|\ \ \
| * | | SettingsLib: Track permission's packageNameJason Monk2015-05-131-0/+3
| |/ / | | | | | | | | | | | | Bug: 20269176 Change-Id: If07051985f3e8b6223cba4289d6cd29d94ebb0cd
* | | Fix crash from WPSJason Monk2015-05-132-5/+12
|/ / | | | | | | | | | | | | Also fix the tests to handle the new threadedness while here. Bug: 20067687 Change-Id: I116bf14c71886b251c2e8bcaeb2c9b0e5f9ec817
* | Fix crash in setup wizardJason Monk2015-05-121-0/+2
| | | | | | | | | | | | | | Clear out any unhandled worker messages before stopping tracking. Bug: 21048197 Change-Id: I3792215a1e7799bdb93587cd7158c4d5d86de348
* | SettingsLib: Do wifi processing in backgroundJason Monk2015-05-111-47/+104
|/ | | | | Bug: 19520495 Change-Id: Iefad932bd523b26a19e5f902133563341aea7426
* Merge "Saved network summary string fixes in Wifi Settings" into mnc-devSanket Padawe2015-05-061-5/+27
|\
| * Saved network summary string fixes in Wifi SettingsSanket Padawe2015-05-051-5/+27
| | | | | | | | | | Bug: 20667217 Change-Id: Ife1b1e7da3270020ef405693252a9e8a1ea5a6ca
* | Merge "Don't crash in StorageMeasurement if volume isn't mounted" into mnc-devTony Mantler2015-05-051-3/+9
|\ \
| * | Don't crash in StorageMeasurement if volume isn't mountedTony Mantler2015-05-041-3/+9
| |/ | | | | | | Change-Id: I3f5d62c93b0bb95bec358a33e1a4497f1b55f8ad