OSDN Git Service

android-x86/packages-apps-Settings.git
7 years agoRefactor NetworkScoreAppManager for testing.
Amin Shaikh [Tue, 22 Nov 2016 01:28:47 +0000 (17:28 -0800)]
Refactor NetworkScoreAppManager for testing.

Test: manually running app
Change-Id: Icd828886b7181529fa2bf414ba631bce6d1b4d44

7 years agoMerge changes from topic 'show-deleted-vpn'
TreeHugger Robot [Tue, 29 Nov 2016 10:22:34 +0000 (10:22 +0000)]
Merge changes from topic 'show-deleted-vpn'

* changes:
  VpnSettings PreferenceList tests
  VpnSettings: slightly more robust callback context
  VpnSettings: show connected VPN even if deleted

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 29 Nov 2016 06:17:35 +0000 (06:17 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Add initialize helper method to improve readability"
Tadashi G. Takaoka [Tue, 29 Nov 2016 04:03:54 +0000 (04:03 +0000)]
Merge "Add initialize helper method to improve readability"

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 29 Nov 2016 03:54:58 +0000 (19:54 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ifa2ac6e743d48d3acaae6302fc59310adb4d09d4
Auto-generated-cl: translation import

7 years agoAdd test to ensure all future fragments implements logging.
Fan Zhang [Mon, 28 Nov 2016 23:36:56 +0000 (15:36 -0800)]
Add test to ensure all future fragments implements logging.

The idea is: if a class is Fragment, it must also implements
Instrumentable.

To make the test possible, I added a structure to load all classes in
current classloader, and filter to only the ones we care about. Then
insepct each class definition using reflection.

Bug: 32952614
Test: make RunSettingsRoboTests
Change-Id: Ifa5e27c41d5ad0e84b6e9e9df81c96e8be2878c5

7 years agoLink WIFI_SAVED_NETWORK_SETTINGS action with activity.
Stephen Chen [Tue, 15 Nov 2016 00:24:08 +0000 (16:24 -0800)]
Link WIFI_SAVED_NETWORK_SETTINGS action with activity.

Bug: 32738882
Test: gts test
Change-Id: Ie92e55fd1b0fbb7ba90b3f378a888b098dcf3287

7 years agoMerge "Use preference key specified in injected settings."
Shahriyar Amini [Tue, 29 Nov 2016 00:17:28 +0000 (00:17 +0000)]
Merge "Use preference key specified in injected settings."

7 years agoUse preference key specified in injected settings.
Shahriyar Amini [Tue, 22 Nov 2016 23:02:07 +0000 (15:02 -0800)]
Use preference key specified in injected settings.

Bug: 31002801
Test: make RunSettingsRoboTests

Reads in optional metadata field for specifying the key used for an
injected preference.

Change-Id: Ief2ff10c508d42f91906b531cf34906c1c42fdd4

7 years agoMerge "Update strings."
TreeHugger Robot [Mon, 28 Nov 2016 22:26:26 +0000 (22:26 +0000)]
Merge "Update strings."

7 years agoUpdate strings.
Fan Zhang [Mon, 28 Nov 2016 20:38:11 +0000 (12:38 -0800)]
Update strings.

Bug: 32841662
Test: RunSettingsRoboTests
Change-Id: I178070bfd5f20188e580f8a3a8dd442bd17f3632

7 years agoPopulate Enterprise Privacy Settings page - batch 2
Bartosz Fabianowski [Mon, 28 Nov 2016 20:13:30 +0000 (21:13 +0100)]
Populate Enterprise Privacy Settings page - batch 2

This CL adds the second batch of items to the Privacy Settings page.

These are all the remaining items that fall into the "What types of
information can your organization see?" category.

Test: make RunSettingsRoboTests
Bug: 32692748
Change-Id: I08569646ed6bb6f5d9d6d65ed2718be8456f50ae

7 years agoMove private volume storage calculations into a shared lib.
Daniel Nishi [Mon, 19 Sep 2016 19:16:21 +0000 (12:16 -0700)]
Move private volume storage calculations into a shared lib.

Bug: 30895163
Test: m RunStorageManagerRoboTests
Change-Id: I3e464c8b721373ebc1527eb5411622c69bf587d1

7 years agoVpnSettings PreferenceList tests
Robin Lee [Thu, 24 Nov 2016 15:46:54 +0000 (15:46 +0000)]
VpnSettings PreferenceList tests

For validating that when VPNs are added / removed, the right set of
changes are made to the PreferenceGroup in which they are supposed to
be shown.

Bug: 30998549
Bug: 29093779
Test: runtest -x packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/PreferenceListTest.java
Change-Id: I9394db0e78cc984ab62e3670aa0a7942ae767a66

7 years agoVpnSettings: slightly more robust callback context
Robin Lee [Fri, 4 Nov 2016 15:48:44 +0000 (15:48 +0000)]
VpnSettings: slightly more robust callback context

Test: runtest -x com/android/settings/vpn2/VpnTests.java
Change-Id: I45fa0509c56211602f6abd55a2f44cdf76f28829

7 years agoVpnSettings: show connected VPN even if deleted
Robin Lee [Fri, 4 Nov 2016 14:48:02 +0000 (14:48 +0000)]
VpnSettings: show connected VPN even if deleted

So there's a way to disconnect from it, if someone deletes all the
keystore entries and the VPN doesn't actually exist any more (but
is still sitting around in memory somewhere keeping the connection
alive).

Bug: 29093779
Fix: 32880676
Test: runtest -x tests/app/src/com/android/settings/vpn2/VpnTests.java
Change-Id: I97671a74af746e5baaa5be0b5cff24e2b1766f53

7 years agoAdd initialize helper method to improve readability
Tadashi G. Takaoka [Tue, 22 Nov 2016 14:53:36 +0000 (23:53 +0900)]
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

7 years agoFix crash when opening account sync detail for external app am: c9cdc25f41 am: f3e86c...
Fan Zhang [Wed, 23 Nov 2016 23:58:44 +0000 (23:58 +0000)]
Fix crash when opening account sync detail for external app am: c9cdc25f41 am: f3e86ca481 am: b69ec294c2
am: 660dad552b

Change-Id: Ied8736dd99e576f376cde15e51cf0d49e07814f6

7 years agoImport translations. DO NOT MERGE am: bb6af9902d -s ours am: 061b294714 -s ours...
Bill Yi [Wed, 23 Nov 2016 23:58:30 +0000 (23:58 +0000)]
Import translations. DO NOT MERGE am: bb6af9902d  -s ours am: 061b294714  -s ours am: 4666b50754  -s ours am: 5cca5a64e8  -s ours
am: 7963df8127  -s ours

Change-Id: I4e1251b23b0b8c82b2ea91b6558b8d49deaa025e

7 years agoImport translations. DO NOT MERGE am: e7f9b0b30b -s ours am: f8b4927683 -s ours...
Bill Yi [Wed, 23 Nov 2016 23:58:17 +0000 (23:58 +0000)]
Import translations. DO NOT MERGE am: e7f9b0b30b  -s ours am: f8b4927683  -s ours am: 57b56329f3  -s ours
am: 9a1589ad6a  -s ours

Change-Id: Iab860b955d46457f9ccf482394f5d45a9a1a1389

7 years agoNexus imprint setting is missing while adding corp account from SUW am: 378dec1495...
Steven Ng [Wed, 23 Nov 2016 23:58:03 +0000 (23:58 +0000)]
Nexus imprint setting is missing while adding corp account from SUW am: 378dec1495 am: 046a63450f am: 26a3c28735
am: e8928024c4

Change-Id: I9643fa546e1621577df2938687c09e08cfe935ad

7 years agoImport translations. DO NOT MERGE am: a6d9842695 -s ours am: c027907edc -s ours...
Bill Yi [Wed, 23 Nov 2016 23:57:49 +0000 (23:57 +0000)]
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

7 years agoImport translations. DO NOT MERGE am: 475763d01c -s ours am: 9a22968ff8 -s ours...
Bill Yi [Wed, 23 Nov 2016 23:57:35 +0000 (23:57 +0000)]
Import translations. DO NOT MERGE am: 475763d01c  -s ours am: 9a22968ff8  -s ours am: 88b043714b  -s ours
am: 72976be89a  -s ours

Change-Id: Idaf80586d8c9419cadcc2012663af3ad446bf1b8

7 years agoFix crash when opening account sync detail for external app am: c9cdc25f41 am: f3e86ca481
Fan Zhang [Wed, 23 Nov 2016 23:45:30 +0000 (23:45 +0000)]
Fix crash when opening account sync detail for external app am: c9cdc25f41 am: f3e86ca481
am: b69ec294c2

Change-Id: I2c195509e31812f55b00a1ecc6bc1cdead3f90f4

7 years agoImport translations. DO NOT MERGE am: bb6af9902d -s ours am: 061b294714 -s ours...
Bill Yi [Wed, 23 Nov 2016 23:45:18 +0000 (23:45 +0000)]
Import translations. DO NOT MERGE am: bb6af9902d  -s ours am: 061b294714  -s ours am: 4666b50754  -s ours
am: 5cca5a64e8  -s ours

Change-Id: Ic72803a51ba93c56254173c8f428fb9a146bdc1a

7 years agoImport translations. DO NOT MERGE am: e7f9b0b30b -s ours am: f8b4927683 -s ours
Bill Yi [Wed, 23 Nov 2016 23:45:05 +0000 (23:45 +0000)]
Import translations. DO NOT MERGE am: e7f9b0b30b  -s ours am: f8b4927683  -s ours
am: 57b56329f3  -s ours

Change-Id: I1d86bc055b65520c41615ddf919c64890f1b653f

7 years agoNexus imprint setting is missing while adding corp account from SUW am: 378dec1495...
Steven Ng [Wed, 23 Nov 2016 23:44:53 +0000 (23:44 +0000)]
Nexus imprint setting is missing while adding corp account from SUW am: 378dec1495 am: 046a63450f
am: 26a3c28735

Change-Id: I490619e028e67635fbd97b9537e3f8435471c0b0

7 years agoImport translations. DO NOT MERGE am: a6d9842695 -s ours am: c027907edc -s ours...
Bill Yi [Wed, 23 Nov 2016 23:44:38 +0000 (23:44 +0000)]
Import translations. DO NOT MERGE am: a6d9842695  -s ours am: c027907edc  -s ours am: f8032d0b15  -s ours
am: 71a0bb85a5  -s ours

Change-Id: I306a02fc5ca3330732fde9e8439b12e8a5f55389

7 years agoImport translations. DO NOT MERGE am: 475763d01c -s ours am: 9a22968ff8 -s ours
Bill Yi [Wed, 23 Nov 2016 23:44:25 +0000 (23:44 +0000)]
Import translations. DO NOT MERGE am: 475763d01c  -s ours am: 9a22968ff8  -s ours
am: 88b043714b  -s ours

Change-Id: I733c0d9fc99ffe62dc43ff32e0d9067ab2e1fa23

7 years agoFix crash when opening account sync detail for external app am: c9cdc25f41
Fan Zhang [Wed, 23 Nov 2016 23:29:22 +0000 (23:29 +0000)]
Fix crash when opening account sync detail for external app am: c9cdc25f41
am: f3e86ca481

Change-Id: I1ba3f6f34e010b95e1a86d6272c82adcee72117a

7 years agoImport translations. DO NOT MERGE am: bb6af9902d -s ours am: 061b294714 -s ours
Bill Yi [Wed, 23 Nov 2016 23:29:07 +0000 (23:29 +0000)]
Import translations. DO NOT MERGE am: bb6af9902d  -s ours am: 061b294714  -s ours
am: 4666b50754  -s ours

Change-Id: I1aaca58936606507f763770e65dace147da5153a

7 years agoImport translations. DO NOT MERGE am: e7f9b0b30b -s ours
Bill Yi [Wed, 23 Nov 2016 23:28:53 +0000 (23:28 +0000)]
Import translations. DO NOT MERGE am: e7f9b0b30b  -s ours
am: f8b4927683  -s ours

Change-Id: I4be07f881fd515c3668c12ecab6d2af8452d1ec0

7 years agoNexus imprint setting is missing while adding corp account from SUW am: 378dec1495
Steven Ng [Wed, 23 Nov 2016 23:28:38 +0000 (23:28 +0000)]
Nexus imprint setting is missing while adding corp account from SUW am: 378dec1495
am: 046a63450f

Change-Id: I7cbb27a7aa4a1d42dce52ef998ffe79aaa322ab4

7 years agoImport translations. DO NOT MERGE am: a6d9842695 -s ours am: c027907edc -s ours
Bill Yi [Wed, 23 Nov 2016 23:28:25 +0000 (23:28 +0000)]
Import translations. DO NOT MERGE am: a6d9842695  -s ours am: c027907edc  -s ours
am: f8032d0b15  -s ours

Change-Id: I0c7f588a8868df3a7235dbbac1eff725dc591070

7 years agoImport translations. DO NOT MERGE am: 475763d01c -s ours
Bill Yi [Wed, 23 Nov 2016 23:28:12 +0000 (23:28 +0000)]
Import translations. DO NOT MERGE am: 475763d01c  -s ours
am: 9a22968ff8  -s ours

Change-Id: Ic98ab45a4b2e31007a18e7018ad5f31c2b82d2ae

7 years agoMerge "Fix DPM.ACTION_SET_NEW_PASSWORD"
TreeHugger Robot [Wed, 23 Nov 2016 23:07:10 +0000 (23:07 +0000)]
Merge "Fix DPM.ACTION_SET_NEW_PASSWORD"

7 years agoMethod rename
Julia Reynolds [Wed, 23 Nov 2016 16:33:29 +0000 (11:33 -0500)]
Method rename

Test: make
Change-Id: Iec3a811004183c2691dc6776c7f3b620e60e4872

7 years agoFix DPM.ACTION_SET_NEW_PASSWORD
Tony Mak [Wed, 23 Nov 2016 11:36:18 +0000 (11:36 +0000)]
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

7 years agoMerge "Make RemoveUserFragment public."
TreeHugger Robot [Tue, 22 Nov 2016 19:05:27 +0000 (19:05 +0000)]
Merge "Make RemoveUserFragment public."

7 years agoMake RemoveUserFragment public.
Fan Zhang [Tue, 22 Nov 2016 16:53:53 +0000 (08:53 -0800)]
Make RemoveUserFragment public.

Fixes: 33034368
Test: make RunSettingsRoboTests
Change-Id: Icbda53c1a5992774fb8bd638f6ab5ad6d4590cfb

7 years agoMerge "Add appOps settings for accessibility volume control"
Jean-Michel Trivi [Tue, 22 Nov 2016 16:28:44 +0000 (16:28 +0000)]
Merge "Add appOps settings for accessibility volume control"

7 years agoMerge "Link WIFI_SAVED_NETWORK_SETTINGS action with activity."
TreeHugger Robot [Tue, 22 Nov 2016 14:59:31 +0000 (14:59 +0000)]
Merge "Link WIFI_SAVED_NETWORK_SETTINGS action with activity."

7 years agoMerge "Change EXTRA_TIME_PREF_24_HOUR_FORMAT from boolean to int"
Neil Fuller [Tue, 22 Nov 2016 11:55:21 +0000 (11:55 +0000)]
Merge "Change EXTRA_TIME_PREF_24_HOUR_FORMAT from boolean to int"

7 years agoMove date/time prefs to PreferenceController and add tests.
Fan Zhang [Fri, 18 Nov 2016 19:10:05 +0000 (11:10 -0800)]
Move date/time prefs to PreferenceController and add tests.

Bug: 32996243
Test: RunSettingsRoboTests
Change-Id: Ie537bbcc35a96a63251e46f84b57c0a861b9d013

7 years agoChange EXTRA_TIME_PREF_24_HOUR_FORMAT from boolean to int
Neil Fuller [Fri, 18 Nov 2016 16:05:40 +0000 (16:05 +0000)]
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

7 years agoImport translations. DO NOT MERGE am: 001632d55c -s ours am: 9e17133192 -s ours
Bill Yi [Mon, 21 Nov 2016 01:38:38 +0000 (01:38 +0000)]
Import translations. DO NOT MERGE am: 001632d55c  -s ours am: 9e17133192  -s ours
am: d6de02579f  -s ours

Change-Id: I75d1d24d5c4123d3aa782ec7c2850909ec14de89

7 years agoImport translations. DO NOT MERGE am: 001632d55c -s ours
Bill Yi [Mon, 21 Nov 2016 01:33:23 +0000 (01:33 +0000)]
Import translations. DO NOT MERGE am: 001632d55c  -s ours
am: 9e17133192  -s ours

Change-Id: Idda03611e22b67dba524f61ac9884de84950d962

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 21 Nov 2016 01:28:26 +0000 (01:28 +0000)]
Import translations. DO NOT MERGE
am: 001632d55c  -s ours

