Commit Graph

49467 Commits

Author SHA1 Message Date
TreeHugger Robot
a60d914d5f Merge "Create the main architecture for Settings Dynamic Homepage" 2018-08-25 01:09:17 +00:00
Treehugger Robot
0c724f5181 Merge "Fix crash in clicking Default Home gear icon." 2018-08-24 23:58:31 +00:00
TreeHugger Robot
b619dd8856 Merge "Fixed NPE that crashes Settings." 2018-08-24 23:50:11 +00:00
Emily Chuang
6cb08a3ce4 Create the main architecture for Settings Dynamic Homepage
Create an architecture for the homepage to enable card adding
and displaying.

Bug: 111676964
Test: robotests
Change-Id: I06efe3d16585060a8e99313586ae29bbde7fe3e8
2018-08-25 07:47:23 +08:00
Doris Ling
72836a99d2 Fix crash in clicking Default Home gear icon.
- change the way that default home query the resolve activity to only
check for LAUNCHER activity.

Change-Id: Ib53154afe7951f4e2c7c3ab147be4c691113e0e7
Merged-In: Ib53154afe7951f4e2c7c3ab147be4c691113e0e7
Fixes: 112249115
Test: make RunSettingsRoboTests
2018-08-24 15:56:38 -07:00
TreeHugger Robot
a5aba37da7 Merge "Add Support for Virtual High Refresh Rate mode" 2018-08-24 21:33:27 +00:00
TreeHugger Robot
f566949d78 Merge "Fix crash in clicking Default Home gear icon." 2018-08-24 20:13:36 +00:00
TreeHugger Robot
07af8e015f Merge "Refresh conditions only when it changes." 2018-08-24 19:50:24 +00:00
Doris Ling
639ad90313 Fix crash in clicking Default Home gear icon.
- change the way that default home query the resolve activity to only
check for LAUNCHER activity.

Change-Id: Ib53154afe7951f4e2c7c3ab147be4c691113e0e7
Fixes: 112249115
Test: make RunSettingsRoboTests
2018-08-24 11:27:18 -07:00
Fan Zhang
5d7ebbf963 Refresh conditions only when it changes.
- Instead of force refresh when user tap action button, we not wait
  until state changes for each conditional cards.

Test: robotests
Change-Id: I2eca59a06b8cb332b7b99f017baefb3d5b53234b
2018-08-24 09:25:57 -07:00
TreeHugger Robot
28d1b223ef Merge "Remove red underline from Device name" 2018-08-24 16:02:14 +00:00
Mill Chen
32db609df1 Remove red underline from Device name
- Turn off auto-correction for normal text.

Bug: 79421621
Test: make RunSettingsRoboTest
Change-Id: Ie7c4ebd33073ecaac2048d8630ec7b51e706341c
2018-08-24 13:38:17 +08:00
David Sodman
7915fda7ee Add Support for Virtual High Refresh Rate mode
Add a developer options settings switch to enable a virtual
HiFrequency panel mode to be able to test the SW stack with
display running at 50% faster than the default refresh
rate.

Bug: 111549030
Test: Enable HiFrequency mode and use systrace/adb to verity
Change-Id: Ibfd30ca1a14a146419233eaefa9b5095bf459adc
2018-08-23 20:04:03 -07:00
Lei Yu
10995c9bfc Merge "Hook up feature flag to mobile network controller" 2018-08-23 19:39:29 +00:00
TreeHugger Robot
dcd8e75b3e Merge "Use BluetoothDevice.ACCESS_* instead of CachedBluetoothDevice.ACCESS_*" 2018-08-23 19:09:48 +00:00
Fan Zhang
71c828e3f2 [automerger skipped] Merge "DO NOT MERGE Fix summary text for advanced button." am: da38b41b9a -s ours am: 5c6f6949bf -s ours
am: b984c81371  -s ours

Change-Id: I6d6584924602bf9f7d8f267cccfae8adce744f66
2018-08-23 11:20:07 -07:00
Fan Zhang
b984c81371 [automerger skipped] Merge "DO NOT MERGE Fix summary text for advanced button." am: da38b41b9a -s ours
am: 5c6f6949bf  -s ours

Change-Id: I5857d75e1b068446ccfba8859c11e968bc7dade3
2018-08-23 11:13:33 -07:00
Fan Zhang
5c6f6949bf [automerger skipped] Merge "DO NOT MERGE Fix summary text for advanced button."
am: da38b41b9a  -s ours

Change-Id: I1dadf9bcd016e61ea04fe5b851e6430b1d63574d
2018-08-23 11:08:32 -07:00
Treehugger Robot
da38b41b9a Merge "DO NOT MERGE Fix summary text for advanced button." 2018-08-23 17:38:38 +00:00
Fan Zhang
2c9d9ce8de DO NOT MERGE Fix summary text for advanced button.
- the resource for the summary text is in the support library. However,
the prebuilt version in the build does not contain the latest change for
the summary text. Add the overlay for the summary resource here with the
updated translation to remove the redundant summary prefix in the
advanced button.

