OSDN Git Service

android-x86/system-media.git
5 years agoaudio_utils code cleanup
Glenn Kasten [Tue, 30 Oct 2018 16:01:36 +0000 (09:01 -0700)]
audio_utils code cleanup

Add missing comments at end of #if
Include order
Include what you use
Fix whitespace at EOF

Test: builds OK
Change-Id: I6740fb4d6f2cb86b38a3905a82448bc982b408cc

5 years agoCamera: Clarify monochrome camera metadata support
Shuzhen Wang [Mon, 15 Oct 2018 19:00:13 +0000 (12:00 -0700)]
Camera: Clarify monochrome camera metadata support

- Add new CFA pattern for monochrome cameras
- Clarify metadata tags related to CFA patterns

Test: metadata-generate and read docs
Bug: 70216652
Change-Id: I798ec473c18fe5ee36fd948a5914ba0b0df731b1

5 years agoMerge "Converting sound trigger v2.2 getModelState to be asynchronous"
Michael Dooley [Mon, 12 Nov 2018 19:27:39 +0000 (19:27 +0000)]
Merge "Converting sound trigger v2.2 getModelState to be asynchronous"

5 years agoMerge "audio_route: check no used before mixer reset"
TreeHugger Robot [Sat, 10 Nov 2018 03:13:40 +0000 (03:13 +0000)]
Merge "audio_route: check no used before mixer reset"

5 years agoAdd test for minifloat
Glenn Kasten [Thu, 8 Nov 2018 16:32:01 +0000 (08:32 -0800)]
Add test for minifloat

Test: this is it
Change-Id: I278b72b95ad2d51e361b62a3c30a0b52cf9d7663

5 years agoaudio_route: check no used before mixer reset
HW Lee [Wed, 17 Oct 2018 09:32:14 +0000 (17:32 +0800)]
audio_route: check no used before mixer reset

The audio_route_update_path is used for enabling/disabling audio paths
by HAL, and all mixer controls will be reset in a path when the path is
disabled by HAL. However, some mixer controls are used by multiple audio
paths then such disabling operation might cause the failure on other
paths. To prevent from resetting the used controls, add the active count
for checking if the control can be reset before actually setting the
mixer control.

Bug: 117310706
Bug: 118646089
Test: VoIP (FB Messenger/Hangouts/Skype)
Change-Id: I9c25e9a9651fe27052b52155801ab54ec19156ee
Signed-off-by: HW Lee <hwlee@google.com>
5 years agoMerge "Add signed minifloat: sample"
Glenn Kasten [Thu, 8 Nov 2018 20:43:49 +0000 (20:43 +0000)]
Merge "Add signed minifloat: sample"

5 years agoAdd signed minifloat: sample
Glenn Kasten [Sun, 18 May 2014 20:36:37 +0000 (13:36 -0700)]
Add signed minifloat: sample

Test: vendor/box
Change-Id: I93d3f854d671730f6c0c7aa3997df70e8f6bea4b

5 years agoConverting sound trigger v2.2 getModelState to be asynchronous
mike dooley [Wed, 7 Nov 2018 14:54:52 +0000 (15:54 +0100)]
Converting sound trigger v2.2 getModelState to be asynchronous

Test: built android with checkbuild flag

Change-Id: I8635e8303adaddcaed000a1943ed3da58b1c7104
Bug-Id: 70206501

5 years agoMerge "Camera: Add support for recommended stream configurations"
Shuzhen Wang [Wed, 7 Nov 2018 22:54:01 +0000 (22:54 +0000)]
Merge "Camera: Add support for recommended stream configurations"

5 years agoMerge "Camera: Add Y8/RAW10/RAW12 formats support"
Shuzhen Wang [Wed, 7 Nov 2018 05:54:37 +0000 (05:54 +0000)]
Merge "Camera: Add Y8/RAW10/RAW12 formats support"

5 years agoMerge "audio_utils: implement SF_FORMAT_PCM_U8 for libsndfile"
Glenn Kasten [Mon, 5 Nov 2018 22:41:27 +0000 (22:41 +0000)]
Merge "audio_utils: implement SF_FORMAT_PCM_U8 for libsndfile"

