85 Commits

Author SHA1 Message Date
Mitchell Wills
5a42db2e9c Pass connection configuration when setting wifi info
This allows the both the ssid and connection info to be verified when
updating wifi info.

Bug: 22797622
Change-Id: I82d771a299e17469683516c6b1077cb260981812
2015-08-05 15:39:19 -07:00
Prem Kumar
04e2cf6bc5 Merge "Make default selection for contact sharing to "Checked"." into mnc-dev 2015-08-04 00:41:46 +00:00
Zach Johnson
5faa033615 Merge "Add filter for personal apps that are not disabled until first use" into mnc-dev 2015-07-28 22:36:30 +00:00
Zach Johnson
b6d17ee7ae Add filter for personal apps that are not disabled until first use
Needed for the battery settings UI.

b/22667081

Change-Id: I25ed5c1866dc3027e450c7ce9031de5def4f839a
2015-07-24 15:48:52 -07:00
Jorim Jaggi
613f55fbbb Move PIN/Pattern appear animation to RenderThread (1/2)
Bug: 22205322
Change-Id: I253f20a397ab89cb78254338a0254619232d7300
2015-07-22 15:23:52 -07:00
Sanket Padawe
9debd5106e Make default selection for contact sharing to "Checked".
Bug: 22556703
Change-Id: I33343301c4097f0e966f11a8d503ca30949e9a82
2015-07-17 12:35:58 -07:00
Geoff Mendal
bb24571ae8 Import translations. DO NOT MERGE
Change-Id: I4e7c446cc9fd0a34b81173a74cddc40c22b7b74b
Auto-generated-cl: translation import
2015-07-15 06:47:39 -07:00
Jason Monk
f05ca67ce4 Move wifi accessibility strings to SettingsLib
Bug: 22468835
Change-Id: I66e85e8adfb3eda194995eda529422a172f00cbd
2015-07-14 13:32:33 -04:00
Vinit Deshpande
0bd08fc22a Merge "Fix multiple SSIDs for same Passpoint issues" into mnc-dev 2015-07-13 19:46:27 +00:00
Sanket Padawe
194cce695b Changes security for Passpoint to EAP security from "Passpoint".
Bug: 22402754
Change-Id: I3afbb6f3f446657a3e9505122032f4edc6401302
2015-07-10 10:53:31 -07:00
Vinit Deshpande
5b7352cf1b Fix multiple SSIDs for same Passpoint issues
This change fixes Wifi Settings UI for passpoint. The
connected notification now should show up only for the
SSIDs that match.

Bug: 22200890
Change-Id: If69a9364eca5505fe2d4037217f1777fa4d823f5
2015-07-10 10:39:16 -07:00
Sanket Padawe
4d08a485db Add Null checks while processing pairing cancel intent
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
2015-07-09 01:02:03 +00:00
Zoltan Szatmary-Ban
4d2593d3f2 Merge "Make StorageMeasurement multiprofile aware." into mnc-dev 2015-07-08 10:54:10 +00:00
Geoff Mendal
813b167cd6 Import translations. DO NOT MERGE
Change-Id: Id6958aa309a3c3c778070b94c9d8f969da04124c
Auto-generated-cl: translation import
2015-07-07 18:56:12 -07:00
Jason Monk
dbd05a98e5 Fix wifi crash
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
2015-07-06 13:05:43 -04:00
Zoltan Szatmary-Ban
47adcb9fea Make StorageMeasurement multiprofile aware.
Bug: 22117317
Bug: 22223456
Change-Id: Ic8a5c1fedcf71c5b1fcae04f32c3d9734a098517
2015-07-03 12:51:38 +01:00
Shirish Kalele
c7a38ef840 Mark a connection as a Wifi Assistant connection based on the
ephemeral flag in WifiInfo.
Add this private field to WifiInfo.

Change-Id: Ic815b87a24e8272faa6e9e820b8fa55224af882a
2015-06-26 13:05:22 -07:00
Jason Monk
107cb81f90 Merge "Make BluetoothEventManager listen to ALIAS_CHANGED" into mnc-dev 2015-06-25 14:05:22 +00:00
Todd Volkert
5f8e4675ae Remove unused PermissionsInfo class
b/22008424

Change-Id: I53fc04af89c89cc1726dd80b05f2e18d5cc53524
2015-06-24 11:10:37 -07:00
Vinit Deshpande
a0d929e505 Address API review comments
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
2015-06-22 19:09:38 -07:00
Vinit Deshpande
edb832271b Merge "Fix access point list jumping around in WifiSettings" into mnc-dev 2015-06-20 00:24:33 +00:00
Sanket Padawe
ceeaef3852 Set default PBAP checkbox state to false (checkbox unselected).
Bug: 20488109
Change-Id: I6259ea8d048cbface2ba63b8c1077af12d0fee1b
2015-06-18 17:56:08 -07:00
Vinit Deshpande
fcd4612f70 Fix access point list jumping around in WifiSettings
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
2015-06-18 13:41:16 -07:00
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
8c495be48f Make BluetoothEventManager listen to ALIAS_CHANGED
Bug: 20341903
Change-Id: Ibc0836bfd7f033f57ff6ae9c3ccce22fd92595f3
2015-06-03 16:03:39 -04: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