Commit Graph

78099 Commits

Author SHA1 Message Date
Sarah Chin
536cb60c65 Update ICC lock API methods
Test: atest TelephonyManagerTest
Bug: 171884262
Change-Id: Ia4ba222dfa7d7756a3675f75b3467d0265967516
2020-11-06 14:58:24 -08:00
Sarah Chin
3b3704d693 Update signal strength on ServiceState in service
Test: make RunSettingsRobotTests
Bug: 167643728
Change-Id: Ibf69f9e9ec2acafef1316069d37b8d2a27d7d4d7
2020-11-06 14:08:17 -08:00
TreeHugger Robot
200b28eb59 Merge "Specify explicitly FLAG_IMMUTABLE for PendingIntent" am: 59dd827de1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12968755

Change-Id: I85ef62136de4952c0ed7af2f1f54d16d4452b368
2020-11-06 19:42:47 +00:00
Jiashen Wang
5e59d54525 Merge "[SIM Dialog Migration] Migrate SIM enable dialog from LPA to Settings" am: 491d214644
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12952249

Change-Id: I422c3b64b0439a9f6ad1ad8b0d9653d4032d0880
2020-11-06 19:33:37 +00:00
Jeremy Goldman
729af6c9d0 Network Factory Device Reset defaults to not resetting the eSim profile.
Test: xml change, no test available.
Change-Id: Ifa5f209d7a0ed9d081fb8bbf7d34e9cddcc2f317
2020-11-06 10:13:58 +00:00
TreeHugger Robot
59dd827de1 Merge "Specify explicitly FLAG_IMMUTABLE for PendingIntent" 2020-11-06 09:42:47 +00:00
Mill Chen
5a347494d2 Update related UI if battery is not present
This change is to update the related UI in the battery page if the
battery is not present. This includes the following updates:
1. Update the summary of battery tile in the Settings homepage
2. Replace the battery level with "Unknown"
3. Replace the summary with help message in the battery page
4. Remove the battery meter icon

Bug: 171368508
Test: verify on an issue device
Change-Id: I892e0d137143160a0bce0c11ce9265120ebb8fd4
Merged-In: I892e0d137143160a0bce0c11ce9265120ebb8fd4
2020-11-06 17:36:27 +08:00
Mill Chen
1406e1820f Remove unused StorageSlice
Remove StorageSlice since it's never been used.

Fixes: 172208815
Test: robotest
Change-Id: Ib8eecc27b9ebdf9a741b36369e4dfaa245461939
2020-11-06 17:04:20 +08:00
Jiashen Wang
491d214644 Merge "[SIM Dialog Migration] Migrate SIM enable dialog from LPA to Settings" 2020-11-06 00:07:14 +00:00
Jiashen Wang
7840ae7569 [SIM Dialog Migration] Migrate SIM enable dialog from LPA to Settings
Migrates SIM enabling and DSDS dialog from LPA to Settings.
Design: https://docs.google.com/document/d/1wb5_hoBkZVbkXGNWHbx4Jf61swjfxsJzkytiTzJosYo/edit?usp=sharing
Bug: 160819390
Test: Manually tested eSIM profile enabling.

Change-Id: I9ce690a1594adfc90b62840819237acd54418469
2020-11-05 14:58:15 -08:00
Jason Hsu
cae272b2fa Merge changes from topic "redesignVariablesRole" am: 2b63def185
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12958215

Change-Id: I217cdbfc34e7bc4f5f0e9313d805b897a6939b75
2020-11-05 11:01:51 +00:00
Jason Hsu
2b63def185 Merge changes from topic "redesignVariablesRole"
* changes:
  Apply the new design of mUserShortcutTypesCache & mUserShortcutTypes in Magnification
  Redesign roles of variable mUserShortcutTypesCache & mUserShortcutTypes
