Commit Graph

14635 Commits

Author SHA1 Message Date
Weng Su
5a916eaaf9 Fix the NPE issue in the Internet Settings
- Missing to remove the mRemoveLoadingRunnable in the onStop() function, which will cause the callback to run after the fragment is destroyed and encounter this NPE issue.

Bug: 193405782
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest

Change-Id: I48b85173db1e6689dd056ba71f2fac776ffabbc9
2021-07-14 14:27:39 +00:00
Menghan Li
1091dca586 Merge "Provides TC ID for accessibility framework feature for "about" and "learn more" part" into sc-v2-dev am: 7f907d35cd am: e8cba63525
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15175506

Change-Id: I4466b80721a6fe0356d120cef790dad6f6c86358
2021-07-14 12:12:06 +00:00
Menghan Li
e8cba63525 Merge "Provides TC ID for accessibility framework feature for "about" and "learn more" part" into sc-v2-dev am: 7f907d35cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15175506

Change-Id: Ie28863b4fe41b5d4c4e83c541be546aab13b3f68
2021-07-14 11:59:46 +00:00
Menghan Li
7f907d35cd Merge "Provides TC ID for accessibility framework feature for "about" and "learn more" part" into sc-v2-dev 2021-07-14 11:48:24 +00:00
Zoey Chen
ab8a922f77 [Provider Model] Redirect Settings Internet panel request to SystemUI.
From QPR, the panel should be launched from SystemUI, so redirect the panel to SystemUI

Test: make
Bug: 187779230
Change-Id: I5b4131c4d986399944c038f8bce0723fcb5ba3b3
2021-07-14 09:06:46 +00:00
Wilson Wu
9112e238a6 Merge "Remove direct IMMS dependency from DevelopmentTiles" 2021-07-14 09:00:31 +00:00
menghanli
bae720ffc3 Provides TC ID for accessibility framework feature for "about" and "learn more" part
Goal: Improve readability which is a bit difficult because of string concatenation for accurate translation.
Root cause: In some locales, framework features name would be a word rather than a product name. Hence it need to be in the different position in a sentence.
Solution: Use whole sentence to translate instead of concatenating the string could solve this issue.

Bug: 185478543
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AccessibilityFooterPreferenceControllerTest
Change-Id: Id198805329be9c773df87f38a074ae956e4d0cdb
2021-07-14 15:15:48 +08:00
SongFerngWang
5f8f44c720 Change the condition for showing "no connection"
The "no connection" should be shown in no data cell connection.

Bug: 193273081
Test: atest passed
 - SubscriptionsPreferenceControllerTest.java
 - ProviderModelSliceHelperTest.java
 - ProviderModelSliceTest.java
 - NetworkProviderWorkerTest.java

Change-Id: Ied8a34d13d4bfc81e9136e05ba41cbb4233c9ad8
2021-07-14 02:49:36 +00:00
Quang Luong
373b7cb089 Merge "Revert "Rename Enhanced MAC Randomization to Non-Persistent"" 2021-07-13 15:45:51 +00:00
Bonian Chen
0a21b821ac Merge "[Settings] Settings within each SIM not been displayed to the user" into sc-dev am: 92e82aa07e am: d72cf9a10b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15076790

Change-Id: I2e5e842cb54419ccda06e87d807d8b0ee03959ce
2021-07-13 15:15:40 +00:00
Bonian Chen
d0fabb37df Merge "[Settings] Settings within each SIM not been displayed to the user" into sc-dev am: 92e82aa07e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15076790

Change-Id: I3d36d901fe95e9f4e5ab09c8f1cbe606dc7427df
2021-07-13 14:58:00 +00:00
Bonian Chen
d72cf9a10b Merge "[Settings] Settings within each SIM not been displayed to the user" into sc-dev am: 92e82aa07e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15076790

