BluetoothAdapter will be null in some platform device, because they
don't have bluetooth feature. This CL add null check to avoid null
point exception on non-bluetooth feature platform device.
Bug: 152647633
Test: make -j42 RunSettingsLibRoboTests
Change-Id: Iba7f41796bd22163ab55a7f9ff4f44df6513754e
The Openroaming help button should show only when the getHelpUriString() value is not null.
Bug: 146669261
Test: Adjust unit test cases:
1. make RunSettingsRoboTests ROBOTEST_FILTER=WifiEntryPreferenceTest
2. make RunSettingsRoboTests ROBOTEST_FILTER=WifiSettings2Test
Change-Id: I3d59162b782d5aca5251a42009eac95432d446d9
- Use TextUtils.equal() to check string compare.
- Add test case.
Bug: 153144708
Test: make -j42 RunSettingsLibRoboTests
Change-Id: Iabaf4bc86bcf353e1dd86269c7add7690bae0bfe
-Set transfering state when trying to connect
-Reset to onTransferBluetoothDevice when failing connecting
-Add test cases
Bug: 152606143
Test: make -j50 RunSettingsLibRoboTests
Change-Id: Ifc4cb16a5d7d2b2c85b1171aa070651a5feaa4e2
Remove BluetoothMediaManager from SettingsLib, because we use Media
router to get bluetooth device.
Bug: 152722071
Test: Build pass
Change-Id: I72d5e10f1aa359b966a88b231da9b5b41efcd886
- This CL add condition that to list max number is 5
most recently disconnected device.
- Add test case.
Bug: 152724061
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I14adf136648bccbf3fb206d3c25d15f6ee223a1a
- Update devices list when onRoutesChanged() is called because
when volume is changed the onRoutesChanged() also be called.
We need to update devices list to let caller get correct
volume value.
- Send onConnectedDeviceChanged() when onTransferred() is called.
Bug: 151709228
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I64d14883123d7135537b6df01d24afc90db6849d
- This CL use the index to get system session instead of use
getClientPackageName().
- Use getSelectedRoutes() to identify which MediaDevice is
active device instead of use getClientPackageName().
Bug: 142912244
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I2302cb6bf992a4d679b1753dad3a5bd86b6a8159
-Do connect, then, do transfer
-Add test case
Bug: 151572454
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I886bb3eeb81c58ecc7a6161799d31b845d5b09e3
1. Add content description for the Openroaming help button.
2. Exclude the showing of help button when isSubscription is true (e.g., Passpoint network)
Bug: 146669261
Test: Add 2 unit test cases:
1. helpButton_whenCanManageSubscription_shouldSetCorrectContentDescription: to check content description is set correctly.
2. subscriptionEntry_shouldSetImageButtonGone: to check button should hide when isSubscription true.
Change-Id: I51e927de3b9d2b35096364fd93835e02b29004fc
Add button resource in WifiEntryPreference for launching OpenRoaming help page, shows according to the canManageSubscription API return true or not.
Bug: 146669261
Test: Add canManageSubscription_shouldSetImageButtonVisible unit test to check if button shows correctly or not.
Change-Id: I0becac9b15b5be3d4f9e5a9089cfd83652824789
- Use device type to show corresponding icon and name
- Add test case
Bug: 150834859
Test: make -j42 RunSettingsLibRoboTests
Change-Id: Iea74f18c8e4b3de8cad8c196004b515ac26b8c82
When constructing a LocalMediaManager by passing a LocalBluetoothManager
and a InfoMediaManager, assign the bluetooth adapter to the default.
Fixes: 151580099
Fixes: 151622615
Test: atest LocalMediaManagerTest
Test: manual
Change-Id: I29ac58bc3635901c713e91ab921d59bfbe58fba7
In the core functionality this changes everything including aidl's and
field names:
- Context
- ContentProvider
- AppOps*
- Package parsing
For the rest, this is a shallow change to only change to the changed
APIs. This keeps the change small-ish
Exempt-From-Owner-Approval: Rename
Fixes: 148792795
Test: TH
Change-Id: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
Merged-In: I2a2245fe76e09e62cb13d5785d2efb4a304ba54a
-Set device state by command and callback
-Add test case
Bug: 150903460
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I59e1942c58f97b2c4b3549b3154f407ac63e4290
- Implement fail callback to notify caller that transfer media is
failed.
- Do not update UI immediately when user doing transfer. Update
the UI when onTransferred() is called.
- Add test case
Bug: 150752219
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I431cfdcfa1efb95115fd83dfd81e4135e7085ad3
The pendingIntent can launch the management UI when users click on the item
(even the private activity in theschedules-provided app).
Fixes: 150754969
Test: make RunSettingsLibRoboTests -j
Change-Id: I23a95c37993f61d4a3dfcd70b11225b61633f7a6
Revert "Revert "Pass in active device to all BluetoothA2dp APIs ..."
Revert "Revert "Pass in active device to all BluetoothA2dp APIs ..."
Revert submission 10303287-revert-10253996-bt-a2dp-no-null-FQRXACWPIA
Reason for revert: Fixing breakage
Reverted Changes:
I4d9f2f819:Revert "Make sure calls to BluetoothA2dp APIs pass...
I771ca0d57:Revert "Need to now pass in active device instead ...
I76529c7a1:Revert "Pass in active device to all BluetoothA2dp...
I297bda68d:Revert "Require user pass in a non-null BluetoothD...
I525327959:Revert "Pass in active device to all BluetoothA2dp...
I1d8660b11:Revert "Pass in active device to all BluetoothA2dp...
Bug: 147287141
Test: Manual
Merged-In: I4d7d971af75bff8967fd807d34dad90c32e24eba
Change-Id: I4d7d971af75bff8967fd807d34dad90c32e24eba
- Use removeActiveDevice() to set phone as active device instead of use
setActiveDevice().
- Add test case
Bug: 150111193
Test: manually
Change-Id: Icfe6a50ba3fc807daf3445cfdd852787dc26e3c1
This CL include following change:
- Filter out non system route on getAllRoutes().
- Add releaseSession() to release session to stop playing media
on MediaDevice.
- Add test case.
Bug: 149896648
Test: make -j42 RunSettingsLibRoboTests
Change-Id: Ibed6e22a8b01d5e1a3c92a80f569b21f40441c27
This CL include following change:
- Add addDeviceToPlayMedia() to let MediaDevice can play current media
together.
- Add removeDeviceFromMedia() to let MediaDevice stop play media.
- Add getSelectableMediaDevice() to get the MediaDevice list that can be
added to current media.
- Add adjustSessionVolume() to let output switcher to change the volume
of RoutingSession.
- Add getSessionVolumeMax() and getSessionVolume() to get max and
current volume of session.
- Add ShadowRouter2Manager.java to implement test case.
- Add test case.
Bug: 142912244
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I1bda5a1c3a788778c384adce851fc2ffa8c1aa73
- This CL use getMostRecentlyConnectedDevices() to get the
most recently disconnected devices.
- Register CachedBluetoothDevice.Callback to oberve the device
connection state used to update UI.
- Update UI when receive onRoutesRemoved().
- Add getMostRecentlyConnectedDevices() and
setMostRecentlyConnectedDevices() in ShadowBluetoothAdapter.java
- Add test case.
Bug: 149267220
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I43660dc76cf5194cb24d83b5a17d4725fe750e6a
Revert "Pass in active device to all BluetoothA2dp APIs in packa..."
Revert "Pass in active device to all BluetoothA2dp APIs in packa..."
Revert submission 10253996-bt-a2dp-no-null
Reason for revert: b/149361880
Reverted Changes:
If43934374: Pass in active device to all BluetoothA2dp APIs in...
I22dd1ca36: Make sure calls to BluetoothA2dp APIs pass non-nul...
If6475af6f: Require user pass in a non-null BluetoothDevice to...
I9d0e2c89c: Pass in active device to all BluetoothA2dp APIs in...
I1faa6174d: Need to now pass in active device instead of null ...
I69a941a7e: Pass in active device to all BluetoothA2dp APIs in...
Change-Id: I297bda68da5023fd832201c485554d6bff05fa78
-All types of MediaDevice use the same MediaRoute2Info API
-Update test cases
Bug: 148756190
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I4a01aaa03c657b24e2c747f1202d968deb4d9932