2020-11-05 10:33:23 +00:00
jasonwshsu
ba7b4bb727 Apply the new design of mUserShortcutTypesCache & mUserShortcutTypes in Magnification
Bug: 158540780
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: I941a6e571a5a70f27032b82fcdc00f43b672168f
2020-11-05 14:24:15 +08:00
jasonwshsu
9f54ab9afa Redesign roles of variable mUserShortcutTypesCache & mUserShortcutTypes
* mUserShortcutTypesCache -> get value from savedInstanceState only
* mUserShortcutTypes -> use local variables to replace its mission

Bug: 158540780
Test: atest ToggleFeaturePreferenceFragmentTest
Change-Id: I1473f89ed743261f616e8d19733bae829c9dbb02
2020-11-05 14:24:09 +08:00
pihuei
1ad6bbad88 Use system day/night to switch theme instead of from intent extra. am: 55fb2b745d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12825438

Change-Id: I3e048c1b5e91e8c5fa9019ea5a8c69e166e00168
2020-11-05 05:43:23 +00:00
pihuei
55fb2b745d Use system day/night to switch theme instead of from intent extra.
Use value-night to give theme instead of directly from intent extra when Setup day/nNight mode enabled and in Setup flow

Before:
<vision settings>
https://hsv.googleplex.com/4837266235064320
<wifi dialog>
https://hsv.googleplex.com/5687053981319168
<lock screen with disabling button>
https://hsv.googleplex.com/4843506419892224
<lock screen with enabling button>
https://hsv.googleplex.com/5650348922372096
<fingerprint intro>
https://hsv.googleplex.com/5133769046491136
<fingerprint touch>
https://hsv.googleplex.com/5681937198874624
<fingerprint left touch>
https://hsv.googleplex.com/5767441676238848
<squeeze release>
https://hsv.googleplex.com/6632476812247040

After:
<vision settings>
https://hsv.googleplex.com/6213298875793408
<wifi dialog>
https://hsv.googleplex.com/6025790804197376
<lock screen with disabling button>
https://hsv.googleplex.com/5747461219942400
<lock screen with enabling button>
https://hsv.googleplex.com/5766700781797376
<fingerprint intro>
https://hsv.googleplex.com/6751334529236992
<fingerprint touch>
https://hsv.googleplex.com/5625963293442048
<fingerprint left touch>
https://hsv.googleplex.com/4518139360444416
<squeeze release>
https://hsv.googleplex.com/5220720579706880

Bug: 169734655
Test: robo test
Change-Id: I4aab843e28a932c7b823f36f1d8df1e5b2341f4e
2020-11-05 05:09:14 +00:00
TreeHugger Robot
42bc40a01d Merge "Add missed layout_below property for priority section." am: 9a1a35d316
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12961196

Change-Id: I4bcea374578541f906ccb6f7386c2b2dde6561ed
2020-11-05 03:10:11 +00:00
TreeHugger Robot
9a1a35d316 Merge "Add missed layout_below property for priority section." 2020-11-05 02:52:29 +00:00
Eugene Susla
f266bd3c30 Merge "Prevent non-system overlays from showing over notification listener consent dialog" am: 2fc8e09eca
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12977990

Change-Id: Ieebdacdcf9397418072a19c78c33179bc81cfa21
2020-11-04 17:38:39 +00:00
Eugene Susla
2fc8e09eca Merge "Prevent non-system overlays from showing over notification listener consent dialog" 2020-11-04 17:08:58 +00:00
TreeHugger Robot
7e944a6818 Merge "Use new strings for Wi-Fi hotspot toggle specific scenario" am: e7e0e5b831
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12965661

Change-Id: I818f8b75cd145db4ba448923d47d7bc3f0a807cd
2020-11-04 13:34:13 +00:00
TreeHugger Robot
e7e0e5b831 Merge "Use new strings for Wi-Fi hotspot toggle specific scenario" 2020-11-04 13:29:42 +00:00
Treehugger Robot
68588d7cdd Merge "Fix crash on "Connection preferences"" am: b75c952800 am: 3cda0e9872 am: 32129f14f5 am: e0347c87fd am: f8f8cc870f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1485157

