add support for model parameter control APIs with THRESHOLD_FACTOR
as the first supported parameter
Bug: 141929369
Test: Tested manually with test app and confirmed with GTS test
gts-tradefed run gts-dev -m GtsAssistIntentTestCases
Change-Id: I06874fcf2ae2ef8796e7c52c4475252e8a026e2c
Add audio usage for call assistant use cases.
Used by apps playing over call uplink path for call
screening or other in call assitant features.
This usage is reserved for system apps with privileged permission
android.Manifest.permission.MODIFY_PHONE_STATE.
Bug: 135213843
Test: make
Change-Id: I7a2278f36f44a474a47dd85d276340da4df460f3
Routing is done per AudioProductStrategy. For instance routing
media is done by using the AudioProductStrategy that supports
the AudioAttributes with USAGE_MEDIA.
Routing is for a connected device, AudioDeviceInfo, or for on a
device that is not currently connected, uniquely specified by
its role, type and address.
Preferred routing can be set, removed, queried (get).
When audioserver crashes, AudioService restores the preferred
routing operating on the audio policy engine.
Bug: 144440677
Test: atest AudioServiceHostTest#PreferredDeviceRoutingTest
Change-Id: I0647608088fe2906e78b71341615975a56747c2f
Note that these two already exist in NdkMediaFormat.
Bug: 132153067
Bug: 134057371
Test: Not applicable.
Change-Id: I602bd16e3cda302e538097a9a2ba3487f34fa0f9
Method link was referring to itself.
Bug: 144964777
Test: build offline-sdk-docs, open doc in browser
Change-Id: Ib373b16d36ee91ebe10f5c6c2a635c65480a48e0
As audio device type can not be used as bit mask any more, refactoring
the code to use a set for a combination of audio device type instead.
Bug: 135621476
Test: atest AudioDeviceBrokerTest
Test: audio smoke test
Change-Id: I2c6fabfafcc6eaf607975076d9ee1a78887a2c85
Merged-In: I2c6fabfafcc6eaf607975076d9ee1a78887a2c85
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
Merged-In: I3e35b8040779e041b8d8c2e72d1e650d6f8fe818
We want to eventually migrate some of these APIs to be @SystemApi for mainline modules.
The #dumpDebug name is more appropriate than #writeToProto.
Bug: 142279786
Test: Manual
Change-Id: I60793e91cedf6b720d4ecef6a8484f4fed4ff30f
Thid CL is revert for ag/9402887.
That was to support seamless transfer in MR1 but we decided not to.
Test: atest mediaroutertest
Change-Id: I0ce76fbb11efc9b9892865085aa28010e2528b7b
This CL enables providers to send control hints to the clients
so connections can be established between clients and providers.
This CL also adds a hidden flag such that MR2 can notice whether
the route is selected by itself or MR2Manager.
Uses of Mockito is completely removed from the test for better test
environment.
Callbacks will be unregistered automatically when a test is
ended so there will be no unregistered callbacks remaining after
test failures.
Test: atest mediaroutertest
Change-Id: I1411bad3ddd7890fbf76020107f870daa2413077
As audio device type can not be used as bit mask any more, refactoring
the code to use a set for a combination of audio device type instead.
Bug: 135621476
Test: atest AudioDeviceBrokerTest
Test: audio smoke test
Change-Id: I2c6fabfafcc6eaf607975076d9ee1a78887a2c85
In the constructor of MediaRouter2, it gets system routes from
MediaRouterService.
Test: atest mediaroutertest:MediaRouter2Test
Change-Id: I26512343faefe11b353734184f0bbae566025b4b
I thought that routes with empty name are invalid and providers
shouldn't publish those.
BT devices seem to be able to have empty name, however, so we have
to choose between
a) ignoring empty named bluetooth routes
b) allowing empty named routes
If a BT device was invalid, BT or Audio should hide the device.
So even the name is empty, the route may be valid and we choose b).
Test: atest mediaroutertest
&& atest A2dpServiceTest
Change-Id: I9b4866711bc4f4c2c13e790519ea1f4d408fa5d1
Cherry-picked from ag/9745767
Currently, the offset value returned from getAttributeRange() does
not take into account the offset to the EXIF data within the image
file. This CL fixes the code to return the correct offsets.
The existing test code could not detect this issue because it does
not explicitly seek to the given offset and retrieve/compare the
data. This CL also adds test code to do this. Make tag information
is also added because all test files have this information, while only
a select few have thumbnail/GPS tag information.
This CL also fixes a bug where the thumbnail offset was not being
updated if the data was passed with StripOffsets tag.
Bug: 143118731, Bug: 143663411
Test: atest ExifInterfaceTest
Change-Id: Ia147cdcacf4699c5e7efc43f52e58b945032a51f
go/cleanup-greylist-txt
These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.
This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP.
Bug: 137350495
Test: m
Exempt-From-Owner-Approval: merge
Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
Currently, the offset value returned from getAttributeRange() does
not take into account the offset to the EXIF data within the image
file. This CL fixes the code to return the correct offsets.
The existing test code could not detect this issue because it does
not explicitly seek to the given offset and retrieve/compare the
data. This CL also adds test code to do this. Make tag information
is also added because all test files have this information, while only
a select few have thumbnail/GPS tag information.
This CL also fixes a bug where the thumbnail offset was not being
updated if the data was passed with StripOffsets tag.
Bug: 143118731, Bug: 143663411
Test: atest ExifInterfaceTest
Change-Id: Ib5e33335cfafa81e3584e96d49a764ad873835a9