Change-Id: I370e04ab8c7ebcda3ef40c3b858b2c24da9d9d10
2021-07-13 14:57:29 +00:00
Wilson Wu
a8021e3380 Remove direct IMMS dependency from DevelopmentTiles
Using ImeTracing instead of IInputMethodManager so we
can get rid of the direct dependency between Settings
DevelopmentTiles and IInputMethodManager.

Bug: 175742251
Test: Manually test ime winscope works properly
Test: make RunSettingsRoboTests ROBOTEST_FILTER="WinscopeTraceTest"
Change-Id: I87e6e841a50b671b7f99c7afff562f3b9a6e3db9
2021-07-13 18:02:41 +08:00
Bonian Chen
83b2253048 [Settings] Settings within each SIM not been displayed to the user
The display of content is in majority depending on the callback result
of SIM card (in order to display the content).

However, to reduce the number of access of SubscriptionManager and
improve performance, a proxy has been design in between to reduce the
traffic and the latency required.

Within this situation, content didn't get displayed when Activity get
restarted since Proxy avoid to reduce the traffic through reducing the
callback to the Activity and even not generating request for update when
Activity resume.

Bug: 188982508
Test: local & unit test
Change-Id: Ia3b946a853f87a469ce07a398f3811f605d38f1d
2021-07-13 06:58:10 +00:00
Bonian Chen
263c3eab44 Merge "[Settings] Hide subscriptions not existed within device" into sc-dev am: 9c1e8b7ccd am: 0cce02c985
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15220210

Change-Id: Iba5db461202a139d583f122bd4ef5048c0e20085
2021-07-13 06:30:35 +00:00
Bonian Chen
14e3cf37f7 Merge "[Settings] Hide subscriptions not existed within device" into sc-dev am: 9c1e8b7ccd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15220210

Change-Id: I17ab0779c169ec63959325a752abe9f20151155e
2021-07-13 06:21:28 +00:00
Bonian Chen
0cce02c985 Merge "[Settings] Hide subscriptions not existed within device" into sc-dev am: 9c1e8b7ccd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15220210

Change-Id: Ic019f1fb87a4f37c547c16aa6fb5189d108b3ff0
2021-07-13 06:17:04 +00:00
Daniel Chapin
e7cb2762f9 Revert "Rename Enhanced MAC Randomization to Non-Persistent"
Revert submission 15050857-RenameEnhancedMac

Reason for revert: Droidfood blocking Bug: 193375403
Reverted Changes:
I5d647a666:Rename Enhanced MAC Randomization to Non-Persisten...
I48a326f98:Update old terminology for Non-persistent Mac Rand...

Change-Id: Ic6ff02dad064f8d8c7dbaab51c658da12a4d8555
2021-07-12 22:54:21 +00:00
Bonian Chen
a239a6c53a [Settings] Hide subscriptions not existed within device
For non-active subscriptions, the one inserted in slot
but turned off need to be visible to the user. However,
the one un-plugged need to be invisble.

Since SubscriptionUtil#getSelectableSubscriptionInfoList() didn't cover all the cases required. Create this one to fit into the criteria required here.

Note: subscriptions with same group UUID will be displayed seperately.

Bug: 191228344
Test: local
Change-Id: Ia68c23b007164b7520456cb6c7427ca142558b59
(cherry picked from commit 75f1450bbf)
(cherry picked from commit 0726f263a8)
2021-07-12 17:32:59 +08:00
Bonian Chen
5d57ed1d51 Merge "[Settings] Rollback group UUID merging in SIM settings" 2021-07-12 08:45:58 +00:00
Bonian Chen
0726f263a8 [Settings] Rollback group UUID merging in SIM settings
Within origin design, subscriptions with same group UUID
are not merged together.

This is a fix which changing grouping by UUID part into a configurable
option which allows to be enabled in some other conditions.