Change-Id: Ib6db0c402d79a2d965e6060b1851d7b898ae3f94
Fixes: 112986476
Bug: 111195268
Test: manual
2018-08-23 16:27:46 +00:00
TreeHugger Robot
58cf5265cc Merge "Check StorageWizardFormatConfirm runs smoothly" 2018-08-23 15:56:18 +00:00
TreeHugger Robot
99e388613d Merge "Check getLastCustomNonConfigurationInstance() works well" 2018-08-23 15:52:00 +00:00
Mill Chen
5b05ebb46b Check StorageWizardFormatConfirm runs smoothly
- confirm that StorageWizardFormatConfirm works well after
  changing calling method from showAllowingStateLoss() to show().

Bug: 111150236
Test: manual
Change-Id: I0ad6c54aaa2572fc5798ede900e0a6d10d2fbd35
2018-08-23 20:58:04 +08:00
Yuchen Dong
20fb65fb84 Wrong Carrier Config values are used in ApnSettings for Multi SIM device
In ApnSettings, it always uses Carrier Config values of default subId.
So, wrong carrier config values are used for non-default subId.
To resolve this issue, read Carrier Config values based on subId.

Test: manual - Check Carrier Config values are read based on subId.
Bug: 111172301

Change-Id: I87e4cbb2e8020198fa03c2c84ef9bd10d5970341
2018-08-23 21:14:07 +09:00
SongFerngWang
c6d5a0cb6a SIM status page sync signal strength and service state behavior from systemUI
To make behavior consistent in the long run and refactor the code
into settingslib and call it from both Settings and SystemUI.

Bug: 110973964
Test: run testcase and do manual test - test case as below:
1. Testcase: packages/apps/Settings: -> ALL PASS
make RunSettingsRoboTests ROBOTEST_FILTER=SimStatusDialogControllerTest
2. Fake the service state's voice and data value,voice is out of service
and data is in-service,and then check service state and signal strength
at sim status page -> PASS

Change-Id: I4cc454b6b3d4242af4805e2878f9d46ce28649ad
2018-08-23 19:14:26 +08:00
Mill Chen
810496aa15 Check getLastCustomNonConfigurationInstance() works well
- make sure that StorageWizardFormatProgress runs smoothly.
- confirm that mTask has the same object id when changing the screen
orientation.

Bug: 111151113
Test: manual
Change-Id: I730c1b0f08e8a20a1aafa668fb02cd5a09fdd70a
2018-08-23 14:27:49 +08:00
hughchen
ab1bc299d8 Use BluetoothDevice.ACCESS_* instead of CachedBluetoothDevice.ACCESS_*
1. Use BluetoothDevice.ACCESS_* instead of CachedBluetoothDevice.ACCESS_*
2. Use BluetoothDevice.setPhonebookAccessPermission() directly.
3. Use BluetoothDevice.setMessageAccessPermission() directly.
4. Use BluetoothDevice.getPhonebookAccessPermission() directly.
5. Use BluetoothDevice.getMessageAccessPermission() directly.
6. Use BluetoothDevice.getSimAccessPermission() directly.

Bug: 112517004
Test: make -j42 RunSettingsRoboTests
Change-Id: Ibe6b207b891b9bd2b328a2e2c7264a9a78cb498f
2018-08-23 11:27:49 +08:00
TreeHugger Robot
f2225d20f7 Merge "Fix special access summary text" 2018-08-23 02:13:20 +00:00
TreeHugger Robot
2534aea3c1 Merge "Remove unnecessary check when setting permission summary" 2018-08-23 01:33:39 +00:00
jackqdyulei
a9fa4c1d05 Hook up feature flag to mobile network controller
Send intent to phone process if the flag is false.

Bug: 113069948
Test: RunSettingsRoboTests
Change-Id: Ie9726470e718144557f318fe7ea28e863d63679c
2018-08-22 17:58:09 -07:00
Fan Zhang
a2adcc57c8 Fix special access summary text
Use ApplicationState to count number of apps using unrestricted_data.

Change-Id: I083ff50e3e516536c87afa71d786b22e83d9a498
Fixes: 69313992
Test: robotests
2018-08-22 17:48:03 -07:00
Fan Zhang
e7c9744387 Remove unnecessary check when setting permission summary
Activity null check is probably necessary when this logic is written in
fragment, now the logic is in a controller where all dependencies are
self contained, so we don't need to check activity null here.

Change-Id: Ifa32e0d6563c411f19bec07f176765a7c94c8a40
Fixes: 112289663
Test: robotests
2018-08-22 17:06:58 -07:00
jackqdyulei
1becb7764d Fix the time flicker in battery settings page
Don't clear the text when reciever has been re-registered in
onResume(), where quickUpdate has been called.

