Commit Graph

57149 Commits

Author SHA1 Message Date
Yanting Yang
85713d0841 Fix upper back button behavior of MobileDataUsageListActivity
Fixes: 141622125
Test: visual
Change-Id: I5a8fac02428fe811e2d0f340b1469ff948637623
2019-09-27 18:34:04 +08:00
Raff Tsai
f0526e4afb Fix print page starts multiple activities
- Finish old activity when user select new user profile to start a
new activity

Fixes: 140154015
Test: manual
Change-Id: I4f05af4dd8a489c4a563cb51428d8a1277f95cd3
2019-09-27 18:15:03 +08:00
Jason Chiu
86e98bf448 Execute getting battery info on the parallel executor
Getting battery info is time consuming and may block other tasks in the
same background thread.

Executing it on the parallel executor can improve app launch performance.

Bug: 141694556
Test: robotest
Change-Id: I55517e03961929c2b288e230ed474d45915d63fd
2019-09-27 17:33:08 +08:00
Kevin Chyn
a9c14ab4b1 Fix FaceSetupSliceTest
am: acde97cf90

Change-Id: Ied72d5ae4b891ef1c5600b8d416b016d0aede23e
2019-09-27 01:07:02 -07:00
Sunny Shao
9434d26237 Update the color of the preference category
Use the new attribute preferenceCategoryTitleTextColor to change the color of
the preference category.

Bug: 117402186
Test: manual view
Change-Id: If2df5529a63ff9cd96f242a9ea5f3dac053b0fd2
2019-09-27 13:57:04 +08:00
Kevin Chyn
acde97cf90 Fix FaceSetupSliceTest
Bug: 141380252

Test: make -j56 RunSettingsRoboTests

Change-Id: Ifb9a29d8f3115759a9e8e93e3721135c6ba229bf
2019-09-26 22:32:52 -07:00
joshmccloskey
3511ad89ca Added different flow for re-enrollment
am: bba7632f28

Change-Id: Ie5174848a3a35df197177b0aa2cf6c324813b8dd
2019-09-26 20:06:48 -07:00
joshmccloskey
bba7632f28 Added different flow for re-enrollment
In order to enable this new flow, a user must currently have an enrolled
face and the security setting face_unlock_re_enroll must be non-zero.

Ex.
1. Enroll Face.
2. adb shell settings put
(secure face_unlock_re_enroll|secure_face_unlock_must_re_enroll) 1
3. If settings is opened, close it.
4. Open settings
5. Verify the new flow appears.

Bug: 141380252
Bug: 141254937
Test: Verified that the user's face is deleted after clicking delete.
Test: Verified that the user can re-enroll after removing their face.
Change-Id: I2b36a0bda5cb10fb33dfb2a5627d8fa40f14fb7e
2019-09-26 23:54:59 +00:00
lucaslin
570f7dbc4b Improve the wifi description for the case of private DNS broken
Currently, users don't know if the wifi description shows
"No internet" means it really doesn't have internet access or no
internet is because of private DNS resolution failed. So, Add a
new description for wifi when private DNS is broken.

Bug: 113242081
Test: make -j44 RunSettingsRoboTests \
      ROBOTEST_FILTER=WifiDetailPreferenceControllerTest

Change-Id: I44a7e51cf76dc3f2a6b9583f226af6649f9b1f5f
2019-09-26 15:55:01 +08:00
Bonian Chen
1e719a5766 Merge "[Manual Network Selection] UX improvement" 2019-09-26 07:16:42 +00:00
TreeHugger Robot
d48189c564 Merge "Use SettingsLib Indexable" 2019-09-26 06:51:17 +00:00
Taesu Lee
d6d299a4d6 Merge "Fix to show eUICC preference in eng build" am: e825c30137 am: 9e81a2f4a8 am: c4c8f51bb0
am: 1c20ea5644

Change-Id: I531faa4430a0fa914b239383d97ef5af58c8bb0b
2019-09-25 23:35:06 -07:00
Taesu Lee
1c20ea5644 Merge "Fix to show eUICC preference in eng build" am: e825c30137 am: 9e81a2f4a8
am: c4c8f51bb0

Change-Id: I58dae46adec67c855a5e26542d75d15f116c37dc
2019-09-25 23:28:11 -07:00
Taesu Lee
c4c8f51bb0 Merge "Fix to show eUICC preference in eng build" am: e825c30137
am: 9e81a2f4a8

Change-Id: I777273344c8eb4f791756be7fcb9755a5bf9e8b8
2019-09-25 23:21:12 -07:00
Taesu Lee
9e81a2f4a8 Merge "Fix to show eUICC preference in eng build"
am: e825c30137

Change-Id: Ie6ca5a575e5c5caa4c841286421d037649765397
2019-09-25 23:14:10 -07:00
Treehugger Robot
e825c30137 Merge "Fix to show eUICC preference in eng build" 2019-09-26 05:53:10 +00:00
Bonian Chen
6472d299e9 Merge "[Owner] Add allenwtsu into Settings Telephony part" 2019-09-26 03:33:14 +00:00
joshmccloskey
a72663926a Added mandatory scrolling for FaceIntroduction am: af1e831ab7
am: ab5bf98c03

