Commit Graph

2070 Commits

Author SHA1 Message Date
pkanwar
5a2b73b288 Add string needed to support carrier wifi in UI.
am: bf7ceec031

Change-Id: I669fcd9904e23943ecd2dd0a9f558209fd00b1c5
2017-07-31 01:44:09 +00:00
pkanwar
bf7ceec031 Add string needed to support carrier wifi in UI.
Add strings which will be used to indicate to the user in the wifi
picker and wifi config that they are connecting/connected to carrier
wifi.

Bug:30988281
Test: manual
Change-Id: I41e63ce831dface4f2baf2879dde84ebe2fecc94
2017-07-30 17:59:27 +00:00
Bill Yi
03d4052fcf Import translations. DO NOT MERGE
Change-Id: I757ee47abb27616c1a9112490c805375e8710ec7
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-28 01:44:25 -07:00
Antony Sargent
e9f1046e36 Merge "resolve merge conflicts of 1e74fdb684 to oc-mr1-dev" into oc-mr1-dev
am: eea2441f0a

Change-Id: I1a7aa500b686f3b7531db03e61bd12f108333850
2017-07-26 23:46:27 +00:00
TreeHugger Robot
eea2441f0a Merge "resolve merge conflicts of 1e74fdb684 to oc-mr1-dev" into oc-mr1-dev 2017-07-26 23:25:05 +00:00
TreeHugger Robot
20c5ac18db Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-07-26 19:57:22 +00:00
Antony Sargent
d1dcfd1dc0 resolve merge conflicts of 1e74fdb684 to oc-mr1-dev
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I1e90e7ff397f7a995c9d6471c876be020e6de582
Merged-In: I92b56b7908e5be8a3553a2779646d48bb5b94f01
2017-07-26 12:55:04 -07:00
Bill Yi
ee8dd9c373 Import translations. DO NOT MERGE
Change-Id: Ia56580662240b965d77ec102ea91a8b0ea5a8bab
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-26 08:05:55 -07:00
Eric Schwarzenbach
76f63b7b29 Merge "Only display RSSI/band information if network is connected." into oc-mr1-dev
am: c7886489ee

Change-Id: I18be4be9f92d841cf5579ecde4fd6b73c860ee93
2017-07-26 03:53:29 +00:00
Eric Schwarzenbach
f4f779d561 Merge "Sort APs by Speed label value instead of ranking score." into oc-mr1-dev
am: 3b8ce7c6d7

Change-Id: I43772768b4fe58de3a6b4fa1af909ed06122f802
2017-07-26 03:51:02 +00:00
TreeHugger Robot
c7886489ee Merge "Only display RSSI/band information if network is connected." into oc-mr1-dev 2017-07-26 03:42:09 +00:00
TreeHugger Robot
3b8ce7c6d7 Merge "Sort APs by Speed label value instead of ranking score." into oc-mr1-dev 2017-07-26 03:41:27 +00:00
Sundeep Ghuman
295d4092de Merge "Do not evict scan results in cold start." into oc-dr1-dev am: d68b6dc56b
am: f5b7da9b32

Change-Id: Ia43904db88f27c5b6a2d9c79fa049f5811303dde
2017-07-25 23:28:52 +00:00
Sundeep Ghuman
f5b7da9b32 Merge "Do not evict scan results in cold start." into oc-dr1-dev
am: d68b6dc56b

Change-Id: If442689c6a05ad261a846a5252d9a0256520508e
2017-07-25 23:05:11 +00:00
TreeHugger Robot
d68b6dc56b Merge "Do not evict scan results in cold start." into oc-dr1-dev 2017-07-25 22:41:39 +00:00
Salvador Martinez
e94731c47b Merge "move icon so that inline actions in settings can use it" into oc-dr1-dev am: f104b68a04
am: f68823e51e

Change-Id: I291ec343b9c774449203c1c519e9685fbc19c552
2017-07-25 00:10:27 +00:00
Salvador Martinez
ac791f4454 Merge "move icon so that inline actions in settings can use it" into oc-dr1-dev
am: f104b68a04

Change-Id: Id549831e1061088cefd261f460febcb7b3a3cb3f
2017-07-25 00:05:50 +00:00
Salvador Martinez
f68823e51e Merge "move icon so that inline actions in settings can use it" into oc-dr1-dev
am: f104b68a04

Change-Id: I83321a143a402f0babebca140a01bdacf26feb4d
2017-07-25 00:05:01 +00:00
Sundeep Ghuman
4205874ec7 Do not evict scan results in cold start.
When starting WifiTracker, show whatever results are available from
platform until new scan results come in. This allows us to show the best
available results from the previous location scan. Once we have resumed
scanning and new scan results come in, the previous logic of evicting
scan results older than 15 seconds applies.

