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
BluetoothMap APIs, disallow null device input for setConnectionPolicy,
getConnectionPolicy, and getConnectionState in BluetoothHidHost, and
BluetoothMap implements AutoCloseable, its close() method is public, and
utilizes a CloseGuard.
Bug: 149238030
Test: Manual
Merged-In: I8add9e26afcaf1a988c15e3cc7f8c446491f0686
Change-Id: I8add9e26afcaf1a988c15e3cc7f8c446491f0686
true on successfully setting the connection policy instead of on
disconnection. It also now indicates that if
BluetoothProfile#CONNECTION_POLICY_FORBIDDEN is passed in, the profile
will be disconnected.
Bug: 148966894
Test: Manual
Change-Id: I881c240fcbce0c8148625c35e6e88ab02ea7122f
Bug: 140788621
Test: A special build that puts the PropertyInvalidatedCache in verification
mode was loaded on the device. Then one iteration of MPTS was executed. No
cache inconsistencies were found and no SELinux violations (associated with
the binder cache) were found. The number of cache misses was approximately
10% of the total binder calls. Then the phone was cycled through bluetooth
pairing and unpairing events.
Change-Id: Ia494f0ad58b889130052e5beb3bec6d1011508ef
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
* A cache for isOffloadedFilteringSupported().
* A cache for getProfileConnectionState().
Bug: 140788621
Test: A special build that puts the PropertyInvalidatedCache in
verification mode was loaded on the device. Then one iteration of MPTS
was executed. No cache inconsistencies were found and no SELinux
violations (associated with the binder cache) were found. The number of
cache misses was approximately 15% of the total binder calls. A second
test was run in which bluetooth headphones were connected and
disconnected. Then bluetooth itself was disabled and then enabled. The
caches were invalidated as expected and no errors were uncovered.
Change-Id: Icfad1071725e2d1e320fd252a49f0c4ae8ce6ad0
instance of the class, add intdef to return value of
BluetoothPbap#getConnectionState, and move all SystemApis to require
the BLUETOOTH_PRIVILEGED permission
Bug: 148966894
Test: Manual
Change-Id: I4a798b0a16ab839f2047fc58f21c420cc99b6db6
BluetoothAdapter#disconnectAllEnabledProfiles updated to require
BLUETOOTH_PRIVILEGED permission and update documentation to indicate
connection and disconnection is asynchronous
Bug: 147321746
Test: Manual
Change-Id: I961f02a539a247b1397ce4f478b9dc804d9973ab
Bug: 140788621
Test: A special build that puts the PropertyInvalidatedCache in verification
mode was loaded on the device. Then one iteration of MPTS was executed. No
cache inconsistencies were found and no SELinux violations (associated with
the binder cache) were found. The number of cache misses was approximately
3% of the total binder calls. All binder calls went through the cache.
Repeated the test with a work profile installed (to provide a second user
ID).
Change-Id: I2f1d0b6d61dedc5d1badb06a20c5932eca415904