Bug: 191228344
Test: local
Change-Id: I0101f4a51ec2342f059762f0e7d38bb4e93554cf
2021-07-12 14:59:28 +08:00
Quang Luong
34c97860f9 Merge "Rename Enhanced MAC Randomization to Non-Persistent" 2021-07-09 14:55:57 +00:00
TreeHugger Robot
bdbbadf046 Merge "Fix it will auto switch back to "No data transfer" after selecting "USB Tethering"" into sc-dev am: b4dccf9b8e am: 7cbff10736
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15221930

Change-Id: Ia6407c21cb162fcc32f2891ae4e548f9b1a10896
2021-07-09 08:36:16 +00:00
TreeHugger Robot
40785a0bd7 Merge "Fix it will auto switch back to "No data transfer" after selecting "USB Tethering"" into sc-dev am: b4dccf9b8e am: d6dbc7a944
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15221930

Change-Id: Ie4d9b008ac21e51d99f4f5baf8c1f1bae565e09a
2021-07-09 08:35:51 +00:00
TreeHugger Robot
7cbff10736 Merge "Fix it will auto switch back to "No data transfer" after selecting "USB Tethering"" into sc-dev am: b4dccf9b8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15221930

Change-Id: I706d0ad598acd587e616903a9242c10c29078ab8
2021-07-09 08:23:35 +00:00
TreeHugger Robot
70edc357a9 Merge "Fix it will auto switch back to "No data transfer" after selecting "USB Tethering"" into sc-dev am: b4dccf9b8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15221930

Change-Id: I84efecbce455f3d0879db85b7a313ae1d0a14367
2021-07-09 08:22:13 +00:00
TreeHugger Robot
b4dccf9b8e Merge "Fix it will auto switch back to "No data transfer" after selecting "USB Tethering"" into sc-dev 2021-07-09 08:07:37 +00:00
YUKAI HUNG
da6dd6e630 Merge "Remove items from not allowed show summary list (legacy rule)" into sc-v2-dev am: a1e610b689 am: 04dc2ec138
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15236915

Change-Id: I8727082a70f36d9ca172386b7446c56ee50d8765
2021-07-09 07:11:55 +00:00
YUKAI HUNG
04dc2ec138 Merge "Remove items from not allowed show summary list (legacy rule)" into sc-v2-dev am: a1e610b689
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15236915

Change-Id: I8c8c63740bb1e7c270bea039ceaad4939ec8420d
2021-07-09 06:56:09 +00:00
YUKAI HUNG
a1e610b689 Merge "Remove items from not allowed show summary list (legacy rule)" into sc-v2-dev 2021-07-09 06:43:14 +00:00
ykhung
b6d95d1c4f Remove items from not allowed show summary list (legacy rule)
Bug: 191991503
Test: make SettingsRoboTests
Change-Id: Ieadc97eddcbd149e04ec85477859a9b3ffd8f06b
2021-07-09 11:13:26 +08:00
Hugh Chen
112a638cba Fix it will auto switch back to "No data transfer" after selecting "USB Tethering"
Before this CL, the USB option didn't handle whether FUNCTION_NCM
existed in the intent extra when tethering was started which resulted
in some devices that enable NCM will have incorrect UI.

This CL added a condition to check whether FUNCTION_NCM existed in the
intent extra or not to fix this UI issue.

Bug: 192046902
Test: make -j42 RunSettingsRoboTests
Change-Id: Icb8548409930d59dc3a08c25e418c9a1ddb9f33c
2021-07-09 10:52:50 +08:00
TreeHugger Robot
172e8d0341 Merge "Include new "dex2oat64" process to map into App Optimization name" into sc-v2-dev am: 550187d84b am: c7fe39e102
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15229962

Change-Id: Idfcee2bc4834280b7c578d29d838d773957a7670
2021-07-08 23:00:12 +00:00
TreeHugger Robot
c7fe39e102 Merge "Include new "dex2oat64" process to map into App Optimization name" into sc-v2-dev am: 550187d84b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15229962