5 years agoMerge "audio_utils: add memcpy_to_i32_from_u8"
Glenn Kasten [Mon, 5 Nov 2018 15:56:41 +0000 (15:56 +0000)]
Merge "audio_utils: add memcpy_to_i32_from_u8"

5 years agoaudio_utils: implement SF_FORMAT_PCM_U8 for libsndfile
Glenn Kasten [Tue, 30 Oct 2018 16:03:58 +0000 (09:03 -0700)]
audio_utils: implement SF_FORMAT_PCM_U8 for libsndfile

Test: wavecopy in vendor/box
Change-Id: I33a87f0b2edcffc8222a31b97977b0fad671fa42

5 years agoaudio_utils: add memcpy_to_i32_from_u8
Glenn Kasten [Tue, 30 Oct 2018 16:02:38 +0000 (09:02 -0700)]
audio_utils: add memcpy_to_i32_from_u8

Test: primitives_tests
Change-Id: Ia23393b9832bda2968096adbb91ca165d788d8e7

5 years agoCamera: Add Y8/RAW10/RAW12 formats support
Shuzhen Wang [Thu, 27 Sep 2018 22:50:01 +0000 (15:50 -0700)]
Camera: Add Y8/RAW10/RAW12 formats support

- Add Y8, RAW10, and RAW12 formats in metadata definition.
- Update camera doc for newly added Y8 format.