Change-Id: Ib267ac961a6ef99c9c1401e8967725b0f7914bac

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 21 Nov 2016 00:12:14 +0000 (16:12 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 32177112
Change-Id: Id8af490796464cb8422fa4be023af34baee73002

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 19 Nov 2016 13:30:02 +0000 (05:30 -0800)]
Import translations. DO NOT MERGE

Change-Id: I92d498cde69e94f4a165a459aedb55d73fd32f65
Auto-generated-cl: translation import

7 years agoMerge "Ringtone -> Sound"
Julia Reynolds [Fri, 18 Nov 2016 22:12:24 +0000 (22:12 +0000)]
Merge "Ringtone -> Sound"

7 years agoMerge "Update license activity title."
TreeHugger Robot [Fri, 18 Nov 2016 19:16:57 +0000 (19:16 +0000)]
Merge "Update license activity title."

7 years agoMerge "Make FeatureFactoryImpl non-final so it can have subclass."
Fan Zhang [Fri, 18 Nov 2016 16:59:53 +0000 (16:59 +0000)]
Merge "Make FeatureFactoryImpl non-final so it can have subclass."

7 years agoPopulate Enterprise Privacy Settings page - batch 1
Bartosz Fabianowski [Thu, 17 Nov 2016 23:09:52 +0000 (00:09 +0100)]
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

