This CL replaces the copy constructor
MediaMetadata(MediaMetadata source, int maxBitmapSize)
with the new public method Builder#setBitmapDimensionLimit().
Also added a getter getBitmapDimensionLimit().
Bug: 168215839
Test: m update-api -j; Ran MediaMetdataTest
Change-Id: I6844fcf01c4ee98c99bd0dc880b96f73989dbd3c
This allows headless media applications to access the location if they
have the permission and is needed for AAOS apps in particular.
Bug: 169242810
Bug: 156904507
Test: manual with AAOS Media app
Change-Id: I1196718638fba336a815809578f643814545baf4
This is used to let MediaProvider could specify the request is
on behalf of which client.
CTS-Coverage-Bug: 168990206
Bug: 154733526
Test: Unit test.
Change-Id: Id1a2c4cccff12dd1d979fa9350120e2ddad9ff5b
This moves the android.media.audio.common, android.media.permission and
android.media.soundtrigger_middleware AIDL files to a their own
separate aidl_interface module for Java.
Previously, because of how the framework JAR is configured, those
files were automatically compiled into it and we had to disable Java
for this target, creating a discrepancy between C++ and Java, which
would require us to similarly diverge any dependent targets if we want
cross-language support.
As part of this change, we also had to switch from using the
FileDescriptor type to ParcelFileDescriptor, as this is the only type
supported outside of the framework JAR and is also the recommended
practice.
Test: Manual verification of basic soundtrigger functionality.
Change-Id: Ib65c19dd7c7f5433cfa527fa74bb61ac677f5cf5
UnsupportedAppUsage annotation should be removed before moving
ExifInterface to mainline.
1. Add publicAlternative param to annotation for the following
variable so that the annotation can be removed after one
successful main branch build (see http://shortn/_GPplGcAAB3 for
context):
mAttributes
2. Remove annotation for the following API since they do not
support reflection after Android P:
sFormatter
mFilename
mHasThumbnail
convertRationalLatLonToFloat(String rationalString, String ref)
3. Remove annotation and make public the following APIs:
getDateTime()
getDateTimeOriginal()
getDateTimeDigitized()
getGpsDateTime()
Bug: 159569444
Test: build &&
atest CtsMediaTestCases:android.media.cts.ExifInterfaceTest
Change-Id: Ic2af9d53a9e7797d6c37b0367b0578dbf6e452ad
For mainline module to receive parcelable classes not part of
the module (i.e. framework class) as argument,
they should be either structured parcelable or public/system api.
For the latter case, we need to mark them as @JavaOnlyStableParcelable
to ensure that they can be referenced safely.
This CL adds the annotation to AudioAttributes and MediaMetadata,
which are used by ISession, ISessionController,
and ISessionControllerCallback.
Bug: 169046322
Test: build successful
Change-Id: Id2abb9f6b31e5432a631cc11aa65eb7c356451eb
* changes:
Demote AlwaysOnHotwordDetector to SystemApi
Sessionize VoiceInteractionManagerService
Sessionize the SoundTriggerService layer.
Use standard API in SoundTriggerTestApp
Fix bug in dumpsys
Require identity information in SoundTrigger.java
Associate an originator identity to sessions
Extract permission checking as a separate aspect
Correctly handle HAL death
Code copied from aosp/1148409 and aosp/1236647 with some minor
changes.
Original commit message:
Added code and test for WebP files
1) with EXIF data
2) without EXIF data but with other extra data
Added code and test for saving EXIF to WebP files without EXIF data
1) and have lossy encoding
2) and have lossless encoding
Also refactored test method names for better readability.
Bug: 138786288
Test: atest CtsMediaTestCases:android.media.cts.ExifInterfaceTest
Change-Id: Ib6319e1b7b6711b071542d94ebfdc4a9f80e9c16
Merged-In: Ib6319e1b7b6711b071542d94ebfdc4a9f80e9c16
The retry api is used internally to retry the pending jobs
upon service die and also used by client to retry the failed job.
CTS-Coverage-Bug: 168805960
Bug: 161469320
Test: Unit test
Change-Id: I5c3f4d1d0e7a21cd2f802fdffe0e5b0566833328
This reverts commit 3b25df9ad3.
Reason for revert: potential culprit for test breakage: b/168789394
Change-Id: Ie042b91c189c026079b040f6609df4c22c70f2cf
MediaParser (media mainline module) implements DrmInitData but
is forced to create instances by reflection because the
SchemeInitData constructor is hidden.
Bug: 158743263
Test: atest CtsMediaTestCases:android.media.cts.DrmInitDataTest
Change-Id: Icc1f2d32994f128580fabc641f3a23db36e7935a
When only DisplayName is used to query the default ringtone,
the query may be incorrect, because other types of ringtones
may contain resources with the same name.
It should not happen that other types of ringtone uri are set
as the default ringtone of the current type by mistake.
Bug: 168431815
Change-Id: Ic37f879a658379179dc53715fa016631bb7309d9
The package name will be used when starting external vibration. The
package name will be sent to vibrator service to check if the
application has the permission to start vibration,
Bug: 165910728
Bug: 162343845
Test: atest AudioTrackTest MediaPlayerTest
Test: start audio-coupled-haptic playback
Change-Id: I04b4711d11ab5f0f0716ea4c5e1c0f754fe834bb
Merged-In: I04b4711d11ab5f0f0716ea4c5e1c0f754fe834bb
The package name will be used when starting external vibration. The
package name will be sent to vibrator service to check if the
application has the permission to start vibration,
Bug: 165910728
Bug: 162343845
Test: atest AudioTrackTest MediaPlayerTest
Test: start audio-coupled-haptic playback
Change-Id: I04b4711d11ab5f0f0716ea4c5e1c0f754fe834bb
Merged-In: I04b4711d11ab5f0f0716ea4c5e1c0f754fe834bb
Add support for 10bit opaque and private RAW_DEPTH10 image format
which is similar to RAW_DEPTH.
Bug: 167250258
Test: Manual using camera application.
Change-Id: Ib2ee11570429d7a9a53e9dd6bc2042a1f5eaa760
Clarify that camera2 ids can be used to query camcorder profiles as
long as the devices are capable of producing color output and are not
external.
Bug: 168527175
Test: make docs & check generated doc output.
Change-Id: Idf4bd3e71577b4fc72a164a2fe77caafdbd293ed