OSDN Git Service

android-x86/hardware-interfaces.git
6 years agoAudio VTS: do not test duplicate policy configuration file am: ff7dcd7e4d
Kevin Rocard [Thu, 14 Sep 2017 16:52:54 +0000 (16:52 +0000)]
Audio VTS: do not test duplicate policy configuration file am: ff7dcd7e4d
am: ecf7848f67

Change-Id: I79f97fb002e036c17b7ab42f1af00ed2b17e60fd

6 years agoAudio VTS: do not test duplicate policy configuration file
Kevin Rocard [Thu, 14 Sep 2017 16:48:56 +0000 (16:48 +0000)]
Audio VTS: do not test duplicate policy configuration file
am: ff7dcd7e4d

Change-Id: Ice54f75c307f9f25e210b1382554dc24162b9ace

6 years agoAudio VTS: do not test duplicate policy configuration file
Kevin Rocard [Thu, 14 Sep 2017 01:11:14 +0000 (18:11 -0700)]
Audio VTS: do not test duplicate policy configuration file

This patch only modifies the VTS tests.

O generic policy configuration fallback is incorrect
(see I2a39606cd820b5cd27a640248bf692204ec2cd71 for the fix).
Nevertheless, has no impact on products because this fallback
is only used in aosp builds and GSI.

Unfortunatly, this break the VTS test when run agains GSI.
Because it is too late to change GSI for Oc and DR,
relax the test to support current O GSI.

For P, ihis patch will not be part of VTS
and the fallback config will be fixed.

Bug: 65535343
Merged-In: I2a39606cd820b5cd27a640248bf692204ec2cd71
Test: Following script:

setup() {
    BUILD_ID=$1
    TARGET_PRODUCT=$2
    TARGET_BUILD_TYPE=${3:-userdebug}
    TARGET_ARCH=${4:-arm64}
    set +x

    echo "The following three variables can be overridden" \
         "by setting the corresponding environment variable"
    set -x
    TEST_SUITES_TARGET=${VTS_TEST_SUITES_TARGET:-test_suites_${TARGET_ARCH}}
    BASE_TARGET=${VTS_BASE_TARGET:-${TARGET_PRODUCT}-${TARGET_BUILD_TYPE}}
    AOSP_TARGET=${VTS_AOSP_TARGET:-aosp_${TARGET_ARCH}_ab-${TARGET_BUILD_TYPE}}
    set +x

    download() {
        local target=$1
        local file=$2
        test -f $file ||
            /google/data/ro/projects/android/fetch_artifact --bid $BUILD_ID --target $target $file ||
            { local r=$?; rm $file; return $r; }
    }

    echo "Downloading"
    download $TEST_SUITES_TARGET 'android-vts.zip'
    download $BASE_TARGET "${TARGET_PRODUCT}-img-${BUILD_ID}.zip"
    download $AOSP_TARGET "aosp_${TARGET_ARCH}_ab-img-${BUILD_ID}.zip"

    echo "Unzipping"
    rm -r system.img android-vts
    unzip aosp_${TARGET_ARCH}_ab-img-$BUILD_ID.zip system.img
    unzip android-vts.zip

    echo "Building vbmeta without verity"
    avbtool make_vbmeta_image --flag 2 --output vbmeta.img

    set -x
    adb reboot bootloader
    fastboot update ${TARGET_PRODUCT}-img-$BUILD_ID.zip --skip-reboot
    fastboot flash vbmeta vbmeta.img || echo "Warning: Device does not support vbmeta"
    fastboot erase system
    fastboot flash system system.img
    fastboot erase metadata
    fastboot -w
    fastboot reboot

    echo "Board setup"
    echo "You may now start vts-tradefed with:"
    echo '$ ANDROID_BUILD_TOP= PATH="$PWD:$PATH" vts-tradefed'
}
VTS_TEST_SUITES_TARGET=test_suites_arm64_fastbuild3d_linux setup 4327646 sailfish
 vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAudioV2_0Target -t CheckConfig.audioPolicyConfigurationValidation

Change-Id: Ibe1feed41325a3e4fb25e959bd254156348aa584
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoSupport ignored output in test harness
I-Jui (Ray) Sung [Thu, 14 Sep 2017 01:47:12 +0000 (18:47 -0700)]
Support ignored output in test harness

Filtered out outputs that are not needed for correctness verification
during result validation.

Bug: 63905942
Test: VtsHalNeuralnetworksV1_0TargetTest on Angler
Change-Id: Ic967a821c2a60194c9d9f386601a865f5c409a4f

6 years agoMerge "Add documentation to the Neuralnetworks HIDL HAL." into oc-mr1-dev
Miao Wang [Thu, 14 Sep 2017 02:26:37 +0000 (02:26 +0000)]
Merge "Add documentation to the Neuralnetworks HIDL HAL." into oc-mr1-dev

6 years agoAdd documentation to the Neuralnetworks HIDL HAL.
Michael Butler [Mon, 11 Sep 2017 23:03:36 +0000 (16:03 -0700)]
Add documentation to the Neuralnetworks HIDL HAL.

Bug: 63905942
Test: not needed
Change-Id: I1582d20e66ef939581d82f21088f0db0bc0f5eb7

6 years agoMerge "Relax tolerance for FP comparison in test harness" into oc-mr1-dev
Ray Sung [Thu, 14 Sep 2017 00:53:27 +0000 (00:53 +0000)]
Merge "Relax tolerance for FP comparison in test harness" into oc-mr1-dev