7 years agoMerge "Fix TTS for GMT offset"
Maurice Lam [Fri, 18 Nov 2016 03:36:48 +0000 (03:36 +0000)]
Merge "Fix TTS for GMT offset"

7 years agoMerge "Add account preference controller."
TreeHugger Robot [Fri, 18 Nov 2016 02:13:43 +0000 (02:13 +0000)]
Merge "Add account preference controller."

7 years agoMerge "Extract counting of installed apps into helper class"
TreeHugger Robot [Fri, 18 Nov 2016 01:14:34 +0000 (01:14 +0000)]
Merge "Extract counting of installed apps into helper class"

7 years agoAdd account preference controller.
Doris Ling [Thu, 10 Nov 2016 23:12:52 +0000 (15:12 -0800)]
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

7 years agoFix TTS for GMT offset
Maurice Lam [Mon, 31 Oct 2016 22:38:02 +0000 (15:38 -0700)]
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

7 years agoMerge "Fork Search code to independantly develop and test search."
TreeHugger Robot [Fri, 18 Nov 2016 00:11:50 +0000 (00:11 +0000)]
Merge "Fork Search code to independantly develop and test search."

7 years agoMake FeatureFactoryImpl non-final so it can have subclass.
Fan Zhang [Thu, 17 Nov 2016 23:57:58 +0000 (15:57 -0800)]
Make FeatureFactoryImpl non-final so it can have subclass.

