Commit graph

11860 commits

Author SHA1 Message Date
Slava Shklyaev
edf67ee8e7 Add REDUCE_* operations
Bug: 113564646
Test: mma
Change-Id: I6088e270c0167bcf8fc6c4002ed7f4e939b6d435
Merged-In: I6088e270c0167bcf8fc6c4002ed7f4e939b6d435
(cherry picked from commit 4fdb8b5727)
2019-01-09 09:45:33 +00:00
Treehugger Robot
063024b1b6 Merge "Make health storage HAL lazy" 2019-01-07 23:25:20 +00:00
Peter Kalauskas
d2c86ff910 Make health storage HAL lazy
Make health storage HAL run only when needed.

Bug: 115675262
Test: Flash crosshatch, ensure android.hardware.health.storage@1.0-service
      is not running. Enable debug logging in vold. Run 'adb shell sm
      idle-maint run' and check logs to ensure vold runs "Start Dev GC
      on HAL"
Change-Id: I4bd48b5bb1b3ae7e1f4ccaff2042f1331e4cd76d
2019-01-07 10:45:31 -08:00
Felix
1fe2196f11 health: Add CAP_WAKE_ALARM to service
health/2.0/default/healthd_common.cpp wants to use
timerfd_create() to register a wakealarm.

To use the timerfd_create() syscall with CLOCK_BOOTTIME_ALARM,
CAP_WAKE_ALARM is needed.

Update the README to reflect the needed cap in the init file,
see also https://r.android.com/861532

Since the v1.0 HAL is in passthrough mode, the cap is needed for the 1.0
service as well.

Change-Id: I0e71da125eeef1360b5fd8bc7a69285e0b786511
Signed-off-by: Felix <google@ix5.org>
2019-01-06 16:07:50 +00:00
Treehugger Robot
b2dedd4938 Merge "health: Fix typos in README" 2019-01-05 13:09:18 +00:00
Sandeep Patil
2953251eff Merge "fcm: kernel: Remove 4.4 kernel from current matrix" 2019-01-05 02:38:48 +00:00
Ruchi Kandoi
2664a4a8c5 Merge "Add android.hardware.nfc@1.2" 2019-01-04 19:56:41 +00:00
Felix
6a2b1b084a health: Fix typos in README
Change-Id: I64eb6cdaaccf30cf96d273db4e8d434d6ea90c51
Signed-off-by: Felix <google@ix5.org>
2019-01-04 19:57:12 +01:00
Peter Kalauskas
b4abef9b0a Rename registerServiceWithCallback
Rename registerServiceWithCallback to registerService

Test: Build and check that cas functions as a lazy hal as before
Change-Id: Id7aac4a4b34e5891e81dcb9ead1239a37c1a70c8
2019-01-03 15:23:12 -08:00
Sandeep Patil
e5f4947bf8 fcm: kernel: Remove 4.4 kernel from current matrix
Test: builds
Bug: none
Change-Id: I8e472edf1e050968a7a1e6f9c82e41eeee473eb3
Signed-off-by: Sandeep Patil <sspatil@google.com>
2019-01-03 14:22:03 -08:00
David Gross
4592ed15cd Add @1.2::IPreparedModel::executeSynchronously() and corresponding VTS tests.
Bug: 119274127

Test: all of the following, with the appropriate android.hardware.neuralnetworks@1.${X}::IDevice/sample-all
    VtsHalNeuralnetworksV1_0TargetTest
    VtsHalNeuralnetworksV1_0TargetTest
    VtsHalNeuralnetworksV1_1CompatV1_0TargetTest
    VtsHalNeuralnetworksV1_1CompatV1_0TargetTest
    VtsHalNeuralnetworksV1_1TargetTest
    VtsHalNeuralnetworksV1_1TargetTest
    VtsHalNeuralnetworksV1_2CompatV1_0TargetTest
    VtsHalNeuralnetworksV1_2CompatV1_0TargetTest
    VtsHalNeuralnetworksV1_2CompatV1_1TargetTest
    VtsHalNeuralnetworksV1_2CompatV1_1TargetTest
    VtsHalNeuralnetworksV1_2TargetTest
    VtsHalNeuralnetworksV1_2TargetTest

Change-Id: Iedfa485b4008d9cec3b81ff4c0ce3ebc0b83c823
(cherry picked from commit 49e41678f5)
2019-01-02 11:13:11 -08:00
sqian
ed2eb3de0a Add mnc and modify docs for emergencyDial
Test: Treehugger
Bug: 112657134
Change-Id: Ia731ed350184fc35663a7bee54144a3ee7febcbe
Merged-In: Ia731ed350184fc35663a7bee54144a3ee7febcbe
(cherry picked from commit ee5598dc2e)
2018-12-27 14:15:13 -08:00
Paul Hu
b31202ca17 Merge "Expose detailed data call end reasons" 2018-12-19 02:19:32 +00:00
Xusong Wang
f771d0f183 Merge changes from topics "nn_hal_fp16", "comparison_ops"
* changes:
  Add new OperandType FLOAT16.
  Add two missing comparison ops to HAL
  Fixes VTS test failures.
