It turns out that AppRestrictionsHelper#addSystemImes() has always
queried for the owner user's system IMEs despite the fact that it's
trying to query system IMEs for a restricted profile user. This
behavior has not changed since its beginning [1].
Most likely people would not have noticed this though, because:
* Settings app does not show a menu item to create a restricted user
on phone devices.
* Even if it's available, most people do not use restricted users.
* Even if someone created a restrected user, most likely the owner
user and the restrected user share the same set of system IMEs,
which are defined as "pre-installed" IMEs.
Anyway, AppRestrictionsHelper#addSystemImes() will start using a newly
introduced @hide API IMM#getEnabledInputMethodListAsUser() so that it
can query for the right user's system IMEs, instead of querying owner
user's ones.
[1]: Ifced841ad3bfbde33d2403356216dd1749b7fa9a
a7a93784d1f9798d37cb618def1a558f8d626f0f
Bug: 122164939
Test: atest SettingsLibTests:AppRestrictionsHelperTest
Test: manually done as follows.
1. Build aosp_taimen-userdebug and flash it.
2. adb shell pm create-user --restricted test_profile
3. adb shell am start -a android.settings.USER_SETTINGS
4. Click the gear icon next to the "test_profile" user.
5. By adding a log, make sure that IMMS#getInputMethodList()
gets called with userId = 10.
Change-Id: I5b50b5fe143c74c87b331bda3e5bcc4d6248436e
Special case for connected Passpoint network summary has been removed.
Text should now display "Connected" instead of "<SSID> by <ProviderName>
Bug: 118705403
Test: manual, build and visual check
Change-Id: I458ea3df35fc942b9f920213ef5310d00ffe1747
Instead of only allowing ActionbarShadowController to attach to
RecyclerViews, we allow it to attach to any View, as we can listen to
scroll events on them.
Test: See correct behavior when scrolling app info.
Test: atest ActionBarShadowControllerTest
Change-Id: I286a83599bd60ca0a592ee49198b284c5561ec58
- since we might want to get aggregated usage data for multiple uids,
change the implementation to allow adding multiple uids instead of
always querying for a single uid.
Change-Id: I26ba07042f8a0a0800e6d0ad0938da70691c3500
Fixes: 122200400
Test: make RunSettingsLibRoboTests
OSU status and failure messages have been simplified to be more
user friendly rather than reflect every status/failure code.
Test tracker for adding robolectric tests: b/122849296
Bug: 118705403
Test: manual, build and visual check
Change-Id: I8762c60d959f2d8500fbd1434e0f289d075bdbdb
And remove dependency to settingslib.core.Lifecycle. This class use
androidx.Lifecycle instead.
Bug: 123311100
Test: robotests
Change-Id: I80bbbf4bc2759e574d8dabf1799b3bded216f2f3
This reverts commit 0a20eda58d.
Reason for revert: Enabling feature by default. Global flag moved to OEM configurable overlay instead
Bug: 123408542
Test: unit tests
Test: Manually verify developer option is gone
Change-Id: I34bfedba786e53426a941ad12ea7c7b119987420
Use the wifiInfo field to attribute the app that provided the network
suggestion or specified that provided the connection.
Bug: 115504887
Bug: 113878056
Test: atest AccessPointTest WifiTrackerTest
Test: Manual UI verification
Change-Id: Ibea13207622245efc198dc51957cac9f6e2dc526
Previously, the show_opt_in and enabled flags were conflated to
basically mean the same thing. Because we are now distinctly making
show_opt_in refer to showing a toggle to opt into the feature in SUW and
enabled to mean the default enabled status, we need to change the
utility method for querying the default enabled status.
Bug: 122461924
Test: RunSettingsLibRoboTests
Change-Id: I9802d307597d90514e7dc6631998daa1d2fab253
Merged-In: I9802d307597d90514e7dc6631998daa1d2fab253
The return value of this API could be null after our decision for
API change as in b/121179845.
Bug: 121179845
Test: make ROBOTEST_FILTER=CrossProfileCalendarPreferenceControllerTest -j40 RunSettingsRoboTests
Change-Id: I834ccf83ecca8959d95288ac4fa1473d12eabfca
- change the detail adapter start time to be 4 weeks before end time,
even if it is earlier than history start time, to be consistent with
other places that the cycle period is shown.
Change-Id: I62846022a10597f9e8618907500613357a1f6551
Fixes: 121045978
Test: make RunSettingsLibRoboTests
This widget only shows title and empty text
when there is no any app view shown.
Test: visual, robotest
Bug: 120873123
Change-Id: I2079c1e47de5b7fb2d4ea4740dfba4809375c7c1
- Add onConnectedDeviceChanged() callback to notify MediaDevice
to change their connect state.
- Add onServiceConnected() to handle profile not ready
case. The profile may not ready when calling startScan().
Device status are all disconnected since profiles are not ready to connected.
In this case, we observe onServiceConnected() in LocalBluetoothProfileManager.
When A2dpProfile or HearingAidProfile is connected will call buildBluetoothDeviceList()
again to find the connected devices.
Bug: 121083246
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I6d8bacb9bbd2221eb8c97bbd0419b4e8c9d8dfea