Commit Graph

32315 Commits

Author SHA1 Message Date
Tadashi G. Takaoka
b51f6bf869 Add initialize helper method to improve readability
This CL also reduces SearchIndexableResources class about 1kB.

Test: Added Robolectric test. "make RunSettingsRoboTests" passed.
Change-Id: Id7f7676e175db4aba0be23c0c1a3fc12dd6acc2e
2016-11-25 16:21:22 +09:00
Fan Zhang
10dd465969 Fix bug: BackupResetDashboardAlias is mapped incorrectly.
It should map to BackupSettingsActivity and should not contain fragments
in metadata.

Bug: 32874082
Test: RunSettingsLibRoboTests
Change-Id: I1c9aab7e34cfd07e9b582772cebb39cf8488b093
2016-11-16 14:59:59 -08:00
TreeHugger Robot
08aee17586 Merge "Import translations. DO NOT MERGE" 2016-11-16 06:33:36 +00:00
Bill Yi
b4021574fa Import translations. DO NOT MERGE
Change-Id: I1a8c04af27632e0ad198d561f5093fd2d24c7938
Auto-generated-cl: translation import
2016-11-15 20:56:50 -08:00
TreeHugger Robot
6e03a325d6 Merge "Always show at least 1% when some space used." 2016-11-16 03:38:01 +00:00
Sudheer Shanka
0175533a4b Merge "Update MountService to StorageManagerService." 2016-11-15 23:34:15 +00:00
TreeHugger Robot
70c0225006 Merge "Refresh Storage UI atomically." 2016-11-15 22:31:35 +00:00
Jeff Sharkey
52aa9fb170 Always show at least 1% when some space used.
Don't let the progress value round down to 0, since that would
be misleading.

Test: builds
Bug: 24017703
Change-Id: I6a0268361645da16af67e12bf7f6823d027dd72c
2016-11-15 15:17:31 -07:00
Jeff Sharkey
b7fc7ade40 Refresh Storage UI atomically.
Test: builds
Bug: 29275971
Change-Id: I0f5131631ae12bc57e66545513ad60b7cbcd179b
2016-11-15 14:06:44 -07:00
TreeHugger Robot
c26f6d3ab7 Merge "Insert dynamic dashboard tiles into optional placeholders" 2016-11-15 17:44:54 +00:00
TreeHugger Robot
05f799f18b Merge "Increase char limit for the account prefererence title." 2016-11-15 02:19:01 +00:00
Fan Zhang
9dc9c6174c Insert dynamic dashboard tiles into optional placeholders
Insteads of inserting tile onto screen using absolute priority values,
now each page can have a placeholder preference, and at run time we will
add dynamic dashboard tiles to placeholder's place.

Bug: 32827787
Test: RunSettingsRoboTests
Change-Id: I1fe9e11dce4eb6fb4a9b56af05a2b8e5cdae00d2
2016-11-14 17:09:18 -08:00
Doris Ling
a6b6b8a69e Increase char limit for the account prefererence title.
Per translators' request, increasting the character limit for the
account preference strings.

Bug: 32688421
Test: manual
Change-Id: I78198635e24d2089413d15a210ec0b9e9dfa6807
2016-11-14 16:40:23 -08:00
Sudheer Shanka
3b4d72721d Merge "Update usage of ActivityManagerNative." 2016-11-15 00:25:52 +00:00
TreeHugger Robot
3c59f1413e Merge "Update strings in Gesture Settings" 2016-11-14 22:20:48 +00:00
Sohani Rao
187ec0ff26 Merge "Add WiFi toggle prompts - settings" am: b4b2c2aa43 am: 6f126a8f5c am: 6cebca2599
am: 7fd676ee26  -s ours

Change-Id: I6a5d593a4291dbc25bb39c1f177539faccee0183
2016-11-14 21:36:06 +00:00
Sohani Rao
7fd676ee26 Merge "Add WiFi toggle prompts - settings" am: b4b2c2aa43 am: 6f126a8f5c
am: 6cebca2599

Change-Id: I8cfaadb7dd8df6d81695dea8530a25de69fcce3d
2016-11-14 21:28:16 +00:00
TreeHugger Robot
d663a4ee82 Merge "Fix touch ripples for setup wizard screens" 2016-11-14 21:25:07 +00:00
Sohani Rao
6cebca2599 Merge "Add WiFi toggle prompts - settings" am: b4b2c2aa43
am: 6f126a8f5c

Change-Id: I327d6c864ce58c21a74d628d1945f86ff518234c
2016-11-14 21:21:49 +00:00
Sohani Rao
6f126a8f5c Merge "Add WiFi toggle prompts - settings"
am: b4b2c2aa43

Change-Id: Idef71123fde9475a549a1ccab136564ccf3d4a4a
2016-11-14 21:14:54 +00:00
Sohani Rao
b4b2c2aa43 Merge "Add WiFi toggle prompts - settings" 2016-11-14 20:59:36 +00:00
Sudheer Shanka
acb1a61f3f Update usage of ActivityManagerNative.
Bug: 30977067
Test: N/A
Change-Id: I46e37a09cff059d2784a819bc2651d6973fbd268
2016-11-14 12:59:11 -08:00
Bill Yi
28cd8cba41 Import translations. DO NOT MERGE am: d13efff7aa -s ours
am: c68492d994  -s ours

Change-Id: I7f2c8ad8971eec71a5c26e3b2ab824a73827fe1f
2016-11-14 19:50:42 +00:00
Bill Yi
c68492d994 Import translations. DO NOT MERGE
am: d13efff7aa  -s ours

Change-Id: I03a2044f78ee22bc152cabc2a3c338aacd9f37fe
2016-11-14 19:44:02 +00:00
Lei Yu
59f36994ba Merge "Remove hardcode for textcolor in spinner item." 2016-11-14 19:07:49 +00:00
Svetoslav Ganov
e06767af78 Add WiFi toggle prompts - settings
If permission review is enabled toggling WiFi on or off
results in a user prompt to collect a consent. This applies
only to legacy apps, i.e. ones that don't support runtime
permissions as they target SDK 22.

Bug: 28715749
Test: Unit tests
Change-Id: I10d1231ea0c47eec5993dbe367cc0c245cba9385
Merged-In: I10d1231ea0c47eec5993dbe367cc0c245cba9385
2016-11-14 10:32:39 -08:00
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
e94a69bf8a Merge "Add Enterprise Privacy page to Settings" 2016-11-14 15:01:39 +00:00
TreeHugger Robot
a59e46009d Merge "Add policy transparency to "Remove work profile"" 2016-11-14 14:16:10 +00: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
TreeHugger Robot
fc229606b4 Merge "Import translations. DO NOT MERGE" 2016-11-12 07:41:13 +00: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
Fan Zhang
ac30529421 Remove alias for gesture settings from new IA.
The content of this page is moved to other places, so we don't need to
display it in new IA.

Bug: 32637613
Test: compiles
Change-Id: I53e4c845bf4d1986fa9b2f2e9fe1cf79f5bdaf80
2016-11-11 13:49:41 -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
Sudheer Shanka
ee2d592c72 Update MountService to StorageManagerService.
Bug: 30977067
Test: N/A
Change-Id: I8c5eda7ed068bc7c184d559c0a27c52a74094f1a
2016-11-09 15:47:53 -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
Tamas Berghammer
29147e5fbc Merge "Update package names to work with the proto3 compiler" 2016-11-09 13:38:53 +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