Commit Graph

38210 Commits

Author SHA1 Message Date
Doris Ling
c7d2d270ab Ensure that brightness level is within 0-100%.
Check whether the retrieved brightnesss value is out of range, and
adjust it if necessary.

Change-Id: Ieb1ccc03dcb9fa3e1ed192fcc3d217b84d4d316c
Fix: 63181935
Test: make RunSettingsRoboTests
2017-07-05 12:53:04 -07:00
Stephen Chen
7e27006a7b Adjust UX for toggles when active scorer is not set.
This change fixes two issues: when wakeup is not available, update the
number of items to show above the fold in wifi preferences. When scorer
is not set, grey out wakeup toggle and set summary to reflect the
status.

Bug: 62410973
Bug: 62343859
Test: make RunSettingsRoboTests -j40

Change-Id: I5f4131c6a86eab6c0fb03ea2b5101ba107a9189f
2017-07-05 12:29:06 -07:00
Rajeev Kumar
ad157aca52 Create a feature provider for data plan feature. This change will
allow us to enable/disable this feature from adb shell.

Bug: 62349208
Test: make RunSettingsRoboTests -j40
Change-Id: I2d0bed738d5d4cd0fe1de056ee37092d46be72b6
2017-07-05 12:25:53 -07:00
Phil Weaver
633c9be21c Migrate to new overlay-stopping flag
Bug: 62196835
Test: Started an accessibility service that displays an app
overlay and verified that it disappears when approving an
accessibility service's capabilities.

Change-Id: I7c8d8b4143a5dd1cb684c31c4503608c8d5be0e3
2017-07-05 10:41:18 -07:00
TreeHugger Robot
f0398e1294 Merge "Add an activity that starts DataUsageList fragment for mobile." 2017-07-05 17:40:13 +00:00
phweiss
7a34e9c28e When Remove Account is disallowed, show dialog
When DISALLOW_MODIFY_ACCOUNT is set by a device admin, and
the user wants to remove an account, show the support dialog
instead of showing the confirm dialog.

To use the O-API DPM.createAdminSupportIntent(), a wrapper
needs to be used, because existing Robolectric tests otherwise
don't compile.

Bug: 37413849
Test: make RunSettingsRoboTests -j40 ROBOTEST_FILTER=*RemoveAccountPreferenceControllerTest

Change-Id: If23ea304ab8b9df1748e6acf3032310843b04780
2017-07-05 19:32:48 +02:00
Daniel Nishi
5d272ce4ff Unify storage calculations.
Due to one calculation using longs and the other using doubles, there
were situations where the percentage was off-by-one between the two
places.

By changing both places to now use doubles to calculate percentages, the
numbers should be unified.

Change-Id: I4f4ed19326562e198273adc60a1593c7d1a6b6a7
Fixes: 37923610
Test: Manual
2017-07-05 10:10:15 -07:00
Daniel Sheng
20d5588a27 Added suggestions for gestures.
Bug: 30986021
Test: manual + make RunSettingsRoboTests + adb shell am instrument -w
com.android.settings.tests.unit /android.support.test.runner.AndroidJUnitRunner

Change-Id: I7aed110c81ca2fb6b90e2f359b4bb941c02bc1c3
2017-07-05 09:05:11 -07:00
Charles He
d5612408af Merge "Disable incorrect strong auth prompt strings." into oc-dr1-dev am: c619ad77bb
am: 3ae7bacff4

Change-Id: I6c0e42bc214d68628e65ea2c90852b282f935690
2017-07-03 15:38:13 +00:00
Charles He
3ae7bacff4 Merge "Disable incorrect strong auth prompt strings." into oc-dr1-dev
am: c619ad77bb

Change-Id: I6d4e95b63896365308c8acaa07699d53560d64b4
2017-07-03 15:34:45 +00:00
Charles He
c619ad77bb Merge "Disable incorrect strong auth prompt strings." into oc-dr1-dev 2017-07-03 15:32:09 +00:00
Charles He
701ac5cbee Disable incorrect strong auth prompt strings.
The prompt strings on the confirm credentials screen (pin, password,
pattern) are incorrect. They currently say strong auth is "required
after device restarts". But instead they should be "required for
additional security" because strong auth can be enforced not only after
device or profile restarts, but also after profile key eviction, for
example.

Unfortunately, we've already missed the window for string changes.
Therefore, as an alternative, we use generic prompt strings in this CL,
to avoid conveying the incorrect (and misleading) information. We'll
follow up with another CL in master with a proper string change to fix
the issue.

Bug: 36511626
Test: manual
Test: make SettingsRoboTests
Change-Id: I44f84420b88bb4933ad0afa6e8032af465de0cd3
2017-07-03 09:42:20 +01:00
Bill Yi
10b7b9e943 Merge "Import translations. DO NOT MERGE am: 126ce95bc6 -s ours am: 07a57fc90b -s ours" into oc-dr1-dev-plus-aosp
am: a659760862  -s ours

