Commit Graph

11147 Commits

Author SHA1 Message Date
Lei Yu
71b589f2a5 Merge "Use layout weight attr and scrollview in lock pattern screen." 2016-10-26 23:29:37 +00:00
Svetoslav Ganov
13088cac84 Add Bluetooth toggle prompts - settings
If permission review is enabled toggling bluetoth on or off
results in a user prompt to collect consent. This applies
only to legacy apps, i.e. ones that don't support runtime
permissions as they target SDK 22.

bug:28715749

Change-Id: I5ae0c532c92b2c05a91f0d769ca6744002747fca
(cherry picked from commit b06766f129)
2016-10-26 13:30:38 -07:00
jackqdyulei
8e5f66ce39 Remove animateChange in ConditionAdapterUtils
Bug: 30319913
Test: make RunSettingsRoboTests

Change-Id: Iea3fa574c4f0f80e70a6360b5b4a5f748a80a899
2016-10-26 13:09:38 -07:00
TreeHugger Robot
a4949fc859 Merge "Import translations. DO NOT MERGE" 2016-10-25 06:26:32 +00:00
Fan Zhang
5b6478a349 Add swipe to see notification to "Notification preferences"
Bug: 31799948
Test: RunSettingsRoboTests
Change-Id: Ib892ca4d5596c1c89e1efaf636a3eefd7cee371a
2016-10-24 15:33:12 -07:00
Fan Zhang
f83ce92aaf Update Notification preferences UI in new IA.
- Refactored ConfigureNotificationSettings to be more modular
- And tests

Bug: 31799948
Test: RunSettingsRoboTests
Change-Id: I2ecd8930a6aa501c1e625cab6ed25a46f3437e85
2016-10-24 13:33:14 -07:00
Bill Yi
9351e5f083 Import translations. DO NOT MERGE
Change-Id: I75261b567ac55ce6adfbcdadb63a058dfeac9bda
Auto-generated-cl: translation import
2016-10-24 12:35:20 -07:00
Bill Yi
102300bfac Import translations. DO NOT MERGE
Change-Id: Iab023189a50a4056af641fbce56351ac3370c5a7
Auto-generated-cl: translation import
2016-10-24 12:19:40 -07:00
TreeHugger Robot
4eddfb804c Merge "Import translations. DO NOT MERGE" 2016-10-22 11:37:11 +00:00
Fan Zhang
4136d902bf Add app default UI to App & Notifications.
Bug: 31799948
Test: RunSettingsRoboTests
Change-Id: Icca4954f82af38316cc232b8879c0f7e7869ecb3
2016-10-21 19:59:24 -07:00
TreeHugger Robot
7fa8b4373b Merge "Add user and account dashboard category for new IA." 2016-10-22 02:00:26 +00:00
Bill Yi
462958c6db Import translations. DO NOT MERGE
Change-Id: If9f86b3c4e73944a6b2c75937a40adca3e774051
Auto-generated-cl: translation import
2016-10-21 18:09:52 -07:00
Maurice Lam
e9b7ec8f57 Merge "[Fingerprint] Make enroll progress bar scalable" 2016-10-22 00:18:00 +00:00
Doris Ling
d7aae18f8b Add user and account dashboard category for new IA.
Add the initial version for the User & accounts category and set the
tile's intent if it contains metadata but fragment is null.

Test: RunSettingsRoboTests
Bug: 31801423
Change-Id: Ic63bf8aeaf47f68a184af73c9a8a72b89b597a17
2016-10-21 16:07:39 -07:00
TreeHugger Robot
054b2d5c69 Merge "Add initial preferences to App&Notification screen." 2016-10-21 22:20:41 +00:00
jackqdyulei
011f0dbcdb Add scroll view for choose_lock_pattern in land mode
Wrap the title and header with scroll view in case they are too
large to display

Bug: 32261616
Test: Visual
Change-Id: I61ce67c23e27177e2915df012c450f77b40a8fb2
2016-10-21 15:05:16 -07:00
Lei Yu
751e0b0f20 Merge "Elicit ItemsData class and add DiffUtil.Callback" 2016-10-21 20:52:18 +00:00
Fan Zhang
cdacd1df9a Add initial preferences to App&Notification screen.
Bug: 31799948
Test: manual
Change-Id: I93f9d6562f51d37fcd78bada2f7c37d6b16daabb
2016-10-21 12:57:48 -07:00
jackqdyulei
0b818b79db Elicit ItemsData class and add DiffUtil.Callback
In the previous version, when there is a minor change in data, we
will refresh the whole screen(and data) by invoking "recountItems"
and "notifyDataSetChanged", which did lots of unnecessary works.