Change-Id: I67c9d77815b2ff63e902d99aef958e4c179d0487
2020-11-04 10:12:30 +00:00
Treehugger Robot
f8f8cc870f Merge "Fix crash on "Connection preferences"" am: b75c952800 am: 3cda0e9872 am: 32129f14f5 am: e0347c87fd
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1485157

Change-Id: I447fd6bd9d9fd5bda6df97b01195adbf50caa6be
2020-11-04 09:59:42 +00:00
Hugh Chen
7d71081d45 Add condition to check case of accessory combinations
Before this CL, we only compare whether the value of function is
equal to accessory to ensure usb is in accessory mode. But in some
cases there are different accessory combinations, like
"accessory,audio source". It will make the condition return false
when encountering accessory combinations.

This CL will check whether the function will include accessory mode
to fix this issue.

Bug: 162451162
Test: make -j42 RunSettingsRoboTests
Change-Id: I7c80f02de5340799e292949608e19b86b187b982
2020-11-04 17:25:29 +08:00
Treehugger Robot
e0347c87fd Merge "Fix crash on "Connection preferences"" am: b75c952800 am: 3cda0e9872 am: 32129f14f5
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1485157

Change-Id: I46ad006bdb3700ac4cba29711db589e5afaca448
2020-11-04 09:18:32 +00:00
Treehugger Robot
32129f14f5 Merge "Fix crash on "Connection preferences"" am: b75c952800 am: 3cda0e9872
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1485157

Change-Id: Ia27ac5edeca976fbc0e34d60596566f4432e8f5c
2020-11-04 08:56:00 +00:00
Treehugger Robot
3cda0e9872 Merge "Fix crash on "Connection preferences"" am: b75c952800
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1485157

Change-Id: I329bb9cb76f9dddd02c3d339a7fc450f0e0b5698
2020-11-04 08:40:13 +00:00
TreeHugger Robot
c94278774d Merge "Add the explicitly mutable flag for creating a PendingIntent" am: ffc490f83f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12974795

Change-Id: I3a1e969387008a0f55ddc95d303340b46870a7f7
2020-11-04 08:40:01 +00:00
TreeHugger Robot
ffc490f83f Merge "Add the explicitly mutable flag for creating a PendingIntent" 2020-11-04 08:15:05 +00:00
Treehugger Robot
b75c952800 Merge "Fix crash on "Connection preferences"" 2020-11-04 08:14:27 +00:00
TreeHugger Robot
29852abb20 Merge "[Testing] To migration NetworkScorerPickerPreferenceControllerTest" am: 855fc1ef61
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12956715

Change-Id: I7ec39a56d296a32c467693c61e9925511f6ec2ce
2020-11-04 03:45:22 +00:00
TreeHugger Robot
01c6409987 Merge "Add the mutability flag to the pendingIntent." am: b1d340d007
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12974506

Change-Id: I5c160059abd6999a424874c559d7f7120211d6f8
2020-11-04 03:45:02 +00:00
TreeHugger Robot
855fc1ef61 Merge "[Testing] To migration NetworkScorerPickerPreferenceControllerTest" 2020-11-04 03:37:45 +00:00
TreeHugger Robot
b1d340d007 Merge "Add the mutability flag to the pendingIntent." 2020-11-04 03:11:41 +00:00
Hugh Chen
40d4e47b05 Add the explicitly mutable flag for creating a PendingIntent
- Android S+ to specify explicitly either FLAG_MUTABLE or FLAG_IMMUTABLE
  when creating a PendingIntent.
- Suggest to use the FLAG_IMMUTABLE as default. Change it to
  FLAG_MUTABLE while errors occur.

Fixes: 172207262
Fixes: 172207195
Fixes: 172205385
Fixes: 172204525
Fixes: 172205897
Test: build pass, manual test to paring blutooth device and doing
seamless transfer

