This API can be used from calls outside applications to create a virtual
display for mirroring. The permission checks in system server are still
in place so the caller must have CAPTURE_VIDEO_OUTPUT permission. This
class is intented to be used by systems that to stream device content,
but not from an application. In most cases, this will be called from
Shell or a system application.
Test: MediaProjectGlobalTest
Bug: 237664947
Change-Id: I43f79c83db7c82c0b682ef174fb1a5ab83795489
The piid is sent in the prepare and prepareAsync methods after the data source is being
set and the native variables are initialized.
Test: dumpsys audio & atest android.media.audio.cts.AudioPlaybackConfigurationTest
Bug: 235521198
Change-Id: Ie3cbdb69814ff014fafc1737462d4fa8a8f687ca
When mute state is not set the invalid value stored in
AudioPlaybackConfiguration is -1. This has a bitmask of 0x111.. and
previously returned true for all mute reasons.
Changed the dump of the mute state to print only the attributes
that lead to the muting of the track.
Test: dumpsys audio
Bug: 235521198
Change-Id: I741927ff14c12c2efd550f3fe61551d20239f8c0
Do not cache input/output buffers until explicitly requested.
Track validity of buffers before getInput/OutputBuffers so that the
dequeued buffers are marked accessible when the array is returned
to the client.
Bug: 189889230
Bug: 236106096
Test: manual
Merged-In: I6892f02853f00c3e355c827ec943fbdf183469f1
Change-Id: I6892f02853f00c3e355c827ec943fbdf183469f1
(cherry picked from commit 4a114c2f9c)
ImageReader/ImageWriter object.
- Internally, we should deal with HardwareBuffer.BLOB format according
to surface's dataSpace. Directly passing BLOB format to
getEstimatedNativeAllocBytes function will throw exception because
BLOB format is not handled inside. Instead, use their corresponding
imageFormat to avoid such failure in this case.
Bug: 244268240
Test: atest android.hardware.camera2.cts.ImageReaderTest, atest
android.hardware.camera2.cts.ImageWriterTest, atest
android.hardware.cts.DataSpaceTest
Change-Id: I3f18b9d3550f88be82cde75372637a3ae528b5ec
- 'HDMI' was replaced with 'External Device'
- resource 'default_audio_route_name_hdmi' was renamed to
'default_audio_route_name_external_device'
Bug: b/233323666
Test: Tested manually by replacing text in UMO's chip
Change-Id: I8178ab2c27b1ec1e4bbcfc244611190593d5d836
This patch splits the behavior of creating the media player
and the uri setter and avoids it from being recreated upon
being retrieved by getRingtone which harms performance
causing a double asset load.
Bug: 240621827
Test: Receive a phone call and verify ringtone works
Change-Id: I91563ddcc94f25911937e9fbb35ff36bbe9d3012
The calculation formula is now set to be the inverse of the one used
in VolumeControlService.java when calculating volume index from the
BLE audio volume level.
This also fixes not using the absolute volume for BLE audio stream,
which could result with very low volume levels at the lower registers
of the volume slider. It was caused by lowering the volume on both
ends. Not transmitting the sound at the maximum volume level could
also reduce the sound quality due to effective sound sample resolution
being lower.
Bug: 238587620
Bug: 241501978
Test: built and manually tested
Tag: #feature
Change-Id: I368c8978be5fbd94b0f62df2551fe179a9f203a0
Merged-In: I368c8978be5fbd94b0f62df2551fe179a9f203a0
(cherry picked from commit 51d75fbc69)
The calculation formula is now set to be the inverse of the one used
in VolumeControlService.java when calculating volume index from the
BLE audio volume level.
This also fixes not using the absolute volume for BLE audio stream,
which could result with very low volume levels at the lower registers
of the volume slider. It was caused by lowering the volume on both
ends. Not transmitting the sound at the maximum volume level could
also reduce the sound quality due to effective sound sample resolution
being lower.
Bug: 238587620
Bug: 241501978
Test: built and manually tested
Tag: #feature
Change-Id: I368c8978be5fbd94b0f62df2551fe179a9f203a0
The DNG support added was incomplete, and results in the input being
overwritten by invalid data.
This is a partial revert of ag/15320526
Bug: 193010735
Bug: 239902748
Test: atest CtsMediaMiscTestCases:ExifInterfaceTest
Change-Id: I492020bc7a9fbaa6a3670c118589173822db0fe1
Add the AudioDeviceVolumeManager and VolumeInfo classes to the
system API. Unhide only the method for changing the volume
of a given audio device.
Bug: 236764441
Test: atest AudioDeviceVolumeManager
Change-Id: If715a28afb79ee1a9625781d814652365e9fbfb7
The ArrayEquals, ArrayHashCode, ArrayToString, and
ArraysAsListPrimitiveArray errorprone findings were
demoted from errors to warnings. Fix existing
occurrences of them so they can be made errors again.
Bug: 242630963
Test: RUN_ERROR_PRONE=true m javac-check
Change-Id: Ia6f216cc36ad0a5758f39fd9b34962cd4adf9d8e
The tuner server will register its resources to TunerResourceManager
every time when it's started. The TunerResourceManager will update its
resources accordingly.
The TunerResourceManager is only be started when the device has tuner
feature. All tuner functions should return error immediately if the
devcie does't have TunerResourceManager.
Release TunerClient if no one uses it. Stop using staitc TunerService
to release tunerserver the because TunerClient is ready signleton.
Disable lazy tunerserver if the device is running normal tuner HAL.
Bug: 236002754
Test: atest android.media.tv.tuner.cts on both lazy and normal HALs
Change-Id: I1fc3ca8413434701742cbe363b0ffd2d6dbf5f9c