Clients can pass paths like "/sdcard" which don't map directly to
a real storage volume.
Bug: 141837797
Test: none
Change-Id: Iec110472e224c381e33dc9f8e60e1b10e2fbfc0e
Also improved Javadoc for constructors, including specifying
when exceptions are thrown.
Bug: 142347585, Bug: 144321109
Test: make update-api && Run cts test
Change-Id: I08b5725caa3d5af36b10425ef0b0b956a08e747e
Added following logics
- MediaRouter2 does not select the route anymore, but 'requests'
to the MediaRouter2Service.
- The request is sent to the MediaRoute2ProviderService.
- If the provider send the control hints, the route is now
'selected'. (The method for sending hints is not included in this CL)
- If the provider didn't send the control hints in timeout,
the selection request is cancelled.
Tests for this CL will be added when we introduce a new method
MediaRoute2ProviderService#sendControlHints()
(method name is not final).
Test: Builds successfully
Change-Id: I5aafcc29f9d39a88bac05b8e8ebae1280ef1f8fc
Add new audio mode MODE_CALL_SCREENING allowing call screening
to take place while other audio use cases are still active.
Also add API to indicate if the platform supports this audio mode.
Bug: 140384450
Test: make
Change-Id: I056f79580d9c7b4de5eabb6d8d8c917f39162bcd
This CL updates callbacks for MediaRouter2Manager such that
onRoutesAdded, onRoutesRemoved are added and onRoutesChanged is changed.
onControlCategories also is added to know when getAvailableRoutes() can
be called.
It also updated tests for that and add some helper methods to test
easily.
Test: atest mediaroutertest
Change-Id: I122ce8f8472e01284f13b8aec79e3b8e97fc712b
AudioAttributes.Builder.setFlags() is a public method and should only
allow to set public flags
Test: CTS AudioAttributesTest
Change-Id: Ib75e3487f5297f6a200ffe326c53a0f58458b51f
Retrieve audio HAL processes pids from service manager and send them
to AudioFlinger native service. This is needed to dump audio HAL process tombstones
and because audioserver process does not have the SELinux permission to
list services.
Bug: 141528385
Test: Force watchdog and verify tombstone creation
Change-Id: I3e35b8040779e041b8d8c2e72d1e650d6f8fe818
Annotate nullability of potential public methods,
which is noticed when preparing demos.
Test: build successful
Change-Id: If0438358cf88497ac7f120e1b3be274c90394acc
This CL revised callbacks for MediaRouter2 so that it gives
a list instead of a single route.
This will effectively reduce the number of invokings.
This CL also fixes binder call between media router service and media
router such that media router service notifies only changes of routes
instead of all provider information.
Following CLs will update manager callbacks as well.
Test: atest mediaroutertest
Change-Id: Ibbc23aa5f12f5450d44c81756e3fcefe3e0d7f4b
Currently when application calls ImageWriter.newInstance(Surface, int,
int), the default format of UNKNOWN is overridden to surface format in
Java side before being overridden again to user specified format (from
RGBA to IMPLEMENTATION_DEFINED). This breaks backward compatibility with
certain gralloc implementations.
Do not override UNKNOWN format in Java side.
Test: testWriterFormatOverride
Bug: 143637345
Change-Id: Ie61157bca11f623eff2b8c0ed2a988c86da07cb2