Bug: 32885026
Test: manual build
Change-Id: I49e32c37c5ca473f2c8900cb10e23847c3d8a464

7 years agoMerge "Refactor time format preference to be more modular/testable"
TreeHugger Robot [Thu, 17 Nov 2016 23:14:18 +0000 (23:14 +0000)]
Merge "Refactor time format preference to be more modular/testable"

7 years agoFork Search code to independantly develop and test search.
Matthew Fritze [Mon, 24 Oct 2016 17:12:49 +0000 (10:12 -0700)]
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: 3211522532378927
Test: make RunSettingsRoboTests

7 years agoMerge "Add dynamic tiles to development settings."
Fan Zhang [Thu, 17 Nov 2016 22:15:45 +0000 (22:15 +0000)]
Merge "Add dynamic tiles to development settings."

7 years agoRefactor time format preference to be more modular/testable
Fan Zhang [Thu, 17 Nov 2016 18:57:15 +0000 (10:57 -0800)]
Refactor time format preference to be more modular/testable

Change-Id: Ib6c06de9f942c3bb06384947f6b1923b33e511bc
Fixes: 32972964
Test: make RunSettingsRoboTests

7 years agoMerge "Changed two strings from using "ringtone" to "sound""
Sean Stout [Thu, 17 Nov 2016 20:57:50 +0000 (20:57 +0000)]
Merge "Changed two strings from using "ringtone" to "sound""

