- The WifiManager.getWifiState() is a blocking API, It may not be
suitable for use on the UI thread.
- To avoid blocking the UI thread, we should cache the Wi-Fi state
from the WIFI_STATE_CHANGED broadcast to return immediately.
Bug: 226039078
Test: manual test
make RunSettingsLibRoboTests ROBOTEST_FILTER=WifiStateWorkerTest
Change-Id: Ia0443824975f01099e52f777c15468f30285f4c1
- Modify the Start API and Stop API
- Add the ProgramInfo, BroadcastCode, AppSourceName, BroadcastId
- Add the BluetoothLeBroadcast.Callback
Bug: 227511707
Test: build pass
Change-Id: I2a14bd16b39f11adbcaad63db128ab44ff9dc9da
This reverts commit 35b45a774d.
Reason for revert: Some carrier require to see SIM phone number in Settings UI. Revert for now and need to think of a better UI.
Bug: 228424584
Bug: 159459637
Test: build and manual test
Change-Id: I9381f7cdc6343a2e3b886d58f732587a2c8d8b7e
- The original design would result in NPE if the user did not have any
restrictions.
- Refine to use UserManager#hasUserRestriction instead of
UserManager#getUserRestrictions.
Bug: 229350205
Test: manual test
make RunSettingsRoboTests ROBOTEST_FILTER=WifiSettingsTest
make RunSettingsLibRoboTests \
ROBOTEST_FILTER=WifiEnterpriseRestrictionUtilsTest
Change-Id: Iec60e3a1c2778fc89596b3c4d28a34604adfdfb8
Revert "fix broken build on erorrprone"
Revert submission 17730702-fixErrorProneBuild
Reason for revert: Breaks Launcher3 unbundled build by using hidden library in main Launcher code
Reverted Changes:
Id0ce4d308:Change version checks to use SdkLevel.isAtLeast*
I8fc801b00:fix broken build on erorrprone
Change-Id: I8e9a80dd9e9f79c30635cc6be8e3efb2ebbf42af
Previously, the bitmap for the user icon would stay in memory even when
the phone was unlocked. Now, the bitmap is cleared whenever the phone is
unlocked to save memory. This change only affects the user-icon shown on
the lockscreen next to the clock.
Bug: 202868702
Test: KeyguardQsUserSwitchControllerTest
Change-Id: Iec6a57adb65181fcef65489c248db77930f566bb
- New DISALLOW_CHANGE_WIFI_STATE user restriction is supported from T
Bug: 203168097
Test: manual test
make RunSettingsLibRoboTests \
ROBOTEST_FILTER=WifiEnterpriseRestrictionUtilsTest
Change-Id: I7912a68a538197469836f208b5354f4ec4d122cd
1. LocalBluetoothLeBroadcast implements the LocalBluetoothProfile.
2. LocalBluetoothLeBroadcastAssistant implements the LocalBluetoothProfile.
3. LocalBluetoothProfileManager new the LocalBluetoothLeBroadcast and
the LocalBluetoothLeBroadcastAssistant
Bug: 227511707
Test: build pass
Change-Id: Ia8932b97192603a3c7d1e06d8f97eb3158c05b45
Currently, injected service could return null or empty string for summary, but it could cause settings item shift around on phone.
Use a not empty placeholder string could solve this issue.
Bug: 183471902
Test: On Pixel Phone
Change-Id: I14538f4038c5ddbf45b6d42ad0c00bab487e835a
information so that we display the correct icon.
Bug: 223517312
Test: atest MediaDeviceManagerTest, MediaMuteAwaitConnectionManagerTest
Change-Id: If09dce8b2cec5cdd223c46050385ab0aab522d4b
1. make Phone with higher ranking
2. add new state with "selected" for cast device
Test: Verified on device
Bug: 224870434
Bug: 224780609
Change-Id: Ief19cf0946f6df1193c0ed3e09e76ea60bfea07c
This change should only take effect when there's any route which is
groupable but not transferrable.
Bug: 223614810
Test: Verified on device
Change-Id: I39a1047ec7e607835b8998672b94f39f9c2c30b7
Many multi-user strings were duplicated between SettingsLib, Settings,
System UI and Car projects. This CL removes those duplicates.
List of singularized strings: "Guest", "New user", "Add new user?",
"When you add a new user....", "Add user", "Remove guest?",
"Too many incorrect attempts...."
Bug: 191386817
Test: NA
Change-Id: I3689cfdbc3e0fc2f6a773941d044d8b32a762e88
* changes:
RESTRICT AUTOMERGE Refactor device policy resource APIs to a separate class
RESTRICT AUTOMERGE move device policy resource APIs to a separate class
RESTRICT AUTOMERGE hide device policy resources constants
- The issue device is not supported the Telephony feature which will
cause related sub-funcions to be unavailable.
- If there has no Telephony feature supported, then bypass related
sub-functions.
- Use the same solution for Wi-Fi feature related sub-functions.
Bug: 223747479
Test: manual test
make RunSettingsLibRoboTests \
ROBOTEST_FILTER=ConnectivitySubsystemsRecoveryManagerTest
Change-Id: I17b9728c7dc2ee836bf2653922b47ff66afa7857