summaryrefslogtreecommitdiff
path: root/cmds
AgeCommit message (Collapse)Author
2020-12-15Log MediaExtractor entry point to MediaMetricsSantiago Seifert
Bug: 170386720 Test: atest libctsmediav2extractor_jni Test: atest CtsMediaTestCases Change-Id: I648e27b1b483a646df77e2a88ec5ac8af01a0bb9 Merged-In: I648e27b1b483a646df77e2a88ec5ac8af01a0bb9
2020-02-18Accommodate the move of AudioPlaybackRate to system/audio.hMikhail Naganov
AudioPlaybackRate is now defined in system/audio.h as 'struct audio_playback_rate_t' (in global namespace). Similar for the related enums. To accommodate the existing code, introduce AudioPlaybackRate as a typedef in the 'android' namespace. Update code that was forward declaring AudioPlaybackRate as it's not a struct anymore. Bug: 133526565 Test: m Change-Id: Iba20f1de1e8779cd78ac4573f2082416f2b428e2
2020-02-03Merge "cmds: Use new libgui API for display info"TreeHugger Robot
2020-01-16Remove mediametrics include symlinksMarco Nelissen
Bug: 143245419 Test: build Change-Id: I6c836e60c0fe078f5ab7370aec156bdd6e8dcbf0
2020-01-14Merge "screenrecord: Use ui::Rotation"TreeHugger Robot
2020-01-14Merge "stagefright: move to system_ext" am: 9fe6ffa891 am: caf501872d am: ↵Automerger Merge Worker
9d6fca51de Change-Id: Idaae8003f74c342dfafbabfe899aa7eb3071074a
2020-01-13stagefright: move to system_extbohu
Otherwise, build complains stagefright is placed onto system/. Test: build stagefright in emulator, and play a mp4 with it. Change-Id: Iaca6c4cbc23d141fc9ea37f2e4d83dfe8650dea5
2019-12-17Remove header symlinksMarco Nelissen
Test: build Change-Id: Ie90eb4fc0233ae6ee152a7bccb182a223b2ceff0
2019-12-13cmds: Use new libgui API for display infoDominik Laskowski
Bug: 144601064 Test: Build Change-Id: I39ff087d5aa6ec25c0db73c307fa4e2b84a431ee
2019-12-13screenrecord: Use ui::RotationDominik Laskowski
Bug: 144601064 Test: Build Change-Id: I12d27e78d271a57d7bed46485d260ecd50d3ef8f
2019-12-06Merge "Add explicit private audio recording request"Eric Laurent
2019-12-04Add explicit private audio recording requestEric Laurent
Add the possibility for apps to indicate that their capture use case is private and that a privileged Assistant should not be able to capture concurrently. This allows to override the default behavior tied to the audio source (e.g VOICE_COMMUNICATION is private by default but UNPROCESSED is not). - Add AAudio API to set and get privacy sensitive mode on input stream - Add MediaRecorder API to set and get privacy sensitive mode - Modify AudioSource constructor to accept audio attributes instead of an audio source to specify the use case. - Modify audio policy concurrent capture logic to use audio attributes flag instead of audio source to decide of a capture client has requested privacy mode or not. Bug: 137850106 Test: CTS AudioRecordTest and MediaRecorderTest, manual audio smoke tests Change-Id: I250ea5da4c1da809ceac0da22ae9bee15b937001
2019-12-04Make screenrecord use NdkMediaMuxerMarco Nelissen
Test: use screenrecord to record the screen Change-Id: I32b85ad10a216a9bf3d6d1d64a029a6dac8793a3
2019-11-06Merge "[libstagefright] fix -Wimplicit-int-float-conversion"Nick Desaulniers
2019-11-05[libstagefright] fix -Wimplicit-int-float-conversionNick Desaulniers
IEEE754 single precision cannot precisely represent INT32_MAX/UINT_MAX/RAND_MAX. IEEE754 double precision cannot precisely represent INT64_MAX. As such, implicit conversions from operations with floating point and integral operands may result in a loss of precision. Accept the imprecision with by making the existing implicit casts explicit. Bug: 139945549 Test: mm Merged-in: Ic66b3d3bbac9e644e27ad8233018f24dfce3209f Change-Id: Ic5a40abbccb1bf4d78475a6f3d1d2835df603d0a Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-11-04[frameworks][av] fix -Wimplicit-int-float-conversionNick Desaulniers
IEEE754 single precision cannot precisely represent INT32_MAX/UINT_MAX/RAND_MAX. IEEE754 double precision cannot precisely represent INT64_MAX. As such, implicit conversions from operations with floating point and integral operands may result in a loss of precision. Accept the imprecision with by making the existing implicit casts explicit. Bug: 139945549 Test: mm Change-Id: Ic66b3d3bbac9e644e27ad8233018f24dfce3209f Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-23Merge changes from topic "libdrmframework" am: 84a53822a1 am: 460618a6d1 am: ↵Dongwon Kang
c317c587d5 am: e25539a93f Change-Id: Ib8636ca3d1a5e251de8a4ce3643f0f88dfe85234
2019-10-23Merge changes from topic "libdrmframework"Dongwon Kang
* changes: Remove libdrmframework.so dependency from libdatasource.so Make DataSourceFactory singletone
2019-10-21Merge "Move AudioPlayer to test commands" am: 4426ce8d95 am: 4520fef512 am: ↵Marco Nelissen
8429516eed am: f94b6d6d81 Change-Id: I96ba323a3400613395fd7fb21cb5869256af238c
2019-10-18Move AudioPlayer to test commandsMarco Nelissen
AudioPlayer was only used by the commandline utilities, so move it out of libstagefright. Test: build, run Change-Id: I561cccd323206de7415bd235b72711194080aaea
2019-10-15Make DataSourceFactory singletoneDongwon Kang
This is preparation for having a subclass of DataSourceFactory which is only used in mediaserver process with OMA (forward-lock) use case. Test: build Bug: 142567168 Change-Id: I2a1ab3d1ae89f657a84376d9a95d4e814b545b4f
2019-10-11libmedia: separate codeclist from libmediaDongwon Kang
Test: build. Bug: 139201422 Change-Id: I150c3bd04cc68a3b96a8762ba193fc1595ee6da3 Merged-In: I150c3bd04cc68a3b96a8762ba193fc1595ee6da3
2019-10-09Split datasource out of libstagefrightMarco Nelissen
into libdatasource, which contains: DataSourceFactory (Clear)FileSource (Clear)MediaHTTP DataURISource HTTPBase NuCachedSource2 This is needed to break a circular dependency in an upcoming CL. Test: build, boot Change-Id: I34d9937235c78f18f51b18945342a0743e209577 Merged-In: I34d9937235c78f18f51b18945342a0743e209577
2019-10-08Split datasource out of libstagefrightMarco Nelissen
into libdatasource, which contains: DataSourceFactory (Clear)FileSource (Clear)MediaHTTP DataURISource HTTPBase NuCachedSource2 This is needed to break a circular dependency in an upcoming CL. Test: build, boot Change-Id: I34d9937235c78f18f51b18945342a0743e209577
2019-10-01Remove libmediadrm symlinksMarco Nelissen
Test: build Change-Id: I53d703b6d34226926437b0207a2b3d51dff6881a Merged-In: I53d703b6d34226926437b0207a2b3d51dff6881a
2019-09-30Remove libmediadrm symlinksMarco Nelissen
Test: build Change-Id: I53d703b6d34226926437b0207a2b3d51dff6881a
2019-09-27Merge "libmedia: separate codeclist from libmedia"TreeHugger Robot
2019-09-27Remove symlinks from include dirMarco Nelissen
Test: build Change-Id: Ibe4eee4fe49b7884e6d720e626d88125bbee0eb2 Merged-In: Ibe4eee4fe49b7884e6d720e626d88125bbee0eb2
2019-09-27Merge "Remove symlinks from include dir"Marco Nelissen
2019-09-27Remove symlinks from include dirMarco Nelissen
Test: build Change-Id: Ibe4eee4fe49b7884e6d720e626d88125bbee0eb2
2019-09-26libmedia: separate codeclist from libmediaDongwon Kang
Test: build. Bug: 139201422 Change-Id: I150c3bd04cc68a3b96a8762ba193fc1595ee6da3
2019-09-25Merge "Add support to record external displays"Huihong Luo
2019-09-13Improve visibility of IMemory security risksYtai Ben-Tsvi
This change renames the IMemory raw pointer accessors to unsecure*() to make it apparent to coders and code reviewers that the returned buffer may potentially be shared with untrusted processes, who may, after the fact, attempt to read and/or modify the contents. This may lead to hard to find security bugs and hopefully the rename makes it harder to forget. The change also attempts to fix all the callsites to make everything build correctly, but in the processes, wherever the callsite code was not obviously secure, I added a TODO requesting the owners to either document why it's secure or to change the code. Apologies in advance to the owners if there are some false positives here - I don't have enough context to reason about all the different callsites. Test: Completely syntactic change. Made sure code still builds. Change-Id: I5fb99aa797c488406083178a6b05355d98710d3b
2019-09-11Add support to record external displaysHuihong Luo
Add an option --display-id to specify a pyhsical display id to record, bump version to 1.3. If we can not find the physical display from the id, error message will be printed out. This CL depends on: ag/9366012 Bug: 136165419 Test: screenrecord --display-id 1 /data/local/tmp/test.mp4 Change-Id: I3b90d43024191d1e15563284836dc093862192e1
2019-08-20Merge "Added trace event to screenrecord"Kodi Obika
am: e9239dbe79 Change-Id: I786445ef718d73192ff9c94ab4482232154a1b85
2019-08-21Added trace event to screenrecordKodi Obika
Bug: 135278534 Test: Run Perfetto with "screen recording" enabled and execute a query for the "first_frame" slice Exempt-From-Owner-Approval: cherry-pick (cherry-picked from commit c840c0bfee6aa9be4e05e957e8d1ee8d9e330f75) Merged-In: I20abf7300e8c46b6e6dc52096db699e95c93297d Change-Id: I20abf7300e8c46b6e6dc52096db699e95c93297d
2019-08-13Added trace event to screenrecordKodi Obika
Bug: 135278534 Test: Run Perfetto with "screen recording" enabled and execute a query for the "first_frame" slice MergedIn: Ifb984bfb0cdf48c61352e2923de42ce0ca06ace7 Change-Id: I20abf7300e8c46b6e6dc52096db699e95c93297d
2019-07-18Merge "Add Winscope sync metadata to screen recording"Adam Pardyl
2019-07-18Renderscript: rename .rs extension to .rscriptJeff Vander Stoep
Reserve .rs extension for Rust. Bug: 137365032 Test: make checkbuild Test: cd frameworks/compile/slang/tests ./slang_tests.py Test: atest CtsRenderscriptTestCases Test: CtsRsCppTestCases Exempt-From-Owner-Approval: Clean CP Change-Id: I33010b5604d8140f3a50845c16daff743504c8d0 Merged-In: I33010b5604d8140f3a50845c16daff743504c8d0 (cherry picked from commit fafc72bd8ba6602c609c5109d2ec0ea318f14131) (cherry picked from commit 86fdb97cbb82464b0d021f16d7ad8752bf4b2767)
2019-07-17Renderscript: rename .rs extension to .rscriptJeff Vander Stoep
Reserve .rs extension for Rust. Bug: 137365032 Test: make checkbuild Test: cd frameworks/compile/slang/tests ./slang_tests.py Test: atest CtsRenderscriptTestCases Test: CtsRsCppTestCases Change-Id: I33010b5604d8140f3a50845c16daff743504c8d0 Merged-In: I33010b5604d8140f3a50845c16daff743504c8d0
2019-07-17Add Winscope sync metadata to screen recordingAdam Pardyl
Winscope tool requires frame presentation time relative to android::elapsedRealtimeNano to synchronise video with SurfaceFlinger and WindowManager traces. The metadata is stored as a separate data track in the MPEG-4 container. Design doc: http://go/winscope-video-sync Test: adb shell screenrecord /sdcard/test.mp4 --time-limit 5 Bug: Change-Id: I4536956efe8c62a0586b55bab1db6bdf368d4348
2019-07-15Renderscript: rename .rs extension to .rscriptJeff Vander Stoep
Reserve .rs extension for Rust. Bug: 137365032 Test: make checkbuild Test: cd frameworks/compile/slang/tests ./slang_tests.py Test: atest CtsRenderscriptTestCases Test: CtsRsCppTestCases Change-Id: I33010b5604d8140f3a50845c16daff743504c8d0
2019-05-29Merge "Remove references to non-existant directories" am: e8a9a230acDan Willemsen
am: 31a472facd Change-Id: I5b5bf9685ae2936ee28a5df3d212f7e383dd8281
2019-05-28Remove references to non-existant directoriesDan Willemsen
external/jpeg and frameworks/av/services/radio do not exist. Test: treehugger Change-Id: Ie7529f767bd97ef28d73e4dff03d2f1f74ab8bd3
2019-03-27screenrecord: add bframes optionWonsik Kim
Test: screenrecord --codec-name OMX.google.h264.encoder --bframes 1 /sdcard/a.mp4 Change-Id: I6ae9310fb5ef644138af0becb7428f4a2c6393fe
2019-02-06Merge "cmds: Use getInternalDisplayToken API"Dominik Laskowski
2019-02-01Merge "Convert three media binaries to Android.bp" am: 479b735392 am: 812f306ff8Anton Hansson
am: 536426c32f Change-Id: Ib0b891a695d613a8593b9619b908880895f16ef4
2019-02-01Convert three media binaries to Android.bpAnton Hansson
This converts mediaserver, mediametrics and screenrecord and the libraries they depend on to Android.bp See build/soong/README.md for more information. Bug: 122331945 Bug: 80410283 Test: boot blueline Test: youtube Test: screenrecord Change-Id: I132b8b4f7965449df68fb1544034a7241c594a63
2019-01-27cmds: Use getInternalDisplayToken APIDominik Laskowski
Bug: 116025192 Test: screenrecord still works Change-Id: Ic7ad1d78ac8aa810bad8901fe1e71582168b8c4c
2019-01-15cmd/stagefright: print more debug info for codecsLajos Molnar
Replace -p (profiles) with -i (info) Bug: 119631295 Change-Id: I37f208aad9c9d4698d77e30d9278148134e94372