Commit Graph

47382 Commits

Author SHA1 Message Date
Fan Zhang
23f8d59d02 Sort imports
Having consistent import order will reduce chance of merge
conflict between internal and external master

Test: rebuild
Change-Id: I0b1a170967ddcce7f388603fd521f6ed1eeba30b
2018-08-28 22:13:15 +00:00
Bill Yi
61a909c662 [automerger skipped] Import translations. DO NOT MERGE am: 994ae82c34 -s ours
am: 016843fa80  -s ours

Change-Id: I6532b8b1a57aa016227468720258c5ddec03850c
2018-08-26 13:05:18 -07:00
Bill Yi
016843fa80 [automerger skipped] Import translations. DO NOT MERGE
am: 994ae82c34  -s ours

Change-Id: I779083c8a8685a719d462160cfd8c8b4479a406c
2018-08-26 12:58:09 -07:00
Doris Ling
1d6a5e3ed0 [automerger skipped] Merge "Fix crash in clicking Default Home gear icon." am: 0c724f5181 am: 51a72d4c38
am: 323e54ddf5  -s ours

Change-Id: Ia039b43a5e4301e0b7451181ef4be95e18bd847d
2018-08-25 23:34:33 -07:00
Doris Ling
323e54ddf5 Merge "Fix crash in clicking Default Home gear icon." am: 0c724f5181
am: 51a72d4c38

Change-Id: I7ff6b0e405c3d87faa869bd53eee9983648ccf69
2018-08-25 23:24:51 -07:00
Doris Ling
51a72d4c38 Merge "Fix crash in clicking Default Home gear icon."
am: 0c724f5181

Change-Id: I53b6c18077d0bcf5a7bc13fcc425c6c1ca4143ad
2018-08-25 23:12:24 -07:00
Bill Yi
994ae82c34 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3e4f6e468679eec2ad1d8b821115e686e5a4c19a
2018-08-25 16:44:47 -07:00
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
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
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