summaryrefslogtreecommitdiffstats
path: root/media/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add bucket that unknown state playback falls intoHyungtae Tim Kim2015-06-112-3/+16
| | | | | | | | | | MediaPlayerStressTest some media files are missing on the results as they were reported neither completed nor erroneous. This case will fall into a new category named unknown playback state so that we could track them in media dashboard. Bug: 21755950 Change-Id: Iefcc3e375c63d952a7d9edb418208209d87b9e08
* Camera2: add high speed video APIsZhijun He2015-06-031-10/+14
| | | | | | | Interface only. Bug: 21442271 Change-Id: If81caa0f2dc9f7802af564abcd9541aff3e30901
* Merge "Deprecations are warnings not errors" into mnc-devGlenn Kasten2015-05-281-1/+1
|\
| * Deprecations are warnings not errorsGlenn Kasten2015-05-281-1/+1
| | | | | | | | Change-Id: Ib77f45fdc27ea53f1dd181f48c76810d03f8dcdb
* | Handle unknown duration in playMediaSamples testMarco Nelissen2015-05-271-7/+14
|/ | | | | Bug: 21391417 Change-Id: I85d8f5921e8423da078acfe3aff34a6fcef69e78
* MediaCodec: rename usePersistentInputSurface to setInputSurfaceChong Zhang2015-05-131-1/+1
| | | | | bug: 21045402 Change-Id: I510a3a694367b8e5a21f4a4fa2a338031fed8991
* media: Added MPEG2 profile/levels and testsHarish Mahendrakar2015-05-053-5/+21
| | | | | Bug: 20852831 Change-Id: I172f2f08c30d12bf684f32a52db64823cc286d35
* MediaRecorderTest: test recording from persistent surfaceChong Zhang2015-05-011-7/+55
| | | | | | | Bug: 19127604 Bug: 19489395 Change-Id: I17984e0febaf0541a0ce650a07e0c485ffc41c08
* camera2: validate reprocess request's sessionChien-Yu Chen2015-04-231-1/+3
| | | | | | | | | | | | Add a session ID to CaptureResult to indicate the session where the result comes from. When creating a reprocess capture request with a capture result, the session ID will be carried over to the reprocess capture request. Reprocess capture request's session ID will be used to validate that it matches the session ID when submitting the reprocess capture request to a session. Bug: 20263212 Change-Id: I024c1a28ecf0a43909a0ed3814a11360c318417f
* Merge "Camera2: Add prepare method for output buffer pre-allocation"Eino-Ville Talvala2015-04-152-0/+20
|\
| * Camera2: Add prepare method for output buffer pre-allocationEino-Ville Talvala2015-04-142-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally, buffers for camera output Surfaces are allocated as needed. This minimizes memory overhead and time to first frame. However, if allocation takes a long time, as it can do for full-resolution output buffers, full frame rate may not be maintainable with the added allocation overhead. The prepare() method allows an application to indicate that buffers for a given output Surface should be preallocated by the camera device. Once the allocation is complete, the onSurfacePrepared callback is invoked. The application may then use the prepared Surface without concerns about allocation-caused delays. Change-Id: I4f616dc87dd4346f408cf1ea37d48a642ceb57da
* | Merge "MediaRecorderTest: verify capture fps meta key is set"Chong Zhang2015-04-141-3/+31
|\ \ | |/ |/|
| * MediaRecorderTest: verify capture fps meta key is setChong Zhang2015-04-071-3/+31
| | | | | | | | | | bug: 19460202 Change-Id: I6a98089e560d2bc655e66d5bbe5d93ffb59bbeea
* | camera2: add reprocess supportChien-Yu Chen2015-04-131-1/+1
|/ | | | | | | | Add reprocess API and implementation to support creating reprocess capture sessions, reprocess requests, and receiving reprocess capture results. Change-Id: I4c1c02f41d1712f65e729ea3ba09592a27ffe86d
* camera2: Remove ProCamera.Ruben Brunk2015-03-201-26/+0
| | | | | Bug: 19186859 Change-Id: I4aaadb53db65b479f92cbb3c05329d1e40317900
* Camera: update createStream API to add new rotation fieldYin-Chia Yeh2015-03-161-6/+10
| | | | Change-Id: I0f4343a0bfa7bf09ba887c78a1da1c08daa35333
* Camera2: Remove unused parameters in ICameraDeviceUser#createStreamEino-Ville Talvala2015-03-091-10/+6
| | | | | | - width, height, format are unused Change-Id: I26540aab1118108b0325df69cfa2dd23da41849b
* CameraManager: implement flashlight controlsChien-Yu Chen2015-03-031-0/+5
| | | | | | | | Implement the flashlight controls and callbacks and update the torch mode states. Bug: 2682206 Change-Id: I59025f34f9ece75dd535166a25c428b8d68c6e4b
* Fix bad import in VideoDumpActivityYohann Roussel2015-01-131-1/+1
| | | | | | | | The extra semicolumn is ignored by javac because of https://bugs.openjdk.java.net/browse/JDK-8027682 but is not permitted by ecj or Jack. Change-Id: I6a30107e7b4fd5d7ef3dff3380d6829d2a15af3f
* resolved conflicts for merge of 09910723 to lmp-mr1-dev-plus-aospAndreas Gampe2014-11-214-30/+33
|\ | | | | | | Change-Id: I4b47723a9314bf9bef08e68ce269038d0d50c5d9
| * Frameworks/base: Wall Werror in media/testsAndreas Gampe2014-11-109-56/+61
| | | | | | | | | | | | Turn on -Wall -Werror in media/tests. Fix warnings. Change-Id: I7177e795d4896f62dfa0b0a5990386e564763384
| * resolved conflicts for merge of ee665151 to lmp-dev-plus-aospNeil Fuller2014-10-022-2/+0
| |\ | | | | | | | | | Change-Id: I97671e62de26919e391dbb2686511584c59ab990
* | \ am 694fd58d: am fed9888e: Merge "Remove outdated tests for custom decoder." ↵Leon Scroggins III2014-10-226-498/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | into lmp-mr1-dev * commit '694fd58dd93b6360ec2204dab731d3c68847478b': Remove outdated tests for custom decoder.
| * | | Remove outdated tests for custom decoder.Leon Scroggins III2014-10-226-498/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests don't appear to be meaningful. We are comparing an unused decoder against one that is used. Keeping this test building (the primary changes to this directory in a while) is not believed to be worth the effort. BUG:17419670 Change-Id: Ia0862f2a1de1fb9d744382bb949f6c1638a1a12a
* | | resolved conflicts for merge of ee665151 to lmp-mr1-dev-plus-aospNeil Fuller2014-10-022-2/+0
|\ \ \ | |/ / |/| / | |/ Change-Id: I2588c65b7a9fa43f968151a206924a804f0595a7
| * Switch from FloatMath -> Math and Math.hypot where possibleNeil Fuller2014-10-012-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The motivation is an API change: FloatMath is going to be deprecated and/or removed. Performance is not the goal of this change. That said... Math is faster than FloatMath with AOT compilation. While making the change, occurances of: {Float}Math.sqrt(x * x + y * y) and {Float}Math.sqrt({Float}Math.pow(x, 2) + {Float}Math.pow(y, 2)) have been replaced with: {(float)} Math.hypot(x, y) Right now there is no runtime intrinsic for hypot so is not faster in all cases for AOT compilation: Math.sqrt(x * x + y * y) is faster than Math.hypot(x, y) with AOT, but all other combinations of FloatMath, use of pow() etc. are slower than hypot(). hypot() has the advantage of being self documenting and could be optimized in future. None of the behavior differences around NaN and rounding appear to be important for the cases looked at: they all assume results and arguments are in range and usually the results are cast to float. Different implementations measured on hammerhead / L: AOT compiled: [FloatMath.hypot(x, y)] benchmark=Hypot_FloatMathHypot} 633.85 ns; σ=0.32 ns @ 3 trials [FloatMath.sqrt(x*x + y*y)] benchmark=Hypot_FloatMathSqrtMult} 684.17 ns; σ=4.83 ns @ 3 trials [FloatMath.sqrt(FloatMath.pow(x, 2) + FloatMath.pow(y, 2))] benchmark=Hypot_FloatMathSqrtPow} 1270.65 ns; σ=12.20 ns @ 6 trials [(float) Math.hypot(x, y)] benchmark=Hypot_MathHypot} 96.80 ns; σ=0.05 ns @ 3 trials [(float) Math.sqrt(x*x + y*y)] benchmark=Hypot_MathSqrtMult} 23.97 ns; σ=0.01 ns @ 3 trials [(float) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))] benchmark=Hypot_MathSqrtPow} 156.19 ns; σ=0.12 ns @ 3 trials Interpreter: benchmark=Hypot_FloatMathHypot} 1180.54 ns; σ=5.13 ns @ 3 trials benchmark=Hypot_FloatMathSqrtMult} 1121.05 ns; σ=3.80 ns @ 3 trials benchmark=Hypot_FloatMathSqrtPow} 3327.14 ns; σ=7.33 ns @ 3 trials benchmark=Hypot_MathHypot} 856.57 ns; σ=1.41 ns @ 3 trials benchmark=Hypot_MathSqrtMult} 1028.92 ns; σ=9.11 ns @ 3 trials benchmark=Hypot_MathSqrtPow} 2539.47 ns; σ=24.44 ns @ 3 trials Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I06c91f682095e627cb547d60d936ef87941be692
| * Update framework to use M33 Skia. DO NOT MERGELeon Scroggins III2014-03-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (These CLs are already in master.) Bug: 13246311 This cherry-picks 7 CLs: ----------------------------------------------------------------------- Remove calls to deprecated SkBitmap::setIsOpaque() setIsOpaque() has been removed from ToT Skia. Update setters for mIsPremultiplied and hasAlpha to take the other into consideration. cherry-pick from: I1b36b0b0ce7126031eb7b769b563c17dcd4b306a ----------------------------------------------------------------------- Merge AssetStream with AssetStreamAdaptor. Add enums to the constructor for AssetStreamAdaptor to choose the different behaviors used by the (former) two different classes. The old clients of AssetStream now get the following features of AssetStreamAdaptor - Debugging statements on error. - The stream is an SkStreamRewindable. - getLength() returns the correct value, and the old way of getting the length (read(NULL, 0)) is no longer implemented, since it is no longer used. - isAtEnd() returns the correct value. ToT Skia makes it pure virtual, so some implementation is necessary. cherry-pick from: I2a5395914e4f53830aaefee396556459083a1c56 ----------------------------------------------------------------------- Deprecate Android-specific SkPaint functions. The following functions were problematic: const SkGlyph& getUnicharMetrics(SkUnichar, const SkMatrix*); const SkGlyph& getGlyphMetrics(uint16_t, const SkMatrix*); const void* findImage(const SkGlyph&, const SkMatrix*); Replacing them with calls through SkGlyphCache solved a nasty crash bug, so they have all been deprecated. Bug: 11968757 cherry-pick from: Id746315d41aec5b211b78b172a883c2061130f08 ----------------------------------------------------------------------- pass SkGlyphCache into updateGlyphCache() Doing so prevents us from double-locking the glyph cache, thereby effectively locking ourselves out of reusing work that we'd just done. Bug: 11968757 cherry-pick from: I5c552f2d0bbe30af2ce9054ba684e7da756a0d89 ----------------------------------------------------------------------- Updates to the Skia API needed to merge the WebView m33 version of Skia. cherry-pick from: I0f63b53f2aae58871413b132742fc84138f069a3 Bugfix for screenshots (recent apps) due to incorrect rowBytes computation bug: 12915192 cherry-pick from: I4d5fe2a2f75baf66099e0970fb646686a1992714 ----------------------------------------------------------------------- Fix bug in AndroidPixelRef where we did not store the correct imageInfo for a recycled bitmap. cherry-pick from: I882483b78886e2f19fa4e43a86e69f5a82b3b7e5 ----------------------------------------------------------------------- Change-Id: Ie2b731a9f0795802418cfecddb4b684c92c64d33
* | Add Media Player Streaming TestsShaohan Zou2014-08-273-55/+227
| | | | | | | | Change-Id: I4bb78b0487d158f4ea57349b591f66eda6b325d2
* | Camera2: Correct error handlingEino-Ville Talvala2014-08-272-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Report capture failures from service to application - Only go to error state for device-level errors - Adjust binder interface method names to match the service side names - Reduce failed session creation logging - Don't fire CaptureSession.onActive for CameraDevice.onBusy - Check with session to determine capture failure reason Bug: 17160301 Bug: 15524101 Bug: 14448494 Bug: 11272459 Change-Id: I9dd606004fd7845910dc865738fbe17f1640f07d
* | Camera2: add highSpeedVideoConfig wrapper and APIsYin-Chia Yeh2014-07-181-2/+28
| | | | | | | | | | | | | | | | | | | | - Add wrapper class for highSpeedVideoConfiguration. - Add APIs to query high speed video recording configurations in StreamConfigurationMap - Fix ColorSpaceTransform unit test in CameraMetadataTest - Fix a bug in HashCodeHelper Change-Id: I192e57f6ab5dfbba6d958571352f067a9eaec7b2
* | Added a test for HEVC playback memory usageNaveen Kumar Ponnusamy2014-07-123-0/+16
| | | | | | | | Bug: 14571712 Change-Id: If5c4053dea23142b73aed77498c93e149b7ef9b2
* | add utility methods to util.Range, Rational and SizeLajos Molnar2014-07-121-2/+2
| | | | | | | | | | | | Bug: 12065651 Bug: 11990470 Change-Id: I0d0929ea0289ac5de5c17cca90f25abc4e9dfd7a
* | SkBitmap::Config is deprecated, use SkColorTypeMike Reed2014-07-071-4/+4
| | | | | | | | Change-Id: Ida181d2aac760072cf2d01409edac37699dea216
* | Fix build.Ying Wang2014-06-201-3/+2
| | | | | | | | Change-Id: I2b161a4020862d83347d5a8989467c612fff08db
* | Merge "stop using (deprecated) SkBitmap::Config"Mike Reed2014-06-202-12/+5
|\ \
| * | stop using (deprecated) SkBitmap::ConfigMike Reed2014-06-202-12/+5
| | | | | | | | | | | | Change-Id: Ic75b5fc6996578e9d95bd3a220439ec1541d7c3b
* | | update SCO audio test appEric Laurent2014-06-203-4/+18
|/ / | | | | | | | | | | Added test for startBluetoothScoVirtualCall() Change-Id: I1b47b60a8c5fb0158d4e224252a9d511c612ca2f
* | Camera: Implement HAL1 and higher HAL API coexistenceZhijun He2014-06-192-0/+84
| | | | | | | | | | | | | | A higher hal version device like HAL3.2 can be opened as HAL1.0 device if HAL supports it. This only applies to camera API1. Change-Id: I4ae9f59f4317158cc1bd7ed7726e4032cdd1fa07
* | camera2: Map camera characteristics in the managed layerIgor Murashkin2014-06-172-1/+61
| | | | | | | | Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401
* | jpeg_bench: Fix checkbuildJi-Hwan Lee2014-06-131-1/+3
| | | | | | | | Change-Id: I73d82ffc022be4fc78ff0d8b62ab541dd896df24
* | util: Make Rational a Number/Comparable; add Range#inRangeIgor Murashkin2014-06-062-23/+558
| | | | | | | | | | | | | | | | * Also changes Rational to reduce the numerator/denominator by its greatest common divisor at construction time (e.g. (2/4 -> 1/2)). Bug: 15432042 Change-Id: Ib827abccf44a040667e5931cf9442afc86b57e2d
* | camera2: Change android.lens.focusRange to Pair<Float,Float>Igor Murashkin2014-05-301-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the focus range is defined in diopters (1/distance), it just so happens that in a range [near, far] near >= far which is against the android.util.Range contract. Change it to pair instead. Also adds a marshaler for Pairs since they didn't have one before (and aren't parcelable). Bug: 15335269 Change-Id: If2f3259aeec072438a1c18c1b9728a4c81e92a40
* | Camera2: Test null TonemapCurve behaviorYin-Chia Yeh2014-05-281-4/+7
| | | | | | | | | | | | | | | | Add a test to verify we return null TonemapCurve when at least one channel of tonemap curve is absent. Bug: 14628001 Change-Id: I3e89dbcf00e5f21b01fc78fe43fe5c4200690357
* | Camera2: switch API interface to java classsesYin-Chia Yeh2014-05-281-0/+22
| | | | | | | | | | | | | | | | | | android.sensor.info.physicalSize: float[] -> SizeF android.statistics.hotPixelMap: int[] -> Point[] android.tonemap.curve[Red|Green|Blue]: float[] -> TonemapCurve Bug: 14628001 Change-Id: I1e085f5e640a059852fcb504b6dd5f884039e653
* | camera2: Add new metadata keys, change types for existing range keysIgor Murashkin2014-05-281-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds the following keys: * android.control.maxRegionsAe * android.control.maxRegionsAwb * android.control.maxRegionsAf * android.request.maxNumOutputRaw * android.request.maxNumOutputProc * android.request.maxNumOutputProcStalling Changes the following keys' type generations: * android.control.aeTargetFpsRange * (Range<Integer>) * android.control.aeAvailableTargetFpsRanges * (Range<Integer>[]) * android.control.aeCompensationRange * (Range<Integer>) * android.lens.focusRange * (Range<Float>) Bug: 14628001 Change-Id: I141847dffc4b0d89cea37c19a54d6d5faf24a9bb
* | camera2: Refactor CameraMetadata.Key out into 3 key classesIgor Murashkin2014-05-231-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: * CameraMetadata.Key<T> After: * CameraCharacteristics.Key<T> * CaptureResult.Key<T> * CaptureRequest.Key<T> CameraMetadata#get has been removed (each metadata subclass has its own #get now) due to java generic limitations (in particular a type bound <T1<T2> extends Key<T2>> is an illegal bound). CameraMetadataNative gets a new #dumpToLog function to dump the native metadata to logcat. Bug: 15091017 Change-Id: Ic56c54c0d184e209e20de374dc8a6d79527c209f
* | camera2: Move parameters around to different packagesIgor Murashkin2014-05-144-9/+9
| | | | | | | | | | | | | | | | | | * Camera-specific params to android.hardware.camera2.params * Remove android.hardware.camera2.Size * Move Rational to android.util Bug: 14628001 Change-Id: Ie7a82bf9f4a0d8c18e0dc3a1581123c0d95da3f0
* | camera2: Use StreamConfigurationMap for format/size/duration lookupIgor Murashkin2014-05-141-78/+297
| | | | | | | | | | | | | | | | * Also @hide/@deprecate a bunch of other keys * Move some classes into android.hardware.camera2.params Bug: 14628001 Change-Id: I2db490a0849680a133a901403477a147b004fb28
* | camera2: Update native<->managed camera metadata marshalersIgor Murashkin2014-05-136-53/+881
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve existing marshalers: - each managed/native type combination can be queried marshal support - marshalers can recursively call other marshalers for nested types - support marshaling/unmarshaling generic classes by using super type tokens * Add new marshalers for: - ColorSpaceTransform - MeteringRectangle - Parcelable - Range<T> - ReprocessFormatsMap - RggbChannelVector - SizeF - StreamConfiguration - StreamConfigurationDuration Batteries included; so are unit tests. Bug: 14628001 Change-Id: I38d3e646ccfb3953898cd6f750c33e4097328482
* | camera2: Fix broken camera metadata test due to key renameIgor Murashkin2014-04-221-1/+1
| | | | | | | | Change-Id: I0367550b5bb9f80c8df272804eab7052c122104d