Commit Graph

11147 Commits

Author SHA1 Message Date
Bill Yi
d13efff7aa Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32839141
Change-Id: I6145b97714693ec78cbc8b7d2235ed5830e7f714
2016-11-14 09:50:59 -08:00
Bartosz Fabianowski
05061fced3 Add Enterprise Privacy page to Settings
This adds a new page to Settings which tells the user about his/her
privacy in light of enterprise management. The new page is only shown
on devices that have a Device Owner app set.

This CL adds a mostly blank page. Follow-up CLs will populate the page
with information about specific admin actions/policies.

The page's title ("Privacy"), icon and location in the Settings app are
tentative. The page will move to its final location once the new IA
redesign is finished.

Test: make RunSettingsRoboTests
BUG: 32692748

Change-Id: I5b5c08c0025207516b0779f54cf68234a4ba3fe4
2016-11-14 12:04:49 +01:00
Andrew Sapperstein
0c4e2bc3e8 Update strings in Gesture Settings
Turns the Jump to camera string to use lowercase "camera."
The string refers to a generic camera app, not a specific one
and thus should be lower case.

Also adds periods to a bunch of the subtitles.

Bug: 32498366
Test: manual
Change-Id: I571dfb03fcceb642d328d5df816c74bc53ac90d1
2016-11-11 16:12:43 -08:00
Bill Yi
6e494737d2 Import translations. DO NOT MERGE
Change-Id: Ia5ec58e543b319ca83f28da6de12e9337f10c4bd
Auto-generated-cl: translation import
2016-11-11 13:37:51 -08:00
Fan Zhang
33b0d91d74 Add video to each gesture preference screen.
- Refactor GesturePreference to a generic VideoPreference.
- The old video_preference.xml is only for magnification video, so
  renamed.
- And use VideoPreference in gesture setting pages.
- Refactor common logic into GesturePreferenceController.

Bug: 32637613
Test: RunSettingsRoboTests

Change-Id: I58580b01a32873cb32c5dc5bf2ec021d5b1400cc
2016-11-10 15:24:45 -08:00
Maurice Lam
c515287800 Fix touch ripples for setup wizard screens
Make PreferenceTheme.SetupWizard inherit from PreferenceTheme so the
preference layout from the support library is used.

