OSDN Git Service
Andy Hung [Tue, 9 Oct 2018 20:55:11 +0000 (13:55 -0700)]
audio: update switch to use FALLTHROUGH_INTENDED
Test: compile, sanity
Bug:
117509050
Change-Id: I1394e22621af6519b6679353f31f06561ffeacad
TreeHugger Robot [Tue, 2 Oct 2018 17:10:10 +0000 (17:10 +0000)]
Merge "FdToString: Implement read/poll based timeout"
Andy Hung [Thu, 27 Sep 2018 00:55:30 +0000 (17:55 -0700)]
FdToString: Implement read/poll based timeout
Appears in some cases wakeup of threads blocked on fds
may be lost in hwbinder.
Test: continuous reboot +400 times (per bug), unit test
Bug:
116211629
Bug:
116873928
Change-Id: I1f122ed5743a60a1bcc994527e79bec1a21a6de4
Yin-Chia Yeh [Mon, 17 Sep 2018 18:52:08 +0000 (11:52 -0700)]
Camera: add buffer management API key
Also do s/metadata_properties.xsd/metadata_definitions.xsd as
the file has been renamed
Test: compile
Bug:
109829698
Change-Id: I79444ee279378e2ca8ab9a4b2efeda012a21f2c7
Shuzhen Wang [Thu, 13 Sep 2018 19:57:48 +0000 (19:57 +0000)]
Merge "Camera: Allow camera HAL to not independently expose physical cameras"
TreeHugger Robot [Thu, 13 Sep 2018 17:22:28 +0000 (17:22 +0000)]
Merge "Camera: Add support for 'permission_needed' tag property"
Emilian Peev [Wed, 15 Aug 2018 17:20:27 +0000 (18:20 +0100)]
Camera: Add support for 'permission_needed' tag property
Metadata definitions should support an optional 'permission_needed'
property. By default the value must be set to 'false'.
Bug:
112160024
Test: Manual using application,
adb shell /data/nativetest64/camera_client_test/camera_client_test
--gtest_filter=CameraCharacteristicsPermission.TestCameraPermission
Camera CTS
Change-Id: I8b19b103060ae7ca20f818687dff535afd79a159
Eino-Ville Talvala [Wed, 12 Sep 2018 17:36:48 +0000 (17:36 +0000)]
Merge "Camera: Add camera_metadata tests to presubmit"
Shuzhen Wang [Thu, 6 Sep 2018 00:01:23 +0000 (17:01 -0700)]
Camera: Allow camera HAL to not independently expose physical cameras
Test: make offline-sdk-docs
Bug:
79523700
Change-Id: Ia7d3141793f2f3fd891b99076effec5f2854f566
Eino-Ville Talvala [Wed, 22 Aug 2018 21:49:28 +0000 (14:49 -0700)]
Camera: Add camera_metadata tests to presubmit
- Fix alignment crashes in validate_metadata when
alignment is not a multiple of 4
- Add camera_metadata_tests into TEST_MAPPING
Test: atest in system/media/camera
Change-Id: Ib44bb829156f5225c3f2c2181b6f508a1f689dfd
Ryan Prichard [Fri, 7 Sep 2018 04:48:42 +0000 (21:48 -0700)]
[automerger skipped] Merge changes from topic "
b113052379-cp-from-pi-dev-p2" am:
f259bd9630 am:
c8982bcc68 -s ours
am:
aac9f6c448 -s ours
Change-Id: Ic1869a998a52f88af4875e655803136b8d905712
Eino-Ville Talvala [Fri, 7 Sep 2018 04:48:30 +0000 (21:48 -0700)]
[automerger skipped] Camera: Documentation updates for calibration and distortion correction am:
ef76f7db05 am:
57cbfe6d9b -s ours
am:
48e9a17c04 -s ours
Change-Id: If2cdb2d359c5aa36e15b7da6fd780b9c83a44e62
Ryan Prichard [Thu, 6 Sep 2018 21:52:07 +0000 (14:52 -0700)]
[automerger skipped] Merge changes from topic "
b113052379-cp-from-pi-dev-p2" am:
f259bd9630
am:
c8982bcc68 -s ours
Change-Id: Id3b1b1a0728ce84adbd48a4e44f8b6ef5b001b95
Eino-Ville Talvala [Thu, 6 Sep 2018 21:51:57 +0000 (14:51 -0700)]
[automerger skipped] Camera: Documentation updates for calibration and distortion correction am:
ef76f7db05
am:
57cbfe6d9b -s ours
Change-Id: I0afef36c511e7e28b90d34a8a9919fd6026d6329
Ryan Prichard [Thu, 6 Sep 2018 21:38:05 +0000 (14:38 -0700)]
Merge changes from topic "
b113052379-cp-from-pi-dev-p2"
am:
f259bd9630
Change-Id: I2971810401325cfb1769156f816be43f069d0315
Eino-Ville Talvala [Thu, 6 Sep 2018 21:37:48 +0000 (14:37 -0700)]
Camera: Documentation updates for calibration and distortion correction
am:
ef76f7db05
Change-Id: I58bed08d772605e788d29193db3d9ac50c229e5c
Ryan Prichard [Thu, 6 Sep 2018 20:35:24 +0000 (20:35 +0000)]
Merge changes from topic "
b113052379-cp-from-pi-dev-p2"
* changes:
Camera: Documentation update to remove physicalIds
Camera: Documentation updates for calibration and distortion correction
Ryan Prichard [Tue, 4 Sep 2018 21:20:39 +0000 (14:20 -0700)]
[automerger skipped] Merge changes from topic "
b113052379-cp-from-pi-dev-p1" am:
2b8f67882e -s ours am:
1e32bc8d44 -s ours
am:
98e961aa4f -s ours
Change-Id: Ieb9c7f260b31ee822373ee7d7a49aa9154545c52
Yin-Chia Yeh [Tue, 4 Sep 2018 21:09:29 +0000 (14:09 -0700)]
[automerger skipped] Camera: update hardware level docs am:
63fcb04438 -s ours am:
1866059e55 -s ours
am:
c0232ec086 -s ours
Change-Id: Ic58428a4889db226ec330b083a965728ecad25c6
Ryan Prichard [Tue, 4 Sep 2018 20:52:15 +0000 (13:52 -0700)]
[automerger skipped] Merge changes from topic "
b113052379-cp-from-pi-dev-p1" am:
2b8f67882e -s ours
am:
1e32bc8d44 -s ours
Change-Id: Id782b7f7cce7d0aeb33d35bc3192d665cf866fdb
Yin-Chia Yeh [Tue, 4 Sep 2018 20:48:04 +0000 (13:48 -0700)]
[automerger skipped] Camera: update hardware level docs am:
63fcb04438 -s ours
am:
1866059e55 -s ours
Change-Id: I45f12d2f193b4903fb1307609e9216ab17f9d208
Ryan Prichard [Tue, 4 Sep 2018 20:39:21 +0000 (13:39 -0700)]
[automerger skipped] Merge changes from topic "
b113052379-cp-from-pi-dev-p1"
am:
2b8f67882e -s ours
Change-Id: I9cd41c554b1fafa0a5e30ed5dcd321c7e7ba5432
Yin-Chia Yeh [Tue, 4 Sep 2018 20:37:36 +0000 (13:37 -0700)]
[automerger skipped] Camera: update hardware level docs
am:
63fcb04438 -s ours
Change-Id: Ie2241f52f3d3cb848d92786378f7a76258931e3c
Ryan Prichard [Tue, 4 Sep 2018 20:20:17 +0000 (20:20 +0000)]
Merge changes from topic "
b113052379-cp-from-pi-dev-p1"
* changes:
Camera: update hardware level docs
Camera: update coordinate semantics w.r.t. distortion correction
Eino-Ville Talvala [Wed, 1 Aug 2018 22:26:26 +0000 (15:26 -0700)]
Camera: Documentation updates for calibration and distortion correction
- Add more notes on coordinate axes
- Add more text on metadata when distortion correction is active
- Note that poseTranslation needs to be negated in many use cases
- Fix coordinate system references for OIS reporting, add more information
- Note that pixel centers at half-integers for the camera API metadata
such as lens intrinsics
Bug:
79371566
Bug:
74434422
Bug:
109742048
Bug:
109834325
Bug:
109817371
Bug:
112107924
Bug:
113052379
Test: Manual reading of added text
Change-Id: Ic759ca931a1684c3f7b47e4940c259c42227d525
Merged-In: Ic759ca931a1684c3f7b47e4940c259c42227d525
(cherry picked from commit
d9721660e46c111a59e9392f4de2636395ff6288)
Shuzhen Wang [Wed, 15 Aug 2018 20:56:29 +0000 (13:56 -0700)]
Camera: Documentation update to remove physicalIds
Public API doesn't see android.logicalcam.physicalIds. Remove it
from public doc.
Bug:
112655222
Bug:
113052379
Test: Manual reading of modified text
Change-Id: I89a9d8876efd01d2a75af29ad114bff845968f09
Merged-In: I89a9d8876efd01d2a75af29ad114bff845968f09
(cherry picked from commit
7c30d451a8c9a0395ed4580ff4047a6192716a9b)
Yin-Chia Yeh [Fri, 13 Jul 2018 18:49:10 +0000 (11:49 -0700)]
Camera: update hardware level docs
Put in correct sample code reflecting the addition of EXTERNAL
level.
Test: inspect the document
Bug:
77861412
Bug:
113052379
Change-Id: Icd20cfa6c10ce86a3aa1f99f0a2e178f2c050327
Merged-In: Icd20cfa6c10ce86a3aa1f99f0a2e178f2c050327
(cherry picked from commit
7d43c9194674485eeca68b62754db594cd4fc0c8)
Yin-Chia Yeh [Fri, 15 Jun 2018 22:35:05 +0000 (15:35 -0700)]
Camera: update coordinate semantics w.r.t. distortion correction
Also fix a NDK doucment error on semantics of face rectangle.
Test: Compile
Bug:
109666939
Bug:
113052379
Change-Id: I79c48d3a24b3dccb49720d9bcd0fdce978602139
Merged-In: I79c48d3a24b3dccb49720d9bcd0fdce978602139
(cherry picked from commit
69bce26dd2833705d300bb1ae3b6c2eb5edf9910)
Andy Hung [Fri, 24 Aug 2018 21:57:00 +0000 (14:57 -0700)]
Add FdToString
A helper class to collect dumpsys information into a string.
Test: fdtostring_tests
Bug:
80155745
Change-Id: I0d4febdb7db30907b161a61e7413b9923c12899e
Andy Hung [Tue, 28 Aug 2018 18:12:26 +0000 (11:12 -0700)]
SimpleLog: Efficiently log from std::string
Test: simplelog_tests
Bug:
80155745
Change-Id: Iaa761f74a2d11ce7e9470f8fd2412ac0b656bab1
Kevin Rocard [Sat, 18 Aug 2018 01:43:36 +0000 (18:43 -0700)]
Merge "Aaudio: Implement app shareable flag instead of -size hack" am:
9977afe006 am:
bc3d63b2fa
am:
944956b025
Change-Id: Icb956d3bdb4067e112fc196fd6a4308221935485
Kevin Rocard [Sat, 18 Aug 2018 00:58:14 +0000 (17:58 -0700)]
Merge "Aaudio: Implement app shareable flag instead of -size hack" am:
9977afe006
am:
bc3d63b2fa
Change-Id: Ib9642488ec8ee2bfc8627202594648f02280a388
Kevin Rocard [Sat, 18 Aug 2018 00:13:40 +0000 (17:13 -0700)]
Merge "Aaudio: Implement app shareable flag instead of -size hack"
am:
9977afe006
Change-Id: I739ea65a9830e72d5b65c1e0a31f57bf43608fa3
Treehugger Robot [Fri, 17 Aug 2018 23:03:44 +0000 (23:03 +0000)]
Merge "Aaudio: Implement app shareable flag instead of -size hack"
Shuzhen Wang [Fri, 17 Aug 2018 01:29:22 +0000 (18:29 -0700)]
Camera: Documentation update to remove physicalIds am:
7c30d451a8
am:
200f7dbbb8
Change-Id: I0cfa36d15852afccacbb5d99657159c553cb162c
Shuzhen Wang [Fri, 17 Aug 2018 00:29:40 +0000 (17:29 -0700)]
Camera: Documentation update to remove physicalIds
am:
7c30d451a8
Change-Id: I38538ad29430c5d36f04cc91114303f78236224d
Shuzhen Wang [Wed, 15 Aug 2018 20:56:29 +0000 (13:56 -0700)]
Camera: Documentation update to remove physicalIds
Public API doesn't see android.logicalcam.physicalIds. Remove it
from public doc.
Bug:
112655222
Test: Manual reading of modified text
Change-Id: I89a9d8876efd01d2a75af29ad114bff845968f09
Xin Li [Tue, 14 Aug 2018 01:53:51 +0000 (18:53 -0700)]
Merge stage-dr1-aosp-master into stage-aosp-master am:
7a1a754f51
am:
b9a6512a09
Change-Id: I962538fd61df01c6e52038d7e28303425014f95e
Xin Li [Tue, 14 Aug 2018 00:45:11 +0000 (17:45 -0700)]
Merge stage-dr1-aosp-master into stage-aosp-master
am:
7a1a754f51
Change-Id: I5ec1bce1f95820f0dc3a58c5dbaad983c327e93d
Xin Li [Mon, 13 Aug 2018 20:01:24 +0000 (13:01 -0700)]
Merge stage-dr1-aosp-master into stage-aosp-master
Bug:
112535855
Change-Id: I69e918f5ea213e0616bf832307572b060b2ef979
Kevin Rocard [Fri, 13 Jul 2018 02:38:43 +0000 (19:38 -0700)]
Aaudio: Implement app shareable flag instead of -size hack
Test: adb shell data/nativetest64/write_sine/write_sine -pl -m3 -x
Bug:
38118159
Change-Id: I2839b5db91dee871d2416449692c47d887e530ad
Signed-off-by: Kevin Rocard <krocard@google.com>
Xin Li [Wed, 8 Aug 2018 11:43:09 +0000 (04:43 -0700)]
Merge "Merge Android Pie into master" am:
dbbcb69af4 am:
c41b15f261 am:
b875fb10c3
am:
057349699d
Change-Id: I3f7bed88e7b9c306125e2884922409d0c0d66794
Xin Li [Wed, 8 Aug 2018 06:41:25 +0000 (23:41 -0700)]
Merge "Merge Android Pie into master" am:
dbbcb69af4 am:
c41b15f261
am:
b875fb10c3
Change-Id: I245cceca8d833edb6c86a331d67c7340bf9a497c
Xin Li [Wed, 8 Aug 2018 02:16:31 +0000 (19:16 -0700)]
Merge "Merge Android Pie into master" am:
dbbcb69af4
am:
c41b15f261
Change-Id: I24a1c62e405d7d7577f74963b80772fe4d061a9d
Xin Li [Tue, 7 Aug 2018 22:47:43 +0000 (15:47 -0700)]
Merge "Merge Android Pie into master"
am:
dbbcb69af4
Change-Id: Ic8ba572e06d35319909fb5949939fa11e2f41c71
Andy Hung [Tue, 7 Aug 2018 17:29:22 +0000 (17:29 +0000)]
Merge "TimestampVerifier: add timestamp estimator"
Xin Li [Tue, 7 Aug 2018 16:51:25 +0000 (16:51 +0000)]
Merge "Merge Android Pie into master"
Andy Hung [Wed, 25 Jul 2018 19:07:08 +0000 (12:07 -0700)]
TimestampVerifier: add timestamp estimator
Test: timestampverifier_tests
Bug:
80502521
Change-Id: I898408ff81e15e7ff69822092f3e21f9fce56db5
Xin Li [Mon, 6 Aug 2018 23:52:50 +0000 (16:52 -0700)]
Merge Android Pie into master
Bug:
112104996
Change-Id: Ifdec52c860aae39f7d03a7320a6050a2c5f756df
Eino-Ville Talvala [Sat, 4 Aug 2018 23:31:34 +0000 (16:31 -0700)]
Camera: Documentation updates for calibration and distortion correction am:
d9721660e4
am:
b6297ce836
Change-Id: Ie2332c8340952b04129c144545958debee6cf639
Eino-Ville Talvala [Sat, 4 Aug 2018 23:21:03 +0000 (16:21 -0700)]
Camera: Documentation updates for calibration and distortion correction
am:
d9721660e4
Change-Id: Ice97dc159305fc480ac258ad89a962bf90be5d13
Tomasz Wasilczyk [Fri, 3 Aug 2018 19:45:32 +0000 (12:45 -0700)]
Merge "Fix unchecked realloc." am:
81ce87f0cc am:
0e0e1724f6 am:
ffdf0a47da
am:
3228e5a1a6
Change-Id: I74bf8a78cb899d2489d3d33b445acba5b93a96ae
Tomasz Wasilczyk [Fri, 3 Aug 2018 19:36:37 +0000 (12:36 -0700)]
Merge "Fix unchecked realloc." am:
81ce87f0cc am:
0e0e1724f6
am:
ffdf0a47da
Change-Id: I30cac6f710fdf774a96808ddfb5bee20e676f07c
Tomasz Wasilczyk [Fri, 3 Aug 2018 19:31:26 +0000 (12:31 -0700)]
Merge "Fix unchecked realloc." am:
81ce87f0cc
am:
0e0e1724f6
Change-Id: I6b169da16dc81b4a4c35c3e744e1e424df6bf4c9
Tomasz Wasilczyk [Fri, 3 Aug 2018 19:26:19 +0000 (12:26 -0700)]
Merge "Fix unchecked realloc."
am:
81ce87f0cc
Change-Id: I4313a7be92cd5797d469788a77cb5ce84332db80
Treehugger Robot [Fri, 3 Aug 2018 19:18:17 +0000 (19:18 +0000)]
Merge "Fix unchecked realloc."
Tomasz Wasilczyk [Fri, 3 Aug 2018 17:03:37 +0000 (10:03 -0700)]
Fix unchecked realloc.
Bug:
112164163
Test: it builds
Change-Id: Ic5ca2e8417eb3d0f6a582a32429c48bddd7aa77f
Kevin Rocard [Fri, 3 Aug 2018 15:06:06 +0000 (15:06 +0000)]
Merge "Aaudio: Implement app shareable flag instead of -size hack"
Kevin Rocard [Fri, 13 Jul 2018 02:38:43 +0000 (19:38 -0700)]
Aaudio: Implement app shareable flag instead of -size hack
Test: adb shell data/nativetest64/write_sine/write_sine -pl -m3
Bug:
38118159
Change-Id: I2839b5db91dee871d2416449692c47d887e530ad
Signed-off-by: Kevin Rocard <krocard@google.com>
Eino-Ville Talvala [Wed, 1 Aug 2018 22:26:26 +0000 (15:26 -0700)]
Camera: Documentation updates for calibration and distortion correction
- Add more notes on coordinate axes
- Add more text on metadata when distortion correction is active
- Note that poseTranslation needs to be negated in many use cases
- Fix coordinate system references for OIS reporting, add more information
- Note that pixel centers at half-integers for the camera API metadata
such as lens intrinsics
Bug:
79371566
Bug:
74434422
Bug:
109742048
Bug:
109834325
Bug:
109817371
Bug:
112107924
Test: Manual reading of added text
Change-Id: Ic759ca931a1684c3f7b47e4940c259c42227d525
Andy Hung [Sat, 21 Jul 2018 01:21:22 +0000 (18:21 -0700)]
Statistics: Add tuple data input, linear fit
Helper variadic_utils.h added.
Test: statistics_tests variadic_tests
Bug:
80502521
Change-Id: Id3a38652f61989ca8bb01024c696ffe13ec3d9ea
TreeHugger Robot [Tue, 31 Jul 2018 21:31:43 +0000 (21:31 +0000)]
Merge "For high sample rates, lock input & output sample rate if possible."
Paul McLean [Mon, 30 Jul 2018 20:44:47 +0000 (14:44 -0600)]
For high sample rates, lock input & output sample rate if possible.
Bug:
80363107
Test: connect Mi Noise-cancelling headset and confirm input and output
Connect varius music-oriented interfaces and verify simultaneous play/record with no stutters.
Change-Id: Ie0190d66554abdfb62c3a1282ba030757d86ba3a
Andy Hung [Thu, 26 Jul 2018 16:47:48 +0000 (16:47 +0000)]
Merge "Statistics: Implement changeable weighting"
Andy Hung [Thu, 19 Jul 2018 19:23:36 +0000 (12:23 -0700)]
Statistics: Implement changeable weighting
Test: statistics_tests
Change-Id: I0bdf8937b50e2f8d2cc5904231b594d187d228de
Android Build Merger (Role) [Mon, 23 Jul 2018 23:43:11 +0000 (23:43 +0000)]
Merge "Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master am:
60c2b6b1d1 am:
c6a3929446"
Xin Li [Mon, 23 Jul 2018 23:35:11 +0000 (16:35 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master am:
60c2b6b1d1
am:
c6a3929446
Change-Id: I796f2805f34f55e5fc95a39de682eb6a4941ff0a
Ryan Prichard [Mon, 23 Jul 2018 23:29:50 +0000 (23:29 +0000)]
Merge "Revert "<camera/NdkCameraMetadataTags.h>: remove #if __ANDROID_API__""
Xin Li [Mon, 23 Jul 2018 21:26:11 +0000 (14:26 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
am:
60c2b6b1d1
Change-Id: Ib7b38ba375dd90a1713a53d3b078f51d0c15ecd6
Dean Wheatley [Fri, 13 Jul 2018 00:37:22 +0000 (10:37 +1000)]
Define AUDIO_HARDWARE_MODULE_ID_MSD
This is the hardware module name that AudioFlinger expects
MSD services to support. It is more consistent to use module
names while working with software modules rather than service
name.
Bug:
63901775
Test: make
Change-Id: I888a6f8370046f193c81409f7f7527d6bba9464a
Xin Li [Mon, 23 Jul 2018 05:10:28 +0000 (22:10 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
Bug:
111615259
Change-Id: I5fa45da109f19a68a4256098f3e5071bb35a9d7a
Eric Tan [Fri, 20 Jul 2018 19:00:33 +0000 (19:00 +0000)]
Merge "Move histogram code from PerformanceAnalysis.cpp."
Xin Li [Fri, 20 Jul 2018 08:41:46 +0000 (01:41 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master am:
6428291f10
am:
f69806687c
Change-Id: Ia6cadfa8bc0d25a9f76ec7c66f80c3ce7f52e2d1
Xin Li [Fri, 20 Jul 2018 06:51:24 +0000 (23:51 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
am:
6428291f10
Change-Id: I64b1cd97e9d6254b8216206f63332d48ff1c351a
Ryan Prichard [Fri, 20 Jul 2018 04:48:34 +0000 (21:48 -0700)]
Revert "<camera/NdkCameraMetadataTags.h>: remove #if __ANDROID_API__"
This reverts commit
e918c6f5ccba5db90b19e644d5fab1f18d3dbe66.
I *could* skip this change, but I've already added __ANDROID_API__
back everywhere it was in frameworks/av. I could instead add
__ANDROID_API__ back only surrounding function declarations, but the
function declarations are mixed up with the types and constants, so I'd
need to add a bunch of __ANDROID_API__ checks or reorganize the headers.
Bug: http://b/
111668906
Test: builds
Change-Id: I1692532df13df2dec050b4976f0e64cc67f802ed
Xin Li [Thu, 19 Jul 2018 20:50:39 +0000 (13:50 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
Bug:
111615259
Change-Id: Ide33df2b5a966550accfb980e602a7673462b61d
Yin-Chia Yeh [Thu, 19 Jul 2018 16:37:03 +0000 (09:37 -0700)]
Camera: update hardware level docs am:
7d43c91946
am:
98e5ee3a02
Change-Id: I618840604acfe9dea0d96b09042b8f52156265ba
Yin-Chia Yeh [Thu, 19 Jul 2018 16:26:03 +0000 (09:26 -0700)]
Camera: update hardware level docs
am:
7d43c91946
Change-Id: I0b7e7ff545cac29c5497763fe2bd9cd9603ea7d0
Eric Tan [Tue, 17 Jul 2018 17:31:53 +0000 (10:31 -0700)]
Move histogram code from PerformanceAnalysis.cpp.
See change
4503382.
Test: build
Change-Id: I45c1e9f5f3bca5ffc962bda1a050d9878cc57418
Emilie Roberts [Fri, 13 Jul 2018 19:59:18 +0000 (19:59 +0000)]
Add non-destructive channel functions
Adds contract/expand functions to channels.c that allow extra channels
to be stored at back of buffer on contract and restored on expand.
Immediate motivation is for using the stereo effects engine in N with
multi-channel audio.
Test: audio_utils/tests/channels_tests.cpp
Change-Id: If2a9d419171fa01f0700389274521d2abdb3b7e9
Yin-Chia Yeh [Fri, 13 Jul 2018 18:49:10 +0000 (11:49 -0700)]
Camera: update hardware level docs
Put in correct sample code reflecting the addition of EXTERNAL
level.
Test: inspect the document
Bug:
77861412
Change-Id: Icd20cfa6c10ce86a3aa1f99f0a2e178f2c050327
Andy Hung [Tue, 10 Jul 2018 20:55:43 +0000 (20:55 +0000)]
Merge "TimestampVerifier: Add discontinuity modes"
TreeHugger Robot [Mon, 9 Jul 2018 23:31:25 +0000 (23:31 +0000)]
Merge "audio: add patch-related utilities"
Mikhail Naganov [Fri, 15 Jun 2018 20:12:23 +0000 (13:12 -0700)]
audio: add patch-related utilities
Add the following functions:
audio_patch_is_valid
audio_patches_are_equal
audio_port_configs_are_equal
And helper functions.
Bug:
63901775
Test: systemaudio_tests
Change-Id: I2884e36bd2dc18513afcfb4512559a5231275b5b
Andy Hung [Tue, 3 Jul 2018 23:18:11 +0000 (16:18 -0700)]
TimestampVerifier: Add discontinuity modes
DISCONTINUITY_MODE_ZERO is where frame position is reset to
zero on discontinuity, used for offload and direct playback.
Test: audioflinger dumpsys with offload playback
Bug:
80502521
Change-Id: I5244e733bf1d45c4c168d0d087dc01af9ec436ff
Andy Hung [Tue, 3 Jul 2018 21:02:35 +0000 (14:02 -0700)]
Statistics: Add benchmarking
Also add related usage comments into Statistics.h.
Test: this is the statistics_benchmark test.
Bug:
110830515
Change-Id: I5c3a39118fcca647301ef292d496c9e73a1c22db
TreeHugger Robot [Fri, 6 Jul 2018 20:37:05 +0000 (20:37 +0000)]
Merge "Include test files in Android.bp"
Eric Tan [Mon, 2 Jul 2018 17:45:35 +0000 (10:45 -0700)]
Include test files in Android.bp
Test: build
Bug:
110794851
Change-Id: I45c36fcdbb70556147c3d2adebeb7bc920135c32
Andy Hung [Fri, 6 Jul 2018 16:22:55 +0000 (16:22 +0000)]
Merge "Statistics: fix return type of getMin getMax"
Eric Laurent [Wed, 4 Jul 2018 00:47:14 +0000 (00:47 +0000)]
Merge "audio policy: remove special notifications handling in call"
Andy Hung [Tue, 3 Jul 2018 23:21:39 +0000 (16:21 -0700)]
Statistics: fix return type of getMin getMax
Should be the sample type not the accumulated type.
Test: statistics_tests native test
Change-Id: I73c640a7ac5c4810d0b7740b90afe20ea11db286
Eric Tan [Fri, 22 Jun 2018 16:24:22 +0000 (09:24 -0700)]
ASCII art string of signal power history
Add autoscale and width limit to power log graph
Change PowerLogGraph API and name (now LogPlot).
Plot now shows most recent data when cutting off.
Test: play music through audio headset while adjusting volume, dumpsys media.audio_flinger
Bug:
110794851
Change-Id: I3e046c0a29260dbefbebffb1125ed05c9b60c475
Eric Laurent [Sat, 30 Jun 2018 00:44:35 +0000 (17:44 -0700)]
audio policy: remove special notifications handling in call
Not needed anymore as this is handled by NotificationManager
Test: make
Change-Id: Iab89d0a3784adda5c00489505e9c3de60a3cb393
Andy Hung [Tue, 26 Jun 2018 19:00:12 +0000 (19:00 +0000)]
Merge "Timestamp: Add cold state when coming out of discontinuity."
Andy Hung [Tue, 26 Jun 2018 18:10:12 +0000 (18:10 +0000)]
Merge "audio_utils: Add timestamp verification"
Andy Hung [Tue, 26 Jun 2018 16:35:17 +0000 (16:35 +0000)]
Merge "audio_utils: Add statistics class"
Andy Hung [Tue, 19 Jun 2018 17:12:01 +0000 (10:12 -0700)]
Timestamp: Add cold state when coming out of discontinuity.
Compensates for timestamp start up lag.
Test: adb shell dumpsys media.audio_flinger (after standby)
Bug:
80502521
Change-Id: I518d30bba1c3cb1c04c48faff8201692276b77df
Andy Hung [Wed, 13 Jun 2018 23:58:32 +0000 (16:58 -0700)]
audio_utils: Add timestamp verification
Test: adb shell dumpsys media.audio_flinger
Bug:
80502521
Change-Id: Ifa152853b78ad6adf3d441a3c7434a929814d4b9
Andy Hung [Wed, 13 Jun 2018 23:38:41 +0000 (16:38 -0700)]
audio_utils: Add statistics class
Computes (weighted) running mean, variance, stddev.
Test: statistics_tests
Bug:
110172665
Change-Id: Ia7b763e9943bc328659021d951a31eb9adca6d80
TreeHugger Robot [Wed, 20 Jun 2018 21:49:51 +0000 (21:49 +0000)]
Merge "<camera/NdkCameraMetadataTags.h>: remove #if __ANDROID_API__"