61 Commits

Author SHA1 Message Date
Jason Monk
4b8704c9e1 Merge "Don't try to get entries for uninstalled apps." into mnc-dev 2015-06-15 15:41:38 +00:00
Jason Monk
c1f24abd10 Don't try to get entries for uninstalled apps.
Bug: 21837824
Change-Id: I6f7bbc309e9edf1db12476f55ab8be424739fae0
2015-06-15 11:38:03 -04:00
Jason Monk
6980d12c58 Make references to ssid use a verbatim TtsSpan
Bug: 20059794
Change-Id: Id92ef11e78547e168f55515dea2fc28519871d6f
2015-06-15 10:07:55 -04:00
Jorim Jaggi
7bcacc9c6a Merge "Animations/success state for external confirm device credentials (1/2)" into mnc-dev 2015-06-10 23:10:10 +00:00
Jason Monk
6ff98ce2c8 Fix work apps showing as not installed for owner
Bug: 21717956
Change-Id: Ia00537f3b50f958a2e35094abf1bfc73dc1f79af
2015-06-10 10:18:22 -04:00
Neil Fuller
8e095594a6 Merge "Stop showing long names for local timezones when it is ambiguous" into mnc-dev 2015-06-10 12:23:54 +00:00
Jorim Jaggi
5673353559 Animations/success state for external confirm device credentials (1/2)
Bug: 20929186
Change-Id: I8ca396e353189da7da3e9c98f841b76c876e461e
2015-06-09 15:25:40 -07:00
Jason Monk
e3fd6de9d6 Fix build.
Change-Id: I560dc798a238173d72e3835962ed82681977dba1
2015-06-09 13:58:57 -04:00
Tony Mantler
bdbb5a8d77 Tweak ApplicationsState for use by TvSettings
b/21328967

Change-Id: I1da8a908491ec4ade7fcc729acf6c08f043cc495
2015-06-09 10:42:59 -07:00
Tony Mantler
d951d65d8a Merge "Move ApplicationsState to SettingsLib" into mnc-dev 2015-06-09 17:20:19 +00:00
Tony Mantler
eeb3443cc6 Merge "Add uses-sdk to reduce red squigglies" into mnc-dev 2015-06-09 16:04:45 +00:00
Tony Mantler
95357fd49a Move ApplicationsState to SettingsLib
Also take InterestingConfigChanges along for the ride

b/21328967

Change-Id: I48af51cc4694ba5c492794631a1e1a54a60fce0b
2015-06-09 09:39:08 -04:00
Neil Fuller
6394a39280 Stop showing long names for local timezones when it is ambiguous
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
2015-06-09 10:14:44 +01:00
Tony Mantler
204a1d9bae Add uses-sdk to reduce red squigglies
Change-Id: I70257d7c643b904d8d5a4c462f00267dc0711cd4
2015-06-08 15:46:51 -07:00
Geoff Mendal
4ad2b0c829 Import translations. DO NOT MERGE
Change-Id: I45739d8c8ae447a724264c4946aedd273a308d91
Auto-generated-cl: translation import
2015-06-08 13:15:33 -07:00
Pavlin Radoslavov
d2b033aeb4 Add a missing check for null pointer.
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
2015-06-04 21:29:34 +00:00
Jason Monk
e04ae8aced SettingsLib/Wifi: Run pause/resumes on main thread
To avoid our objects from disappearing out from under us.