6 years agoRelax tolerance for FP comparison in test harness
I-Jui (Ray) Sung [Wed, 13 Sep 2017 23:47:50 +0000 (16:47 -0700)]
Relax tolerance for FP comparison in test harness

Tests like RNN needs slightly more relaxed tolerance than 4ULP.
Use 1e-5 from corresponding TFLite tests.

Bug: 63905942
Test: VtsHalNeuralnetworksV1_0TargetTest on Angler
Change-Id: I721711e13575f56e956d87e3ad537467f85e93f4

6 years agoMake the enums signed int, remove unused info.
Miao Wang [Wed, 13 Sep 2017 22:51:54 +0000 (15:51 -0700)]
Make the enums signed int, remove unused info.

Bug: 63905942
Test: NeuralNetworksTest pass
Change-Id: I40ca1120d05ea8900f4f4e49409d3096f46ec0e1

6 years agoMerge "Move OEM codes out of NeuralNetworks.h to new file NeuralNetworksOEM.h." into...
David Gross [Wed, 13 Sep 2017 22:41:28 +0000 (22:41 +0000)]
Merge "Move OEM codes out of NeuralNetworks.h to new file NeuralNetworksOEM.h." into oc-mr1-dev

6 years agoMerge "bug fix: add missing color formats to the check for valid formats" into oc...
TreeHugger Robot [Wed, 13 Sep 2017 22:12:19 +0000 (22:12 +0000)]
Merge "bug fix: add missing color formats to the check for valid formats" into oc-mr1-dev

6 years agoMerge "Allow clock_gettime syscall for logging" into oc-mr1-dev
TreeHugger Robot [Wed, 13 Sep 2017 20:32:21 +0000 (20:32 +0000)]
Merge "Allow clock_gettime syscall for logging" into oc-mr1-dev

6 years agoMove OEM codes out of NeuralNetworks.h to new file NeuralNetworksOEM.h.
David Gross [Wed, 13 Sep 2017 19:31:33 +0000 (12:31 -0700)]
Move OEM codes out of NeuralNetworks.h to new file NeuralNetworksOEM.h.

Also remove FAKE_QUANT operation.

Bug: 63905942
Test: nn/runtime/tests, vts

Change-Id: Icfb5e7dbb9c2cca6e719ec2ab6344dbe5d95c86b

6 years agoMerge "Adjust AM/FM region ranges." into oc-mr1-dev
Tomasz Wasilczyk [Wed, 13 Sep 2017 15:36:09 +0000 (15:36 +0000)]
Merge "Adjust AM/FM region ranges." into oc-mr1-dev

6 years agoAllow clock_gettime syscall for logging
Jeff Vander Stoep [Wed, 13 Sep 2017 14:54:45 +0000 (07:54 -0700)]
Allow clock_gettime syscall for logging

Addresses:
__kernel_clock_gettime" access failed.

The call flow is as follow:
"configstore -> hidltransport.tryShortenProcessName -> ALOGI ->
__android_log_print -> logdOpen -> netdClientConnect -> clock_gettime".

Bug: 65611466
Test: build and boot sailfish
Change-Id: I9e12c3a0969a7fe67c017d70f39a85792cf10bae

6 years agoTest harness for generated tests
I-Jui (Ray) Sung [Wed, 6 Sep 2017 09:15:54 +0000 (02:15 -0700)]
Test harness for generated tests

Created initial test harness for test models and examples from
NNAPI test generator in VtsHalNeuralnetworksV1_0TargetTest. As
an example, also added a test generated from test spec at
frameworks/ml/nn/tools/test_generator/tests/P_vts_full/.

Generated model setup code and examples are from:
frameworks/ml/nn/runtime/test/generated/examples and
frameworks/ml/nn/runtime/test/generated/vts_models respectively.

Bug: 63905942
Bug: 63525563
Test: VtsHalNeuralnetworksV1_0TargetTest with sample driver enabled
      by cherry-pick

Change-Id: Ief029eed9718c8724ef0b64fc6a7f6b9a7bc7b7b

6 years agoMerge "Neuralnetworks HAL cleanup -- hardware/interfaces" into oc-mr1-dev
Michael Butler [Wed, 13 Sep 2017 07:29:43 +0000 (07:29 +0000)]
Merge "Neuralnetworks HAL cleanup -- hardware/interfaces" into oc-mr1-dev

6 years agoNeuralnetworks HAL cleanup -- hardware/interfaces
Michael Butler [Tue, 12 Sep 2017 03:27:50 +0000 (20:27 -0700)]
Neuralnetworks HAL cleanup -- hardware/interfaces

Does three primary cleanups:
1) Removes unused OperandTypes, creates OEM types
2) Creates explicit ErrorStatus; functions return status
3) IDevice::initialize renamed to getCapabilities,
   IDevice::getSupportedSubgraph renamed to getSupportedOperations

Additionally fixes the corresponding VTS tests.

Bug: 63905942
Test: mm, vts
Change-Id: Ib4c61b9b13963ac2367f21dc3c20e5946eb955a9

6 years agoMerge "Fix docstrings for RIL_CellIdentity" into oc-mr1-dev
Nathan Harold [Tue, 12 Sep 2017 22:51:10 +0000 (22:51 +0000)]
Merge "Fix docstrings for RIL_CellIdentity" into oc-mr1-dev