Change-Id: Ic37b37bdbe6de6bdbad741985d3a920334240d80
2020-11-04 10:59:34 +08:00
Eugene Susla
85adbc4ba9 Prevent non-system overlays from showing over notification listener consent dialog
Bug: 170731783
Test: use a visible overlay, ensure it's gone when notification consent is open
Change-Id: I58e017982f385ffc0d0ba2174512490b1d83dd36
2020-11-03 14:24:35 -08:00
Jay Aliomer
4638f4f1fa Merge "Use ColorMatrixColorFilter in batterymeterview" into rvc-qpr-dev am: a759432bac am: 9afa792c12 am: d1b9b25295
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12940164

Change-Id: I1c08bee170f49cf5134d631d90588cc7bcb7f4b5
2020-11-03 21:27:51 +00:00
Jay Aliomer
d1b9b25295 Merge "Use ColorMatrixColorFilter in batterymeterview" into rvc-qpr-dev am: a759432bac am: 9afa792c12
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12940164

Change-Id: I538cf0108f522ee6aebe57cb7eb91b2feb754900
2020-11-03 21:02:20 +00:00
Jay Aliomer
9afa792c12 Merge "Use ColorMatrixColorFilter in batterymeterview" into rvc-qpr-dev am: a759432bac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12940164

Change-Id: I85a7473dc387759fab15956aba8a24233fe03861
2020-11-03 20:08:03 +00:00
Jay Aliomer
a759432bac Merge "Use ColorMatrixColorFilter in batterymeterview" into rvc-qpr-dev 2020-11-03 19:40:22 +00:00
Chloris Kuo
2251b5f894 Merge "Add flag to reset notification channel importance" am: e9d524ffc6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12901702

Change-Id: I035d6ccac125f745f1e1e9234639b229ea2ad7c1
2020-11-03 14:09:32 +00:00
Chloris Kuo
e9d524ffc6 Merge "Add flag to reset notification channel importance" 2020-11-03 14:07:45 +00:00
TreeHugger Robot
af7ad618cf Merge "Add missing PI flag" am: c988aa848b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12968171

Change-Id: I268c8f9b6ff75135cfd82b0de92faed731bd0a9a
2020-11-03 12:57:07 +00:00
TreeHugger Robot
c988aa848b Merge "Add missing PI flag" 2020-11-03 12:25:55 +00:00
Yi-Ling Chuang
ea92f4eb5e Add the mutability flag to the pendingIntent.
Starting Android S, PendingIntent should have a explicit mutability flag
to avoid vulnerability.

Fixes: 172207853
Test: 1. Make AdaptiveSleepSlice available on the homepage and click on it.
2. Play with the volume panel.

Change-Id: I9cd428b17f44f5215d8c06331d12a17f997ca557
2020-11-03 17:44:56 +08:00
Weng Su
ae3ef639d9 Use new strings for Wi-Fi hotspot toggle specific scenario
- The SW (Swahili) language is used for a different noun class and is
inappropriate in the context.

- Need to separate different strings for specific situations.

- Use new strings from SettingsLib resource

Bug: 168801172
Bug: 168733667
Test: Manual test
Change-Id: I0e0a688f54ca2ee1b4cd5049c7e0f3ff3112b127
2020-11-03 09:26:40 +00:00
Zoey Chen
179a8b15b3 Merge "[Provider Model] Use new entry xml of Network & Internet" am: af8faaaa4b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12938076

Change-Id: Ie4dc684adfcba523851e9481c127a7df8ccd65b8
2020-11-03 07:42:25 +00:00
TreeHugger Robot
02cce1867b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: e268d89b26 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12972036

Change-Id: I4bd56130754cbc68bce33620f70b36276b72995b
2020-11-03 07:41:57 +00:00
Zoey Chen
af8faaaa4b Merge "[Provider Model] Use new entry xml of Network & Internet" 2020-11-03 07:39:25 +00:00