Commit Graph

1338 Commits

Author SHA1 Message Date
Doris Ling
8edab274e0 Merge "Update battery settings summary text." 2017-03-18 00:39:09 +00:00
TreeHugger Robot
a70288eea3 Merge changes Iab3f9914,I5d5da5e7
* changes:
  Average scan results for AccessPoints.
  Fix broken AccessPointTests.
2017-03-17 23:57:11 +00:00
TreeHugger Robot
8c97bcc9fe Merge "Show friction icons in Saved Networks list." 2017-03-17 23:06:15 +00:00
Doris Ling
92b2b3be10 Update battery settings summary text.
Bug: 36375846
Test: builds
Change-Id: I9d0cf831327960d69296de5b025e18c6f1f6a2ae
2017-03-17 14:37:24 -07:00
Sundeep Ghuman
ce78a5f2d3 Average scan results for AccessPoints.
This reduces jitter in the WifiTracker and is modeled after a prior
broken implementation which attempted to half-life the rssi each time
AccessPoint.update(ScanResult) is called.

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

Change-Id: Iab3f9914af40f2fd56e8ae7b45dcbd62176c8a67
2017-03-17 13:29:59 -07:00
Fan Zhang
51fac1237d Code clean up: remove some dead code.
Test: existing tests pass
Change-Id: I1e0e6f8218b3a6550476fe1aa092f685d7433d53
2017-03-17 12:55:21 -07:00
Sundeep Ghuman
4d8781e6be Show friction icons in Saved Networks list.
Bug: b/34802842
Test: $ make SettingsFunctionalTests -j40
$ adb install -r
$ {OUT}/data/app/SettingsFunctionalTests/SettingsFunctionalTests.apk
$ adb shell am instrument -w \
    'android.settings.functional/android.support.test.runner.AndroidJUnitRunner'

Change-Id: I0d6aedad2aabb40ef532283a755cb5c954e8139d
2017-03-17 12:44:54 -07:00
Sundeep Ghuman
b9647ebba0 Fix broken AccessPointTests.
Bug: None
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I5d5da5e7e0faf1c124816f0dd8ab5f0249e54637
2017-03-17 12:44:54 -07:00
TreeHugger Robot
587b60282e Merge "frameworks/base: Add APCT tests to the device-tests suite." 2017-03-16 17:35:12 +00:00
Fan Zhang
5545d42398 Update strings
Change-Id: I38fcd900cdadea40f96fa2f78587943662a6771f
Fix: 36291553
Test: builds
2017-03-15 17:40:49 -07:00
Simran Basi
473a16e492 frameworks/base: Add APCT tests to the device-tests suite.
This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
2017-03-15 14:46:27 -07:00
Sundeep Ghuman
aaa8a1b54a Fix the number of levels returned by getLevels().
This was previously out of sync with WifiManager.RSSI_LEVELS which
caused UI issues where the wrong number of bars were shown in various
places. This is the permanent fix to a previous temporary fix.

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

Change-Id: Iadb2a6131ee9fbc4f297766d0bc3bc82eca40a4d
2017-03-14 15:43:17 -07:00
Sundeep Ghuman
54bdcfa081 Consolidate getRssi logic to return mRssi.
Changed previous getRssi method to updateeRssi in order to clarify
process, and also changed logic to return current mRssi when the given
AP is active. mRssi is set directly from WifiInfo for active networks.
For non-active networks we return the highest Rssi for any recently seen
BSSID (multiple APs with the same SSID are grouped together).

Change getSeen to updateSeen for consistency, although seen is never
used anywhere.

Also fixes b/34889252.

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

Change-Id: Ic52df41b8eb317e83d835c745b404007a53cf5d7
2017-03-14 15:43:17 -07:00
Sundeep Ghuman
dc6cf4b683 Necessary AccessPoint visibility change for WifiNetworkDetailsFragment.
Refactor constant name in WifiTracker for readability.

Bug: 34713316
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: I41b0d69303d0452e2c2c22bcbddc34ae3932e99e
2017-03-14 15:43:07 -07:00
Doris Ling
0acbdda13e Merge "Update sort order for settings category tiles." 2017-03-14 20:20:43 +00:00
Doris Ling
ce31159be7 Update sort order for settings category tiles.
- change the sort to first compare priority, then compare package name.
- do not normalize the tile's priority for all package.