7 years agoExtract counting of installed apps into helper class
Bartosz Fabianowski [Thu, 17 Nov 2016 20:04:34 +0000 (21:04 +0100)]
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

7 years agoAdd dynamic tiles to development settings.
Fan Zhang [Thu, 17 Nov 2016 00:59:49 +0000 (16:59 -0800)]
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

7 years agoMerge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055...
Jerry Zhang [Thu, 17 Nov 2016 19:16:02 +0000 (19:16 +0000)]
Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055aa9d am: 1451a4af78 am: 3473bc219e
am: 0a098f377c

Change-Id: I6cbd7a530b1f4ef8198990da6cb2d00bd92554fb

7 years agoRefactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f...
Jerry Zhang [Thu, 17 Nov 2016 19:15:41 +0000 (19:15 +0000)]
Refactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f am: a75fa91247 am: fd764ac0e3
am: f8ed07fc64

Change-Id: Ia6dfa2d6bac22330ad13486444f575d087ba9b06

7 years agoMerge "Move ad-hoc dynamic tile injection into FeatureProvider."
Fan Zhang [Thu, 17 Nov 2016 18:00:49 +0000 (18:00 +0000)]
Merge "Move ad-hoc dynamic tile injection into FeatureProvider."

7 years agoMerge "Invoke notifySummaryChanged callback only when text changed."
Lei Yu [Thu, 17 Nov 2016 17:59:49 +0000 (17:59 +0000)]
Merge "Invoke notifySummaryChanged callback only when text changed."