Change-Id: Ic7c04f4cb93ebed1aeae86dc651d68577123721c
2021-07-08 22:46:13 +00:00
TreeHugger Robot
550187d84b Merge "Include new "dex2oat64" process to map into App Optimization name" into sc-v2-dev 2021-07-08 22:32:13 +00:00
Pyuli Naithani
df5a3d813c Merge "Add stats log for sensor privacy." into sc-dev am: c0302ab306 am: 00fbe6e502
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15193345

Change-Id: I66b0759e95f3089706890cbe160c5416bd1b54cd
2021-07-08 17:54:08 +00:00
Pyuli Naithani
0c6cfcfb55 Merge "Add stats log for sensor privacy." into sc-dev am: c0302ab306 am: c84cc4e1fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15193345

Change-Id: I0b2b3f4d1aad8c426d20126ad70863cacad55652
2021-07-08 17:39:33 +00:00
Pyuli Naithani
8ca543ca17 Merge "Add stats log for sensor privacy." into sc-dev am: c0302ab306
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15193345

Change-Id: I9121f7f700154679bf0320b3d0fa43430966b4aa
2021-07-08 17:31:21 +00:00
Pyuli Naithani
c0302ab306 Merge "Add stats log for sensor privacy." into sc-dev 2021-07-08 17:24:52 +00:00
ykhung
d76c12f69c Include new "dex2oat64" process to map into App Optimization name
Bug: 191991503
Test: make SettingsRoboTests
Change-Id: Ib392ed3adf7fe37fdaf73076dd1c3cd8361468eb
2021-07-09 00:19:31 +08:00
SongFerng Wang
1c1a6e5126 Merge "Network selection add NGRAN when device support SA" into sc-dev am: a73d199d5e am: 91bf9af2ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15210394

Change-Id: I03e795d818cee49ec1c0a2d927eee4369bb513f1
2021-07-08 09:08:25 +00:00
SongFerng Wang
2950401a1c Merge "Network selection add NGRAN when device support SA" into sc-dev am: a73d199d5e am: 0309aad720
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15210394

Change-Id: I48de91db9d09c743421339c3ccaeafbacd742e71
2021-07-08 09:07:56 +00:00
SongFerng Wang
9f06b36b3b Merge "Network selection add NGRAN when device support SA" into sc-dev am: a73d199d5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15210394

Change-Id: I1dfb9507da126f8e25ba12535581d40801837d89
2021-07-08 08:30:06 +00:00
SongFerng Wang
a73d199d5e Merge "Network selection add NGRAN when device support SA" into sc-dev 2021-07-08 08:17:19 +00:00
Bonian Chen
a229b29737 Merge "[Settings] Settings within each SIM not been displayed to the user" 2021-07-07 09:03:45 +00:00
SongFerngWang
193f97c7ba Network selection add NGRAN when device support SA
Bug: 187148937
Test: build pass.
atest NetworkScanHelperTest (pass)

Change-Id: I1ed3eae3bda39eb702bc135b0c698f8df7c280d7
2021-07-07 15:36:42 +08:00
Linus Tufvesson
c96f60e0cb Merge "Make WifiDppEnrolleeActivity launches explicit" 2021-07-07 07:18:59 +00:00
Bonian Chen
8e3ff612d2 Merge "[Settings] Hide subscriptions not existed within device" 2021-07-07 07:03:10 +00:00
Bonian Chen
75f1450bbf [Settings] Hide subscriptions not existed within device
For non-active subscriptions, the one inserted in slot
but turned off need to be visible to the user. However,
the one un-plugged need to be invisble.

Since SubscriptionUtil#getSelectableSubscriptionInfoList() didn't cover all the cases required. Create this one to fit into the criteria required here.

Bug: 191228344
Test: local
Change-Id: Ia68c23b007164b7520456cb6c7427ca142558b59
2021-07-07 07:02:55 +00:00
Pyuli Naithani
c9dfa59d7c Add stats log for sensor privacy.
Test: statsd_testdrive 381

BUG: 192269258

Change-Id: I69e766b789b4b4a6ca0ad26b3a312baca3dbccd2
2021-07-07 05:26:51 +00:00