Change-Id: I5501a8c3d5ca0a7f9e100411348d28cfe373c87a
Fix: 35928954
Test: make RunSettingsLibRoboTests
2017-03-13 12:56:10 -07:00
Paul Duffin
8b00751ff6 Use --multi-dex native to avoid dex limit
Bug: 32912773
Test: make checkbuild
Change-Id: I1adb219894c90487fe9455765972cadf50fb295a
2017-03-11 21:29:48 +00:00
Paul Duffin
192bb0bc54 Refactor code incompatible with Mockito 2.7.13
(cherry picked from 76e319f015c2b43498ce3ce610a253d63e76cbf3)

Some additional internal only refactorings were done as well.

Bug: 32912773
Test: make checkbuild
Change-Id: I96e3da967fad731fc8f39bde9db95f50ab7353fb
2017-03-10 14:18:53 +00:00
Jeff Sharkey
60f95aa00a Move lagging users over to new storage API.
Over the last month we've been moving everyone over to the new
StorageStatsManager public APIs, but we missed these users.

The ApplicationsState changes are straightforward, but we had to
completely rewrite StorageMeasurement to use the new fast-path
quota APIs.

Test: builds, boots, UI using StorageMeasurement works.
Bug: 36056120
Change-Id: If02177c95bf8c96ae4eceac4d631a168f99bef84
2017-03-08 13:57:29 -07:00
Fan Zhang
c93dadacdd Show help icon in actionbar
Fix: 35955986
Test: RunSettingsLibRoboTests
Change-Id: If4c328cacf1e3c9a5f66eeb248749c97c80cdb6c
2017-03-06 13:06:38 -08:00
Bill Yi
895c18c096 Import translations. DO NOT MERGE
Change-Id: I3af1430764f59d462cc653f0a1870611d5ac51a9
Auto-generated-cl: translation import
2017-03-05 19:29:15 -08:00
TreeHugger Robot
638903002e Merge "OMS: Introduce default overlays" 2017-03-03 21:36:11 +00:00
Roger Xue
e20f8fb5b4 Merge "move PermissionsSummaryHelper into SettingsLib to share with car/settings" 2017-03-03 17:06:59 +00:00
roger xue
ef027edcc4 move PermissionsSummaryHelper into SettingsLib to share with car/settings
Bug: 34679894
Test: run RunSettingsLibRoboTests -j128

Change-Id: I237534fa457052591285dfce2b36ea15793d04a5
2017-03-02 16:03:37 -08:00
Adam Lesinski
a5ca624083 OMS: Introduce default overlays
Default overlays are applied at first boot. They are specified by
package name in system property ro.boot.vendor.overlay.theme as a
semicolon separated list.

Eg:

ro.boot.vendor.overlay=com.android.vendor.overlay;com.android.vendor.overlay_two

Test: manual (remove /data/system/overlays.xml and reboot)
Change-Id: I8a7443a9059ccabfe1a63b075b95f1b2b6db7dbd
2017-03-02 14:38:59 -08:00
Antony Sargent
16bc3dd1e5 Merge "New design for instant apps in app details header" 2017-03-02 21:03:39 +00:00
Sundeep Ghuman
eede005897 Change from literal to constant in AccessPointPreference.
Bug: b/35854026
Test: NA - non-functional refactor
Change-Id: Ic50ca3e6c9364446bc07207f8bb9a76a27a114c2
2017-03-02 18:07:09 +00:00
TreeHugger Robot
a4c97ffca6 Merge changes I6c0c8730,Icbae30d2
* changes:
  Fix Wifi Signal strength in the picker.
  Create a Tron event for opening the network details page.
2017-03-01 21:02:26 +00:00
Daniel Nishi
c998b7f7ab Merge "Add the new package stats query to wrapper." 2017-03-01 20:55:00 +00:00
TreeHugger Robot
371036edde Merge "Fix vararg build warning" 2017-03-01 19:53:25 +00:00
Sundeep Ghuman
73938992a8 Fix Wifi Signal strength in the picker.
Bug: b/35854026
Test: Tracked in b/35854035 and currently blocked.
Change-Id: I6c0c8730e891b29de2db3d935193f3feecac8182
2017-02-28 17:51:39 -08:00
Maurice Lam
9c1310e864 Fix vararg build warning
Fix the following build warning:
[...]/InputMethodAndSubtypeUtil.java:399: warning: non-varargs call
of varargs method with inexact argument type for last parameter;
    ListFormatter.getInstance(locale).format(subtypeNames), locale);
                                                   ^
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning

Test: Existing tests pass (cd tests/robotests && mma)
Change-Id: Ie13ff713d3dbbe1f308fcd105656a484b89c8f1d
2017-02-28 17:12:31 -08:00
Antony Sargent
4af5b9276e New design for instant apps in app details header
Bug: 35098444
Test: make RunSettingsRoboTests

