Add AIDL method for device-wide physical state updates (such as
folding/unfolding), and wire it up to the new camera provider HAL call.
Also clean up camera provider startup sequence - devices were being enumerated before
the new lazy HAL interface pointers were set up, resulting in many repeated calls
to getService even for a non-lazy HAL.
Also add unit test for CameraProviderManager to verify its section of
the callpath, as well as tests to check that the provider HAL and
hardware service manager aren't queried more than expected during
initialization.
Test: atest cameraservice_test
Change-Id: I5ec60fd9d93b7a2fe4d1a5854fad720a972fe8ea
Required for migration of ashmem to memfd.
Bug: 113362644
Change-Id: I5c63ff130f67481deed5c8d975830463716c397c
Signed-off-by: Joel Fernandes <joelaf@google.com>
When the system partition is a later version than vendor,
new MediaDrm APIs will not have HAL implementations. In
this case throw java.lang.UnsupportedOperationException.
bug:110701831
bug:123375769
test: cts media test cases, gts media tests
Change-Id: Ib631bf4d4d245d857e61bd3fe0e5808e430a034d
Remove assert added by mistake on a valid configuration.
Bug: 123551930
Test: place a call with an hearing aid device.
Change-Id: Ib279d1bea460026da45ffeb5a69910ac0c3d3c4f
This includes changes up to commit
c3f6c282c22de48e89fe1f364c37b13be7498404
Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice
Bug: 112362730
Change-Id: Idf91ba6d3b71a724292cc3ae533307194678ea83
Some servers provide npt syntax in SDP as "a=range:npt:0-11" but
AOSP only supports npt syntax "a=range:npt=0-11". If AOSP doesn't
support syntax ':', it will result in problem for some live streaming.
Bug: 123256414
Test: Play special file and check if duration is normal.
Change-Id: Ie1120adf13c0e92b2e954bb4cb8cc46866d90e4b
Check if variables used in AudioOutput::open()
are 0 before using them as a divisor.
Bug: 123375287
Change-Id: I1c65a80a12eda84d11e7526fe0c730cb10565c36
CRs-Fixed: 2286455
(cherry picked from commit 9e67171a2f4e2b7dc38017789700f629a3885734)
* changes:
Cannot play 3gp file which esds box is over 256 bytes
Sample index in stsc is bigger than samplecount in stsz
Make mp4 file support mp3 audio
We had a typo for which vector we were erase()ing from in an
error case. We fix that typo here.
Test: TreeHugger
Change-Id: Id1d38a5c1955e19415ca2e1c84a3f58763bf83c8
Use timestamp from the first non-empty work, not the very first one
which may be empty with an invalid timestamp.
Bug: 123428627
Test: atest CtsMediaTestCases:MediaRecorderTest
Change-Id: I50f68765355b1fd3af4241adad0c6199fd7b4de8
Required because mediaplayer2 needs to prepare DRM for pending playlist
items while mediaplayer2 is in `started` state.
Bug: 123425309
Test: MediaPlayer2DrmTest
Change-Id: I20bd2afdc415e716a20cfca7c6b97d62e599aaad
The size of chunk box "esds" is over 256 bytes, which is
Android default maximum size. There is much rubbish data
in esds box except valid data. MPEG4Extractor uses
uint8_t buffer[256] to handle esds box buffer, but sometimes
it is not enough, so it returns error and cannot play.
Solution: remove size check code and let malloc to prevent
too large size.
Bug: 122746531
Test: Play a video file whose esds size is over 256 bytes
and check if it can play normally
Change-Id: I2384bf8fc54e3f0c3a7d1351896bb408560b6490
For treble compliance, loading the config policy from vendor partition
should be supported.
Bug: 80626872
Test: audio works normally with USE_CONFIGURABLE_AUDIO_POLICY set
Change-Id: I7fec31346b80874c323556e28debb4a0888b27e6
Signed-off-by: Mingwei Shi <mingwei.shi@intel.com>
Signed-off-by: Qin, Xiaokang <xiaokang.qin@intel.com>
(cherry picked from commit 955e35cb670ff210535be268aa3589d68d92b148)
When sample index in stsc is bigger than samplecount in stsz,
it returns error and video playing stops. Solution is to
align samplecount in stsz.
Bug: 122746529
Test: Play the file whose sample index in stsc box is bigger
than samplecount in stsz box and check if it can play normally
Change-Id: I2f09d6d17ff6bd04df076d744a25094c12524f19
There are many mp4 files with mp3 audio in real world.
We need to be able to play these mp4 files.
Bug: 122710842
Test: Play a mp4 file with mp3 audio and check if there
is sound
Change-Id: Ide6ed2fbe65039bb96eea5de3d650bb6981b578b
-BufferingSettings doesn't need to be a parcelable.
-Use libstagefright_foundation_without_imemory.
Test: build and MediaPlayer2Test
Bug: 123361167
Change-Id: I1c02bc4ed38a697950a9fd31f9fa395a219927e4
Move all depth photo specific processing in a separate
library and link to it dynamically.
Bug: 109735087
Test: Camera CTS
Change-Id: I00a20b26fc9a1d127ad962a36b5b554dd36f0d41
Add new effect flag to monitor requested volume from
audio framework.
Pass requested volume directly if effect is volume monitor,
and others still follow an original rule by volume controller.
Bug: 123251705
Test: On/off equalizer on spotify/google music.
Switch songs with equalizer
Attach an effect with EFFECT_FLAG_INSERT_ANY,
EFFECT_FLAG_INSERT_FIRST,
EFFECT_FLAG_INSERT_LAST
and check received volume.
Change-Id: I01632bebb32aa6f921c964536039d43859ae3632
Signed-off-by: Jasmine Cha <chajasmine@google.com>