Also prevent unnecessary onConnectedChanged callbacks from being fired,
which may unnecessarily cause UI reloading bars to appear by performing
unnecessary work.

Bug: b/38212080
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java &&
runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I3db9d98425b3d2fc66fa0757807a318d0c7456ee
2017-07-24 13:15:23 -07:00
Salvador Martinez
52737f9266 move icon so that inline actions in settings can use it
Test: tests still pass
Bug: 62022517
Change-Id: Ifc01797c6ada51130586b5b42570c3357923ef85
2017-07-24 13:06:18 -07:00
TreeHugger Robot
69e41a4e9c Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-07-22 16:31:16 +00:00
Bill Yi
19a8d0af26 Import translations. DO NOT MERGE
Change-Id: I1670c714954e5835f6c79f446c463ee18d72d17b
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-22 02:47:35 -07:00
Matthew Fritze
0e7fc49139 Merge "Move icon resources into SettingsLib for phone buddy" into oc-dr1-dev am: 1cc73a5773
am: 1986c25da7

Change-Id: I7ddd29766ecb6a4315ab635b16b2f480cc4915a8
2017-07-22 03:44:10 +00:00
Matthew Fritze
5e4b071704 Merge "Move icon resources into SettingsLib for phone buddy" into oc-dr1-dev
am: 1cc73a5773

Change-Id: I7bba78003073c79aaf692a01f0f6980b40e45598
2017-07-22 03:37:47 +00:00
Matthew Fritze
1986c25da7 Merge "Move icon resources into SettingsLib for phone buddy" into oc-dr1-dev
am: 1cc73a5773

Change-Id: Iebb70bf9db4c3eabf0aecd07a0ecf9178ff8944b
2017-07-22 03:37:46 +00:00
TreeHugger Robot
1cc73a5773 Merge "Move icon resources into SettingsLib for phone buddy" into oc-dr1-dev 2017-07-22 03:31:53 +00:00
Fan Zhang
38b86cfc5a Merge "Fix suggestion crash if parser fails to parse dismiss rule" into oc-mr1-dev
am: b975b333af

Change-Id: Icdde985be117189f1445bc78f3c94da236fec0df
2017-07-22 01:12:17 +00:00
Matthew Fritze
ab8148f2f6 Move icon resources into SettingsLib for phone buddy
The external settings api needs to pass icons for
corresponding settings. The following signals didn't have
icons in Settings.
- Night display
- Location

Bug: 62706782
Test: make RunSettingsGoogleRoboTests
Change-Id: Ia2feaa9cfea7dbce165545e5b7d96ad0798b8e07
2017-07-21 17:39:58 -07:00
Fan Zhang
82388cda78 Merge "Fix suggestion crash if parser fails to parse dismiss rule" into oc-dr1-dev
am: 689359914d

Change-Id: I351f0df469be67b5998567d7fb9ff0163d613a1d
2017-07-21 23:06:20 +00:00
TreeHugger Robot
689359914d Merge "Fix suggestion crash if parser fails to parse dismiss rule" into oc-dr1-dev 2017-07-21 22:59:13 +00:00
Fan Zhang
7b77cf8938 Fix suggestion crash if parser fails to parse dismiss rule
We store a index value in shared pref to figure out when a suggestion
should be displayed next time. However the rule can change due to
various reasons. When the index and the rule itself go out of sync, we
should not crash.

Change-Id: Id3ea88b6d321434e20ac0cd3e2670524c237e24e
Bug: 63908636
Test: robotests
(cherry picked from commit 4d37a1a1e1)
2017-07-21 22:11:41 +00:00
Fan Zhang
15ea628204 Fix suggestion crash if parser fails to parse dismiss rule
We store a index value in shared pref to figure out when a suggestion
should be displayed next time. However the rule can change due to
various reasons. When the index and the rule itself go out of sync, we
should not crash.

Merged-In: Id3ea88b6d321434e20ac0cd3e2670524c237e24e
Change-Id: Ied4a0359f9bc22ee94ec79c0591d2671a9c31b86
Fix: 63908636
Test: robotests
2017-07-21 12:57:14 -07:00
Bill Yi
c87481965f Import translations. DO NOT MERGE
Change-Id: I9905307a26573e5e19db63f85ba4a89bab47b166
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-21 12:05:22 -07:00
Jeff Sharkey
84c6684bba Merge "Expose SubscriptionPlan API." into oc-mr1-dev 2017-07-21 17:14:30 +00:00
Glen Kuhne
640f04ef38 Merge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev
am: 860f185c66

Change-Id: I9069d51fa6214d9b78c04eea6ab6adebff13ca2e
2017-07-21 02:37:58 +00:00
Glen Kuhne
ed005b2928 Merge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev
am: 860f185c66