Change-Id: Ie056dfb225a1bf6c224932b310a97499fc26e8f0
Fixes: 69312991
Test: RunSettingsRoboTests
2018-08-22 14:55:21 -07:00
TreeHugger Robot
b1fa21acd5 Merge "Import translations. DO NOT MERGE" 2018-08-22 19:22:33 +00:00
Felipe Leme
934278e050 Fixed NPE that crashes Settings.
It happens due to a race condition when the AutofillDeveloperSettingsObserver
is triggered by a settings change while the underlying preferences activity is
being finished.

Fixes: 113030661

Test: echo 'could not reproduce this issue'
Test: runtest --path \
      packages/apps/Settings/tests/unit/src/com/android/settings/core/\
      PreferenceControllerContractTest.java
Test: atest AutofillResetOptionsPreferenceControllerTest \
            AutofillLoggingLevelPreferenceControllerTest

Change-Id: I761195df13ac10705b9ce6b0c7546ec66a85d3ef
2018-08-22 11:58:52 -07:00
jackqdyulei
77b62b24c6 Update PBAP info for all pairing dialogs. DO NOT MERGE
This is a bug from ag/4210612, in which it only update PBAP info
for USER_ENTRY_DIALOG. So in other kind of dialogs it never upload
correct PBAP info to bluetooth backend.

This CL fix it by updating PBAP for all dialogs.

Change-Id: Ia39eee1acaece555e8e5a305ec2c803294d7efbd
Bug: 109842273
Bug: 72872376
Test: RunSettingsRoboTests
(cherry picked from commit 7015e20a55)
2018-08-22 03:23:26 +00:00
android-build-team Robot
aa58fc861a Snap for 4969136 from 12c9be1255 to pi-qpr1-release
Change-Id: Ia3120e8abaa9051294ad4aacacb455c8f45aebd3
2018-08-22 03:05:49 +00:00
Bill Yi
49b4967c41 Import translations. DO NOT MERGE
Change-Id: I6b36fe9f3af6121ff58f7c6b32713df7e66b3b8f
Auto-generated-cl: translation import
2018-08-21 18:59:52 -07:00
Adrian Roos
48bbd85bd1 [automerger skipped] DO NOT MERGE leverage default_theme string for display_cutout_emulation_device_default am: 12c9be1255 -s ours
am: c843167b3f  -s ours

Change-Id: I503f6e405a90d2e2b83794310da8f45bc4aa91c3
2018-08-21 18:44:07 -07:00
Adrian Roos
c843167b3f [automerger skipped] DO NOT MERGE leverage default_theme string for display_cutout_emulation_device_default
am: 12c9be1255  -s ours

Change-Id: Iaeffe4999365f975887b336598a7ab4bf078c7b9
2018-08-21 16:43:39 -07:00
Fan Zhang
161ff18a0b Merge "Remove getExtraAction() from DashboardFeatureProvider." 2018-08-21 23:13:56 +00:00
Adrian Roos
e3ba5f6dfa [automerger skipped] Merge "Cutout emulation: string changes and ordering" into pi-dev am: 8d82158036
am: 80c53bce68  -s ours

Change-Id: Ie247f02047b3d1f646dbdd762e94d9daac6ff18b
2018-08-21 15:07:59 -07:00
Adrian Roos
12c9be1255 DO NOT MERGE leverage default_theme string for display_cutout_emulation_device_default
Bug: 112876936
Test: manual
Change-Id: I1a41b96f9f19a5d5854eb1cce214616e303ca4f9
2018-08-21 15:00:57 -07:00
TreeHugger Robot
68e9d6157a Merge "Remove condition manager v1 code." 2018-08-21 21:32:35 +00:00
Adrian Roos
80c53bce68 Merge "Cutout emulation: string changes and ordering" into pi-dev
am: 8d82158036

Change-Id: I6d6c191e1dc511d2ab6e563f7bbea27962fe7b63
2018-08-21 13:59:45 -07:00
TreeHugger Robot
8d82158036 Merge "Cutout emulation: string changes and ordering" into pi-dev 2018-08-21 20:49:37 +00:00
Fan Zhang
a4b14bd9f1 Remove condition manager v1 code.
Change-Id: I866c1f7c493c6080ccf766ecfc8e6b00dafeecd9
Fixes: 112485407
Test: robotests
2018-08-21 13:21:14 -07:00
Adrian Roos
2061a11073 Merge "Cutout emulation: string changes and ordering" 2018-08-21 19:53:56 +00:00
TreeHugger Robot
0aec0caed3 Merge "Use title in ManagedServiceSetting dialogs" 2018-08-21 19:14:59 +00:00
TreeHugger Robot
7e5ed0540f Merge changes from topics "remove_tile_summary_cache", "remove_tile_title"
* changes:
  Use getSummary() to get tile summary text.
  Use tile.getTitle(context) to get tile title.
2018-08-21 19:01:31 +00:00