2018-12-18 23:57:30 +00:00
Xusong Wang
5666626b33 Add new OperandType FLOAT16.
Bug: 120225191
Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: Iaabebe490303c9c93a34d319c8c594df13fb7899
Merged-In: Iaabebe490303c9c93a34d319c8c594df13fb7899
(cherry picked from commit 7bca34bee7)
2018-12-18 16:20:00 +00:00
paulhu
31aed67a0f Expose detailed data call end reasons
Currently, most of the fail causes for data connectivity are
exposed as ERROR_UNSPECIFIED. To know the precise fail
cause not just common exception, add more cause definitions
let exact fail reason can pass up to the apps from modem.

Bug: 113505704
Test: Build pass and data call can setup normally.
Change-Id: I1c8b910c272a027c811434d6d034b60ebfd64afa
2018-12-18 19:30:16 +08:00
Lev Proleev
a26349a847 Add two missing comparison ops to HAL
Bug: 113561733
Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: Ied32f217f4e4ece3c082f6485f99cf8dee78e55f
Merged-In: Ied32f217f4e4ece3c082f6485f99cf8dee78e55f
(cherry picked from commit 149f2b018b)
2018-12-18 09:17:15 +00:00
Michael K. Sanders
2a0101203f Fixes VTS test failures.
Moves comments for type range values into their enums to make it harder
to forget to update them.

Adds missing float16 types for ARGMAX/ARGMIN/CAST.

Test: VtsHalNeuralnetworksV1_2TargetTest --hal_service_instance=android.hardware.neuralnetworks@1.2::IDevice/sample-all
Test: [  PASSED  ] 2519 tests.

Change-Id: Ic7c3df8c8fbff45fe497f304b6b2c7a09e7dc5a6
Merged-In: Ic7c3df8c8fbff45fe497f304b6b2c7a09e7dc5a6
(cherry picked from commit bbdab2feee)
2018-12-18 09:15:51 +00:00
Treehugger Robot
4ffb6e0bd8 Merge "Camera: Clarify configureStreams doc" 2018-12-17 22:47:12 +00:00
Chih-hung Hsieh
d01f7050ac Merge "Fix performance-for-range-copy warnings" 2018-12-17 21:14:26 +00:00
Treehugger Robot
1eebae4517 Merge "healthd_common.cpp: use epoll_create1" 2018-12-17 20:12:20 +00:00
Chih-Hung Hsieh
65ab67312b Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: I1b76a22eab100a31e77048626e48169fe7eeaf92
2018-12-17 19:57:21 +00:00
Peter Kalauskas
f529ba8dac Merge "Fix bug where lazy cas rc file ran wrong service" 2018-12-16 22:46:51 +00:00
Nick Kralevich
8c038f2a2f healthd_common.cpp: use epoll_create1
epoll_create leaks file descriptors. Use epoll_create1(EPOLL_CLOEXEC)
instead.

Bug: 120983106
Test: compiles and boots
Change-Id: I50aad9f1c0633add2b44fb22be73dd292a366f39
2018-12-15 11:36:47 -08:00
Xusong Wang
ba400a29db Merge "Add 1.2 NN HAL: IPreparedModel & callbacks." 2018-12-15 00:56:47 +00:00
Shuzhen Wang
77c5c4e8b1 Camera: Clarify configureStreams doc
Test: Compile
Change-Id: Idbb7ed8f8dd0a1ebe1d5227446ec7170fec3ec4a
Merged-In: Idbb7ed8f8dd0a1ebe1d5227446ec7170fec3ec4a
2018-12-15 00:51:59 +00:00
Peter Kalauskas
d6efaf4e7c Fix bug where lazy cas rc file ran wrong service
Test: Modify aosp_marlin-userdebug to use android.hardware.cas@1.0-service-lazy
      and run CtsMediaTestCases
Change-Id: I4f8329b13c7a900cf4c2b14cec1017b6e40dd6c1
2018-12-14 21:31:12 +00:00
Treehugger Robot
d25bffff74 Merge "Add a bitmap version for get/set PreferredNetworkType" 2018-12-14 06:06:30 +00:00
Xusong Wang
1a06e77831 Add 1.2 NN HAL: IPreparedModel & callbacks.
Create 1.2 version IPreparedModel, IPreparedModelCallback, and
IExecutionCallback.

Currently the new interfaces are created the same as 1.0 version,
but will have more methods introduced in later CLs.

Bug: 73506513
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Change-Id: Icf4d04c22f88e825d87562f1489377fdf6bf585d
Merged-In: Icf4d04c22f88e825d87562f1489377fdf6bf585d
(cherry picked from commit b5cb8f7632)
2018-12-13 13:56:51 -08:00
Przemyslaw Szczepaniak
9820845e61 Merge changes from topic "cp_bool8"
* changes:
  Add TENSOR_BOOL8 support to generated tests
  Add new operand type TENSOR_BOOL8