Change-Id: Ie89e7361d90accde957dc6490dc483c4d4885c0e
2017-07-21 02:37:55 +00:00
TreeHugger Robot
860f185c66 Merge "Don't set AccessPoint with WifiInfo.INVALID_RSSI" into oc-dr1-dev 2017-07-21 02:30:17 +00:00
Sundeep Ghuman
34df6c0af3 Merge "Do not clear scores during stopTracking." into oc-dr1-dev
am: 3b63aa79eb

Change-Id: Iab18b4e433aa1de2bb4acde5db2e8b8ea5a56710
2017-07-21 01:01:52 +00:00
TreeHugger Robot
3b63aa79eb Merge "Do not clear scores during stopTracking." into oc-dr1-dev 2017-07-21 00:56:42 +00:00
Jeff Sharkey
17bebd2fd7 Expose SubscriptionPlan API.
Clean up SubscriptionPlan, add docs, and expose as public API.

Deprecate older constants in CarrierConfigManager, and point users
towards new API.  (The goal of CarrierConfigManager is to express
key/value pairs that are identical for all users on a particular
carrier, not to configure details that vary between users.)

Since a CarrierService may itself not have access to the plan
details, allow them to "delegate" the capability to configure plans
to another package name.

Factor out new RecurrenceRule class which is used by both
NetworkPolicy and SubscriptionPlan internally.  Polish it to support
arbitrary periods, and continue to test it through NPMST.

Bug: 63391323
Test: bit FrameworksCoreTests:android.util.RecurrenceRuleTest
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Exempt-From-Owner-Approval: Bug 63673347
Change-Id: I93fae4a43e58e9e4c32f8bf345a257dcd607f088
2017-07-20 14:55:57 -06:00
Eric Schwarzenbach
f4f3842b02 Sort APs by Speed label value instead of ranking score.
This prevents unintuitive sorting if the ranking score (somehow)
sorts differently from the speed label.

This change also fixes a broken test in AccessPointTest.java
'testSummaryString_showsSpeedLabel()'.

Bug: 63116984
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I4a9e55950541ddbf32e01508484bd40326ef228e
(cherry picked from commit 0b431c9af2)
2017-07-20 20:45:31 +00:00
Eric Schwarzenbach
b77d3d7475 Only display RSSI/band information if network is connected.
Change the verbose AccessPoint summary to only display visibility summary
if it is the currently connected network.

Note: This does not fix the underlying behavioral issue where
WifiTracker does not correctly null out the AccessPoint's mWifiInfo.

Bug: 62317380
Test: manual

Change-Id: Idcdd182200d2d2ded6b3200b67c4ed654d45a9b7
(cherry picked from commit 3c4f4ffc5c)
2017-07-20 20:21:09 +00:00
Glen Kuhne
d38708c1ab Don't set AccessPoint with WifiInfo.INVALID_RSSI
This stops the RSSI of an AccessPoint object being updated from WifiInfo
for the current network, when that WifiInfo does not have a valid RSSI.
This occurs when attempting to connect to a network, and the connection
has not yet been established.
Fixes a UI bug where the signal strength would appear to be zero when
attempting to connect to something, or after failing to.

Bug: 63487286
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java
Test: Manual. Attempt to connect to network with bad PSK. Observe Signal
strength does not get set to zero.

Change-Id: Ia5343fb6f0935134e6a4f82034de164342fe55d4
2017-07-20 19:11:59 +00:00
Bill Yi
a7a70f7e10 Import translations. DO NOT MERGE
Change-Id: I2ed6f707aa5196125419a43b85be6b9644364c24
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
2017-07-19 21:48:02 -07:00
TreeHugger Robot
de82accc3a Merge "Use scores from connected AP only." 2017-07-20 01:26:44 +00:00
TreeHugger Robot
2a0e61f1db Merge "Add Wifi's security type to contentDescription" 2017-07-19 23:31:56 +00:00
Sundeep Ghuman
a28050ae42 Use scores from connected AP only.
When connected to a specific base station, show the speed label for that
specific access point, rather than the best label for all similar access
points in the area.

Bug: b/63073866
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: Ic3b3c5838ca8b43daa226335125bb8046dee3884
2017-07-19 16:30:19 -07:00
TreeHugger Robot
a54c89ec56 Merge "Standardize usages of "/" separator in SettingsLib" 2017-07-19 20:39:10 +00:00
Fan Zhang
60b850de5e Add Wifi's security type to contentDescription
Change-Id: I0c1945fd8776814ddf0097c0c1f27ed4dd1c73b2
Fix: 63805288
Test: robotests
2017-07-19 09:22:49 -07:00
Glen Kuhne
446afac159 Add FailureReason to WifiConfiguration
Added a new field that caches extra details about connection failures so
that they may be surfaced in the UI.

Bug: 62915994
Test: Manual...
Change-Id: I6e7860df4ea755e72fbdd4b6bf514338f2f1de80
2017-07-18 14:03:32 -07:00