In this new cl, I elicit ItemsData class, which encapsulates the list
data used in adapter. When data changed, I build another ItemsData and
use the DiffUtil.Callback to calculate diffs between ItemsDatas. In
this way we can only refresh the items that changed in adapter.

Since I cannot find usage of see_all.xml anymore, I delete the relevant
code as well as the resource files.

Bug: 30319913
Test: make RunSettingsRoboTests
Change-Id: I4f753a26f624affea6c6c35d49cfb9c43fb74fe6
2016-10-21 11:02:29 -07:00
Matthew Fritze
78e5162dcb Support tile title text line wraps am: 0f813d668d am: 0e0e6c5544
am: 86c8b2a1a5

Change-Id: I37e3c11aaa2f8fdd59b3f6e9a963c55661b81849
2016-10-21 16:53:52 +00:00
Matthew Fritze
86c8b2a1a5 Support tile title text line wraps am: 0f813d668d
am: 0e0e6c5544

Change-Id: I81fa4356f76b2693eca95ff5c79c6168a68ffd64
2016-10-21 16:45:40 +00:00
Matthew Fritze
0e0e6c5544 Support tile title text line wraps
am: 0f813d668d

Change-Id: I47a4f7f95f0bce43a55e661209d48142f82e5b42
2016-10-21 16:36:19 +00:00
Matthew Fritze
0f813d668d Support tile title text line wraps
Change-Id: Ice430d03877618aacad21e5ee6167516f60f02fd
Fixes: 32239411
Test: Manual
2016-10-20 17:50:11 -07:00
Maurice Lam
67df126291 [Fingerprint] Make enroll progress bar scalable
Make the fingerprint enroll progress bar scalable by moving it to a
single FingerprintProgressBar view and make it fill the remaining
space.

- The background fingerprint icon was changed to include the padding
internally so it can be added as the background directly onto the
progress bar view.
- The icon in landscape mode is also fixed to use the fingerprint
icon rather than the lock icon.

Test: cd tests/robotests && mm
Bug: 32123370
Change-Id: Ia5cf37d92f0af7c1cf39287f5070c44f51d44878
2016-10-20 17:20:56 -07:00
TreeHugger Robot
1589461db9 Merge "Add empty page for App & Notifications" 2016-10-21 00:20:14 +00:00
Lei Yu
9d17446dd2 Merge "Move scrollview to be the parent view." 2016-10-20 23:03:15 +00:00
Fan Zhang
f37be6a859 Add empty page for App & Notifications
Bug: 31799948
Test: manual
Change-Id: Iaab1a5988af30504d4e34ff4f63ae69e86b70f27
2016-10-20 15:20:11 -07:00
jackqdyulei
13bf790604 Move scrollview to be the parent view.
In this cl, scroll view was moved to be the parent view for the
entire UI rather than only for a subset.

Bug: 32009766
Test: visual
Change-Id: I9aa8bb88cb39e1ca51737ec88640cc08910c4aef
2016-10-20 13:25:52 -07:00
jackqdyulei
4a1f8a76f3 Use layout weight attr and scrollview in lock pattern screen.
General idea is to stop UI distortion when display size set to
largest. Use layout weight to distribute space by ratio, and use
scroll view to wrap "title and summary" layout in case display
size are too large to display.

Bug: 32057149
Test: Visual

Change-Id: Ie800e4c5e98f6bbd699395168cfc228f8b65ac7f
2016-10-20 10:51:15 -07:00
Bill Yi
1f0e87e38c Import translations. DO NOT MERGE
Change-Id: I753a2e09eb3df00ea60b8fbe761e78b407f5a043
Auto-generated-cl: translation import
2016-10-20 07:40:28 -07:00
Anna Galusza
34cebb88fd Fix insufficint contrast on Vision Settings toggles. am: e212817785 am: 5bf1f668ff
am: 0f2799799c

Change-Id: Idd8af227e76f36e6ca7fe148abba5ce065c21c38
2016-10-20 03:57:00 +00:00
Anna Galusza
0f2799799c Fix insufficint contrast on Vision Settings toggles. am: e212817785
am: 5bf1f668ff

Change-Id: I0ac8ad8d8cd0091224c2bf1a76ac4845b4c6cf31
2016-10-20 03:46:42 +00:00
Anna Galusza
5bf1f668ff Fix insufficint contrast on Vision Settings toggles.
am: e212817785

