Commit Graph

41059 Commits

Author SHA1 Message Date
Fan Zhang
f68e6ec2ae Move app ops classes to their own package
Bug: 68426851
Test: robotests
Change-Id: I076b7adf59d4bf66792eb0aebaa3dc305d6d0c4b
2017-10-28 14:22:45 -07:00
Fan Zhang
5214fae4be Remove dead code
- Remove AppOpsDetails/AppOpsSummary and related code

Bug: 68426851
Test: robotests
Change-Id: I4b665e65bfff8b0365f45325b34965dc51d07bc0
2017-10-28 14:22:45 -07:00
TreeHugger Robot
648cc071b1 Merge "Remove dead code and obsolete patterns" 2017-10-28 19:43:05 +00:00
TreeHugger Robot
11151f5052 Merge "Eliminate duplicate keys in pref xmls." 2017-10-28 19:39:28 +00:00
Fan Zhang
752928ed0d Merge "Make SettingsShadowResources Thread Safe" 2017-10-28 18:55:43 +00:00
Fan Zhang
22d53b14a8 Remove dead code and obsolete patterns
- Remove code and resource for ProcessStatsMemDetail
- Remove TintablePreference (tinting icon is not a supported
  pattern starting in Android O)

Bug: 68426851
Test: robotests
Change-Id: Ib9c2fc8332255fe29c8f3dce378456403d7af8a3
2017-10-28 11:08:19 -07:00
Fan Zhang
57ef92a810 Eliminate duplicate keys in pref xmls.
- Remove additional_system_update pref device_info page, we don't need
  it.
- Update keys in xml and Preference controller, and search index
  provider.
- Clean up in ScreenZoomPreference, it's anti-pattern to set fragment in
  constructor.
- Whitelist 2 that are super hard to remove.

Change-Id: Ibab6e2cb074513042a2ae007d9085aa64046eec8
Fixes: 67852637
Test: uniquePreferenceTest
2017-10-28 11:06:37 -07:00
jeffreyhuang
c682766176 Make SettingsShadowResources Thread Safe
- Add synchronization locks to data structures in
 SettingsShadowResources to avoid ConcurrentModificationException
 - Make temporary variables final variables

Change-Id: I39a894c67d0b5e5b21bc0b9aa89180ba6989f01d
Fixes: 67850343
Test: make RunSettingsRoboTests -j40
2017-10-27 16:39:32 -07:00
Doris Ling
3977a6b482 Revert the way Special app access is launched.
- change it back to launch the fragment instead of intent activity.
- update the test case to launch special app access from Apps &
notifications page instead of directly launching it.

Change-Id: I61289ba0fa6cc4585c87cf337aa2007fb578450f
Fixes: 68397751
Test: visual, make SettingsUnitTests
2017-10-27 15:50:01 -07:00
TreeHugger Robot
d629142a11 Merge "Change to use the expand button in support lib." 2017-10-27 21:56:23 +00:00
Doris Ling
8b14a1a7a6 Change to use the expand button in support lib.
- functionality for hiding portions of the preferences in the preference
screen is added to the support lib. So, changing the settings
implementation to use the feature from the support lib instead.
- remove ProgressiveDisclosureMixin and the related code

Fixes: 63985174
Test: make RunSettingsRoboTests
Change-Id: Ib1d39b2db93d78a56c7adf90abcae5226f9564c2
2017-10-27 13:16:38 -07:00
Qi Ding
315d274055 Merge "Fix current tab is changed when rotating device" am: 3d8b442e8d am: 35a3260b91
am: 5dbb625508

Change-Id: I28f87722babcc0a297d3ca99a042f8e03138a6fa
2017-10-27 18:57:41 +00:00
Qi Ding
5dbb625508 Merge "Fix current tab is changed when rotating device" am: 3d8b442e8d
am: 35a3260b91

Change-Id: I1ae5051dfb35d75c99d0d44ce2689b6e81d47a81
2017-10-27 18:52:47 +00:00
Qi Ding
35a3260b91 Merge "Fix current tab is changed when rotating device"
am: 3d8b442e8d

Change-Id: I4f8499492b7fbe26e40da649e38ab0a65667e55d
2017-10-27 18:47:40 +00:00
Treehugger Robot
3d8b442e8d Merge "Fix current tab is changed when rotating device" 2017-10-27 18:38:37 +00:00
Christine Franks
34f7b5af59 Merge "Move color mode to DisplayTransformManager" 2017-10-27 16:10:22 +00:00
TreeHugger Robot
244f4c5686 Merge "Misc clean up in search" 2017-10-27 15:41:29 +00:00
TreeHugger Robot
295a6b42f4 Merge "Moved zenMode visual effects + automatic rule page" 2017-10-27 15:23:19 +00:00
Beverly
4359d4b9c9 Moved zenMode visual effects + automatic rule page
- Automatic zen rules have their own page like in N
- Minor string changes to page and add rule dialog
- Zen mode visual effects was moved into behavior settings

