Commit Graph

32376 Commits

Author SHA1 Message Date
Steven Ng
e94ecec616 Nexus imprint setting is missing while adding corp account from SUW am: 378dec1495 am: 046a63450f am: 26a3c28735
am: e8928024c4

Change-Id: I9643fa546e1621577df2938687c09e08cfe935ad
2016-11-23 23:58:03 +00:00
Bill Yi
c32d3c9b66 Import translations. DO NOT MERGE am: a6d9842695 -s ours am: c027907edc -s ours am: f8032d0b15 -s ours am: 71a0bb85a5 -s ours
am: 1ff86be2bd  -s ours

Change-Id: Ic416da31020ed0f59891c78ee96df3665ca480d3
2016-11-23 23:57:49 +00:00
Bill Yi
ab4ccb2c49 Import translations. DO NOT MERGE am: 475763d01c -s ours am: 9a22968ff8 -s ours am: 88b043714b -s ours
am: 72976be89a  -s ours

Change-Id: Idaf80586d8c9419cadcc2012663af3ad446bf1b8
2016-11-23 23:57:35 +00:00
Steven Ng
e8928024c4 Nexus imprint setting is missing while adding corp account from SUW am: 378dec1495 am: 046a63450f
am: 26a3c28735

Change-Id: I490619e028e67635fbd97b9537e3f8435471c0b0
2016-11-23 23:44:53 +00:00
Bill Yi
1ff86be2bd Import translations. DO NOT MERGE am: a6d9842695 -s ours am: c027907edc -s ours am: f8032d0b15 -s ours
am: 71a0bb85a5  -s ours

Change-Id: I306a02fc5ca3330732fde9e8439b12e8a5f55389
2016-11-23 23:44:38 +00:00
Bill Yi
72976be89a Import translations. DO NOT MERGE am: 475763d01c -s ours am: 9a22968ff8 -s ours
am: 88b043714b  -s ours

Change-Id: I733c0d9fc99ffe62dc43ff32e0d9067ab2e1fa23
2016-11-23 23:44:25 +00:00
Steven Ng
26a3c28735 Nexus imprint setting is missing while adding corp account from SUW am: 378dec1495
am: 046a63450f

Change-Id: I7cbb27a7aa4a1d42dce52ef998ffe79aaa322ab4
2016-11-23 23:28:38 +00:00
Bill Yi
71a0bb85a5 Import translations. DO NOT MERGE am: a6d9842695 -s ours am: c027907edc -s ours
am: f8032d0b15  -s ours

Change-Id: I0c7f588a8868df3a7235dbbac1eff725dc591070
2016-11-23 23:28:25 +00:00
Bill Yi
88b043714b Import translations. DO NOT MERGE am: 475763d01c -s ours
am: 9a22968ff8  -s ours

Change-Id: Ic98ab45a4b2e31007a18e7018ad5f31c2b82d2ae
2016-11-23 23:28:12 +00:00
TreeHugger Robot
f0c64a3cdb Merge "Fix DPM.ACTION_SET_NEW_PASSWORD" 2016-11-23 23:07:10 +00:00
Tony Mak
8f41b9b665 Fix DPM.ACTION_SET_NEW_PASSWORD
Problem:
SetNewPasswordActivity is the new entrance for
ACTION_SET_NEW_PASSWORD. And it starts ChooseLockGeneric with the
fingerprint extras. ChooseLockGeneric infers which user is starting it
and determine which user is setting password. However, it now always
think that it is current user as it is always SetNewPasswordActivity
in current user starting it.

Solution: Resolve the user id in SetNewPasswordActivity and forward it
to ChooseLockGeneric. SetNewPasswordActivity needs to know the user id
anyway in order to have the fingerprint checking in the correct user id.

Test: 1. make RunSettingsRoboTests
      2. Manual Test
      	a. Start SET_NEW_PASSWORD intent in user 0, set password.
         	User 0 password is set.
      	b. Start SET_NEW_PASSWORD intent in work profile, set password.
         	work profile password is set.
        c. SET_PROFILE_PARENT_NEW_PASSWORD is always setting parent
           password.
        d. If fingerprint is disabled, both intent should not show
           fingerprint option
        e. DO sync auth flow with google.com account, fingerprint option
           is shown.