Change-Id: Ifc33c6e4f34f1f66bd48cc0f2e5f4e7c7e164e55
2019-09-25 12:43:03 -07:00
joshmccloskey
ab5bf98c03 Added mandatory scrolling for FaceIntroduction
am: af1e831ab7

Change-Id: I1877ce4650fd393d08e2ff1c15944df8fbd4d6d7
2019-09-25 10:58:00 -07:00
Bill Yi
12faf5a53c [automerger skipped] Import translations. DO NOT MERGE am: 500e7b2b71 -s ours am: 444eac4f4a -s ours
am: 5f968e68c7 -s ours
am skip reason: subject contains skip directive

Change-Id: I5e644b647bb95697d556727ca64dcaab5098b06c
2019-09-25 07:59:25 -07:00
Bill Yi
5f968e68c7 [automerger skipped] Import translations. DO NOT MERGE am: 500e7b2b71 -s ours
am: 444eac4f4a -s ours
am skip reason: subject contains skip directive

Change-Id: Ic8198769cb6d796e2add9491f538723fa3381d4c
2019-09-25 07:46:21 -07:00
Bill Yi
444eac4f4a [automerger skipped] Import translations. DO NOT MERGE
am: 500e7b2b71 -s ours
am skip reason: subject contains skip directive

Change-Id: I4a84a614577ee9558b05de1e30fe543ff2ece1d3
2019-09-25 07:30:56 -07:00
Bonian Chen
2d41dbf141 [Owner] Add allenwtsu into Settings Telephony part
Add allenwtsu into owner list of Telephony part within Settings apk

Bug: 0
Test: none
Change-Id: Ic2820bc113bc26fc0d162c42c7925477177127ae
2019-09-25 21:26:44 +08:00
Bonian Chen
cbb446e38a [Manual Network Selection] UX improvement
Original design abort a network scan when screen off and restart scan
when screen on.

Under the situation of network scan time longer than screen off time,
user may not get any result but keeping in scanning screen.

This CL improve this situation by avoiding stop and rescan for the case
user didn't leave this UI and previous scan is in progressing.

Bug: 140448617
Test: Manual testing leave and back to UI, and screen off-on.
Change-Id: I74ffa574dac932ca7fcd76411cad4ec0cc88f25f
2019-09-25 18:45:09 +08:00
Raff Tsai
966fa01423 Use SettingsLib Indexable
- Use SettingsLib Indexable
- Directly use resource id in getPreferenceScreenResId

Bug: 135053028
Test: roboletric
Change-Id: I05f493b55e8b6e2091301e9231ba5615215618e6
2019-09-25 18:24:56 +08:00
TreeHugger Robot
0102d98dc9 Merge "Error handler for start dialog from adb command" 2019-09-25 08:27:51 +00:00
Bonian Chen
b18061c305 Merge "[Settings Telephony] Carrier name API replacement" 2019-09-25 06:45:50 +00:00
hughchen
283ae5d1bb Error handler for start dialog from adb command
This CL added null check for the case that dialog
is started from adb command.

Bug: 129783237
Test: manually
Change-Id: I47d47cb5ddfe3487e2d616d1cf2ed08bd11d215d
2019-09-25 14:19:55 +08:00
TreeHugger Robot
1f8eee5798 Merge "Fix highlight animation" 2019-09-25 05:33:44 +00:00
Tsung-Mao Fang
f4e3f78fa0 Fix highlight animation
Set correct from-to color for highlight animation

Fixes: 141535322
Test: visual
Change-Id: I1cec8d57fca1435922ad196a4b314d8cee2be9f0
2019-09-25 11:35:28 +08:00
Bill Yi
500e7b2b71 Import translations. DO NOT MERGE
Change-Id: I0f9786915ebc5c168487e7a5386d4f2060d27a12
Auto-generated-cl: translation import
2019-09-24 18:54:26 -07:00
joshmccloskey
af1e831ab7 Added mandatory scrolling for FaceIntroduction
Test: Verified in SUW/Settings user must scroll through contents in
order to go to the next screen.
Bug: 141380294

Change-Id: I483ab6ae6a282c81ba2f2c4d1d9d1f21c6cb9453
2019-09-25 00:23:59 +00:00
Felipe Leon
e42ab42c5c Settings: fix apn_editor carrier_enabled summaryOff string
Change-Id: I44ccec73601806dc8facad122f1ab16ff3aca484
Signed-off-by: Felipe Leon <fglfgl27@gmail.com>
2019-09-25 00:43:17 +03:00
Bonian Chen
ed332c0829 Merge "[ManualNetworkSelect] Improve error handling" 2019-09-24 10:05:23 +00:00
TreeHugger Robot
818ad60218 Merge "Do not block UI when this page didn't have slice" 2019-09-24 09:57:50 +00:00
Daniel Huang
202b84b8df Merge "In sim1 APN settings interface and hot plug out/in sim2, APN information change to sim2's" am: 51cb777530 am: f28625bcf1 am: 1fec213233
am: f7b4dc1dc7