Automated tests were not added because when trying to test
SettingsActivity under Robolectric, it fails due to the lack of API
24 support.
(https://github.com/robolectric/robolectric/issues/2554)

Test: (Manual) Ripples shown when touched and keyboard focused.
Bug: 32671413
Change-Id: I5271aaddbcfdb7ee0a71bc3c223e6dc62a5ecb47
2016-11-10 18:29:46 +00:00
TreeHugger Robot
0d38cea6c9 Merge "Import translations. DO NOT MERGE" 2016-11-10 05:35:56 +00:00
Bill Yi
6f129240f5 Import translations. DO NOT MERGE
Change-Id: I1934033fa2ee9a3b75c7d994d613a7e00b0987fa
Auto-generated-cl: translation import
2016-11-09 20:10:51 -08:00
jackqdyulei
0a209093d1 Remove hardcode for textcolor in spinner item.
Remove the "android:textcolor" because "Android:textAppearance"
will set the textcolor to "?attr/textColorPrimary".
Set adapter has same theme as spinner, so view inside adapter
can be inflatered correctly.

Bug: 32592245
Test: screenshot
Change-Id: If7a78ede0a029aa9fcd8f9b324a423d477c65ad7
2016-11-09 17:57:00 -08:00
Jiaquan He
2a77408663 Show the highlight for the wifi toggle switch.
To make wifi settings more keyboard friendly, we need to show the
highlight for the toggle switch when it has the focus.

Bug: 32087448

Change-Id: I4a71ad295f7b2c37a4eb141a6281de6934b072fd
2016-11-09 13:22:24 -08:00
TreeHugger Robot
2c61018618 Merge "Add more gesture setting pages." 2016-11-09 21:13:02 +00:00
Julia Reynolds
994efdf467 Merge "Allow users to pick a notification assistant." 2016-11-09 20:38:48 +00:00
Fan Zhang
b99ea90046 Add more gesture setting pages.
Bug: 32637613
Test: make -j40 RunSettingsRoboTests
Change-Id: I77f90b8b7e3348ed717ee78693860f48e13070f2
2016-11-09 11:31:10 -08:00
Lei Yu
66b0488653 Merge "Remove hardcode color of sliding tab" 2016-11-09 18:21:10 +00:00
Fan Zhang
f0cdb83d4c Merge "Add setting page for swipe to notification." 2016-11-09 00:19:13 +00:00
Fan Zhang
b52c50d01d Add setting page for swipe to notification.
In this change input & gesture page added 5 separate gesture
preferences, each should lead to a new page to set gesture setting. For
now only swipe to notification preference is wired up. Will implement
the rest in later changes.

Bug: 32637613
Test: make RunSettingsRoboTests -j40
Change-Id: I57ceea8fcd85f3a0ab59cbd12da50b7138f5ca0c
2016-11-08 13:29:35 -08:00
Nathan Harold
7c16338c47 Merge changes from topic 'radio-info-ims'
* changes:
  Add Ims Registration Info to RadioInfo
  Enable and Disable IMS Provisioning Based on Platform Capability
2016-11-08 19:47:49 +00:00
Julia Reynolds
0f3dd6d168 Allow users to pick a notification assistant.
Test: manual. select and deselect an assistant, and verify that
the assistant can and then cannot get notification events.

Change-Id: If89c77f37170a44c827f997631aa7413da5a83e2
2016-11-08 14:45:34 -05:00
Fan Zhang
50e19f6e8f Merge "Add Input & Gesture/Language & Region pages under System." 2016-11-08 16:37:07 +00:00
TreeHugger Robot
e44673d696 Merge "Import translations. DO NOT MERGE" 2016-11-08 11:56:40 +00:00
Bill Yi
d07dc9bf99 Import translations. DO NOT MERGE
Change-Id: I6df5e8e050f06cb40a0a6b948361337427befc83
Auto-generated-cl: translation import
2016-11-07 20:22:16 -08:00
Fan Zhang
a1d1d67ce3 Add Input & Gesture/Language & Region pages under System.
- Removed LanguageAndInputDashboardAlias because now the contents are
  moved to new pages.

Bug: 32637613
Bug: 32643833
Test: RunSettingsRoboTests
Change-Id: Ia66a942a449a07b9cbba53bdc97738148aafadb4
2016-11-07 17:05:22 -08:00
Fan Zhang
22d42d52cf Refactor IMEAndLanguageSettings to use PreferenceController
Bug: 32642706
Bug: 32637613
Bug: 32643833
Test: RunSettingsRoboTests

This change is necessary to test preference controlling logic, as well
as making preferences reusable in other Preference pages in the new
information architecture.

Change-Id: I9e2fd2f6800579f005a5c303ed03ae06477006a6
2016-11-07 15:29:04 -08:00
jackqdyulei
4f5e4931f1 Remove hardcode color of sliding tab
Now use the color from textColorPrimary based on
current theme.

Bug: 32592245
Test: Visual
Change-Id: If6bbfe3b39ba30d96fc1f7d810472dc87006c3ea
2016-11-07 10:16:35 -08:00
Bill Yi
416fa38e75 Import translations. DO NOT MERGE
Change-Id: I64f7cc447bbacc64f2993230946f87258496824a
Auto-generated-cl: translation import
2016-11-04 22:19:32 -07:00
TreeHugger Robot
ca8f23a5f7 Merge "Add Usb preference to connected devices dashboard." 2016-11-05 01:11:09 +00:00
Doris Ling
eb51bde8c9 Add Usb preference to connected devices dashboard.
Add Usb preference and the corresponding controller.

Change-Id: I79e3f20b5c024ece0515f9a6cba1185ba8b8c7be
Fixes: 31800290
Test: make RunSettingsRoboTests
2016-11-04 15:39:18 -07:00
Nathan Harold
e272c2078b Add Ims Registration Info to RadioInfo
Bug: 32438227
Test: none
Change-Id: Iadb21a3108aaaa3afcde3972e6f98bfbbd5413f1
2016-11-04 15:09:14 -07:00
TreeHugger Robot
25fda11d3f Merge "More cleanup in input & language settings." 2016-11-04 02:53:33 +00:00
Fan Zhang
cdaf4f7970 More cleanup in input & language settings.
- Removed unused preferences that are commented out in pref xml.
- Also removed code that references to them in Fragment.

Bug: 32637613
Test: compile/manual
Change-Id: I84be24f9c5df7531843f03b047a93f9aa912432e
2016-11-03 16:08:13 -07:00
Fan Zhang
9f74ef8d4b Add memory settings to developer setting.
Bug: 32623105
Test: make RunSettingsRoboTests
Change-Id: I81e38b1ea4e59c330d0eef078af2751b3de739fe
2016-11-03 10:21:38 -07:00
Fan Zhang
1c4f19f453 Clarify string and description for app defaults.
Change-Id: Idc93c89491696f6fae01c89a4649ca9f52169b7c
Fixes: 32393018
Test: compiles
2016-11-01 15:29:01 -07:00
Doris Ling
0d148c4b62 Merge "Add Auto sync account data to account dashboard." 2016-11-01 20:09:51 +00:00
Doris Ling
86e1df9bd9 Add Auto sync account data to account dashboard.
Add auto sync to User & accounts dashboard, and update
UserSettings to use the emergency info and add user when locked
controllers.

Test: RunSettingsRoboTests
Bug: 31801423
Change-Id: Ibf5a886276a9aa8f53c548036aecfd6c4d759ae3
2016-11-01 11:28:36 -07:00
TreeHugger Robot
aa12b4d269 Merge "Import translations. DO NOT MERGE" 2016-11-01 08:06:35 +00:00
Bill Yi
a9cb8cd9d3 Import translations. DO NOT MERGE
Change-Id: I807a444483f1f320b29fc0880ae2b7b3d57d936a
Auto-generated-cl: translation import
2016-10-31 23:29:35 -07:00
Maurice Lam
06ca3ecc7b Merge "Clean up DatetimeSettingsSetupWizard" 2016-10-31 20:30:25 +00:00
Fan Zhang
80d1ec7dee Tweak UI for action buttons under app header.
- Make a transparent button with border style

Bug: 1584976
Test: manual
Change-Id: Ide53d71963afd4587834357999b40df81bb93500
2016-10-29 15:22:55 -07:00
Maurice Lam
5ed50af025 Clean up DatetimeSettingsSetupWizard
Test: Clean up. Existing tests pass
Bug: 32516406
Change-Id: Id7361f6eee26a30d179277c1d425b2f61a99d07d
2016-10-28 17:57:23 -07:00
Lei Yu
a6189e0be3 Merge "Add scroll view for choose_lock_pattern in land mode" 2016-10-28 17:02:32 +00:00
Fan Zhang
21a0712d93 Merge "Modify AppHeaderController to provide UI for notif settings" 2016-10-28 15:59:36 +00:00
TreeHugger Robot
91ca01ec42 Merge "Add Emergency info and Add user when locked to account dashboard." 2016-10-28 00:44:54 +00:00
Fan Zhang
1ff25ba7e6 Modify AppHeaderController to provide UI for notif settings
- The AppHeaderController is no longer a singleton. Each time appheader
  should be updated we will create a new controller. It acts as a
  builder/mutator, user provides customizable inputs, and the controller
  will bind everything to UI when calling done().

Bug: 32442716
Test: RunSettingsRoboTests
Change-Id: Icfc5bcd8bc170a02b57432d864eaddf71db0d5b4
2016-10-27 17:23:33 -07:00
Doris Ling
c7e2ed8e79 Add Emergency info and Add user when locked to account dashboard.
Add two items to User & accounts dashboard, and refractor
UserCapabilities so that it can be accessed in the new controller.

Test: RunSettingsRoboTests
Bug: 31801423
Change-Id: Ib446ad6c99d4cc6405a17cf82d2d86e044870b73
2016-10-27 15:48:52 -07:00
TreeHugger Robot
6e3b964cf4 Merge "UI Refresh: a new app info header for app/notification." 2016-10-27 22:43:52 +00:00
Fan Zhang
c9536b8e41 UI Refresh: a new app info header for app/notification.
- moved force stop and uninstall button to bottom of page (as footer)
- Forked appheader layout file, and created AppHeaderController to
  contain all binding logic for header.

Bug: 32442716
Test: RunSettingsRoboTests
Change-Id: Id4eb365ca25e035c043c068867f5cbc3a202b201
2016-10-27 13:48:13 -07:00
TreeHugger Robot
1637a5f480 Merge "Import translations. DO NOT MERGE" 2016-10-27 05:47:07 +00:00
Bill Yi
06f30f99c0 Import translations. DO NOT MERGE
Change-Id: I51115d580c3d823482a01f078fd23b2690f3899b
Auto-generated-cl: translation import
2016-10-26 20:59:24 -07:00
Bill Yi
03a8613f4d Import translations. DO NOT MERGE
Change-Id: I658e02621f2bc1f8322f928a8f45578c7ff9359e
Auto-generated-cl: translation import
2016-10-26 20:43:58 -07:00
Lei Yu
8b3159f064 Merge "Remove animateChange in ConditionAdapterUtils" 2016-10-26 23:30:25 +00:00