7 years agoMerge "Use new API Build.getSerial() to get serial number."
TreeHugger Robot [Thu, 17 Nov 2016 02:53:02 +0000 (02:53 +0000)]
Merge "Use new API Build.getSerial() to get serial number."

7 years agoInvoke notifySummaryChanged callback only when text changed.
jackqdyulei [Tue, 15 Nov 2016 18:54:50 +0000 (10:54 -0800)]
Invoke notifySummaryChanged callback only when text changed.

Bug: 32905374
Test: make -j40 RunSettingsRoboTests
Change-Id: I709329d3024656080723383231a884f3cf8a9a43

7 years agoAdd tint for ic_settings_24dp.xml in settings
jackqdyulei [Thu, 17 Nov 2016 00:55:34 +0000 (16:55 -0800)]
Add tint for ic_settings_24dp.xml in settings

Bug: 32592245
Test: manual
Change-Id: I32bdc33984b7d3d417cf6187b917485ac46f91e5

7 years agoUpdate license activity title.
Andrew Sapperstein [Thu, 17 Nov 2016 00:50:33 +0000 (16:50 -0800)]
Update license activity title.

Was "Open source licenses". Now is "Third-party licenses".

Test: manual
Change-Id: I44981f59182db362c238777c37ea2035e4743b71
Fixes: 28820041

7 years agoMerge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055...
Jerry Zhang [Thu, 17 Nov 2016 00:39:37 +0000 (00:39 +0000)]
Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055aa9d am: 1451a4af78
am: 3473bc219e

Change-Id: I6064f90dcde32ccc5132fd5999224a99c7e378b0

7 years agoRefactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f...
Jerry Zhang [Thu, 17 Nov 2016 00:39:22 +0000 (00:39 +0000)]
Refactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f am: a75fa91247
am: fd764ac0e3

Change-Id: Iee63263785e80cb1a893dc99204bb2fb225a497a

7 years agoMove ad-hoc dynamic tile injection into FeatureProvider.
Fan Zhang [Thu, 17 Nov 2016 00:03:08 +0000 (16:03 -0800)]
Move ad-hoc dynamic tile injection into FeatureProvider.

Ideally a page should use DashboardFragment and it doesn't need to
handle adding dynamic tiles manually. This method is only designed for
page that are not fully migrated to DashboardFragment yet.

Bug: 32623105
Test: RunSettingsRoboTests
Change-Id: I0cafcddf9a43b164daea500bade869fada5b3f4e

7 years agoMerge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055aa9d
Jerry Zhang [Thu, 17 Nov 2016 00:24:57 +0000 (00:24 +0000)]
Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method" am: 89a055aa9d
am: 1451a4af78

Change-Id: I90048a233d80ee023e9f775b540248b62aa5e4ea

7 years agoRefactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f
Jerry Zhang [Thu, 17 Nov 2016 00:24:50 +0000 (00:24 +0000)]
Refactor setCurrentFunction and setUsbDataUnlocked into one method am: a1b60e629f
am: a75fa91247

Change-Id: I70fdc7a2d4bfa40e315a4de172dbcee22d666cc6

7 years agoMerge "Refactor setCurrentFunction and setUsbDataUnlocked into one method"
Jerry Zhang [Thu, 17 Nov 2016 00:12:59 +0000 (00:12 +0000)]
Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method"
am: 89a055aa9d

Change-Id: I8bad2864a848b46c99e2693acacb320615338ec8