Change-Id: I2f73d01ab11e91b337beb90c05bbcb857dfd40dc
Fix: 32959373
2016-11-23 11:36:18 +00:00
TreeHugger Robot
424453e621 Merge "Make RemoveUserFragment public." 2016-11-22 19:05:28 +00:00
Fan Zhang
e97c91ec73 Make RemoveUserFragment public.
Fixes: 33034368
Test: make RunSettingsRoboTests
Change-Id: Icbda53c1a5992774fb8bd638f6ab5ad6d4590cfb
2016-11-22 09:26:13 -08:00
Jean-Michel Trivi
a532263fce Merge "Add appOps settings for accessibility volume control" 2016-11-22 16:28:51 +00:00
TreeHugger Robot
ef1647bf37 Merge "Link WIFI_SAVED_NETWORK_SETTINGS action with activity." 2016-11-22 14:59:37 +00:00
Neil Fuller
6096050bb1 Merge "Change EXTRA_TIME_PREF_24_HOUR_FORMAT from boolean to int" 2016-11-22 11:55:28 +00:00
Fan Zhang
beddff82b0 Move date/time prefs to PreferenceController and add tests.
Bug: 32996243
Test: RunSettingsRoboTests
Change-Id: Ie537bbcc35a96a63251e46f84b57c0a861b9d013
2016-11-21 16:42:14 -08:00
Neil Fuller
c0cea814a1 Change EXTRA_TIME_PREF_24_HOUR_FORMAT from boolean to int
To better represent the possible settings values for the
"use 24 hour format" setting : "12", "24", unset (meaning
"use locale default") the platform is being changed.

The EXTRA_TIME_PREF_24_HOUR_FORMAT for the ACTION_TIME_CHANGED
is now an int, not a boolean. 0 means "12", 1 means "24" and
2 means "use locale default".

Bug: 32761619
Test: Manual test on device and make RunSettingsRoboTests
Change-Id: I9aae6f8d12c4724c829f2812626a6193e510dbf9
2016-11-21 13:56:42 +00:00
Bill Yi
9a35bc6552 Import translations. DO NOT MERGE am: 001632d55c -s ours am: 9e17133192 -s ours
am: d6de02579f  -s ours

Change-Id: I75d1d24d5c4123d3aa782ec7c2850909ec14de89
2016-11-21 01:38:38 +00:00
Bill Yi
d6de02579f Import translations. DO NOT MERGE am: 001632d55c -s ours
am: 9e17133192  -s ours

Change-Id: Idda03611e22b67dba524f61ac9884de84950d962
2016-11-21 01:33:23 +00:00
Bill Yi
9e17133192 Import translations. DO NOT MERGE
am: 001632d55c  -s ours

Change-Id: Ib267ac961a6ef99c9c1401e8967725b0f7914bac
2016-11-21 01:28:26 +00:00
Bill Yi
001632d55c Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Id8af490796464cb8422fa4be023af34baee73002
2016-11-20 16:12:14 -08:00
Bill Yi
583889b8a7 Import translations. DO NOT MERGE
Change-Id: I92d498cde69e94f4a165a459aedb55d73fd32f65
Auto-generated-cl: translation import
2016-11-19 05:30:02 -08:00
Julia Reynolds
b7bc92136b Merge "Ringtone -> Sound" 2016-11-18 22:12:30 +00:00
TreeHugger Robot
ba2944973b Merge "Update license activity title." 2016-11-18 19:16:58 +00:00
Fan Zhang
61c8fec2e0 Merge "Make FeatureFactoryImpl non-final so it can have subclass." 2016-11-18 16:59:53 +00:00
Bartosz Fabianowski
62b96811c1 Populate Enterprise Privacy Settings page - batch 1
This CL adds the first batch of items to the Privacy Settings page.
These are all the items that fall into the "What types of
information can your organization see?" category and do not require
deeper Framework changes. Further batches are to come in separate
CLs.

Test: make RunSettingsRoboTests
Bug: 32692748
Change-Id: I460093bc45ed0e5baab2a5cdf9833e654d436cc9
2016-11-18 14:17:47 +01:00
Maurice Lam
d12b97f9e3 Merge "Fix TTS for GMT offset" 2016-11-18 03:36:54 +00:00
TreeHugger Robot
6e32ed6ee9 Merge "Add account preference controller." 2016-11-18 02:13:44 +00:00
TreeHugger Robot
172f4c51ad Merge "Extract counting of installed apps into helper class" 2016-11-18 01:14:35 +00:00
Doris Ling
bfac31b517 Add account preference controller.
- Add account preference controller and move the handling for
displaying user's accounts from AccountSettings to the
controller.

- Move AccountPreference and RemoveUserFragment from inner class to
standalone class.

- Add AccountRestrictionHelper to handle API that needs to be mocked for
testing.

Bug: 31801423
Test: make RunSettingsRoboTests
Change-Id: I3d16d0b6a8922a8abec7037c52b7a4de2d76eb0d
2016-11-17 16:33:36 -08:00
Maurice Lam
84b1ceda7c Fix TTS for GMT offset
Add TtsSpans to the GMT offset string so that TalkBack knows to
read it out in a more natural way.

