summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-05-15hwc2: Fix readback docsandroid-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-devpie-b4s4-releasepie-b4s4-devDan Stoza
Fixes a couple of problems with the return codes in the readback documentation and adds a paragraph of clarification about when getReadbackBufferAttributes will be called. Bug: 67048889 Test: N/A, doc fix only Change-Id: I3ea1a6993323f7ce12c36a377bf69e2866b18082
2018-05-02gralloc1: security hardeningMarissa Wall
Add support for getTransportSize, validateBufferSize and importBuffer to gralloc1. Bug: 66876469 Test: Manual Change-Id: Ie3435297cff2d3272df658af262905c13f403e4b
2018-04-02Merge "hwcomposer2: add render intent support" into pi-devChia-I Wu
2018-03-30hwcomposer2: add render intent supportChia-I Wu
Add HWC2_FUNCTION_GET_RENDER_INTENTS HWC2_FUNCTION_SET_COLOR_MODE_WITH_RENDER_INTENT HWC2_FUNCTION_GET_DATASPACE_SATURATION_MATRIX and fix HWC2_FUNCTION_SET_PER_FRAME_METADATA to be per-layer. Bug: 73824924 Test: manual Change-Id: I25e34c4bf3dc5d496ea23c2d13419dd28f3e6cca
2018-03-30Audio V4: Add metadata update to legacy APIKevin Rocard
The metadata API was not present in the legacy HAL API which lots of developer still use. Test: Check the method is correctly called on each track change Bug: 38184704 Bug: 69623109 Change-Id: I46a9db5a67baef52844ed85296a529402e00f4cb Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-30Merge "Support query microphones information." into pi-devTreeHugger Robot
2018-03-28Add "Unlocked device required" key APIBrian Young
Add a keymaster parameter for keys that should be inaccessible when the device screen is locked. "Locked" here is a state where the device can be used or accessed without any further trust factor such as a PIN, password, fingerprint, or trusted face or voice. This parameter is added to the Java keystore interface for key creation and import, as well as enums specified by and for the native keystore process. Test: CTS tests in I8a5affd1eaed176756175158e3057e44934fffed Bug: 67752510 Merged-In: I94d8bc5543d00d28064c6e555b38823b70dbfbe6 Change-Id: I94d8bc5543d00d28064c6e555b38823b70dbfbe6 (cherry picked from commit a47bb104965af5dac21bb128adf67932ee05e8e4)
2018-03-21Support query microphones information.rago
Get list of all/currently active microphones from input stream. Part of the device enumeration feature. Bug: 64038649 Test: Manual Testing and Cts integration test Change-Id: Ibe231c430186c18ce43497c351b7d3e3b2425811
2018-03-07Merge "Audio V4: Add missing parameter keys" into pi-devTreeHugger Robot
2018-03-06Merge "Update OWNERS" into pi-devAshutosh Joshi
2018-03-06Audio V4: Add missing parameter keysKevin Rocard
Those keys were used as literal strings instead of having a declaration. Bug: 38184704 Test: compile Change-Id: I45709a4a9120e98014d2a4f763fc17f9ef1267ac Merged-In: I45709a4a9120e98014d2a4f763fc17f9ef1267ac Cherry-picked from master Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06Update OWNERSAshutosh Joshi
Update OWNERS to new stewards. Test: Build compiles. Change-Id: I98f9f58bce6b3686f3ff67f28f3e8d2f2ddf0a88
2018-03-05Revert recent r_submix patchesMikhail Naganov
Revert "r_submix: Fix logspam on pipe corruption" This reverts commit ab5b51838c94afc60f9979cdde2117930ef90ea9. Revert "r_submix: Use intermediate pipe in non-blocking mode" This reverts commit 1df8a0039ffaa5161e1ecdfda3ae3f7e5c7068c2. Reason: breaks Android Auto projected mode Bug: 74142786 Test: with Android Auto head unit simulator Change-Id: I8e1bc146a131cb5b1ab88cf242b03a6b02a84339
2018-03-01r_submix: Fix logspam on pipe corruptionMikhail Naganov
Prevent logging an error message on every attempt to write if the FIFO backing up the MonoPipe got corrupted. This condition can be detected by checking for -EIO error code. Bug: 74067530 Test: make audio_utils_fifo_base::mIsShutdown to be set by default, run r_submix_tests and observe logcat Change-Id: I5d67997e902e834f04c10f9ffb39b16cba9c5739
2018-02-27r_submix: Use intermediate pipe in non-blocking modeMikhail Naganov
Switch the pipe into non-blocking mode to prevent stalling when attempting to close it. Simulate circular buffer behavior by flushing old data if there is no more space in the pipe. This removes the need for "exiting=1" parameter. Bug: 73175392 Test: r_submix_tests Change-Id: Iff89980af71112892ff262030e471ae736b1f62a
2018-02-27r_submix: Add more testsMikhail Naganov
From analyzing the coverage data, these tests seem to cover all the critical functionality of the remote submix module. Bug: 73175392 Test: r_submix_tests Change-Id: I7f6be95245c6ab59611fc5e269e3f9f2079b8ee4
2018-02-23Merge "Revert "Restore "Add "Unlocked device required" parameter to keys"""TreeHugger Robot
2018-02-23Revert "Restore "Add "Unlocked device required" parameter to keys""Brian Young
This reverts commit a684cb6c2cee0835065b123e4bb698487de26939. Reason for revert: Regression in creating auth-bound keys Bug: 73773914 Bug: 67752510 Change-Id: Ib215d63efe442916f90065015a57614b097cd74d
2018-02-21Merge "r_submix: Add some tests"Mikhail Naganov
2018-02-16Merge "Restore "Add "Unlocked device required" parameter to keys""Brian Young
2018-02-15r_submix: Add some testsMikhail Naganov
Add simple tests to verify remote submix behavior regarding blocking writes. Currently one of the tests fails (does not finish), this needs to be fixed. Also fixed some minor issues in remote submix module code. Bug: 73175392 Test: r_submix_tests Change-Id: Ic88d0c385c0102e35b4f751f9c5cd8a6488949c8
2018-02-16Merge "Fix a memory leak"TreeHugger Robot
2018-02-15Restore "Add "Unlocked device required" parameter to keys"Brian C. Young
Add a keymaster parameter for keys that should be inaccessible when the device screen is locked. "Locked" here is a state where the device can be used or accessed without any further trust factor such as a PIN, password, fingerprint, or trusted face or voice. This parameter is added to the Java keystore interface for key creation and import, as well as enums specified by and for the native keystore process. This reverts commit 680068e9f224b9f82ab85034ca16a14395799e0b. Test: CTS tests in I8a5affd1eaed176756175158e3057e44934fffed Bug: 67752510 Change-Id: I9f3ea694f676801dc3dd348301544a603574edc7
2018-02-13Fix a memory leakGeorge Burgess IV
If status < 0, we'd silently leak dev. Bug: None Test: Ran the analyzer; memory leak warnings are gone. Change-Id: I76a78feea4c92aa167de908f5571481864d61d73
2018-02-05Camera: Revise MOTION_TRACKING capabilityEino-Ville Talvala
Simplify the API for the P release. Test: Revised Camera CTS passes Bug: 63629224 Change-Id: Ib8379f928dbdb6c66850d7648ac814fe710bb104
2018-01-30audio: Update default audio implementation.John Muir
Allow the default audio implementation to use the sample rate and format provided by the application, but default to 16-bit stereo for both input and output. Also, default to 10ms output buffer and 20ms input buffer. Bug: 70692394 Test: Audio device and output stream created successfully with the default frame_count. Audio device reports 20ms for input buffer size. Audio input stream created successfully with defaults. Setup device with audio_policy_configuration_stub.xml; no failures for GTS tests: GtsGmscoreHostTestCases -t 'com.google.android.gts.audio.AudioHostTest' Change-Id: If496fc89f72f26266a7ed9b59acf88d1ca76e704
2018-01-30Merge "Revert "Add "Unlocked device required" parameter to keys""Jorim Jaggi
2018-01-30Revert "Add "Unlocked device required" parameter to keys"Brian Young
This reverts commit dc9505de44c70e701cdf27c7f7d8d9de5217f4b6. Reason for revert: Build breakages on elfin, gce_x86_phone. Bug: 72679761 Bug: 67752510 Change-Id: I53d396632b7a23141b755e028342accf6625ca0b
2018-01-29Merge "Add "Unlocked device required" parameter to keys"TreeHugger Robot
2018-01-26Merge "Removes vehicle.default target"Hongwei Wang
2018-01-26Merge "camera 3_4: Fix compilation errors" am: 7904e9c2d7 am: 8a08d159fdDmitry Shmidt
am: b0d95c4bb8 -s ours Change-Id: I3fc0bd56305642281b92a0c7c9791ec4e9d33bea
2018-01-25Removes vehicle.default targetHongwei Wang
Bug: 72179784 Test: None Change-Id: Ia96ef01c98565deb8920d1df2eee31149a2a9338
2018-01-25Merge "camera 3_4: Fix compilation errors" am: 7904e9c2d7Dmitry Shmidt
am: 8a08d159fd Change-Id: Id6d08971d1625c0f57143a1d2f33228735d3915b
2018-01-25Merge "camera 3_4: Fix compilation errors"Dmitry Shmidt
am: 7904e9c2d7 Change-Id: I5c05336b1899ca7f92ccd548daa5e578c0d4bd89
2018-01-25Merge "camera 3_4: Fix compilation errors"android-wear-p-preview-2android-wear-8.0.0_r1android-p-preview-4android-p-preview-3android-p-preview-2android-p-preview-1android-o-mr1-iot-release-1.0.2android-o-mr1-iot-release-1.0.1android-o-mr1-iot-release-1.0.0android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7android-n-iot-release-smart-displayandroid-n-iot-release-polk-at1android-n-iot-release-lg-thinq-wk7o-mr1-iot-preview-8o-mr1-iot-preview-7Treehugger Robot
2018-01-25camera 3_4: Fix compilation errorsDmitry Shmidt
Compile Error: hardware/libhardware/modules/camera/3_4/camera.cpp:502:9: error: non-constant-expression cannot be narrowed from type 'std::__1::vector<camera3_stream_buffer, std::__1::allocator<camera3_stream_buffer> >::size_type' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] request->output_buffers.size(), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Compile Error: hardware/libhardware/modules/camera/3_4/v4l2_gralloc.cpp:168:15: error: use of undeclared identifier 'EINVAL' return -EINVAL; Test: Add to device.mk USE_CAMERA_V4L2_HAL := true PRODUCT_PACKAGES += camera.v4l2 mma Change-Id: Ia6bbd6bac06540214d2c6167a8826f3f4c946e57 Merged-In: Ia6bbd6bac06540214d2c6167a8826f3f4c946e57 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2018-01-25Add "Unlocked device required" parameter to keysBrian C. Young
Add a keymaster parameter for keys that should be inaccessible when the device screen is locked. "Locked" here is a state where the device can be used or accessed without any further trust factor such as a PIN, password, fingerprint, or trusted face or voice. This parameter is added to the Java keystore interface for key creation and import, as well as enums specified by and for the native keystore process. Test: go/asym-write-test-plan Bug: 67752510 Change-Id: Ic1ec3bde05f8a28e20b9443b7f0078749921f297
2018-01-25Merge "camera3: Add physical camera id field in capture result"Shuzhen Wang
2018-01-24Add support for HDR metadata (SMPTE2086)Courtney Goeltzenleuchter
Add HWC interface to pass in SMPTE2086 & CTA 861.3 metadata. Test: TBD CTS test Bug: 29940137 Change-Id: Ib99787752441b8a883864cc8adc8431478a15ba7
2018-01-24camera3: Add physical camera id field in capture resultShuzhen Wang
- Add an array of physical camera ids and metadata when physical cameras are requested within a logical multi-camera. - Physical camera ids and metadata are only necessary for the final capture_results, not the partial result. - Physical camera ids and metadata must not be populated if no physical camera is requested. Test: Compile Bug: 64691172 Change-Id: I78b20fe3d0c6462abf95b8fe7e3b4c66b3acefdf
2018-01-24Merge "camera 3_4: Fix compilation errors"TreeHugger Robot
2018-01-24camera 3_4: Fix compilation errorsDmitry Shmidt
Compile Error: hardware/libhardware/modules/camera/3_4/camera.cpp:502:9: error: non-constant-expression cannot be narrowed from type 'std::__1::vector<camera3_stream_buffer, std::__1::allocator<camera3_stream_buffer> >::size_type' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') in initializer list [-Wc++11-narrowing] request->output_buffers.size(), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Test: Add to device.mk USE_CAMERA_V4L2_HAL := true PRODUCT_PACKAGES += camera.v4l2 mma Change-Id: Ia6bbd6bac06540214d2c6167a8826f3f4c946e57 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2018-01-24Merge "[HWC] Add setLayerFloatColor API."TreeHugger Robot
2018-01-24[HWC] Add setLayerFloatColor API.Peiyong Lin
This patch adds the struct of float color, and setLayerFloatColor API so that SurfaceFlinger can set the layer color with more bits on each channel. Currently the display calibration tool require 10-bits support. BUG: 69970838 Test: make locally and applied on device Change-Id: I8bab335cc4fbc41a3eb18306a8831d1e9a9a219a
2018-01-24Merge "Revert "Audio V4: Split system and vendor Audio.h""Kevin Rocard
2018-01-24Revert "Audio V4: Split system and vendor Audio.h"Kevin Rocard
This reverts commit fc9e212f018ce41430ec8dcebc3cae3c346474bb. Reason for revert: Breaks multiple devices Change-Id: I816671fd92246f85c97d00819858a74e36e2929d
2018-01-24Merge "Camera3: Add new MOTION_TRACKING template enums"TreeHugger Robot
2018-01-24Merge "Audio V4: Split system and vendor Audio.h"Kevin Rocard
2018-01-23Camera3: Add new MOTION_TRACKING template enumsEino-Ville Talvala
Bug: 70565622 Bug: 63629224 Test: Builds, CTS passes Change-Id: I927776d042b74013cf24c342b107a5aee1ad26a2
2018-01-23Merge "camera3: Extend camera capture request for multiple cameras"Shuzhen Wang