Change-Id: Iacb97f589587a06212591ce9a83f5eadba7b59f7
2019-09-24 02:51:19 -07:00
Daniel Huang
f7b4dc1dc7 Merge "In sim1 APN settings interface and hot plug out/in sim2, APN information change to sim2's" am: 51cb777530 am: f28625bcf1
am: 1fec213233

Change-Id: Ifed2aeb3759051ce1ddc490fb695b50642b76402
2019-09-24 02:45:00 -07:00
Daniel Huang
1fec213233 Merge "In sim1 APN settings interface and hot plug out/in sim2, APN information change to sim2's" am: 51cb777530
am: f28625bcf1

Change-Id: Ie151d421eae8321dc684f7d4a684f582fb60c3ac
2019-09-24 02:39:02 -07:00
Daniel Huang
f28625bcf1 Merge "In sim1 APN settings interface and hot plug out/in sim2, APN information change to sim2's"
am: 51cb777530

Change-Id: I7d6675734eed90cbfb0ccda46c047883e460962f
2019-09-24 02:32:29 -07:00
Daniel Huang
51cb777530 Merge "In sim1 APN settings interface and hot plug out/in sim2, APN information change to sim2's" 2019-09-24 09:21:51 +00:00
Raff Tsai
b722db9d41 Merge "Directly use BaseIndexableProvider" 2019-09-24 09:10:56 +00:00
Bonian Chen
7a4c679790 [Settings Telephony] Carrier name API replacement
Replacing TelephonyManager.getNetworkOperatorName() by
Obtaining carrier name from SubscriptionInfo.getCarrierName().

TelephonyManager.getNetworkOperatorName() only be used when there's no
SubscriptionInfo can be found.

Bug: 140443508
Test: Manual testing
  atest MobileNetworkUtilsTest
  atest OpenNetworkSelectPagePreferenceControllerTest

Change-Id: I7a86395c86d31fe2ba54c04ac16b1a0ebfc843f3
2019-09-24 07:59:56 +00:00
Bonian Chen
1b64578f3c [ManualNetworkSelect] Improve error handling
1. [batch mode] Support graceful app stop behavior
   Avoid thread crash when UI abort the request.
2. [incremental mode] Stop search UI earlier when error during API access
   Generate error instead of keeping UI in progressing
   when fail to access Telephony API

Bug: 139398483
Bug: 140448617
Test: atest NetworkScanHelperTest
Change-Id: I429f3aa2ef692c27100514faa413b16dbd2459d7
2019-09-24 07:58:42 +00:00
hughchen
d49de61f96 Do not block UI when this page didn't have slice
This CL before, if controller have UIBlocker interface
will going to blocker condition to make whole page
invisible for a certain time until slice is fully loaded.

This CL add the check condition that if the controller
have UIBlocker inferface but didn't have slice uri will
not go to blocker condition.

Bug: 141292712
Test: make -j42 RunSettingsRoboTests ROBOTEST_FILTER=DashboardFragmentTest
Change-Id: I79daae131654f8fd823a9c8f1be46ad6c7921908
2019-09-24 10:30:49 +08:00
TreeHugger Robot
2ced8d8f00 Merge "Use FooterPreference in xml to replace the header" 2019-09-24 01:51:46 +00:00
TreeHugger Robot
1e36a02406 Merge "Remove enum logic from callers of requestbugreport()" 2019-09-23 17:10:51 +00:00
Raff Tsai
ac3e0d0988 Directly use BaseIndexableProvider
- Add function getXmlResourceId, Fragments don't need to write
xml resource id twice.
- Remove getPreferenceControllers from Indexable.java. Because it will
move to SettingsLib later for other apps which don't need this function

Bug: 135053028
Test: robolectric
Change-Id: I1e74519aecdea3dde64a5aea79f08d766dbc0003
2019-09-24 00:35:52 +08:00
TreeHugger Robot
5ff9517f23 Merge "Developer option off must not affect laser sensor" 2019-09-23 15:07:13 +00:00
Abhijeet Kaur
d7e44c7b3a Remove enum logic from callers of requestbugreport()
Make callers use wrapper functions in ActivityManagerService.java.

The code to send broadcast to trigger API workflow (after checking the API
flag) is added in requestBugreport() in ActivityManagerService.java.
Remove that logic from this file.

Bug: 137825297
Bug: 141355059
Test: builds and full/interactive bugreports work as expected

Change-Id: Ibc305e4aca7d38fd4878b60f3f7f8c3274719c13
2019-09-23 13:47:20 +00:00
Sunny Shao
2c4827be08 Use FooterPreference in xml to replace the header
Fixes: 141450664
Test: manual test
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.enterprise
Change-Id: Ia6ec0e363b9a472ff104ffbc529856a21840af27
2019-09-23 17:29:06 +08:00