summaryrefslogtreecommitdiff
path: root/packages/SettingsLib/src
AgeCommit message (Collapse)Author
2021-03-18Remove hidden LinkProperties methods accessesChiachang Wang
This commit resolves the hidden methods accesses for LinkProperties in Setting libs. Replace them with equivalent methods. Bug: 172183305 Test: m Change-Id: I66592aa9e0e5982c9fae51de3587c1e759f545ef
2021-03-17Replace hidden CM#isNetworkSupported() usageChiachang Wang
It's a refactor work for connectivity mainline module. The hidden methods access is no longer allowed, so the usage for isNetworkSupported() should be replaced. Settingslib use it to check if device support telephony service. Use alternative method to check if device supports such feature. Bug: 172183305 Test: make RunSettingsLibRoboTests Change-Id: I713c6410fcf9543d54d9b0057ed7b2ecdab201ee Merged-In: I713c6410fcf9543d54d9b0057ed7b2ecdab201ee
2021-03-15Add OWNER to SettingsLib/connectivity and wifi pathBetty Chang
Change-Id: I59a395a8a937cd2b0baa6b5f59524bc17e4f1d9c
2021-03-03Merge "Merge RQ2A.210305.007"Xin Li
2021-02-23Replace ConnectivityManager hidden symbols on SettingsLibpaulhu
Connectivity is becoming a mainline module in S, so ConnectivityManager hidden symbols can not be used for outside components. Besides, most Tethering relevant methods or variables on CM are migrated to TetheringManager. So replace all these methods or variables from ConnectivityManager to TetheringManager on SettingsLib. Bug: 180693313 Test: atest SettingsLibRoboTests Change-Id: I7ec35dc1d0ff106d7b8b77d23c8e925e717bd69c
2021-02-21Merge ab/7061308 into stage.Xin Li
Bug: 180401296 Merged-In: I4bf82035631ccff6d5a6144d6d9b1d203b076851 Change-Id: I1b5f3a672a55eaabba0f5389bab110b395553559
2021-01-05New OWNERS file for a new sub-directoryEtan Cohen
This sub-directory is not targeting the SysUI as such but is (currently) targeting the Settings app. Hence moving OWNERShip to the Settings team. Bug: 175084231 Test: N/A Change-Id: I52a21a4a5b42d32774a4d74792529280c5a15610
2020-12-08Add constant for dismiss Settings panel am: a4a79765e8timhypeng
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109611 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6a879e57493683718c157fbd36c37ae3095a65bf
2020-12-08Add constant for dialog dismiss am: e06eba62fbtimhypeng
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109607 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia6f5e3daa3e4f69c4db65ed10c0b5c05619001d9
2020-12-08Add getFeatures() for get device supporting features am: cd2af9a0e4timhypeng
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109605 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Idddbc0498f0abec1bc4967d4e1e8cab26e3c4910
2020-12-08Define strings for output switcher dialog in SystemUI am: 2f172d225ctimhypeng
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13109539 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib4d705076e940175e7e971fee79565821bf5a506
2020-12-08Add image utility methods am: 7e04788dd1timhypeng
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13115317 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ibcf7cfccc215966c39fa4caf0bec7b955551e039
2020-12-07Make AOD battery text field support BatteryDefender am: 30f92a367dWesley.CW Wang
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13090497 Change-Id: I1a8d82200b1dfccbf36adab91450cf7245df6c02
2020-12-07Make AOD battery text field support BatteryDefenderWesley.CW Wang
- Add overheat flag into BatteryStatus - Update AOD battery indication to support new state when BatteryDefender is enable Screenshot: https://screenshot.googleplex.com/BYyUYS7VGtyG3i7.png Bug: 173080412 Test: atest SystemUITests:com.android.systemui.statusbar.KeyguardIndicationControllerTest Merged-In: I74f32136ba034d2dea19f71e1e7cecc022cd9fa9 Change-Id: I9aee4e6408d762639818e7aac42a781f12cd69ff
2020-12-07Merge "Fix pixel buds icon is empty in output switcher" into rvc-qpr-dev am: ↵TreeHugger Robot
31534b741c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13162479 Change-Id: Iac1a78ec85d20bf244053e556ebdb276dd6bda59
2020-12-04Fix pixel buds icon is empty in output switcherHugh Chen
MediaDevice will set a color filter in the bluetooth device icon if the bluetooth device is not a fist pair device. But if apps didn't have permission to get a first pair device icon, MediaDevice will return a default bluetooth icon. In this case MediaDevice will not set the color filter in the icon then it causes the icon to become empty. This CL will use the drawable type to set the color filter instead of checking whether it is a first pair device. Bug: 174279607 Bug: 155822415 Test: make -j42 RunSettingsRoboTests Change-Id: Ic5c348900db3e79e669173ec4ceeaec4d6500e5f Merged-In: Ic5c348900db3e79e669173ec4ceeaec4d6500e5f (cherry picked from commit b4603fd3ffa0710fc9441dd69a97bebe94c12151)
2020-12-02Add constant for dismiss Settings paneltimhypeng
Bug: 155822415 Test: build pass Merged-In: I370cd51fa125f16541915ecb2c93fc600dfaac7d Change-Id: I370cd51fa125f16541915ecb2c93fc600dfaac7d
2020-12-02Add constant for dialog dismisstimhypeng
Bug: 155822415 Test: build pass Merged-In: Iaea9d73ddef77581098cca63cecec3ab5393d9ae Change-Id: Iaea9d73ddef77581098cca63cecec3ab5393d9ae
2020-12-02Add getFeatures() for get device supporting featurestimhypeng
-Provide supported features of the route Bug: 155822415 Test: build pass Merged-In: Id3a95f608018ecfae30dc0df9217548f90953403 Change-Id: Id3a95f608018ecfae30dc0df9217548f90953403
2020-12-02Define strings for output switcher dialog in SystemUItimhypeng
-SystemUI requires to launch Bluetooth pairing setting -Volume panel requires to launch SystemUI dialog Bug: 155822415 Test: build pass Merged-In: Ibb39b29aa383aab1df3e168b4f91ad1a40bf7682 Change-Id: Ibb39b29aa383aab1df3e168b4f91ad1a40bf7682 (cherry picked from commit 7d0e084058601c56dac558ae065cf3c5ac26b94a)
2020-12-02Add image utility methodstimhypeng
-Add convertCornerRadiusBitmap to edit bitmap cornor -Add createIconWithDrawable to create icon from bitmap Bug: 155822415 Test: manual test Merged-In: Idb770ce5f3b9aaa1288538aa1e51ffc0d9f34a6e Change-Id: Idb770ce5f3b9aaa1288538aa1e51ffc0d9f34a6e (cherry picked from commit 37017a739c885ffd4aa450a4605dbeaaa2e4f7f3)
2020-11-03Merge "Default dual tone alpha set to 0.3" into rvc-qpr-dev am: 6d5bc48a77Jay Aliomer
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12939677 Change-Id: Ieb2e1e1a95f387475eaad690595b1455f2c6bd90
2020-10-28Default dual tone alpha set to 0.3Evan Laird
In the event where a user of ThemedBatteryDrawable does not set the foreground / background colors explicitly, but rather uses a color filter, just set a default alpha for the background paint. Test: manual; set theme to any dualtone icon pack and visit settings battery page Bug: 162901879 Change-Id: If9becd40fbebeba15f3714e012623d3da61a7efe
2020-09-24Merge "Modify Wi-Fi SettingsLib owners file" am: d2aa5c594b am: daec1e65cd ↵Arc Wang
am: 5da80571ba am: 522ea42608 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432794 Change-Id: I4f08437d3833b3ffd1614d75a29177a1a6d51e77
2020-09-24Merge "Modify Wi-Fi SettingsLib owners file" am: d2aa5c594b am: daec1e65cd ↵Arc Wang
am: 5da80571ba Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1432794 Change-Id: I216b3dcfeb4033741ea987354625096b61d44d19
2020-09-24Merge "Modify Wi-Fi SettingsLib owners file"Arc Wang
2020-09-22Modify Wi-Fi SettingsLib owners fileArc Wang
Test: N/A. Change-Id: I683602342609152d43008141e2927d2be173c26a
2020-09-22Merge "Configure Bluetooth profiles displayed in settings" am: 22e174a788 ↵Treehugger Robot
am: d815784643 am: ce0de3705c am: 3735f6abe4 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1424829 Change-Id: Ieb7faee157941737c2ff13e0b8643ebb29f01b5c
2020-09-21Merge "Configure Bluetooth profiles displayed in settings" am: 22e174a788 ↵Treehugger Robot
am: d815784643 am: ce0de3705c Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1424829 Change-Id: I20e984ecc8515928c4702077f31b51abee4d114c
2020-09-16Display disconnected bluetooth devices only when local output device is ↵timhypeng
available. am: 8c35d00752 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12383619 Change-Id: I748e4b97b80c32b049ab1ae5046863a5590e2c64
2020-09-16Display disconnected bluetooth devices only when local output device is ↵timhypeng
available. -If media app does not support cast->phone transferring, local output audio device is unavailable. Disconnected bluetooth devices should be also unavilable. -These types are local output audio devices defined in MediaRoute2Info: TYPE_BUILTIN_SPEAKER TYPE_WIRED_HEADSET TYPE_WIRED_HEADPHONES TYPE_USB_DEVICE TYPE_USB_HEADSET TYPE_USB_ACCESSORY TYPE_DOCK TYPE_HDMI -Update test case Bug: 163095048 Test: make -j50 RunSettingsLibRoboTests Change-Id: I0ceea496d677e514cce0e773a8731bb4eeff874d (cherry picked from commit 254a0a2603a539c4b4fd2eec12bbec874553ee37)
2020-09-11Merge "Use WifiEntry#shouldShowXLevelIcon() to show X in level icon" into ↵Quang Luong
rvc-qpr-dev am: a2da145ff6 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12475283 Change-Id: I1910ca04565e936cd5054cb199aa074ead91cc0e
2020-09-11Merge "Use WifiEntry#shouldShowXLevelIcon() to show X in level icon" into ↵Quang Luong
rvc-qpr-dev
2020-09-10Configure Bluetooth profiles displayed in settingsJoseph Pirozzo
Two profiles were displayed on automotive targets at the wrong times, MAP was displayed for all devices, PBAP was displayed only when enabled. This updates those two profiles to appear in the profiles only when the service is enabled locally and the remote device supports the other half of the connection. Bug: 109783106 Test: pair with bluetooth devices that support (and don't support) MAP and PBAP, and verify settings slider appears when appropriate specifically when disabled. Change-Id: I62b8778517730076554ba996cee80862ce72539b
2020-08-31Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)Xin Li
Bug: 166295507 Merged-In: I3d92a6de21a938f6b352ec26dc23420c0fe02b27 Change-Id: Ifdb80563ef042738778ebb8a7581a97c4e3d96e2
2020-08-28Use WifiEntry#shouldShowXLevelIcon() to show X in level iconQuang Luong
Bug: 163627176 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=WifiEntryPreferenceTest Change-Id: Icc62c6e1b8a3e13bf8e37eeb358fb8532907a65c
2020-08-27[TelephonyMainline] Make getMergedSubscriberIdsFromGroup as System API and ↵zoey chen
rename it Bug: 145584030 Test: make Merged-In: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29 Change-Id: I6c077f3bee6bfd4d5b215aca4e9b19b719772b29
2020-08-27Merge "[SysUI] Add Low Quality QS indication" into rvc-qpr-dev am: 1c7dda8bafEtan Cohen
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12432107 Change-Id: Ie623ce0b5d4584beb78d608989d583a8776446f4
2020-08-27Merge "[SysUI] Add Low Quality QS indication" into rvc-qpr-devEtan Cohen
2020-08-26[SysUI] Add Low Quality QS indicationEtan Cohen
Add Low Quality QS indication to WiFi when it is still connected and validated but is not the default network (most likely an indication that it has a low score). Bug: 163627176 Test: visual (using `adb shell cmd wifi set-connected-score 49` to simulate a low score) Test: atest NetworkControllerWifiTest Change-Id: Ib0d0194b20b8cb824faebea1af5461c553be859e
2020-08-26Merge "[Wi-Fi] Show Pie+x Wi-Fi icon when a connected Wi-Fi is not default ↵Arc Wang
route" into rvc-qpr-dev am: f1677fcee5 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12355990 Change-Id: Ibdf770cca718d5805417c1bac34339a589a4a17e
2020-08-23[Wi-Fi] Show Pie+x Wi-Fi icon when a connected Wi-Fi is not default routeArc Wang
From Android 11, a connected Wi-Fi network may not be default route if rating provider thinks it has bad connection quality. Framework service will keep the Wi-Fi connection but uses other connection as default route. This change shows Pie+x Wi-Fi icon for a connected Wi-Fi network which is not default route. Bug: 163627176 Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=WifiEntryPreferenceTest make RunSettingsLibRoboTests ROBOTEST_FILTER=com.android.settingslib.UtilsTest Change-Id: Ia9c98db59a5eb61ae22a5e9249d1219443876e16
2020-08-14Merge "Fix WiFi + "x" stil visible" into rvc-d1-dev am: a270a22a23 am: ↵Etan Cohen
d91bcb9dbf Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12353922 Change-Id: Ib315843f0e1bc550b5e27a1607ffc054206b1e6e
2020-08-14Merge "Fix WiFi + "x" stil visible" into rvc-d1-dev am: a270a22a23Etan Cohen
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12353922 Change-Id: I168bcaa850da1750b41789a7d693a326f008c741
2020-08-13Merge "Remove bluetooth address from logs in SettingsLib" am: 4ad4ca07bb am: ↵Treehugger Robot
2918f0ef46 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1397949 Change-Id: I3ef3df5cb8c99c97770ced51a7c8e0dff5f629a7
2020-08-13Fix WiFi + "x" stil visibleEtan Cohen
The WiFi + "x" still seems to appear under some conditions - code path checking on changes in status not triggered correctly. Also remove one of the calls to the WifiManager#getCurrentNetwork. Partial fix to WifiManager#getCurrentNetwork blocking. Bug: 161011371 Bug: 163425287 Test: atest NetworkControllerWifiTest Test: visual inspection Change-Id: I112bdff85e905807c4e2826c127aeaedcdb03fd1
2020-08-12Remove bluetooth address from logs in SettingsLibChienyuan
Bug: 162912703 Bug: 163427379 Test: manual Change-Id: I25ad9363ff70ae175eb4c1a1b1d1209ff63dff23
2020-08-11Merge changes from topic "move-inflate-ss-to-cc"Sooraj Sasindran
* changes: Remove config_inflateSignalStrength Move config_inflateSignalStrength to CC
2020-08-10Move config_inflateSignalStrength to CCMattias Nilsson
Sim based customizations should not be resources because of two reasons: 1. The MCC/MNC value in AssetManager for Dual sim devices is undefined 2. There is no support for MVNOs. For dual sim devices there is only one value for MCC/MNC in AssetManager and that value is updated from multiple places without deciding if it should be the default voice sim card, the default data sim card or whatnot. This means that when frameworks is trying to decide what resource to use there is no guarantee that the resource that arrives is for the particular subscription we are asking for. MVNOs cannot be separated through only MCC/MNC but need more parameters like service provider, imsi, GID1 etc. MVNO support is available in CarrierConfig. When we now have support for ADCP updates of customizations and start using carrier id this is better placed in CarrierConfig, we then get support for MVNOs at the same time. Bug: 148483577 Test: Customize for sim card x and not for sim card y, insert both sim cards in a dual sim device and see the difference. Merged-In: I067d55b9ae5e1346dd3b3cd50a0097b05b100055 Change-Id: I067d55b9ae5e1346dd3b3cd50a0097b05b100055
2020-08-03Merge "Update language to comply with Android's inclusive language guidance" ↵Treehugger Robot
am: e803bb122f am: 728932de46 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1383977 Change-Id: I50422f84fddaf05ed8d5d94e1b93690b1eb5e1cd