Bug: 21581533
Change-Id: Ia6fc9e56271f79c7d8b0f86f9c35351c39c35d29
2015-06-03 14:11:11 -04:00
Jason Monk
d3c2089f88 Merge "Add ability to get device by address" into mnc-dev 2015-06-02 20:41:24 +00:00
Jason Monk
a296c69cc2 Handle network info updates while scanning is paused
Bug: 21581533
Change-Id: I4216c3e9b64cb758e32dd93c39061f9d7a642ee0
2015-06-02 14:52:22 -04:00
Jason Monk
64ff8a541c Add ability to get device by address
Bug: 21444336
Change-Id: I003092a12e93e2eccab736e7da20a6a23df30bbf
2015-06-02 14:05:18 -04:00
Andre Eisenbach
60598075a0 Bluetooth PAN: Set isPreferred to true (1/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
2015-06-02 01:58:58 -07:00
Sanket Padawe
78c23767ec Fix issue related selecting of "Contact sharing" in BT Settings.
Bug: 20041014
Change-Id: I84b59fdfd82c4bf25965bcb10a15fbff2dfbe721
2015-06-01 15:55:30 -07:00
Jason Monk
1904081c62 Be more careful with mAccessPoints usage
Bug: 21559453
Change-Id: I1a0bcf7282ad1a651169dea7e8ac5bc618b580d1
2015-06-01 15:00:57 -04:00
Tony Mantler
b3543e0d1d Move ZoneGetter into SettingsLib
Change-Id: I8ecfc018e6de2514e9ada4c1b6fe9c8d71cc4e88
2015-05-28 14:49:11 -07:00
Sanket Padawe
3e9e5fa66e Fix display of "null" string shown in Wifi Settings for AP.
Bug: 21476825
Change-Id: I643dcaa3112ff896e7b0abd998f2ad5e13187706
2015-05-28 10:41:14 -07:00
Jason Monk
bf3d1af3d8 SettingsLib: Fix wifi crash during settings index
and test it

Bug: 21365029
Change-Id: I9a914773577dcbe591b41c9114ba4d078b5e7369
2015-05-22 11:26:34 -04:00
Jason Monk
744cf647f7 SysUI: Move BT receivers to bg
Bug: 19520495
Change-Id: I58e7d023b9eaf67fccd1634e00803c8c8d871fff
2015-05-19 13:13:15 -04:00
Svet Ganov
19877fa5f6 Revert a deleted file.
Change-Id: I48067da4316762e8a8a4562977c4b84655fdf0f4
2015-05-17 00:48:57 -07:00
Svet Ganov
321f01574e Hide platform platform legacy permissions behind a menu option - framework.
bug:21195624

Change-Id: I563c448e2abd7d33070ed2d8f62ba1b60a3744e8
2015-05-16 22:52:33 -07:00
Sanket Padawe
402be0628c Merge "Hotspot 2.0 UI." into mnc-dev 2015-05-14 02:40:44 +00:00
Jason Monk
d7fd045014 Merge "Add default icon for permissions" into mnc-dev 2015-05-13 21:06:30 +00:00
Jason Monk
0e6cac2658 Add default icon for permissions
Bug: 21119477
Change-Id: Ie982a1b42d2195ab79c33cf87756efb3bd9eab29
2015-05-13 16:07:57 -04:00
Jason Monk
401c40a822 Merge "SettingsLib: Track permission's packageName" into mnc-dev 2015-05-13 18:40:55 +00:00
Jason Monk
02453f605b SettingsLib: Track permission's packageName
Bug: 20269176
Change-Id: If07051985f3e8b6223cba4289d6cd29d94ebb0cd
2015-05-13 12:30:34 -04:00
Jason Monk
2b51cc30d5 Fix crash from WPS
Also fix the tests to handle the new threadedness while here.

Bug: 20067687
Change-Id: I116bf14c71886b251c2e8bcaeb2c9b0e5f9ec817
2015-05-13 11:08:53 -04:00
Jason Monk
a42ee81368 Fix crash in setup wizard
Clear out any unhandled worker messages before stopping tracking.

Bug: 21048197
Change-Id: I3792215a1e7799bdb93587cd7158c4d5d86de348
2015-05-12 14:20:25 -04:00
Sanket Padawe
d187880109 Hotspot 2.0 UI.
Bug: 20182930
Change-Id: Ice6df509889fa7eb0494bb04af65890f07b4a2b1
2015-05-12 10:27:19 -07:00
Jason Monk
30d8004dbf SettingsLib: Do wifi processing in background
Bug: 19520495
Change-Id: Iefad932bd523b26a19e5f902133563341aea7426
2015-05-11 12:37:43 -04:00
Sanket Padawe
60137fdcb3 Merge "Saved network summary string fixes in Wifi Settings" into mnc-dev 2015-05-06 20:59:16 +00:00
Sanket Padawe
56cfbfb031 Saved network summary string fixes in Wifi Settings
Bug: 20667217
Change-Id: Ife1b1e7da3270020ef405693252a9e8a1ea5a6ca
2015-05-05 20:10:46 -07:00
Tony Mantler
def4c0c49a Merge "Don't crash in StorageMeasurement if volume isn't mounted" into mnc-dev 2015-05-05 17:59:01 +00:00
Casper Bonde
424681e43e Settings UI for SIM access profile (2/2)
Change-Id: I2e44a858ee3f3349baa401ee7002186d3ae19412
2015-05-05 16:59:24 +00:00
Tony Mantler
ca2954830c Don't crash in StorageMeasurement if volume isn't mounted
Change-Id: I3f5d62c93b0bb95bec358a33e1a4497f1b55f8ad
2015-05-04 10:57:44 -07:00
Sanket Padawe
7094d22022 Adding "Connected, no Internet" string in Wifi nw summary.
Bug: 17380953
Change-Id: I9664bcbf33832fe722e7d2b3125939287ee98098
2015-05-01 16:55:00 -07:00
Vinit Deshpande
dcf00c9d0f Implement 'Available via Passpoint' feature [DO NOT MERGE]
This also fixes the issues related to explicit connection
to passpoint AP, and fixes occassional mention of
'connected via Wi-Fi Assistent'

Change-Id: I152cebafa6259194f1d09a6972a3508156335cb6
(cherry picked from commit ff783cd6cfc82870a6126fe1ef019d21131423fc)
2015-04-29 16:40:51 -07:00
Vinit Deshpande
fc40600e30 Fix settings UI for passpoint networks [DO NOT MERGE]
This change includes showing the friendly name in saved
networks list and 'Connected via provider' addition for
passpoint connections.

Change-Id: If330baa96dedb099d5989b3df5b9778bbbcb15e3
(cherry picked from commit 597f49cdda63fef1b583e2053341485e8d4e2371)
2015-04-29 16:32:01 -07:00
Tony Mantler
9496a2da05 Add totalSize and availSize queries to StorageMeasurement
Change-Id: I20f9d8546046df3804008ee4068c539549f35cb6
2015-04-23 15:45:00 -07:00
Tony Mantler
547e4caebe Move StorageMeasurement to SettingsLib
Change-Id: I90ea3b32971f02def418385ebac1f03f06390ba7
2015-04-23 14:16:44 -07:00
Tony Mantler
618f3c4f94 Add PermissionsInfo to SettingsLib
in preparation to use it in TvSettings

Change-Id: I7e336ae923f94eef3efe56bf61c250ae540fb83b
2015-04-16 15:43:00 -07:00
Venkat Raghavan
05e08c3a2f Bluetooth: Do not initiate inquiry during pairing/SDP
Retry SDP if it gets cancelled in BONDING state.
If SDP search initiated after the pairing gets cancelled, re-initiate
SDP search from the BTIF layer to ensure completion of the bonding
process.

While pairing/SDP discovery of the bonded device is in progress,
do not initiate inquiry.

Bug: 19417758
Change-Id: I2d80883999771c53b58cc3017a63b17e3564bc57
2015-04-06 16:27:09 -07:00