Commit Graph

32503 Commits

Author SHA1 Message Date
Tadashi G. Takaoka
5e8b93bc53 Merge "Add initialize helper method to improve readability" 2016-11-29 04:03:54 +00:00
Bill Yi
d31b72c065 Import translations. DO NOT MERGE
Change-Id: Ifa2ac6e743d48d3acaae6302fc59310adb4d09d4
Auto-generated-cl: translation import
2016-11-28 19:54:58 -08:00
Fan Zhang
8b8218c01b 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
2016-11-28 16:34:45 -08:00
Stephen Chen
e365aa8cd9 Link WIFI_SAVED_NETWORK_SETTINGS action with activity.
Bug: 32738882
Test: gts test
Change-Id: Ie92e55fd1b0fbb7ba90b3f378a888b098dcf3287
2016-11-28 16:29:31 -08:00
Shahriyar Amini
3d7f09d7ad Merge "Use preference key specified in injected settings." 2016-11-29 00:17:29 +00:00
Shahriyar Amini
6259129d69 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
2016-11-28 14:49:46 -08:00
TreeHugger Robot
01bffd0751 Merge "Update strings." 2016-11-28 22:26:26 +00:00
Fan Zhang
3d9fd0cd73 Update strings.
Bug: 32841662
Test: RunSettingsRoboTests
Change-Id: I178070bfd5f20188e580f8a3a8dd442bd17f3632
2016-11-28 12:48:07 -08:00
Bartosz Fabianowski
2e0b608495 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
2016-11-28 21:13:30 +01:00
Daniel Nishi
c04f8b9ecd Move private volume storage calculations into a shared lib.
Bug: 30895163
Test: m RunStorageManagerRoboTests
Change-Id: I3e464c8b721373ebc1527eb5411622c69bf587d1
2016-11-28 11:00:48 -08:00
Robin Lee
9c2758f407 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
2016-11-28 17:42:56 +00:00
Robin Lee
4f0a0d0a40 VpnSettings: slightly more robust callback context
Test: runtest -x com/android/settings/vpn2/VpnTests.java
Change-Id: I45fa0509c56211602f6abd55a2f44cdf76f28829
2016-11-28 17:42:43 +00:00
Robin Lee
393857be9c 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
2016-11-28 17:41:58 +00:00
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
51ecc5eced Fix crash when opening account sync detail for external app am: c9cdc25f41 am: f3e86ca481 am: b69ec294c2
am: 660dad552b

Change-Id: Ied8736dd99e576f376cde15e51cf0d49e07814f6
2016-11-23 23:58:44 +00:00
Bill Yi
33ae03d03d 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
2016-11-23 23:58:30 +00:00
Bill Yi
d6e052142d Import translations. DO NOT MERGE am: e7f9b0b30b -s ours am: f8b4927683 -s ours am: 57b56329f3 -s ours
am: 9a1589ad6a  -s ours

Change-Id: Iab860b955d46457f9ccf482394f5d45a9a1a1389
2016-11-23 23:58:17 +00:00
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
Fan Zhang
660dad552b Fix crash when opening account sync detail for external app am: c9cdc25f41 am: f3e86ca481
am: b69ec294c2

Change-Id: I2c195509e31812f55b00a1ecc6bc1cdead3f90f4
2016-11-23 23:45:30 +00:00
Bill Yi
7963df8127 Import translations. DO NOT MERGE am: bb6af9902d -s ours am: 061b294714 -s ours am: 4666b50754 -s ours
am: 5cca5a64e8  -s ours

Change-Id: Ic72803a51ba93c56254173c8f428fb9a146bdc1a
2016-11-23 23:45:18 +00:00
Bill Yi
9a1589ad6a Import translations. DO NOT MERGE am: e7f9b0b30b -s ours am: f8b4927683 -s ours
am: 57b56329f3  -s ours

Change-Id: I1d86bc055b65520c41615ddf919c64890f1b653f
2016-11-23 23:45:05 +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
Fan Zhang
b69ec294c2 Fix crash when opening account sync detail for external app am: c9cdc25f41
am: f3e86ca481

Change-Id: I1ba3f6f34e010b95e1a86d6272c82adcee72117a
2016-11-23 23:29:22 +00:00
Bill Yi
5cca5a64e8 Import translations. DO NOT MERGE am: bb6af9902d -s ours am: 061b294714 -s ours
am: 4666b50754  -s ours

Change-Id: I1aaca58936606507f763770e65dace147da5153a
2016-11-23 23:29:07 +00:00
Bill Yi
57b56329f3 Import translations. DO NOT MERGE am: e7f9b0b30b -s ours
am: f8b4927683  -s ours

Change-Id: I4be07f881fd515c3668c12ecab6d2af8452d1ec0
2016-11-23 23:28:53 +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
Julia Reynolds
7270be09d5 Method rename
Test: make
Change-Id: Iec3a811004183c2691dc6776c7f3b620e60e4872
2016-11-23 11:33:29 -05: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