Change-Id: I9969b046d52d6aff86fe6b0f5d44cce2cf49e8dd
2016-10-20 03:38:11 +00:00
Anna Galusza
e212817785 Fix insufficint contrast on Vision Settings toggles.
Bug: 29161887
Change-Id: I633ed3cf0fa00d3b697377118580471afaf30132
2016-10-19 15:41:00 -07:00
TreeHugger Robot
0f67bedaf6 Merge "Add progressive disclsoure" 2016-10-19 16:14:01 +00:00
Salvador Martinez
1a3d8d6c94 Merge "Updating colors as part of bluetooth refactoring" 2016-10-19 03:36:12 +00:00
Fan Zhang
db1112a221 Add progressive disclsoure
- Add a ProgressiveDisclosureMixin that contains all logic for collapse
  preference list when it's too long
- Refactored PreferenceController's updateState to take a preference
  instead of PreferenceScreen, because with progressive disclosure the
  preference can either be in screen or the mixin. DashboardFragment is
  responsible finding the preference before passing it to controller.

Bug: 32255863
Test: RunSettingsRoboTests

Change-Id: I6713abd61c954ce12732902e5b3ca4d4c0b1563e
2016-10-18 16:57:11 -07:00
Adrian Roos
2bd8835fda Separate ambient display triggers am: 82829ee0b1 am: 5ba2074e31
am: c0dfa153f4

Change-Id: I2eed4a8bfbc8ded0f5d12b3284d8ae5a0cfb1823
2016-10-18 22:27:31 +00:00
Adrian Roos
c0dfa153f4 Separate ambient display triggers am: 82829ee0b1
am: 5ba2074e31

Change-Id: I023918a3d862502de6a4058609e29b8867e39f0c
2016-10-18 22:19:52 +00:00
Adrian Roos
5ba2074e31 Separate ambient display triggers
am: 82829ee0b1

Change-Id: I9f58e13648def7e982ce2966e789147d07b14f62
2016-10-18 22:07:11 +00:00
Adrian Roos
ee5eef1492 Merge "Separate ambient display triggers" into nyc-mr1-dev 2016-10-18 22:00:08 +00:00
Lei Yu
a5c421083a Merge "Layout change in support card and support dialog" 2016-10-18 20:14:20 +00:00
TreeHugger Robot
5ffabbe58b Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev 2016-10-18 05:30:53 +00:00
TreeHugger Robot
0bfea1fe1a Merge "Import translations. DO NOT MERGE" 2016-10-18 05:30:34 +00:00
Salvador Martinez
d03dd83d2d Updating colors as part of bluetooth refactoring
Dialogs for bluetooth pairing are being refactored.
This contains some trivial color changes that were
done at the same time.

Test: RoboTests
Bug: 32180625
Change-Id: I8807ab929faa95158ec6d7d336b2580a42bccf20
2016-10-17 16:10:03 -07:00
Fan Zhang
98cb0ace7f Merge "Draw preference divider based on preference group." 2016-10-17 22:42:44 +00:00
jackqdyulei
a709e7546e Layout change in support card and support dialog
1. Wrap the support_disclaimer_content by scrollview.
2. Change the layout in support_escalation_options using layout_weight.
3. Add styles in layout-sw300dp and layout-sw400dp

The target scope is between 300dp->400dp, so I add the default style
in sw400dp and changed style in sw300dp to cover it.

Bug: 31399419
Test: Visual
Change-Id: I117acb0c5b992bea2cded6cd48749c4ed7b04488
2016-10-17 15:12:37 -07:00
Adrian Roos
82829ee0b1 Separate ambient display triggers
Allows configuring notification and sensor triggers
separately. Introduces a helper class that hosts the
logic for determining what kinds of triggers a device
supports.

Bug: 32073185
Change-Id: Ie7e8eb6b895dcc54e6f972e70642c7248b9e223a
Test: disable "ambient display", sensor triggers should still work
2016-10-17 14:05:53 -07:00
Doris Ling
99238ff174 Add static preview images to gesture settings. am: 12e4bebabf am: df7b815980
am: fccee6adae

Change-Id: Ia745f80fa47a7316cb462918f900de001b1ecf03
2016-10-17 20:31:49 +00:00
Doris Ling
fccee6adae Add static preview images to gesture settings. am: 12e4bebabf
am: df7b815980

Change-Id: I56c1f9368bb762e400e0a071e72dd175351a7696
2016-10-17 20:24:26 +00:00