Test: metadata-generate, and read text.
Bug: 116806633
Bug: 70216652
Change-Id: I1983ec4bdb0d880fc3b69b2591877d159506ebe2

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am...
Bill Yi [Thu, 25 Oct 2018 02:52:34 +0000 (19:52 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 6eefbec125  -s ours am: 3da3c58978  -s ours
am: 178d7fd23c  -s ours

Change-Id: I1f3a506efc7c01d222ab50091b77624de76eab5d

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am...
Bill Yi [Thu, 25 Oct 2018 02:06:34 +0000 (19:06 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 6eefbec125  -s ours
am: 3da3c58978  -s ours

Change-Id: I4ce9ba74bdec1ea7dc17aa52a1a8fe40230f1acb

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 23:39:32 +0000 (16:39 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
am: 6eefbec125  -s ours

Change-Id: If7a4024ecba2879ee6eac79794664a26aa2ecfba

5 years agoMerge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 21:48:20 +0000 (14:48 -0700)]
Merge pie-platform-release to aosp-master - DO NOT MERGE

Change-Id: I1169742007fab68dbf94b6f81bf042bbca0d6a3f

5 years ago[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE...
Bill Yi [Wed, 24 Oct 2018 17:38:37 +0000 (10:38 -0700)]
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am: 68f2df2c0b  -s ours
am: efd2f7360d  -s ours

Change-Id: I08696604ac7f7e8fd9447bdca374df0f1715f247

5 years ago[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 17:25:22 +0000 (10:25 -0700)]
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
am: 68f2df2c0b  -s ours

Change-Id: I20847649fe71330bd0410c9ceda904e732ae5b69

5 years agoMerge pi-platform-release to stage-aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 16:07:59 +0000 (09:07 -0700)]
Merge pi-platform-release to stage-aosp-master - DO NOT MERGE

Change-Id: I6f867f25fe9d3beb9ef3521e465e11cf5008c3fb

5 years agoCamera: Add support for recommended stream configurations
Emilian Peev [Tue, 18 Sep 2018 13:01:55 +0000 (14:01 +0100)]
Camera: Add support for recommended stream configurations

Hal must be able to recommend efficient stream configurations
for common client use cases. Add the necessary
static metadata keys.

Bug: 64029608
Test: Camera CTS
Change-Id: I843401de407ab7327fc9e0d6365f2d27b9cdb435

5 years ago[automerger skipped] Merge "audio: update switch to use FALLTHROUGH_INTENDED" am...
Andy Hung [Sat, 13 Oct 2018 03:30:34 +0000 (20:30 -0700)]
[automerger skipped] Merge "audio: update switch to use FALLTHROUGH_INTENDED" am: 1c93a71111 am: 547f28c3c8
am: 34c5b9f7bd  -s ours

Change-Id: I5b989c1d45327cb3a8f954fda570290b1828bb57

5 years agoMerge "audio: update switch to use FALLTHROUGH_INTENDED" am: 1c93a71111
Andy Hung [Sat, 13 Oct 2018 03:26:02 +0000 (20:26 -0700)]
Merge "audio: update switch to use FALLTHROUGH_INTENDED" am: 1c93a71111
am: 547f28c3c8

Change-Id: Ib90d3fb4337114f264eb350bf9c6fa66745bf48b

5 years agoMerge "audio: update switch to use FALLTHROUGH_INTENDED"
Andy Hung [Sat, 13 Oct 2018 03:21:33 +0000 (20:21 -0700)]
Merge "audio: update switch to use FALLTHROUGH_INTENDED"
am: 1c93a71111

Change-Id: Ib53434afba888f9974099b8f85a83c50c244dcb6

5 years agoMerge "audio: update switch to use FALLTHROUGH_INTENDED"
Treehugger Robot [Sat, 13 Oct 2018 03:06:18 +0000 (03:06 +0000)]
Merge "audio: update switch to use FALLTHROUGH_INTENDED"

5 years agoaudio: update switch to use FALLTHROUGH_INTENDED
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
Merged-In: I1394e22621af6519b6679353f31f06561ffeacad
(cherry picked from commit 74213cb95cce829cc2e7534a9572f1236709b5fe)

5 years agoCamera: Trivial doc update to fix typo
Shuzhen Wang [Thu, 11 Oct 2018 17:17:33 +0000 (10:17 -0700)]
Camera: Trivial doc update to fix typo

Test: autogenerate and read docs
Change-Id: Icbf03361d8cd47ae931c70ddb39e1c11655b290b

5 years agoMerge "Camera: Trivial doc update" am: 2b5539f5e5 am: 15767f82fd
Shuzhen Wang [Thu, 11 Oct 2018 21:53:41 +0000 (14:53 -0700)]
Merge "Camera: Trivial doc update" am: 2b5539f5e5 am: 15767f82fd
am: 541dc41c26

Change-Id: Iee524a47ffcc2f76993ed24d0f8e2452790b2ea7

5 years agoMerge "Camera: Trivial doc update" am: 2b5539f5e5
Shuzhen Wang [Thu, 11 Oct 2018 21:34:54 +0000 (14:34 -0700)]
Merge "Camera: Trivial doc update" am: 2b5539f5e5
am: 15767f82fd

Change-Id: I69629ce209b6b05002808e8a4e39e63c72e2dfd9

5 years agoMerge "Camera: Trivial doc update"
Shuzhen Wang [Thu, 11 Oct 2018 21:16:40 +0000 (14:16 -0700)]
Merge "Camera: Trivial doc update"
am: 2b5539f5e5

Change-Id: I1a7f1b8bfff17c720aee800a73ff8f883dc68b1e

5 years agoMerge "Camera: Trivial doc update"
Shuzhen Wang [Thu, 11 Oct 2018 21:02:32 +0000 (21:02 +0000)]
Merge "Camera: Trivial doc update"

5 years agoCamera: Trivial doc update
Shuzhen Wang [Thu, 11 Oct 2018 00:58:13 +0000 (17:58 -0700)]
Camera: Trivial doc update

5 years agoaudio: Use C++17 fallthrough attribute
Andy Hung [Wed, 10 Oct 2018 20:36:50 +0000 (13:36 -0700)]
audio: Use C++17 fallthrough attribute

Test: compile and sanity
Bug: 117509050
Change-Id: I04de10c7b21f7d644c8365080bc4db58045ae4fd

5 years agoaudio: update switch to use FALLTHROUGH_INTENDED
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

5 years agoMerge "FdToString: Implement read/poll based timeout"
TreeHugger Robot [Tue, 2 Oct 2018 17:10:10 +0000 (17:10 +0000)]
Merge "FdToString: Implement read/poll based timeout"

5 years agoFdToString: 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

5 years agoCamera: add buffer management API key
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

5 years agoMerge "Camera: Allow camera HAL to not independently expose physical cameras"
Shuzhen Wang [Thu, 13 Sep 2018 19:57:48 +0000 (19:57 +0000)]
Merge "Camera: Allow camera HAL to not independently expose physical cameras"

5 years agoMerge "Camera: Add support for 'permission_needed' tag property"
TreeHugger Robot [Thu, 13 Sep 2018 17:22:28 +0000 (17:22 +0000)]
Merge "Camera: Add support for 'permission_needed' tag property"

5 years agoCamera: 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

5 years agoMerge "Camera: Add camera_metadata tests to presubmit"
Eino-Ville Talvala [Wed, 12 Sep 2018 17:36:48 +0000 (17:36 +0000)]
Merge "Camera: Add camera_metadata tests to presubmit"

5 years agoCamera: Allow camera HAL to not independently expose physical cameras
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

5 years agoCamera: Add camera_metadata tests to presubmit
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

5 years ago[automerger skipped] Merge changes from topic "b113052379-cp-from-pi-dev-p2" am:...
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

5 years ago[automerger skipped] Camera: Documentation updates for calibration and distortion...
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

5 years ago[automerger skipped] Merge changes from topic "b113052379-cp-from-pi-dev-p2" am:...
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

5 years ago[automerger skipped] Camera: Documentation updates for calibration and distortion...
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

5 years agoMerge changes from topic "b113052379-cp-from-pi-dev-p2"
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

5 years agoCamera: Documentation updates for calibration and distortion correction
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

5 years agoMerge changes from topic "b113052379-cp-from-pi-dev-p2"
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

5 years ago[automerger skipped] Merge changes from topic "b113052379-cp-from-pi-dev-p1" am:...
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

5 years ago[automerger skipped] Camera: update hardware level docs am: 63fcb04438 -s ours am...
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

5 years ago[automerger skipped] Merge changes from topic "b113052379-cp-from-pi-dev-p1" am:...
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

5 years ago[automerger skipped] Camera: update hardware level docs am: 63fcb04438 -s ours
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

5 years ago[automerger skipped] Merge changes from topic "b113052379-cp-from-pi-dev-p1"
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

5 years ago[automerger skipped] Camera: update hardware level docs
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

5 years agoMerge changes from topic "b113052379-cp-from-pi-dev-p1"
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

5 years agoCamera: Documentation updates for calibration and 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)

5 years agoCamera: Documentation update to remove physicalIds
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)

5 years agoCamera: update hardware level docs
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)

5 years agoCamera: update coordinate semantics w.r.t. distortion correction
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)