Bug: 63077372
Test: $ make SettingsUnitTests -j40
$ adb install -r ${OUT}/data/app/SettingsUnitTests/SettingsUnitTests.apk
$ adb shell am instrument -w com.android.settings.tests.unit/android.support.test.runner.AndroidJUnitRunner

Change-Id: I9635f8f7969b76d036bc06ec44705815e540777a
2017-10-27 09:49:04 -04:00
Bill Yi
a8dc2a8f75 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev am: fef593ca43 -s ours
am: 70360ed230  -s ours

Change-Id: I9bf7f22483ad2e4923aa83839786e9955cee09e7
2017-10-27 08:05:44 +00:00
Bill Yi
70360ed230 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: fef593ca43  -s ours

Change-Id: I69b5120d889d669598215e276588500e340d4e26
2017-10-27 08:00:14 +00:00
TreeHugger Robot
fef593ca43 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-10-27 07:55:00 +00:00
Bill Yi
0a8a5de744 Import translations. DO NOT MERGE am: 09bd03ba04 -s ours am: 1919e72747 -s ours
am: 02ec9a9903  -s ours

Change-Id: I43e621e95492a08b03f0cc82a2b913fe3b9b20dc
2017-10-27 07:53:47 +00:00
Bill Yi
02ec9a9903 Import translations. DO NOT MERGE am: 09bd03ba04 -s ours
am: 1919e72747  -s ours

Change-Id: Ic4e18896e1855f115a03a99a87118e422e2edce0
2017-10-27 07:48:14 +00:00
Bill Yi
1919e72747 Import translations. DO NOT MERGE
am: 09bd03ba04  -s ours

Change-Id: I6ff0a464ed719315f276e794f0851541b200691c
2017-10-27 07:41:44 +00:00
Christine Franks
39ead1c0ff Move color mode to DisplayTransformManager am: 3d1d4a6628 -s ours am: 755f07519a -s ours
am: c854bf6a3f  -s ours

Change-Id: I5c31d3afcdd2b0f3c2e87fbe2b8cb2f64d64f56f
2017-10-27 04:29:22 +00:00
Bill Yi
09bd03ba04 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ida971c59c2e7f9af5cf288628676f959521ddc98
2017-10-26 21:16:36 -07:00
Bill Yi
99826ce0ab Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: I35ac0b6a330fb71bc2aa0020ae8417664345e213
2017-10-26 21:10:31 -07:00
Christine Franks
c854bf6a3f Move color mode to DisplayTransformManager am: 3d1d4a6628 -s ours
am: 755f07519a  -s ours

Change-Id: I48234909c67c04a2ed81bef314faab08a82cbfe7
2017-10-27 03:59:08 +00:00
TreeHugger Robot
85fb6726e9 Merge "Search in Settings for Japanese" 2017-10-27 03:31:46 +00:00
Christine Franks
755f07519a Move color mode to DisplayTransformManager
am: 3d1d4a6628  -s ours

Change-Id: I7064dbf657bf93f80f863b6b0e963cb793752194
2017-10-27 03:23:14 +00:00
TreeHugger Robot
b40d1db1ae Merge "Call SuggestionService.launch when click suggestion." 2017-10-27 01:24:31 +00:00
Suzuki Yuka
75664c6e02 Search in Settings for Japanese
Normalize Hiragana and Katakana in Settings search.

Fixes: 28410478
Test: manual - set the device language to Japanese
               and search in Settings.
Test: manual

Change-Id: Iee76da6a895ea006959c23f4eb64f62af0917c34
2017-10-26 18:15:17 -07:00
Fan Zhang
823dde54c7 Misc clean up in search
- Remove updateFromClassNameResource() because it's just a no-op method.
- Simplify SearchIndexResources
- Update some pref pages to have unique keys.

Change-Id: I51e542d9947aafd046861ce7be0b4c7213fcd01d
Fixes: 64951285
Test: UniquePreferenceKeyTest
Test: robotest
Bug: 67852637
2017-10-26 17:54:45 -07:00
Fan Zhang
6d9e2a3f99 Add strings to support multi-state vivid color management am: a12b3d318d am: beef67ec74
am: 64d6c6bb48

Change-Id: I61ea7b3c6f48d2f2a25755994dfaedc59354dc86
2017-10-27 00:43:52 +00:00
Bill Yi
51f1f8d8bb Import translations. DO NOT MERGE am: 68d7f87f78 -s ours am: ac8f283a8a -s ours
am: 35aec82297  -s ours

