Changes the order of methods / fields (important ones first)
Also, this CL adds some missing javadoc.
Bug: 147467641
Test: atest mediaroutertest
Change-Id: I80852bf3a7e2624c8ded1c29440a274709c6f393
When the genre tag is numeric, return a human readable string instead
of the raw numeric tag.
Bug: 141520122
Test: CTS
Change-Id: Ida0d48171e1400b87940e4e38aa07d2fdd5a77ed
Added some recovery code for the case of a dead driver.
Due to the sound trigger HAL process being tied to the audio server
via init.rc, this would also offer recovery from audio server death
as a by-product.
Bug: 146852437
Change-Id: I8cfea8ab108d482592c8094e8093066973f43288
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.
Bug: 145132366
Test: m && diff unsupportedappusage_index.csv \
git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import'
Merged-In: I853372f3c6fef905553bb31be4f1bb48df735f7a
Change-Id: I853372f3c6fef905553bb31be4f1bb48df735f7a
This can be useful for debugging purposes.
Test: builds successfully / checked the message locally
Change-Id: I8928e131adf6e470309c2165343e8c467d3a692c
This CL adds API to get/set volume control ID for a session.
Volume control ID is set by volume providers (e.g. MediaRouter)
to notify which volume provider is used by the session
to other apps such as System UI, Settings.
Bug: 147528363
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
Change-Id: I9ecafeca8b5090b4c8a89029d1e6411fd48919cb
Fix two issues with privacy sensitive mode implementation:
1) default applied by AudioAttributes based on source could
override explicit flag set.
2) when privacy mode was explicitly set in AudioRecord builder,
the audio source was reset.
Bug: 137850106
Test: CTS test for AudioRecord
Change-Id: I73f69d3d214102dcc237cac616c9bfc3f85b288e
Make the synchronous AudioManager.unregisterAudioPolicy() method
compatible with situations where the owner of the policy has already
stopped / flushed the tracks or recorders associated with the policy
by catching the IllegalStateException that could be thrown.
Test: atest AudioServiceHostTest#testGetDevicesForAttributes
Change-Id: Ic0ae0732b775a10135f6cbdd31d5e3409e550942
This API is for TunerResourceManager to get the callingPid of a TIS
client from TIF with the sessionId provided by TIS when TIS requests
resources from the TunerResourceManager.
This CL is also handling the creating and storing mechanism of the
sessionId.
The sessionId is provided by TIF when TIS created session through
TIF.
The sessionId to clientPid mapping is saved in a global map
in TIF service.
It is passed to the vendor TIS through new public API
onCreateSession(inputId, sessionId)/onCreateRecordingSession(inputId,
sessionId).
Test: Run with CTS on Cuttlefish
Bug: 147380882
Change-Id: I344a812add4a9637bf7eb226e5e4e3ead5b456a2
This CL renames following classes:
- RouteSessionInfo to RoutingSessionInfo
- RouteSessionController to RoutingController
Bug: 147527788
Test: atest mediaroutertest
Change-Id: I6d6c997d9119b668bd8879f2f5a8ca266ddbeccc
This CL removes RouteSessionInfo#isValid() since there is are no usages.
Also overrides equals() and hashCode().
Also, it applies following changes:
- Make the class as final
- Add javadoc for using an empty string for unknown client package name
- Throw exception in Builder#build() if there is no selected routes.
- Throw IllegalArgumentException in Builder#add/Remove*Routes(routeId)
when the given routeId is empty or null.
Tests for the class are also added.
Bug: 147524068
Test: atest mediaroutertest
Change-Id: I2cb6cc37a8216dd42dc72edee72bb5211259c66a
This CL covers APIs for discovering routes published by
MediaRoute2ProviderService.
Bug: 147402721
Test: atest mediaroutertest
Change-Id: I978a6489ae1bcfcd6bb427d4a939c49ff3420e2d