Change-Id: I708b16b0e9daf87a9605107c7c4451eb67ebb189
2017-07-01 16:15:40 +00:00
Bill Yi
9ce196f540 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev am: aaeb09e6c7 -s ours
am: 8aa5c204f6  -s ours

Change-Id: I9d8859282a2b22e952e94b633f4745b991d06dd4
2017-07-01 16:15:17 +00:00
Bill Yi
a177e243e8 Import translations. DO NOT MERGE am: 126ce95bc6 -s ours am: 2626c36d29 -s ours
am: 44a5f4cece  -s ours

Change-Id: Ic89fcbaec13f3cee8012d005c99493eed9d6c7d9
2017-07-01 16:14:53 +00:00
Android Build Merger (Role)
a659760862 Merge "Import translations. DO NOT MERGE am: 126ce95bc6 -s ours am: 07a57fc90b -s ours" into oc-dr1-dev-plus-aosp 2017-07-01 16:10:18 +00:00
Bill Yi
6532f4c129 Import translations. DO NOT MERGE am: 126ce95bc6 -s ours
am: 07a57fc90b  -s ours

Change-Id: Ifbfb5d7e768115a0b2366d15c489da2b34d57ad4
2017-07-01 16:09:54 +00:00
Bill Yi
8aa5c204f6 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: aaeb09e6c7  -s ours

Change-Id: I2d839b0eae979a4a5c655427f57575006b9f0694
2017-07-01 16:09:53 +00:00
Bill Yi
44a5f4cece Import translations. DO NOT MERGE am: 126ce95bc6 -s ours
am: 2626c36d29  -s ours

Change-Id: Ia3d459b682083ce6b7897439748a2630a143e90e
2017-07-01 16:09:34 +00:00
TreeHugger Robot
aaeb09e6c7 Merge "Import translations. DO NOT MERGE" into oc-dr1-dev 2017-07-01 16:06:05 +00:00
Bill Yi
07a57fc90b Import translations. DO NOT MERGE
am: 126ce95bc6  -s ours

Change-Id: I99cf4ac7ff9a9ae62df014c790a7af691e670cbc
2017-07-01 16:05:02 +00:00
Bill Yi
2626c36d29 Import translations. DO NOT MERGE
am: 126ce95bc6  -s ours

Change-Id: Iaa93cedcdc1089409ee0d01bad5edd932acbbcbb
2017-07-01 16:05:02 +00:00
Kevin Chyn
8b2304f232 Fix Assist Gesture settings check
Fixes: 63181412

Test: manual
Change-Id: Ie51cc4bb62c68722e4613850bfdb4dc67ae15e77
2017-06-30 22:41:56 -07:00
Kevin Chyn
9fde3fe2ab Merge "Assist gesture setting should not be available on unsupported devices" into oc-dr1-dev am: 72a94e9f5a
am: 408efb26f0

Change-Id: I696511821f64f7bc09819cf1d45374125b7905c0
2017-07-01 03:11:52 +00:00
Kevin Chyn
408efb26f0 Merge "Assist gesture setting should not be available on unsupported devices" into oc-dr1-dev
am: 72a94e9f5a

Change-Id: I7748c0537a6eebb1fd460b3039a9a53dc070e19e
2017-07-01 03:06:52 +00:00
TreeHugger Robot
72a94e9f5a Merge "Assist gesture setting should not be available on unsupported devices" into oc-dr1-dev 2017-07-01 02:59:19 +00:00
Bill Yi
126ce95bc6 Import translations. DO NOT MERGE
Change-Id: Id991a5f419ccb85d8e25a5111b717a84e4de6184
Auto-generated-cl: translation import
2017-06-30 18:07:52 -07:00
TreeHugger Robot
d9f978af21 Merge "Code cleanup: DashboardAdapter.category is no longer a list" 2017-07-01 01:06:58 +00:00
Jeff Davidson
4ba7478fdf Don't show "Wipe eSIMs" checkbox for developers.
Per UX review feedback, it doesn't make sense to show this just
because someone has developer options turned on. So only show it if
the user has ever downloaded an eSIM profile.

Change-Id: If474451dddcaa75bce1e57ce2f1751ef3adf45ee
Test: TreeHugger
Fixes: 63147904
2017-07-01 01:06:19 +00:00
Bill Yi
7df73c0524 Import translations. DO NOT MERGE
Change-Id: I67181f9f767d7edccf78f901ad70e903b123649f
Auto-generated-cl: translation import
2017-06-30 18:02:00 -07:00
Fan Zhang
63b43c082d Change permission preference to only 1 line summary am: 32a8568230
am: 33a91c5004

Change-Id: I2e32fe198008b05a779dbfc68fc5695fec10f8bb
2017-07-01 00:49:43 +00:00
Fan Zhang
33a91c5004 Change permission preference to only 1 line summary
am: 32a8568230

Change-Id: I5f4cb35694767adc62d5f094e481d1423a85c93b
2017-07-01 00:45:13 +00:00
Antony Sargent
1b6e7d76ed Fix Bluetooth device details crash on screen rotation
We were getting the following exception when you rotated the Bluetooth
device details screen:

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.settings/com.android.settings.SubSettings}:
java.lang.IllegalStateException: This Activity already has an action bar
supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR
and set android:windowActionBar to false in your theme to use a Toolbar
instead.