In the previous design for instant apps, some metadata about the app
such as developer title, maturity rating, etc. was going to be shown
in the app header. In the latest design, we instead are just showing
a little label that says "Instant app".

The two CL's for this topic work together to change this:

frameworks/base : adds code to work around the problem that
robolectric doesn't know about the new isInstantApp method of the
ApplicationInfo class, so we need to avoid calling it during tests.

pacakges/apps/Settings: removes the code that previously displayed
the instant app metadata, and instead just insert the "Instant app"
label.

Change-Id: Ie436085d4a257a1dd90b64d34d6ef15b8df369fd
2017-02-28 14:31:15 -08:00
Fan Zhang
f1c1bb49f8 Remove drawer code from settings
Change-Id: I3e9920f62745f6ba2236e37689f7603f9a30d6a9
Fix: 35809663
Test: make RunSettingsLibRoboTests
2017-02-28 11:54:28 -08:00
Youhan Wang
d632305e37 Merge "Add Resource for TelephonyMonitor debug switch." 2017-02-27 21:14:53 +00:00
TreeHugger Robot
6ff8367dc2 Merge "AccessPoint - Add Builder; Add unit tests for compareTo()" 2017-02-27 20:39:36 +00:00
Dave Schaefer
9853743705 AccessPoint - Add Builder; Add unit tests for compareTo()
Add a Builder class to make testing easy and clean.
Add unit tests to enforce the sorting order that we want.
Refactor some compareTo() internals to use existing methods rather than
duplicating functionality.
Refactor isReachable() functionality to a new method.
Update tests to use Truth assertion library.

Test: Run local AccessPoint unit tests:

adb shell am instrument -w -e class
com.android.settingslib.wifi.AccessPointTest
com.android.settingslib/android.support.test.runner.AndroidJUnitRunner

Bug: 35042429
Change-Id: I7c8a1ca69800f62e1fb13141e58b4e52b2bc3d70
2017-02-27 08:52:01 -08:00
TreeHugger Robot
7548ad9ed0 Merge "Process the NetworkInfo before updating AccessPoints." 2017-02-25 02:31:47 +00:00
Sundeep Ghuman
2b48990b9c Process the NetworkInfo before updating AccessPoints.
This fixes a UI issue where the Tracker first displays the connected
accessPoint as inactive before processing the connected state, which
causes the list to jump around.

Also add useful debugging information to AccessPoint toString.

Bug: 35681450
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
Change-Id: I9a8356cfdd2e5be2da58ce5de82e228fddf301f9
2017-02-24 16:57:53 -08:00
Jason Monk
af57b3dfb0 Merge "Add colorError" 2017-02-24 23:29:29 +00:00
Jason Monk
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
TreeHugger Robot
ab6798951a Merge "Fix broken RestrictedLockUtils KeyGuard APIs" 2017-02-24 19:29:48 +00:00
Daniel Nishi
2e5a68c319 Add the new package stats query to wrapper.
Bug: 35754646
Test: Settings unit test
Change-Id: I4b3cb93817ab998e9508c49c1aced66f6378806c
2017-02-24 10:46:51 -08:00
TreeHugger Robot
23830a0909 Merge "Remove ContentProvider queries in updateTileData." 2017-02-23 21:11:18 +00:00
William Luh
204af1cb44 Remove ContentProvider queries in updateTileData.
The ContentProvider queries in updateTileData are not being used, and
adds extra latency. Queries are performed later in Settings to get the
freshest data.

Bug: 35708630
Test: make RunSettingsLibRoboTests
Change-Id: I3798af0a89ed7261cfa4ebec4fada077495034ed
2017-02-23 11:16:47 -08:00
TreeHugger Robot
120f971679 Merge "Disable settings nav drawer entirely." 2017-02-22 20:08:37 +00:00
TreeHugger Robot
b6eb3ebf26 Merge "Import translations. DO NOT MERGE" 2017-02-22 19:34:01 +00:00
Lei Yu
b0833461e4 Merge "Make precentage calculation round up by 0.5%" 2017-02-22 18:44:38 +00:00
Antony Sargent
8b0813c3e4 Merge "Add "Instant apps" filter to app listing" 2017-02-22 18:40:43 +00:00
Fan Zhang
5ba2d3fef9 Disable settings nav drawer entirely.
Change-Id: I3e9bdd3759a47fc09a654b6dad00b611138d5de6
Fix: 34806148
Test: make RunSettingsLibRoboTests
2017-02-22 10:36:30 -08:00