7 years agoRefactor setCurrentFunction and setUsbDataUnlocked into one method
Jerry Zhang [Thu, 17 Nov 2016 00:09:38 +0000 (00:09 +0000)]
Refactor setCurrentFunction and setUsbDataUnlocked into one method
am: a1b60e629f

Change-Id: I0ed28df5f24e7fe545f968c4d65cfc0494b57ebd

7 years agoMerge "Refactor setCurrentFunction and setUsbDataUnlocked into one method"
Jerry Zhang [Wed, 16 Nov 2016 23:59:32 +0000 (23:59 +0000)]
Merge "Refactor setCurrentFunction and setUsbDataUnlocked into one method"

7 years agoFix bug: BackupResetDashboardAlias is mapped incorrectly.
Fan Zhang [Wed, 16 Nov 2016 18:24:26 +0000 (10:24 -0800)]
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

7 years agoUse new API Build.getSerial() to get serial number.
Fan Zhang [Wed, 16 Nov 2016 22:44:43 +0000 (14:44 -0800)]
Use new API Build.getSerial() to get serial number.

Bug: 32935486
Test: RunSettingsRoboTests
Change-Id: I28b8d27d034b4a6c4ae5f29e8311e84e5c423967

7 years agoAdd appOps settings for accessibility volume control
Jean-Michel Trivi [Fri, 11 Nov 2016 17:43:01 +0000 (09:43 -0800)]
Add appOps settings for accessibility volume control

Test: make
Bug 30448020

Change-Id: I88b6fa1da646f4067115d4ef77051f1fed5fa46c

7 years agoLink WIFI_SAVED_NETWORK_SETTINGS action with activity.
Stephen Chen [Tue, 15 Nov 2016 00:24:08 +0000 (16:24 -0800)]
Link WIFI_SAVED_NETWORK_SETTINGS action with activity.

Bug: 32738882
Test: gts test
Change-Id: Ia3aa7a3cfcc0f00f9721c3636809a492d3b39be7

7 years agoRingtone -> Sound
Julia Reynolds [Tue, 15 Nov 2016 19:53:40 +0000 (14:53 -0500)]
Ringtone -> Sound

Test: make -j32
Change-Id: I53864e877e94ff1560f8e9637a87daf7b5118398

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 16 Nov 2016 06:33:36 +0000 (06:33 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 16 Nov 2016 04:56:50 +0000 (20:56 -0800)]
Import translations. DO NOT MERGE

Change-Id: I1a8c04af27632e0ad198d561f5093fd2d24c7938
Auto-generated-cl: translation import

7 years agoMerge "Always show at least 1% when some space used."
TreeHugger Robot [Wed, 16 Nov 2016 03:38:00 +0000 (03:38 +0000)]
Merge "Always show at least 1% when some space used."

7 years agoMerge "Update MountService to StorageManagerService."
Sudheer Shanka [Tue, 15 Nov 2016 23:34:11 +0000 (23:34 +0000)]
Merge "Update MountService to StorageManagerService."

7 years agoMerge "Refresh Storage UI atomically."
TreeHugger Robot [Tue, 15 Nov 2016 22:31:34 +0000 (22:31 +0000)]
Merge "Refresh Storage UI atomically."

7 years agoAlways show at least 1% when some space used.
Jeff Sharkey [Tue, 15 Nov 2016 22:17:29 +0000 (15:17 -0700)]
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

7 years agoRefresh Storage UI atomically.
Jeff Sharkey [Tue, 15 Nov 2016 21:06:44 +0000 (14:06 -0700)]
Refresh Storage UI atomically.

Test: builds
Bug: 29275971
Change-Id: I0f5131631ae12bc57e66545513ad60b7cbcd179b

7 years agoMerge "Insert dynamic dashboard tiles into optional placeholders"
TreeHugger Robot [Tue, 15 Nov 2016 17:44:53 +0000 (17:44 +0000)]
Merge "Insert dynamic dashboard tiles into optional placeholders"

7 years agoMerge "Increase char limit for the account prefererence title."
TreeHugger Robot [Tue, 15 Nov 2016 02:19:00 +0000 (02:19 +0000)]
Merge "Increase char limit for the account prefererence title."

7 years agoInsert dynamic dashboard tiles into optional placeholders
Fan Zhang [Fri, 11 Nov 2016 21:23:21 +0000 (13:23 -0800)]
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

7 years agoIncrease char limit for the account prefererence title.
Doris Ling [Tue, 15 Nov 2016 00:40:23 +0000 (16:40 -0800)]
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