5 years agoAdd FdToString
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

5 years agoSimpleLog: Efficiently log from std::string
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

5 years agoMerge "Aaudio: Implement app shareable flag instead of -size hack" am: 9977afe006...
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

5 years agoMerge "Aaudio: Implement app shareable flag instead of -size hack" am: 9977afe006
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

5 years agoMerge "Aaudio: Implement app shareable flag instead of -size hack"
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

5 years agoMerge "Aaudio: Implement app shareable flag instead of -size hack"
Treehugger Robot [Fri, 17 Aug 2018 23:03:44 +0000 (23:03 +0000)]
Merge "Aaudio: Implement app shareable flag instead of -size hack"

5 years agoCamera: Documentation update to remove physicalIds am: 7c30d451a8
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

5 years agoCamera: Documentation update to remove physicalIds
Shuzhen Wang [Fri, 17 Aug 2018 00:29:40 +0000 (17:29 -0700)]
Camera: Documentation update to remove physicalIds
am: 7c30d451a8

Change-Id: I38538ad29430c5d36f04cc91114303f78236224d

5 years agoCamera: Documentation update to remove physicalIds
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

5 years agoMerge stage-dr1-aosp-master into stage-aosp-master am: 7a1a754f51
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

5 years agoMerge stage-dr1-aosp-master into stage-aosp-master
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