6 years agoAdjust AM/FM region ranges.
Tomasz Wasilczyk [Tue, 12 Sep 2017 18:36:06 +0000 (11:36 -0700)]
Adjust AM/FM region ranges.

Bug: 64541927
Test: instrumentation
Change-Id: I34ea5b0b426f0c0c73d1cbc2d64cb67e2d4b7bd6

6 years agoMerge "Make prepareModel asynchronous." into oc-mr1-dev
Michael Butler [Tue, 12 Sep 2017 18:41:00 +0000 (18:41 +0000)]
Merge "Make prepareModel asynchronous." into oc-mr1-dev

6 years agoFix docstrings for RIL_CellIdentity
Nathan Harold [Wed, 30 Aug 2017 03:41:36 +0000 (20:41 -0700)]
Fix docstrings for RIL_CellIdentity

Update the documentation to match the current
CTS requirements for Cell Identity reporting
-For LTE, WCDMA, and GSM require that the channel
 number be reported.
-For LTE and WCDMA, require that the correct
 physical channel identifier be reported. Note that
 due to b/32774471 we still cannot require BSIC
 to be reported.

Bug: 65174915
Test: none, comment-only change
Change-Id: I93fcce3b39401e8965f724722361c2cadc4a88cc

6 years agoMerge "Remove default implementation for PowerHal 1.1" into oc-mr1-dev
TreeHugger Robot [Tue, 12 Sep 2017 16:51:33 +0000 (16:51 +0000)]
Merge "Remove default implementation for PowerHal 1.1" into oc-mr1-dev

6 years agoMerge "Don't send more than 2K to addRngEntropy" into oc-dev am: 7eeb6b5079
Shawn Willden [Tue, 12 Sep 2017 16:34:52 +0000 (16:34 +0000)]
Merge "Don't send more than 2K to addRngEntropy" into oc-dev am: 7eeb6b5079
am: 35e1be70b4

Change-Id: I626faecd254e3e543308143cfe69d1393e1f9267

6 years agoMerge "Don't send more than 2K to addRngEntropy" into oc-dev
Shawn Willden [Tue, 12 Sep 2017 16:31:32 +0000 (16:31 +0000)]
Merge "Don't send more than 2K to addRngEntropy" into oc-dev
am: 7eeb6b5079

Change-Id: Id0ee0e3f22ee4f2d2b730054043d28c01ac19c6f

6 years agoMerge "Don't send more than 2K to addRngEntropy" into oc-dev
TreeHugger Robot [Tue, 12 Sep 2017 16:28:44 +0000 (16:28 +0000)]
Merge "Don't send more than 2K to addRngEntropy" into oc-dev

6 years agoRemove default implementation for PowerHal 1.1
Ahmed ElArabawy [Fri, 8 Sep 2017 16:11:48 +0000 (09:11 -0700)]
Remove default implementation for PowerHal 1.1

Default implementation in powerHAL 1.1 is not used by any device
Devices using powerHal 1.1 have their own implementation in their
device/<vendor>/<devicename> while older devices don't use 1.1 at all.
This CL removes the default implementation for the PowerHAL 1.1

Bug: 65453628
Test: Build successfully (code not used anyway)
Merged-In: I695348683c6e2e504a523897082543274dc239aa

Change-Id: I695348683c6e2e504a523897082543274dc239aa
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
6 years agoMerge "Reduce max keymaster message size to 2K" into oc-dev am: 42d61ce03a
Shawn Willden [Tue, 12 Sep 2017 06:53:16 +0000 (06:53 +0000)]
Merge "Reduce max keymaster message size to 2K" into oc-dev am: 42d61ce03a
am: ac06f7576e

Change-Id: I219c56653ec9051d35a4c7c8f012c9c06e555881

6 years agoMerge "Reduce max keymaster message size to 2K" into oc-dev
Shawn Willden [Tue, 12 Sep 2017 06:50:47 +0000 (06:50 +0000)]
Merge "Reduce max keymaster message size to 2K" into oc-dev
am: 42d61ce03a

Change-Id: Ia2915bb4305268e5048689ef3e4cf6cf9793d483

6 years agoMerge "Reduce max keymaster message size to 2K" into oc-dev
TreeHugger Robot [Tue, 12 Sep 2017 06:46:22 +0000 (06:46 +0000)]
Merge "Reduce max keymaster message size to 2K" into oc-dev

6 years agoMake prepareModel asynchronous.
Michael Butler [Mon, 11 Sep 2017 20:53:19 +0000 (13:53 -0700)]
Make prepareModel asynchronous.

Updated the corresponding VTS tests.

Bug: 63905942
Test: mm, vts
Change-Id: Ie520af845f491dbdd93ea66fd643d77cfb4703f7

6 years agoMerge "Fix bug in the way an Event handles a bound thread." into oc-mr1-dev
David Gross [Tue, 12 Sep 2017 04:02:53 +0000 (04:02 +0000)]
Merge "Fix bug in the way an Event handles a bound thread." into oc-mr1-dev

6 years agoMerge "Add portMode configuration test" into oc-mr1-dev
TreeHugger Robot [Tue, 12 Sep 2017 02:21:17 +0000 (02:21 +0000)]
Merge "Add portMode configuration test" into oc-mr1-dev