Test: cd tests/robotests && mma
Bug: 30042703
Change-Id: Ifa3c540f086472bc3a315b35ba40c9497f17d2d8
2016-11-17 16:30:05 -08:00
TreeHugger Robot
3b64ad983f Merge "Fork Search code to independantly develop and test search." 2016-11-18 00:11:51 +00:00
Fan Zhang
51c5ada676 Make FeatureFactoryImpl non-final so it can have subclass.
Bug: 32885026
Test: manual build
Change-Id: I49e32c37c5ca473f2c8900cb10e23847c3d8a464
2016-11-17 15:57:58 -08:00
TreeHugger Robot
8a2e2fa2a7 Merge "Refactor time format preference to be more modular/testable" 2016-11-17 23:14:18 +00:00
Matthew Fritze
0ed37c3513 Fork Search code to independantly develop and test search.
This is the start of the new search in Settings. It is a nearly complete
replacement of the old search code in a more modular and flexible
architecture. It is expanding the datasources that it queries, including
the same Settings database, which will now include more first party apps
and be extended to support inline results where the user can change
settings directly from the search view. Search will also fan out to
query new sources (local or remote), and is built in a way
such that adding additional sources is roughly the same amount of work
had they been added in the initial writing of this code.

Query interpretation will now be source-dependant, allowing for future
upgrades to fuzzy search where it is applicable.

Change-Id: Ib0bac1fe92bf8a662d33abf9a99bb6ee2090ec8f
Fixes: 32115225, 32378927
Test: make RunSettingsRoboTests
2016-11-17 14:34:29 -08:00
Fan Zhang
2f5bd3c7b7 Merge "Add dynamic tiles to development settings." 2016-11-17 22:15:45 +00:00
Fan Zhang
3d2efae43b Refactor time format preference to be more modular/testable
Change-Id: Ib6c06de9f942c3bb06384947f6b1923b33e511bc
Fixes: 32972964
Test: make RunSettingsRoboTests
2016-11-17 13:22:53 -08:00
Sean Stout
f20e0ef06e Merge "Changed two strings from using "ringtone" to "sound"" 2016-11-17 20:57:54 +00:00
Bartosz Fabianowski
3d83300deb Extract counting of installed apps into helper class
This CL extracts the code that counts the number of installed apps
for a set of users from ManageApplications to a helper class,
InstalledAppCounter. The new helper is designed to be unit-testable
(PackageManager dependencies are injected via a new PackageManagerWrapper
abstraction) and customizable (the set of users for which to count is
specified by subclasses).

The CL adds a unit test for the InstalledAppCounter as well.

Test: make RunSettingsRoboTests
Bug: 32692748
Change-Id: Ie7fbd40d9dd998b27f1f9de227b6a187b5c9d315
2016-11-17 21:04:34 +01:00
Fan Zhang
ee904e89f2 Add dynamic tiles to development settings.
Remove static preference for MemorySettings and change it to dynamic
using manifest metadata.

Bug: 32623105
Test: RunSettingsRoboTests

Change-Id: Id224eb8a25fea03c75b8fb0b16842bc5b427897a
2016-11-17 11:46:38 -08:00
Jerry Zhang
f387ea24af Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055aa9d am: 1451a4af78 am: 3473bc219e
am: 0a098f377c

Change-Id: I6cbd7a530b1f4ef8198990da6cb2d00bd92554fb
2016-11-17 19:16:02 +00:00
Jerry Zhang
ba35def4ff Refactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f am: a75fa91247 am: fd764ac0e3
am: f8ed07fc64

Change-Id: Ia6dfa2d6bac22330ad13486444f575d087ba9b06
2016-11-17 19:15:41 +00:00
Fan Zhang
d3b0f92494 Merge "Move ad-hoc dynamic tile injection into FeatureProvider." 2016-11-17 18:00:49 +00:00
Lei Yu
2bc946bb89 Merge "Invoke notifySummaryChanged callback only when text changed." 2016-11-17 17:59:49 +00:00
TreeHugger Robot
6a1054b557 Merge "Use new API Build.getSerial() to get serial number." 2016-11-17 02:53:03 +00:00
jackqdyulei
882d48fd46 Invoke notifySummaryChanged callback only when text changed.
Bug: 32905374
Test: make -j40 RunSettingsRoboTests
Change-Id: I709329d3024656080723383231a884f3cf8a9a43
2016-11-16 17:34:09 -08:00
Andrew Sapperstein
18616c79d9 Update license activity title.
Was "Open source licenses". Now is "Third-party licenses".

Test: manual
Change-Id: I44981f59182db362c238777c37ea2035e4743b71
Fixes: 28820041
2016-11-16 16:50:33 -08:00
Jerry Zhang
0a098f377c Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055aa9d am: 1451a4af78
am: 3473bc219e

Change-Id: I6064f90dcde32ccc5132fd5999224a99c7e378b0
2016-11-17 00:39:37 +00:00
Jerry Zhang
f8ed07fc64 Refactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f am: a75fa91247
am: fd764ac0e3

Change-Id: Iee63263785e80cb1a893dc99204bb2fb225a497a
2016-11-17 00:39:22 +00:00