2018-12-13 17:11:00 +00:00
Slava Shklyaev
dc98cb0a6b Add TENSOR_BOOL8 support to generated tests
Bug: 119096815
Test: mma
Change-Id: I6a9c49d5c4312a37a91943c668ff8c8ed5ef38c5
Merged-In: I6a9c49d5c4312a37a91943c668ff8c8ed5ef38c5
(cherry picked from commit 9e3fad1801)
2018-12-13 09:18:53 +00:00
Slava Shklyaev
51e44f7090 Add new operand type TENSOR_BOOL8
Bug: 119096815
Test: mma
Change-Id: I2adc7e7a328d53a9dafba52a1f8dfaba63e234b2
Merged-In: I2adc7e7a328d53a9dafba52a1f8dfaba63e234b2
(cherry picked from commit 4aad16b684)
2018-12-13 09:18:53 +00:00
Treehugger Robot
565fe88676 Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" 2018-12-13 05:45:20 +00:00
Treehugger Robot
0f2911a5d6 Merge "Add audio_policy_configuration" 2018-12-13 05:20:08 +00:00
Chih-Hung Hsieh
a8c052d038 Fix cert-dcl16-c clang-tidy warnings.
Bug: 120614316
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl16-c
Change-Id: I13b7b9951ed198f91203475736edb3495e8a50aa
2018-12-12 15:39:15 -08:00
Treehugger Robot
001a2cc09e Merge "HWC2OnFbAdapter: don't claim present fences work" 2018-12-12 20:35:03 +00:00
Keun Soo Yim
d6fe421895 Merge "pack VTS cc_test binaries as general-tests" 2018-12-12 17:13:03 +00:00
Chris Forbes
bdf93d0e68 HWC2OnFbAdapter: don't claim present fences work
We never produce real present fences, so indicate this to the
compositor. This will prevent GOOGLE_display_timing & friends from being
exposed in the client APIs.

Similar to previous change in HWC2On1Adapter.

Bug: b/111505197
Change-Id: I601a7f5628d4b218431fc0f1abb4807c9941ce64
(cherry picked from commit 3fac35a98a)
2018-12-11 18:31:06 -08:00
Xin Li
5c60a30824 DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
Bug: 120502534
Change-Id: I9e51f516a0ff8cb197e9f3f927cae9e25328a1eb
2018-12-11 14:17:43 -08:00
Pengquan Meng
1ed39240a9 Add a bitmap version for get/set PreferredNetworkType
Bug: 111453000
Test: build
Change-Id: I42af8de62484c8f8e310b520574d0114901ed452
2018-12-10 18:28:19 -08:00
Sundong Ahn
3541f0a17b Add audio_policy_configuration
This module is for API check of java file generated from
audio_policy_configuration.xsd.
audio_policy_configuration.docs is added to required in
impl library because API check whenever building impl
library.

Bug: 80453829
Test: m -j && make update-api && make check-api

Change-Id: I49499ec244c390ed1e6e9e8ca77d08d7da69ac59
2018-12-11 11:21:53 +09:00
Ruchi Kandoi
668d4cd28e Add android.hardware.nfc@1.2
Extends the NfcConfig data type to
accomodate newer features.

Test: TBD
Bug: 117253962
Change-Id: I7e8a78e373da48e3c232adff53a03002079ffc0d
2018-12-07 15:24:16 -08:00
Treehugger Robot
c1892e6527 Merge "Audio V5 XSD: Allow vendor extension for audio devices" 2018-12-07 21:03:15 +00:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Xiangyu/Malcolm Chen
60d34da5f0 Merge "Define CBRS HAL interfaces in IRadio 1.3 and IRadioConfig 1.1." 2018-12-05 19:24:31 +00:00
Malcolm Chen
ded4399940 Define CBRS HAL interfaces in IRadio 1.3 and IRadioConfig 1.1.
Bug: 117805040
Test: build and telephony unittest
Change-Id: I79e188ef742c3d5167f32c359e86e435f55f4a75
2018-12-04 19:25:16 -08:00
Treehugger Robot
d8ebd25073 Merge changes from topic "audio-v5-api"
* changes:
  Audio V5: move Stream Metadata to common
  Audio HAL V5: Introduce HAL V5, equal to V4 for now
2018-12-04 17:44:07 +00:00
Treehugger Robot
5bc3be2ae1 Merge "Add missing copyright info to RS default implementation." 2018-12-04 05:11:27 +00:00
Kevin Rocard
b2c093cecc Audio XSD: Allow vendor extension for audio devices
am: 0d5121609a

Change-Id: I8532884bd544fdce8680e0a14e3f3281f91931b6
2018-12-03 14:58:00 -08:00
Kevin Rocard
0fecc8ded0 Audio V5 XSD: Allow vendor extension for audio devices
Without this patch vendors can not do any vendor extension extending
the audio enums as it would fails the XSD validation.

Long term, the config xml parsing should be moved in the HAL, until then
allow extension if they are prefixed with EX_.

Test: xmllint --noout --schema hardware/interfaces/audio/5.0/config/audio_policy_configuration.xsd  --xinclude out/target/product/*/vendor/etc/audio_policy_configuration.xml
Bug: 117967786
Change-Id: Ie44490824b5b50fdebb50a82299ea348d2a34b84
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-12-03 14:49:55 -08:00