6 years agoFix bug in the way an Event handles a bound thread.
David Gross [Mon, 11 Sep 2017 23:23:17 +0000 (16:23 -0700)]
Fix bug in the way an Event handles a bound thread.

This just keeps the (test) Event representation in sync with
the runtime Event representation, which is modified by

  https://googleplex-android-review.git.corp.google.com/#/c/platform/frameworks/ml/+/2880348/

Bug: 63905942
Test: vts
Change-Id: I2a6de4397c5e31e35cb3d02e241dd21452c21ca6

6 years agoDo not write initial empty values for the diagnostic properties.
Enrico Granata [Mon, 11 Sep 2017 22:06:40 +0000 (15:06 -0700)]
Do not write initial empty values for the diagnostic properties.
There is a separate step that initializes them with meaningful values.

Change-Id: I2480a029773b62b0e77b8c52c73f2ee465caf17c
Fixes: b/65125128
Test: runtest -x packages/services/Car/tests/android_car_api_test/src/android/car/apitest/CarDiagnosticManagerTest.java

6 years agoRefactor how arguments are tracked.
Jean-Luc Brouillet [Sun, 10 Sep 2017 03:45:55 +0000 (20:45 -0700)]
Refactor how arguments are tracked.

Use an explicit description of the lifetime of an operand
rather than relying on poolIndex to do the job.

Bug: 63905942
Test: Ran unit tests

Change-Id: I53c4c10b40fd3312232b0689b43d0f72a2818490

6 years agoMerge "Add FusedActivationFunc enum and renamed certain operations." into oc-mr1-dev
TreeHugger Robot [Sat, 9 Sep 2017 21:58:32 +0000 (21:58 +0000)]
Merge "Add FusedActivationFunc enum and renamed certain operations." into oc-mr1-dev

6 years agoAdd FusedActivationFunc enum and renamed certain operations.
Miao Wang [Fri, 8 Sep 2017 23:57:49 +0000 (16:57 -0700)]
Add FusedActivationFunc enum and renamed certain operations.

  - Add "_2D" to CONV, DEPTHWISE_CONV, AVG_POOL, MAX_POOL, and L2_POOL,
    since they are only supposed to do 2D computation.
  - Remove CAST, GATHER, SPLIT.
  - Also update the tests to reflect the changes.

Bug: 63905942
Test: mm
Test: NeuralNetworksTests pass for both CPU path and sample hidl driver.
Change-Id: I5bcf219c4c6cd4f866c1023d1f35cdc83ca69a85

6 years agoMerge "graphics: discard stale data from message queue" into oc-mr1-dev
Chia-I Wu [Fri, 8 Sep 2017 22:31:31 +0000 (22:31 +0000)]
Merge "graphics: discard stale data from message queue" into oc-mr1-dev

6 years agoAudio VTS: remove expectation of policy configuration unicity am: 76efe01bbd
Kevin Rocard [Fri, 8 Sep 2017 22:14:14 +0000 (22:14 +0000)]
Audio VTS: remove expectation of policy configuration unicity am: 76efe01bbd
am: 6b51d9a855

Change-Id: I59bb70fbc000f424beeb938a08c1fcb24dc08037

6 years agoAudio VTS: remove expectation of policy configuration unicity
Kevin Rocard [Fri, 8 Sep 2017 22:12:14 +0000 (22:12 +0000)]
Audio VTS: remove expectation of policy configuration unicity
am: 76efe01bbd

Change-Id: I23948718eaed0a687cc7dbd6b4940fc8514fbe1b

6 years agographics: discard stale data from message queue
Chia-I Wu [Fri, 8 Sep 2017 18:24:32 +0000 (11:24 -0700)]
graphics: discard stale data from message queue

Our use of message queues is synchronous.  If there are already data
in the queue when writeQueue is called, we know they are stale and
can be discarded.

Bug: 65449888
Test: manual
Change-Id: Ie29b8a7386c9733c183a6c3569e3572efa62cbc2

6 years agoAudio VTS: remove expectation of policy configuration unicity
Kevin Rocard [Fri, 8 Sep 2017 18:29:32 +0000 (11:29 -0700)]
Audio VTS: remove expectation of policy configuration unicity

The XML audio policy configuration is expected to be located in /vendor.
Additionally for AOSP builds (no vendor) and as a fallback in case of
missing vendor configuration, the system supports loading the XML from
/system.
This fallback config is not guaranty to be compatible with the phone HAL,
but probably does for a wide range of android phones
(at least for basic use cases).

In each of those cases, there is only one configuration file, either in
/vendor or /system.
As a result, the audio policy configuration VTS test was asserting that
only one audio_policy_configuration.xml could be found.
If multiple were found, one was useless and the platform integrator
should remove it.

But VTS are now run on phone with a /system partition from an AOSP
build and a /vendor partition from a device build.
In such scenario two audio policy config are now present on the device,
thus breaking the VTS expectation.

This is not a problem for the framework because it does not look for a /system
config if one was found in /vendor.

In the future, the /system XML might be removed as boards
specific config should be found in /vendor only as per treble
requirements.

Test: Compile
Bug: 65482614
Change-Id: I7cd7eb7284c0aa52782aa591411f8a9bf2a87a76
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoMerge "Fix VTS test which turns off radio." into oc-mr1-dev
Sanket Padawe [Fri, 8 Sep 2017 18:14:16 +0000 (18:14 +0000)]
Merge "Fix VTS test which turns off radio." into oc-mr1-dev