It turns out that allowing EntityHeaderController to inflate the
settings_entity_header.xml view seems to cause this - if you instead
manually include a LayoutPreference and hand that to
EntityHeaderController, you don't have the problem.

The rotation failure couldn't be tested with Robolectric because our
version doesn't support using FragmentTestUtil.startFragment for
fragments which use PreferenceScreen's ("sorry, not yet
implemented"). So instead this includes an app test.

Bug: 62447414
Test: runtest --path=BluetoothDeviceDetailsRotationTest.java
Change-Id: I8d052d1f4ab6e2b0ca5c0e513ec366bdcc382d99
2017-06-30 16:34:40 -07:00
Kevin Chyn
1db30b7749 Assist gesture setting should not be available on unsupported devices
Fixes: 63176246

Test: manual
Change-Id: I17cd338eafd2e1a86d1e82d81bc9817eaf18d57b
2017-06-30 16:27:49 -07:00
jackqdyulei
43cbee6914 Update the method about foreground time.
For now it uses MIN(STATE_TOP_TIME, FOREGROUND_ACTIVITY_TIME) and this
method is used in both display and screen smearing.

Bug: 63080621
Test: RunSettingsRoboTests
Change-Id: I2ca3109697aa66fae67d8b2f4f10c4d08bb99d59
2017-06-30 16:18:29 -07:00
TreeHugger Robot
25faa52b34 Merge "Move the placeholder in Account detail page above Account sync." 2017-06-30 23:00:19 +00:00
TreeHugger Robot
b35d7301d7 Merge "Remove animation from account detail page." 2017-06-30 22:49:31 +00:00
Fan Zhang
b487fae5d8 Code cleanup: DashboardAdapter.category is no longer a list
We only ever display a single DashboardCategory in homepaeg, so the
category doesn't need to be a list in DashboardData/Adapter

Change-Id: I57db02bb45cbc511f0fce1bf33043b51ef9db15c
Fix: 33861822
Test: updated robotests
2017-06-30 15:30:51 -07:00
Fan Zhang
32a8568230 Change permission preference to only 1 line summary
Test: visual
Change-Id: I0e397c096eac19d312c5632cd7f0a1856c199b96
Fix: 36413664
2017-06-30 22:29:27 +00:00
Salvador Martinez
11a5b9bd4d Merge "Add BatteryInfo logging to settings" into oc-dr1-dev am: 9a3b115cc8
am: 97642af54d

Change-Id: Id4f7032e735067ab9a81476e83003c942eb4f826
2017-06-30 22:16:47 +00:00
Daniel Nishi
e6e3752dbf Merge "Use normal layout for "Space Used" header." into oc-dr1-dev am: 7809c3d2f0
am: 0c48b5a29d

Change-Id: I5c8c53050506127697721c971ba18baca6e50487
2017-06-30 22:16:23 +00:00
Salvador Martinez
97642af54d Merge "Add BatteryInfo logging to settings" into oc-dr1-dev
am: 9a3b115cc8

Change-Id: I447d0d7689f77b12a0caf9374155883217ff330a
2017-06-30 22:05:53 +00:00
Daniel Nishi
0c48b5a29d Merge "Use normal layout for "Space Used" header." into oc-dr1-dev
am: 7809c3d2f0

Change-Id: I8eddca071d602cedcdcdbd5f65f5dd5265a084a8
2017-06-30 22:05:33 +00:00
TreeHugger Robot
9a3b115cc8 Merge "Add BatteryInfo logging to settings" into oc-dr1-dev 2017-06-30 21:58:38 +00:00
Daniel Nishi
7809c3d2f0 Merge "Use normal layout for "Space Used" header." into oc-dr1-dev 2017-06-30 21:54:38 +00:00
Doris Ling
e7e971d2ed Update the gesture video container background color.
The new sets of gesture video has slight different background color,
updating the background of the container to better match that.

Bug: 62517696
Test: Visual
Change-Id: I95cfb8c4c50706b7ce28c778453c5ee115d5ed08
2017-06-30 13:59:16 -07:00
Doris Ling
7ca92571b2 Move the placeholder in Account detail page above Account sync.
Change-Id: I812551f3cccf3b107d2a2532170ef0ef3157bee1
Fix: 62364991
Test: visual
2017-06-30 13:44:24 -07:00
TreeHugger Robot
283895c03b Merge "Sorting search results with TreeSet instead of Collection.sort" 2017-06-30 20:16:37 +00:00
TreeHugger Robot
a1bf76a69d Merge "Also tint the settings icon in DashboardAdapter.setCategory()." 2017-06-30 20:07:40 +00:00
Jason Monk
6434f44971 Allow clicking on guest user am: c1cc9fefa8
am: bc4df21ef7

Change-Id: I013a1c3eae74d34a05494d7a4a78f51e9ddd3470
2017-06-30 19:51:03 +00:00