5 years agoMerge stage-dr1-aosp-master into stage-aosp-master
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

5 years agoAaudio: 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 -x
Bug: 38118159
Change-Id: I2839b5db91dee871d2416449692c47d887e530ad
Signed-off-by: Kevin Rocard <krocard@google.com>
5 years agoMerge "Merge Android Pie into master" am: dbbcb69af4 am: c41b15f261 am: b875fb10c3
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

5 years agoMerge "Merge Android Pie into master" am: dbbcb69af4 am: c41b15f261
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

5 years agoMerge "Merge Android Pie into master" am: dbbcb69af4
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

5 years agoMerge "Merge Android Pie into master"
Xin Li [Tue, 7 Aug 2018 22:47:43 +0000 (15:47 -0700)]
Merge "Merge Android Pie into master"
am: dbbcb69af4

Change-Id: Ic8ba572e06d35319909fb5949939fa11e2f41c71

5 years agoMerge "TimestampVerifier: add timestamp estimator"
Andy Hung [Tue, 7 Aug 2018 17:29:22 +0000 (17:29 +0000)]
Merge "TimestampVerifier: add timestamp estimator"

5 years agoMerge "Merge Android Pie into master"
Xin Li [Tue, 7 Aug 2018 16:51:25 +0000 (16:51 +0000)]
Merge "Merge Android Pie into master"

5 years agoTimestampVerifier: add timestamp estimator
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

5 years agoMerge Android Pie into master
Xin Li [Mon, 6 Aug 2018 23:52:50 +0000 (16:52 -0700)]
Merge Android Pie into master

Bug: 112104996
Change-Id: Ifdec52c860aae39f7d03a7320a6050a2c5f756df

5 years agoCamera: Documentation updates for calibration and distortion correction am: d9721660e4
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

5 years agoCamera: Documentation updates for calibration and distortion correction
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

5 years agoMerge "Fix unchecked realloc." am: 81ce87f0cc am: 0e0e1724f6 am: ffdf0a47da
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

5 years agoMerge "Fix unchecked realloc." am: 81ce87f0cc am: 0e0e1724f6
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

5 years agoMerge "Fix unchecked realloc." am: 81ce87f0cc
Tomasz Wasilczyk [Fri, 3 Aug 2018 19:31:26 +0000 (12:31 -0700)]
Merge "Fix unchecked realloc." am: 81ce87f0cc
am: 0e0e1724f6

Change-Id: I6b169da16dc81b4a4c35c3e744e1e424df6bf4c9

5 years agoMerge "Fix unchecked realloc."
Tomasz Wasilczyk [Fri, 3 Aug 2018 19:26:19 +0000 (12:26 -0700)]
Merge "Fix unchecked realloc."
am: 81ce87f0cc

Change-Id: I4313a7be92cd5797d469788a77cb5ce84332db80

5 years agoMerge "Fix unchecked realloc."
Treehugger Robot [Fri, 3 Aug 2018 19:18:17 +0000 (19:18 +0000)]
Merge "Fix unchecked realloc."

5 years agoFix 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

5 years agoMerge "Aaudio: Implement app shareable flag instead of -size hack"
Kevin Rocard [Fri, 3 Aug 2018 15:06:06 +0000 (15:06 +0000)]
Merge "Aaudio: Implement app shareable flag instead of -size hack"

5 years agoAaudio: 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>
5 years agoCamera: Documentation updates for calibration and 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
Test: Manual reading of added text
Change-Id: Ic759ca931a1684c3f7b47e4940c259c42227d525

5 years agoStatistics: Add tuple data input, linear fit
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

5 years agoMerge "For high sample rates, lock input & output sample rate if possible."
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."

5 years agoFor 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

5 years agoMerge "Statistics: Implement changeable weighting"
Andy Hung [Thu, 26 Jul 2018 16:47:48 +0000 (16:47 +0000)]
Merge "Statistics: Implement changeable weighting"