Change-Id: Ia98ac86240db593af4b06148e52b2d6b3bf4fff0
2017-10-27 00:43:24 +00:00
Romain Guy
62390b172e Add new color mode setting am: 9143fb26b4 -s ours am: 298adb9b54 -s ours
am: 3aa7b9fcbc  -s ours

Change-Id: I6626f7c8e8c6ddd9a1ea1fea4b8ff364ef24baeb
2017-10-27 00:43:11 +00:00
Fan Zhang
64d6c6bb48 Add strings to support multi-state vivid color management am: a12b3d318d
am: beef67ec74

Change-Id: I7493933bd61172b37104a63bb620bc5e2f48398c
2017-10-27 00:24:44 +00:00
Bill Yi
35aec82297 Import translations. DO NOT MERGE am: 68d7f87f78 -s ours
am: ac8f283a8a  -s ours

Change-Id: Idba1414c734145617f9b0897250865e70db94ad4
2017-10-27 00:24:23 +00:00
Romain Guy
3aa7b9fcbc Add new color mode setting am: 9143fb26b4 -s ours
am: 298adb9b54  -s ours

Change-Id: Ib51b8ca62951543de531080295f8a32ab18e793a
2017-10-27 00:24:11 +00:00
Fan Zhang
beef67ec74 Add strings to support multi-state vivid color management
am: a12b3d318d

Change-Id: I8d47a1c0982d6159cbeb7f7ee74241b4134e6f5a
2017-10-27 00:08:51 +00:00
Bill Yi
ac8f283a8a Import translations. DO NOT MERGE
am: 68d7f87f78  -s ours

Change-Id: I408c19b81f14324b9d445f1a90a087b413583b7d
2017-10-27 00:08:39 +00:00
Romain Guy
298adb9b54 Add new color mode setting
am: 9143fb26b4  -s ours

Change-Id: I0ba85e94b8cbc85868949f1ed9f7d68242e1eb0b
2017-10-27 00:08:33 +00:00
Fan Zhang
8052ac0b36 Call SuggestionService.launch when click suggestion.
Bug: 68267490
Test: robotests
Change-Id: I8614f256fc1a87395b5c9d41e3621164a2ded5e1
2017-10-26 15:23:49 -07:00
Doris Ling
73bce67552 Update title string for Swipe gesture screen.
- Add a shorter version of the swipe fingerprint string to be used as
the preference screen title.

Change-Id: I76cdf19d2377f58eb52bf6d44116900d2a5c2e7b
Fixes: 68061630
Test: visual
2017-10-26 15:02:15 -07:00
TreeHugger Robot
471bc86ae6 Merge "Update activity titles for fragments without preference screen." 2017-10-26 21:14:01 +00:00
Christine Franks
dd811e246b Move color mode to DisplayTransformManager
Bug: 68159303
Test: make -j100 && make RunSettingsRoboTests -j100
Change-Id: I1eb599bfec8e1841af43c43ca1c505233cb87c3d
2017-10-26 14:10:23 -07:00
Christine Franks
3d1d4a6628 Move color mode to DisplayTransformManager
Bug: 68159303
Test: make -j100 && make RunSettingsRoboTests -j100

Merged-In: I6cb3287ab4a8043e41765d55da24914f1744dcfa
Change-Id: I6cb3287ab4a8043e41765d55da24914f1744dcfa
2017-10-26 13:11:58 -07:00
Doris Ling
ed4685fafb Update activity titles for fragments without preference screen.
1. Move getPreferenceScreenResId() from individual subclass to
InstrumentedPreferenceFragment.

2. Removed InstrumentedPreferenceFragment.getTitle() and let the
preference fragments that do not have preference screen set the activity
title directly instead.

3. Removed OptionsMenuFragment as all it does is call
setHasOptionMenu().
- changed subclasses of OptionsMenuFragment to extend from
InstrumentedPreferenceFragment directly.
- none of the exisitng subclasses actually implements the option menu
related methods to provide any option menu. So, the setHasOptionMenu()
call is not added to the subclasses.

4. Update Languages preference title.
- launch the fragment from the preference controller instead of from the
default handling, as we need the title res id at launch time to get it
work properly when retrieving the title from back stack.

Bug: 64564191
Test: blaze-bin/screenshots/android/i18nscreenshots/i18nscreenshots
Change-Id: Ibecdcab32cbaed8bf604ec5ebe0a926b4e489a7d
2017-10-26 12:01:06 -07:00
Fan Zhang
f2b3825a09 Merge "Add a test to enforce unique id for preferences (in search)" 2017-10-26 18:50:05 +00:00