Commit Graph

41682 Commits

Author SHA1 Message Date
Fan Zhang
518e648acf Implement querySiteMapPairs for indexableProvider.
Query sitemap will return a list of pairs [parent class name, child
class name]. It's up to consumer to figure out the display name later
so the provider doesn't have dependency on localizing any display names.

- Removed SiteMapManagerTest. We will perform the test in
  SettingsIntelligence instead.
- Added test for the new provider in instrumentation test (robolectric
  doesn't recognize the new constants in framework yet)

Bug: 67359411
Bug: 64938328
Test: atest
Change-Id: Ia973115320e6b7c8cf84d4756db1763ae7010aed
2017-11-27 15:50:19 -08:00
jeffreyhuang
18468c9b1c move connecteddevice test package to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I8dd681215dcc1f3da44c5ab852c2d80016aeeb5c
2017-11-27 15:47:24 -08:00
jeffreyhuang
4824ff3d00 Move bluetooth test package to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I26e6f437052caafd97f3f164b388d379fc890e7e
2017-11-27 15:42:25 -08:00
jeffreyhuang
60d1b38051 Move backup package tests to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I016e8ae3336544c4c75ead96d06e4b461ed13773
2017-11-27 15:32:12 -08:00
TreeHugger Robot
c859721413 Merge "Update style names due to theme migration" 2017-11-27 23:14:02 +00:00
jeffreyhuang
253cb2fbc3 Move applications test package to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I9815f48ed9c6ddcfdae10cf09fbdf742a7066dfa
2017-11-27 14:57:32 -08:00
jeffreyhuang
b83fd6c3d1 Update tests to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: Ib344f0622dfa3b9f9a8fdd6736bc34cb4f536db8
2017-11-27 14:57:32 -08:00
Jeffrey Huang
1eb5c3eede Merge changes I8668be19,Ifb7769a1
* changes:
  move defaultapps package to sdk 26
  Update DefaultAppInfoTest to sdk 26
2017-11-27 21:47:12 +00:00
jeffreyhuang
90dd4b668a move manageapplications to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I84b62392a4a4d55c1d4e6a9eadc5910e4b9a8530
2017-11-27 13:45:51 -08:00
jeffreyhuang
85aa1ea129 Update viewholder tests to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I81bfdff059255b3e7a20270dea62ffd56cc53ad5
2017-11-27 13:45:51 -08:00
TreeHugger Robot
6cfc72defa Merge "Make sure FP error text is visible in landscape" 2017-11-27 21:42:38 +00:00
jeffreyhuang
3b0b8b711e Update RecentAppsPreferenceControllerTest to sdk26
- Remove the usage of the mock context to avoid null pointers in sdk 26

Test: make RunSettingsRoboTests -j40
Change-Id: I73dac0c91e56d84cdec0314a4ec5754a0a98c54b
2017-11-27 13:37:31 -08:00
TreeHugger Robot
4324080acd Merge "CredentialStorage: Fix manual key installation." 2017-11-27 21:10:25 +00:00
Ahmed ElArabawy
35f5b8f357 Add new method to FakeUid
This commit adds a new method to FakeUid
The added method is getMulticastWakelockStats()

Test: Manual Test
Bug: 33649966
Change-Id: I55c31eca87f1ad46e478d5e9e5e2f951eaee0265
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-11-27 21:08:20 +00:00
jackqdyulei
aec5543841 Add preference group for saved devcies.
Currently it only contains bluetooth devices.

Bug: 3240835
Test: RunSettingsRoboTests
Change-Id: Ief102e7174a4c4610dbda6b728419b303ff928f9
2017-11-27 12:56:44 -08:00
TreeHugger Robot
d5fff3645a Merge "Increase max char limit for sim slot number" 2017-11-27 20:06:41 +00:00
TreeHugger Robot
0ab7616cea Merge "Move assist package to sdk 26" 2017-11-27 19:50:34 +00:00
TreeHugger Robot
d7054033cb Merge "rename v2 controllers" 2017-11-27 19:48:36 +00:00
TreeHugger Robot
79bd22ae5b Merge "Fix comma typo" 2017-11-27 19:43:19 +00:00
TreeHugger Robot
42243ef66f Merge "Update string for battery saver" 2017-11-27 19:25:00 +00:00
jeffreyhuang
cde01ce7dd move defaultapps package to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I8668be1963135af3088229c440ac2aff88b77899
2017-11-27 11:19:00 -08:00
jeffreyhuang
3228ef64c2 Update DefaultAppInfoTest to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: Ifb7769a1bf0b22581dac80d7343e6cb58515af26
2017-11-27 11:18:19 -08:00
jeffreyhuang
32c3f96c23 Move assist package to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: Id37a5b2e445481bc586f12a4397e7082f28ec075
2017-11-27 10:21:47 -08:00
jeffreyhuang
ade10ca2ef Fix comma typo
Bug: 69672170
Test: Manual
Change-Id: Ib32695ca8ecf19e3d0c4174ce7fbd9f2af31c29a
2017-11-27 10:12:06 -08:00
Antony Sargent
cc16feb726 Update style names due to theme migration
This updates some theme names to go along with a change to migrate some
theme elements from SettingsLib to the support library.

Bug: 64689839
Test: manual
Change-Id: I31b96c321def78bbb49239faae6ba8e73aacd2fa
2017-11-27 18:06:48 +00:00
jeffreyhuang
e1d5a1eaac Increase max char limit for sim slot number
- translations to other languages requires a few more characters

Bug: 69672094
Test: Compiles
Change-Id: I59c1ced9098b02718599a1feb7e64903e8dbd7f7
2017-11-27 10:06:37 -08:00
Bill Yi
c61ed6356d Merge "Import translations. DO NOT MERGE" into oc-mr1-dev am: 419407eaea -s ours
am: 1ef2ec2264  -s ours

Change-Id: Ib4a2d4cc1eb42015dfdf56fba3417918de2af670
2017-11-26 23:08:53 +00:00
Bill Yi
1ef2ec2264 Merge "Import translations. DO NOT MERGE" into oc-mr1-dev
am: 419407eaea  -s ours

Change-Id: I5689ca60c3bf9a29c59380c7d3002c6007f8eb05
2017-11-26 23:05:52 +00:00
TreeHugger Robot
419407eaea Merge "Import translations. DO NOT MERGE" into oc-mr1-dev 2017-11-26 23:02:14 +00:00
Bill Yi
d2037b9997 Import translations. DO NOT MERGE am: 9ae05458f0 -s ours am: b2cc06ea43 -s ours
am: 97e5272958  -s ours

Change-Id: I6b5222e2b795f7c08279ca142eada5087cb2803a
2017-11-26 22:55:21 +00:00
Bill Yi
97e5272958 Import translations. DO NOT MERGE am: 9ae05458f0 -s ours
am: b2cc06ea43  -s ours

Change-Id: I6e6335049140a4cb73bb694dd4636f264e1876a4
2017-11-26 22:52:50 +00:00
Bill Yi
b2cc06ea43 Import translations. DO NOT MERGE
am: 9ae05458f0  -s ours

Change-Id: I829586defb2cf0da3395bc8eb41ae243faf02173
2017-11-26 22:49:49 +00:00
Bill Yi
9ae05458f0 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I970b01d5df730bd739ef0ad5a40d28916bf53b02
2017-11-26 12:19:05 -08:00
Bill Yi
f00a457d5b Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ibfb674f157b342ea77c07cd88c47dc25b2fcd03e
2017-11-26 12:15:58 -08:00
Eran Messeri
e0f7721ae2 CredentialStorage: Fix manual key installation.
Since the introduction of user-selectability of keys into KeyChain,
keys installed in KeyChain, by default, cannot be granted access
by the user. This is a secure default, and means keys manually
installed by the user should be explicitly marked as user-selectable.

This change marks the user-added alias as user-selectable, so it can be
selected, later on, by the user, from the Certificate Selection prompt.

Bug: 65624467
Test: Manually with CtsVerifier (KeyChainTest).
Change-Id: I618a06270a127a38b2aa3098fddfa518515bc1b1
2017-11-23 16:51:04 +00:00
Tony Mak
0ba8f51605 Update the usage of getDefaultUserIcon
getDefaultUserIcon now takes resources as parameter for the sake of
resource overlaying.

BUG=69355037
Test: Factory reset and go to settings -> User, observe the new color.

Change-Id: I504acf00c4616c342d2b8e99b061e4043b34c378
2017-11-23 17:08:39 +08:00
TreeHugger Robot
03b2d4c44c Merge "Disable DevelopmentSettingsActivity by default" 2017-11-23 01:47:53 +00:00
TreeHugger Robot
e2e0ee33f5 Merge "Update search bar visual" 2017-11-23 00:57:34 +00:00
Jeffrey Huang
5999f5d892 Merge "Move accounts package tests to sdk 26" 2017-11-23 00:53:02 +00:00
Jeffrey Huang
7c18a20624 Merge "Update AccountDetailDashboardFragmentTest" 2017-11-23 00:52:50 +00:00
Jeffrey Huang
aaffb5fd4a Merge "Update SetupChooseLockPatternTest to SDK 26" 2017-11-23 00:52:39 +00:00
jeffreyhuang
e89dc36149 rename v2 controllers
- Remove v2 postfix on controllers now that v1 dev options have been
 removed

Bug: 34203528
Test: compiles and tests still pass
Change-Id: I7a937e914293233801dbd1d9536b7b47ee70d591
2017-11-22 16:51:15 -08:00
Maurice Lam
733b7c3c16 Make sure FP error text is visible in landscape
Use layout_weight in the enrolling progress bar to make sure it
there is space left for the error text.

Test: Manual
Bug: 69686380
Change-Id: Idd3d4c4ac376e721f15b8c9871c56e0619def305
2017-11-22 16:17:37 -08:00
TreeHugger Robot
dd1091c4b4 Merge "Fix AutoSyncDataPreferenceControllerTest" 2017-11-23 00:16:58 +00:00
TreeHugger Robot
c18f54d3e8 Merge "Fix RemoveAccountPreferenceControllerTest" 2017-11-23 00:04:33 +00:00
Fan Zhang
5830dcc100 Update search bar visual
- Rounded cornal radius is now 1/2 of total height. This makes the
search bar look like a pill.

Bug: 68814716
Test: visual
Change-Id: Ie572d11c0df8c42b4903bfe238e80eeb54e60fd0
2017-11-22 15:12:06 -08:00
Fan Zhang
831f6302ee Disable DevelopmentSettingsActivity by default
And if for any reason monkey user is able to enter develop option page,
we show nothing.

And update some test to sdk 26.

Change-Id: I3f985e7fe14bd290db73b8c46dd817591df02015
Fixes: 68707778
Test: robotests
2017-11-22 14:44:23 -08:00
jeffreyhuang
65304af215 Fix AutoSyncDataPreferenceControllerTest
- Prevent this test from hanging due to fragment deep mock

Test: make RunSettingsRoboTests -j40
Change-Id: I043303c87eb89508fd96e151a17dc70a7b7fa3bb
2017-11-22 14:28:01 -08:00
jeffreyhuang
90f59be20b Move accounts package tests to sdk 26
Test: make RunSettingsRoboTests -j40
Change-Id: I5f5a1f87aff5e1067e9339010b988e58fcc5b704
2017-11-22 14:24:45 -08:00
jeffreyhuang
f6c64b532f Fix RemoveAccountPreferenceControllerTest
- prevent the test from hanging due to passing a deep fragment mock

Test: make RunSettingsRoboTests -j40
Change-Id: I60b6f32b19563dbcd25eda9d98a8c0266480a3f9
2017-11-22 14:19:15 -08:00