6 years agoMerge "bug fix: handle multiple port settings change events signalled at once" into...
Ram Mohan M [Thu, 7 Sep 2017 23:45:42 +0000 (23:45 +0000)]
Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev am: f8677dcfdb
am: 37b490df35

Change-Id: I028c248ebef366eb439b369adad87047086aa07b

6 years agoMerge "bug fix: handle multiple port settings change events signalled at once" into...
Ram Mohan M [Thu, 7 Sep 2017 23:40:43 +0000 (23:40 +0000)]
Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev
am: f8677dcfdb

Change-Id: If65c243e72e890660fc4481b375b23ba109ae577

6 years agoMerge "bug fix: handle multiple port settings change events signalled at once" into...
TreeHugger Robot [Thu, 7 Sep 2017 23:30:17 +0000 (23:30 +0000)]
Merge "bug fix: handle multiple port settings change events signalled at once" into oc-dev

6 years agoMerge "Bluetooth: Remove credit check from Loopback tests" into oc-mr1-dev
TreeHugger Robot [Thu, 7 Sep 2017 17:39:27 +0000 (17:39 +0000)]
Merge "Bluetooth: Remove credit check from Loopback tests" into oc-mr1-dev

6 years agoMerge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev am: ef3389add5...
Chia-I Wu [Thu, 7 Sep 2017 17:38:17 +0000 (17:38 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev am: ef3389add5  -s ours
am: b2f558e267

Change-Id: Ie634e5172b1e4ebeb98f11a43f8462db67230de0

6 years agoMerge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
Chia-I Wu [Thu, 7 Sep 2017 17:36:15 +0000 (17:36 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
am: ef3389add5  -s ours

Change-Id: I9cee260396d3f24e86443afe36780894397638e1

6 years agoMerge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev
Chia-I Wu [Thu, 7 Sep 2017 17:18:25 +0000 (17:18 +0000)]
Merge "graphics: ignore/reduce spurious vsync in VTS" into oc-dev

6 years agoBluetooth: Remove credit check from Loopback tests
Myles Watson [Wed, 6 Sep 2017 23:26:49 +0000 (16:26 -0700)]
Bluetooth: Remove credit check from Loopback tests

The Bluetooth specification doesn't require data credits
to come back within a specific timeframe, so the VTS test
can not require it.

Bug: 65269854
Test: VtsHalBlueoothV1_0TargetTest with simulated chip (no credits)
Change-Id: If2fc052d3b5236f6a3097f3d5403882226561404
(cherry picked from commit 0e06a63c76f4c02ac307c6294f3d6f61ae6406e7)

6 years agoMerge "HAL interface libs for testing are now built as test lib" into oc-mr1-dev
TreeHugger Robot [Thu, 7 Sep 2017 12:16:20 +0000 (12:16 +0000)]
Merge "HAL interface libs for testing are now built as test lib" into oc-mr1-dev

6 years agoAllow partially dynamic profile in the audio policy config am: 3092b31b14
Kevin Rocard [Wed, 6 Sep 2017 23:44:17 +0000 (23:44 +0000)]
Allow partially dynamic profile in the audio policy config am: 3092b31b14
am: 0aaff8bead  -s ours

Change-Id: I04b522582d2861af37ae68729254105e701fd666

6 years agoAllow partially dynamic profile in the audio policy config
Kevin Rocard [Wed, 6 Sep 2017 23:35:24 +0000 (23:35 +0000)]
Allow partially dynamic profile in the audio policy config
am: 3092b31b14

Change-Id: Ibafc8f571bdc32353bd974a7fce6e3fd84238711

6 years agoMerge "Additonal usage note updates for Audio properties" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 21:32:30 +0000 (21:32 +0000)]
Merge "Additonal usage note updates for Audio properties" into oc-mr1-dev

6 years agoAllow partially dynamic profile in the audio policy config
Kevin Rocard [Thu, 31 Aug 2017 23:45:08 +0000 (16:45 -0700)]
Allow partially dynamic profile in the audio policy config

The audio policy configuration deserializer supports fully dynamic
profiles by not setting a profile in a port.
It also supports partially dynamic profile by
not setting @format, @samplingRates or @channelMasks

Nevertheless this last feature of partial dynamic profile
was mistakenly not allowed by the configuration xsd.

Bug: 63541622
Change-Id: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Merged-In: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Signed-off-by: Kevin Rocard <krocard@google.com>
(cherry picked from commit 43d25f2f26eee5655214cf5426a629916aece061)

6 years agoFix VTS test which turns off radio.
Sanket Padawe [Mon, 4 Sep 2017 05:32:43 +0000 (22:32 -0700)]
Fix VTS test which turns off radio.

Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.

Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472

6 years agoMerge "Remove media.cas requirement." into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 04:24:35 +0000 (04:24 +0000)]
Merge "Remove media.cas requirement." into oc-mr1-dev

6 years agoMerge "Allow partially dynamic profile in the audio policy config" into oc-mr1-dev
TreeHugger Robot [Wed, 6 Sep 2017 01:27:51 +0000 (01:27 +0000)]
Merge "Allow partially dynamic profile in the audio policy config" into oc-mr1-dev

6 years agoAdditonal usage note updates for Audio properties
Scott Randolph [Tue, 5 Sep 2017 23:29:29 +0000 (16:29 -0700)]
Additonal usage note updates for Audio properties

Mostly comment updates for clarification.
Updates the names of a few constants (but not their value nor usage).

Test: build for Mojave
Change-Id: Ic9021f82fa4bd960189e005f074f2b407be13ae7
bug: 65384336

6 years agoRemove media.cas requirement.
Steven Moreland [Tue, 5 Sep 2017 22:41:40 +0000 (15:41 -0700)]
Remove media.cas requirement.

This is a requirement on android phones and tv but
not on watches. Owner will handle putting that requirement
in place, but removing requirement from this file
specifically only in order to have O-MR1 interfaces
frozen.

Bug: 63603463
Test: m system_compatibility_matrix.xml compatibility_matrix.xml manifest.xml system_manifest.xml -j
Change-Id: Iefdc231c2928dfdb8e04a5de8a08ab9b23bae73d

6 years agoMerge "wifi(implementation): Remove unnecessary local variable" into oc-mr1-dev
Roshan Pius [Tue, 5 Sep 2017 22:35:58 +0000 (22:35 +0000)]
Merge "wifi(implementation): Remove unnecessary local variable" into oc-mr1-dev

6 years agoMerge "wifi(implementation): Make WifiLegacyHal.stop() blocking" into oc-mr1-dev
TreeHugger Robot [Tue, 5 Sep 2017 22:33:07 +0000 (22:33 +0000)]
Merge "wifi(implementation): Make WifiLegacyHal.stop() blocking" into oc-mr1-dev

6 years agoMerge "Add RINGTONE to Vehicle HAL AUDIO_FOCUS" into oc-mr1-dev
Scott Randolph [Tue, 5 Sep 2017 21:51:35 +0000 (21:51 +0000)]
Merge "Add RINGTONE to Vehicle HAL AUDIO_FOCUS" into oc-mr1-dev

6 years agoMerge "Finalize O-MR1 compat matrix." into oc-mr1-dev
TreeHugger Robot [Tue, 5 Sep 2017 20:54:28 +0000 (20:54 +0000)]
Merge "Finalize O-MR1 compat matrix." into oc-mr1-dev

6 years agoAdd RINGTONE to Vehicle HAL AUDIO_FOCUS
Scott Randolph [Wed, 16 Aug 2017 02:15:16 +0000 (19:15 -0700)]
Add RINGTONE to Vehicle HAL AUDIO_FOCUS

Test:  build on Mojave with associated CarService changes
Change-Id: I7fcf9b4bb1808971f4fc8265a7d581dce57be3d3
Bug: 64729839

6 years agoMerge changes I931dafbb,I845672b2 into oc-mr1-dev
Tri Vo [Tue, 5 Sep 2017 18:42:17 +0000 (18:42 +0000)]
Merge changes I931dafbb,I845672b2 into oc-mr1-dev

* changes:
  Thermal 1.1 test statically links to hal def libs.
  Update thermal hal Android.bp.

6 years agoMerge "Fix VtsHalGraphicsComposerV2_1TargetTest" into oc-mr1-dev
Zhuoyao Zhang [Tue, 5 Sep 2017 18:33:42 +0000 (18:33 +0000)]
Merge "Fix VtsHalGraphicsComposerV2_1TargetTest" into oc-mr1-dev

6 years agoMerge "bug fix: restore support for broken flag" into oc-dev am: 40aad4e988
Ram Mohan M [Sun, 3 Sep 2017 13:02:34 +0000 (13:02 +0000)]
Merge "bug fix: restore support for broken flag" into oc-dev am: 40aad4e988
am: 062192a1be

Change-Id: I8349103fed48e5eafeffa9ea4dfc78cbe82e1d1b

6 years agoMerge "bug fix: restore support for broken flag" into oc-dev
Ram Mohan M [Sun, 3 Sep 2017 12:55:06 +0000 (12:55 +0000)]
Merge "bug fix: restore support for broken flag" into oc-dev
am: 40aad4e988

Change-Id: Ied23d04f5c38f81ad732424d3577edf4d3cc085d

6 years agoMerge "bug fix: restore support for broken flag" into oc-dev
TreeHugger Robot [Sun, 3 Sep 2017 12:42:39 +0000 (12:42 +0000)]
Merge "bug fix: restore support for broken flag" into oc-dev

6 years agoMerge "NNAPI Concurrent Query Management -- HAL and VTS update" into oc-mr1-dev
David Gross [Sat, 2 Sep 2017 22:56:48 +0000 (22:56 +0000)]
Merge "NNAPI Concurrent Query Management -- HAL and VTS update" into oc-mr1-dev

6 years agobug fix: restore support for broken flag
Ram Mohan M [Wed, 30 Aug 2017 06:26:33 +0000 (11:56 +0530)]
bug fix: restore support for broken flag

timestampDevTest flag can be used to disable timestamp deviation
tests. The flag is not working as intended. This is corrected.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 64743270
Bug: 65166112

Merged-In: I611e96498a4677b6ccbff33c291d56eed7b48f6f
Change-Id: I611e96498a4677b6ccbff33c291d56eed7b48f6f

6 years agoMerge "Modify SetDefaultPortParams test" into oc-mr1-dev
TreeHugger Robot [Sat, 2 Sep 2017 08:22:50 +0000 (08:22 +0000)]
Merge "Modify SetDefaultPortParams test" into oc-mr1-dev

6 years agoMerge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev am...
Ram Mohan M [Sat, 2 Sep 2017 03:50:43 +0000 (03:50 +0000)]
Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev am: febad058bd
am: a87079c3d4

Change-Id: Ied9396646a58ca9b3f123c7db25df418b040a478

6 years agoMerge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev
Ram Mohan M [Sat, 2 Sep 2017 03:44:45 +0000 (03:44 +0000)]
Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev
am: febad058bd

Change-Id: I09128311ab40316b17d99daeae375ff7535d0e63

6 years agoMerge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev
TreeHugger Robot [Sat, 2 Sep 2017 03:40:15 +0000 (03:40 +0000)]
Merge "bug fix: disable timestamp deviation test for audio decoder" into oc-dev

6 years agoAllow partially dynamic profile in the audio policy config
Kevin Rocard [Thu, 31 Aug 2017 23:45:08 +0000 (16:45 -0700)]
Allow partially dynamic profile in the audio policy config

The audio policy configuration deserializer supports fully dynamic
profiles by not setting a profile in a port.
It also supports partially dynamic profile by
not setting @format, @samplingRates or @channelMasks

Nevertheless this last feature of partial dynamic profile
was mistakenly not allowed by the configuration xsd.

Bug: 63541622
Change-Id: I78f77a77a3c62bba28a7da5a0e3c8c608b5a01d9
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agographics: ignore/reduce spurious vsync in VTS
Chia-I Wu [Mon, 24 Jul 2017 18:11:01 +0000 (11:11 -0700)]
graphics: ignore/reduce spurious vsync in VTS

Bug: 62802718
Test: VTS
Change-Id: I1ed73e0b2f14414f540865a96e6bd5ac1599fbf3
(cherry picked from commit e0ff3e4a2679cb505e801db5df4d1546f6caa41a)

6 years agoNNAPI Concurrent Query Management -- HAL and VTS update
Michael Butler [Fri, 1 Sep 2017 17:59:38 +0000 (10:59 -0700)]
NNAPI Concurrent Query Management -- HAL and VTS update

The NNAPI requires requests on a model to be asynchronously
processed. This CL implements a basic Event that can later
be used to block the runtime thread until the asynchronous
request has completed.

Bug: 63905942
Test: VtsHalNeuralnetworksV1_0TargetTest (32-bit, 64-bit) with sample driver enabled by cherry-pick
      frameworks/ml/nn/runtime/test with and without sample driver enabled
Change-Id: Ie27a574aaaac312e7cbb731750f9c06278357a1c

6 years agoAdd portMode configuration test
Ram Mohan M [Wed, 23 Aug 2017 11:55:00 +0000 (17:25 +0530)]
Add portMode configuration test

Configuration of port mode of a component is allowed only when the
component is in loaded state. When the component is in idle/execute
state this operation is denied. This commit adds a test fixture that
verifies this.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 63796949

Merged-In: Ib958c671873fe1d9bb4227ce3e7214f948469f19
Change-Id: Ib958c671873fe1d9bb4227ce3e7214f948469f19

6 years agoModify SetDefaultPortParams test
Ram Mohan M [Wed, 26 Jul 2017 12:00:32 +0000 (17:30 +0530)]
Modify SetDefaultPortParams test

1. For output port in video encoder and input port in video decoder,
it is allowed to configure the size of the buffer. Make adjustments
in the test application to validate this scenario.

2. useBuffer api call is allowed only after sending loaded to idle
state transition command. Ensure this requirement is met.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 63796949

Change-Id: I1aba7703e1344b87f556d3388a4cde8199898499

6 years agobug fix: handle multiple port settings change events signalled at once
Ram Mohan M [Tue, 29 Aug 2017 08:38:47 +0000 (14:08 +0530)]
bug fix: handle multiple port settings change events signalled at once

Components can send various kinds of port settings changed events all
at once. During a full port reconfiguration this is causing problems
due to limited flexibility in the message handling design. For now,
before committing to a full port reconfiguration defer any events
waiting in the queue to be addressed to a later point.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 64468705

Change-Id: I537cdd3e7d92cdc6d54168f091d7897afe541599

6 years agobug fix: disable timestamp deviation test for audio decoder
Ram Mohan M [Fri, 1 Sep 2017 08:28:40 +0000 (13:58 +0530)]
bug fix: disable timestamp deviation test for audio decoder

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 64128634
Bug: 65166112

Change-Id: I8a08a8da7dd203cd16cbfbfd3f15e27966db711f

6 years agobug fix: add missing color formats to the check for valid formats
Ram Mohan M [Mon, 28 Aug 2017 11:15:19 +0000 (16:45 +0530)]
bug fix: add missing color formats to the check for valid formats

Component can support 420PackedPlanar and 420PackedSemiPlanar as
their choice of color formats. The current test application can
fail in this case. This is corrected.

Test: make vts -j99 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 \
&& vts-tradefed run commandAndExit vts \
--skip-all-system-status-check --primary-abi-only \
--skip-preconditions --module VtsHalMediaOmxV1_0Test -l INFO

Bug: 63796949

Change-Id: I38bbbb40b34dcdd4526e87708667dc116af900f1

6 years agoCleanup the constants.
Jean-Luc Brouillet [Fri, 1 Sep 2017 06:03:04 +0000 (23:03 -0700)]
Cleanup the constants.

- Alphabetize the operations.
- Remove N_GRAM operation.
- Add TENSOR_INT32.

Test: Compiled and ran the tests.
Bug: 63905942
Change-Id: Ie7d9dec671a409256b686ef4665171492d1ac16a

6 years agoHAL interface libs for testing are now built as test lib
Jiyong Park [Tue, 29 Aug 2017 05:20:59 +0000 (14:20 +0900)]
HAL interface libs for testing are now built as test lib

The HAL interfaces for testing were copied to /system/lib[64]/vndk
directory since they are built as cc_library and thus falsely recognized
as members of VNDK, which isn't true.

Build them as cc_test_library so that they are filtered out. To do so,
.hidl_for_test files are added for the test HALs and update-makefiles.sh
were ran.

Bug: 64776708
Test: no android.hardware.tests.*.so file in /system/lib[64]/vndk on
2017 pixel devices

Change-Id: I5314db6cc08a43bccfc4521d4b80b614a91e7e48

6 years agoFinalize O-MR1 compat matrix.
Steven Moreland [Tue, 29 Aug 2017 21:37:44 +0000 (14:37 -0700)]
Finalize O-MR1 compat matrix.

Note, only new HALs for various shipping API levels
are added. No required HALs are added.

Test: (sanity) boot device w/o 'internal problem' error
Bug: 63603463
Change-Id: Ia400bdaf5d167ce8637ecdf940c5ccd629c8a09a

6 years agoThermal 1.1 test statically links to hal def libs.
Tri Vo [Thu, 31 Aug 2017 20:35:03 +0000 (13:35 -0700)]
Thermal 1.1 test statically links to hal def libs.

Bug: 64040096
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module VtsHalThermalV1_1Target
Change-Id: I931dafbbdb518e387615909a69f83e6a37c4a62f

6 years agoUpdate thermal hal Android.bp.
Tri Vo [Thu, 31 Aug 2017 20:30:12 +0000 (13:30 -0700)]
Update thermal hal Android.bp.

Bug: 32920003
Bug: 64040096
Test: compiles
Change-Id: I845672b2b07ddba9b73f702555231674b4f45ad1

6 years agoFix VtsHalGraphicsComposerV2_1TargetTest
Zhuoyao Zhang [Thu, 31 Aug 2017 19:51:57 +0000 (12:51 -0700)]
Fix VtsHalGraphicsComposerV2_1TargetTest

Bug: 65252969
Test: make vts
Change-Id: Id4543b385ca9dce532bbf08ef206897924d66acb

6 years agoAdd OEM_OPERATION to NN HAL.
Miao Wang [Wed, 30 Aug 2017 00:43:19 +0000 (17:43 -0700)]
Add OEM_OPERATION to NN HAL.

Bug: 63905942
Test: mm
Test: All unit tests pass on Sailfish
Change-Id: I8c8068b248d682fbf1db37de78666c9cbca376b4

6 years agoMerge "Replace LOOKUP with EMBEDDING and HASHTABLE_LOOKUP" into oc-mr1-dev
Yang Ni [Thu, 31 Aug 2017 15:11:04 +0000 (15:11 +0000)]
Merge "Replace LOOKUP with EMBEDDING and HASHTABLE_LOOKUP" into oc-mr1-dev

6 years agoMerge "Adding owners for gnss hardware interfaces" into oc-mr1-dev
Wyatt Riley [Wed, 30 Aug 2017 23:57:23 +0000 (23:57 +0000)]
Merge "Adding owners for gnss hardware interfaces" into oc-mr1-dev

6 years agoMerge "cas: fix missing error code conversion" into oc-mr1-dev
TreeHugger Robot [Wed, 30 Aug 2017 22:35:31 +0000 (22:35 +0000)]
Merge "cas: fix missing error code conversion" into oc-mr1-dev

6 years agoDon't send more than 2K to addRngEntropy
Shawn Willden [Fri, 11 Aug 2017 20:33:44 +0000 (14:33 -0600)]
Don't send more than 2K to addRngEntropy

Bug: 63745893
Test: VtsHalKeymasterV3_0TargetTest
Change-Id: I136920d3b62e026b22fbe06594bc40ccddc57dc3
(cherry picked from commit 3e1267edf0621185043482a805fcec0fa2a63719)

6 years agoMerge "Update vts test to use the updated test template." into oc-mr1-dev
Zhuoyao Zhang [Wed, 30 Aug 2017 21:50:20 +0000 (21:50 +0000)]
Merge "Update vts test to use the updated test template." into oc-mr1-dev

6 years agoMerge "Fix HALs to not have transitive depends." into oc-mr1-dev
TreeHugger Robot [Wed, 30 Aug 2017 16:10:37 +0000 (16:10 +0000)]
Merge "Fix HALs to not have transitive depends." into oc-mr1-dev

6 years agoAdding owners for gnss hardware interfaces
Wyatt Riley [Wed, 30 Aug 2017 00:47:11 +0000 (17:47 -0700)]
Adding owners for gnss hardware interfaces

Bug # is example where owners file would have
appropriate expedited the fix.

Bug: 64482271
Test: Treehugger (if relevant) - OWNERS file only
Change-Id: If82a2794ae40d48542006674c3c57a1e21c5124b