Commit graph

1135 commits

Author SHA1 Message Date
David Drysdale
ab1851e9f2 Alter spec text for RSA-PSS to match reality
The Key{Mint,Master} spec previously said that RSA-PSS mode should use
SHA-1 for the MGF1 digest, separately from whatever Tag::DIGEST gets
specified as the main digest.

However, both the reference implementation and the VTS/CTS tests
use BoringSSL's defaults, which is to re-use the main digest as the MGF1
digest if none is separately specified.

Given that this behaviour is embedded in many implementations over
several years (and given that there isn't a security implication),
change the spec to match this behaviour.  Also update the VTS test
code to make this clear/obvious.

Test: VtsAidlKeyMintTargetTest, VtsHalKeymasterV4_0TargetTest
Bug: 210424594
Change-Id: I4303f28d094ef4d4b9dc931d6728b1fa040de20d
Ignore-AOSP-First: target internal master first due to merge conflict
2022-01-13 09:13:39 +00:00
Snild Dolkow
5cd6212fee Revert "Clarify the ComposerClient comment for CONFIG_GROUP"
This reverts commit 37c5495c52.

This "clarification" was in fact a change of the HAL interface,
introducing a new requirement which was not present in earlier
Android releases. There are devices on the market that switch
seamlessly between configs that differ in resolution and DPI,
and therefore have those configs in a config group.

Bug: 200184776
Test: m
Change-Id: I5bba1c6532f5f46da874385164a0bc0cc0435225
2021-10-15 13:45:33 +02:00
Marin Shalamanov
051c72e1ff Merge "Update the Composer HAL docs for setContentType" 2021-10-11 09:48:20 +00:00
Emilian Peev
08e5e71c1d Merge "Camera: Add static metadata that can map device state to orientation" into sc-v2-dev am: 6621c1ad05
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15943423

Change-Id: I9fbc1699e84cf078fdedd13acc569a2fd1384a98
2021-10-07 23:05:20 +00:00
Emilian Peev
6621c1ad05 Merge "Camera: Add static metadata that can map device state to orientation" into sc-v2-dev 2021-10-07 22:53:25 +00:00
Marin Shalamanov
b00e11ff6f Update the Composer HAL docs for setContentType
setContentType can be called even if it's not supported.
On some devices this surves as a signal to disable on-device
post processing in order to reduce latency.

Bug: 202007307
Test: n/a
Change-Id: I9888d48979cd2442b54054730c78cf7b4ed6aab4
2021-10-07 18:09:15 +02:00
Emilian Peev
3387f1c84e Camera: Add static metadata that can map device state to orientation
Allow camera providers to advertise the mapping between device state
and camera orientation.

Bug: 201005727
Test: VtsHalCameraProviderV2_4TargetTest
--gtest_filter=PerInstance/CameraHidlTest.getCameraCharacteristics/0_internal_0

Change-Id: Ibb035f4dc3d8af1106ac08f86e43b953ddcbf55b
2021-10-06 16:42:25 -07:00
Tyler Trephan
09c95ea265 Updated WHEEL_TICK configArray documentation in VHAL. am: 0e6c4ce873
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15994748

Change-Id: I3d603deefa46992add3284700d94dac3a5889e8c
2021-10-06 19:21:03 +00:00
Tyler Trephan
0e6c4ce873 Updated WHEEL_TICK configArray documentation in VHAL.
It now specifies that the micrometers-per-wheel-tick values are static
and approximations.

Test: None
Bug: 169364681
Change-Id: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
Merged-In: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
(cherry picked from commit c0653a4452)
2021-10-06 16:44:07 +00:00
TreeHugger Robot
dfc583405c Merge "Updated WHEEL_TICK configArray documentation in VHAL." 2021-10-05 18:44:16 +00:00
Tyler Trephan
c0653a4452 Updated WHEEL_TICK configArray documentation in VHAL.
It now specifies that the micrometers-per-wheel-tick values are static
and approximations.

Test: None
Bug: 169364681
Change-Id: Ia002bdcf7c9a91d82d8f6d543d2476d227256046
2021-09-28 19:25:47 +00:00
Ian Hua
92d26020a7 Merge "Fix HAL and AIDL files to be consistent with API generation tool." am: 650dc957ee am: df56bdcee9 am: 159bc14bad
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1818131

Change-Id: I0a8d9ad1344fb0f67bdde7dbff4078d5660ac055
2021-09-09 13:28:31 +00:00
Ian Hua
df56bdcee9 Merge "Fix HAL and AIDL files to be consistent with API generation tool." am: 650dc957ee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1818131

Change-Id: I4f275432c7beb4e97b50f9a4a8e5343bb57235da
2021-09-09 12:59:34 +00:00
Ian Hua
650dc957ee Merge "Fix HAL and AIDL files to be consistent with API generation tool." 2021-09-09 12:32:56 +00:00
Ian Hua
d910bd6aaa Fix HAL and AIDL files to be consistent with API generation tool.
Bug: 161426966
Test: generate_api.sh
Change-Id: I4f4cc108ccdf2f37a1a7fa154ba8e8a186295276
2021-09-08 17:41:10 +01:00
Hongbo Zeng
c39d782a95 move the fields in RouteSelectionDescriptorParams to RouteSelectionDescriptor
Bug: 178075054
Test: full build pass
Change-Id: I283514bd63cb3ae7c37d8e3d4740e38f7e79a09e
Merged-In: I283514bd63cb3ae7c37d8e3d4740e38f7e79a09e
2021-09-07 10:40:26 -07:00
TreeHugger Robot
4c002642b0 Merge "Update Documentation for EPOCH_TIME." into sc-qpr1-dev am: 922f2b0bca am: a66bac8e90
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15618006

Change-Id: I7c184383fd0a6720351947dac7808cfab34080cb
2021-08-20 22:28:55 +00:00
TreeHugger Robot
828a063f3c Merge "Update Documentation for EPOCH_TIME." into sc-qpr1-dev am: 922f2b0bca
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15618006

Change-Id: Iada15d1177104ca60713d927c8457dd1ca26c766
2021-08-20 21:23:09 +00:00
Ashutosh Agarwal
52799bd05d Update Documentation for EPOCH_TIME.
This is a change in behaviour for EPOCH_TIME to align it with a future revisions.

Bug: 157504928
Test: atest CarServicesTest
Test: atest VehiclePropertyIdsTest

Change-Id: I81881a03a1a562afc93cb1a2fe8a8fffa43f093d
2021-08-19 18:54:54 +00:00
Ilya Matyukhin
71db0bf6f1 Merge "Update comments for IBiometricsFingerprint@2.3" into sc-dev am: 70b9c17191 am: 3d4966ec06
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15364786

Change-Id: I9ab166b5328d1bebae376368527cd0aa5b92a105
2021-07-24 03:21:25 +00:00
Ilya Matyukhin
ca3f4c0ac1 Merge "Update comments for IBiometricsFingerprint@2.3" into sc-dev am: 70b9c17191
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15364786

Change-Id: If1aae2740b54c5539d7bced35a47bda6e5022358
2021-07-24 03:08:17 +00:00
Ilya Matyukhin
ac11a2e824 Update comments for IBiometricsFingerprint@2.3
This CL adds a comment that discourages use of this interface. The AIDL
interface, IFingerprint, should be used instead.

Bug: 160189286
Test: hidl-gen -L check android.hardware.biometrics.fingerprint@2.3::IBiometricsFingerprint
Change-Id: Ifafb191ac16e03e60d677fce6dc9e41e87bad0c0
2021-07-22 19:39:21 -07:00
Jayant Chowdhary
74f8449d1c Merge "camera: Clarify that ANDROID_JPEG_MAX_SIZE applies to default sensor pixel mode." into sc-dev am: b4d21c8e80 am: eaa48006ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15261060

Change-Id: I9ea12b8b4a7d8d9b7bface8b77fb96328697f97f
2021-07-13 23:54:10 +00:00
Jayant Chowdhary
d118c942de Merge "camera: Clarify that ANDROID_JPEG_MAX_SIZE applies to default sensor pixel mode." into sc-dev am: b4d21c8e80
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15261060

Change-Id: Ief39671f3986903c9842120d608628fdd1a3f888
2021-07-13 23:35:38 +00:00
Jayant Chowdhary
b4d21c8e80 Merge "camera: Clarify that ANDROID_JPEG_MAX_SIZE applies to default sensor pixel mode." into sc-dev 2021-07-13 23:22:55 +00:00
Jayant Chowdhary
36f01d9083 camera: Clarify that ANDROID_JPEG_MAX_SIZE applies to default sensor pixel mode.
Bug: 193346383

Test: builds

Change-Id: I451e4a8da7598f878f8fa5024e6bda5d8dbb1868
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2021-07-12 15:34:09 -07:00
TreeHugger Robot
a8431ed0e7 Merge "Camera: Fix a typo in the 3.7 device comment" into sc-dev am: bca91a0fde am: d7fd1346d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15190373

Change-Id: I7477f79a3c4b295aa492184e3d4b69714c08b682
2021-07-08 19:08:30 +00:00
TreeHugger Robot
4822518271 Merge "Camera: Fix a typo in the 3.7 device comment" into sc-dev am: bca91a0fde
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15190373

Change-Id: Iac7b67e3a3a4adeb138a8d5c15694e8ea945f0d3
2021-07-08 18:43:39 +00:00
Shuzhen Wang
753a594aec Camera: Fix a typo in the 3.7 device comment
Test: Build
Bug: 192701691
Change-Id: Iba9ce48fc7e50bf632e93408072c89d3eb74ab99
2021-07-03 00:07:37 +00:00
Yu-Han Yang
8e3b6a1066 Merge "Fix ADR half cycle ambiguity doc (hardware/interfaces)" into sc-dev am: 9f834f1a91 am: c24e595991
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14948497

Change-Id: I5638e433d64edc3010e18aa74e8956798174d95b
2021-06-22 21:50:58 +00:00
Yu-Han Yang
98b17b0862 Merge "Fix ADR half cycle ambiguity doc (hardware/interfaces)" into sc-dev am: 9f834f1a91
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14948497

Change-Id: Ifb89bcc59594127a24510be3b1655e09267b7a2c
2021-06-22 19:33:35 +00:00
Yu-Han Yang
9f834f1a91 Merge "Fix ADR half cycle ambiguity doc (hardware/interfaces)" into sc-dev 2021-06-22 19:07:54 +00:00
TreeHugger Robot
e7ae80aff7 Merge "freeze @1.1::ILazy, which is causing cf to fail VTS" into sc-dev am: 60fc573267 am: b4c8ee5367
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15015603

Change-Id: Ie62aa4c973a680862e8307352cd605206008a6f6
2021-06-17 21:34:28 +00:00
TreeHugger Robot
d07ca3e966 Merge "freeze @1.1::ILazy, which is causing cf to fail VTS" into sc-dev am: 60fc573267
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15015603

Change-Id: Ic8b00e9fa597bfaf0904533332621ba16ca13c29
2021-06-17 20:34:33 +00:00
TreeHugger Robot
60fc573267 Merge "freeze @1.1::ILazy, which is causing cf to fail VTS" into sc-dev 2021-06-17 19:59:50 +00:00
Steven Moreland
0709a29350 freeze @1.1::ILazy, which is causing cf to fail VTS
This is used on cuttlefish for tests, and so it has to be frozen like
1.0 in order to avoid having to add an exception to the test (which is
considered the worst of all bad solutions here).

Bug: 191115626
Test: build (hash correctness check is done at build time)
Change-Id: I3bbe18e6f6e21c39f8e5efd0ddcbfb0c66385f8c
2021-06-17 18:15:44 +00:00
TreeHugger Robot
d0b313bbbb Merge "Camera: Add framework-only enum value to test pattern mode" into sc-dev am: 0dd1d3909f am: 8591da6d31
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14752518

Change-Id: I901f6bafc72a2cb9a8a5e486a0d25d7b8355e3dc
2021-06-15 18:02:28 +00:00
TreeHugger Robot
a4f17f36a3 Merge "Camera: Add framework-only enum value to test pattern mode" into sc-dev am: 0dd1d3909f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14752518

Change-Id: Idbd307dcad51da023032d8b85496498ee338f793
2021-06-15 17:47:18 +00:00
TreeHugger Robot
0dd1d3909f Merge "Camera: Add framework-only enum value to test pattern mode" into sc-dev 2021-06-15 17:29:24 +00:00
Sasha Kuznetsov
d262fa3f01 Fix ADR half cycle ambiguity doc (hardware/interfaces)
Bug: 190846015
Test: n/a
Change-Id: I6339018bc5b3764d51db61458d208ca7e99b4d81
2021-06-11 12:52:59 -07:00
TreeHugger Robot
d593ebfdf2 Merge "Freeze Vehicle HAL interface" into sc-dev am: 25f22b6441 am: 9c7d84734a
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14891329

Change-Id: I937e92edb42a9550b0a0ebfa582f8b19fece6966
2021-06-10 23:41:32 +00:00
TreeHugger Robot
6d62caf7f3 Merge "Freeze Vehicle HAL interface" into sc-dev am: 25f22b6441
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14891329

Change-Id: Iadf65d9d77edf60a9d5010e4978185e47fc2fdee
2021-06-10 23:29:04 +00:00
Kai
e41878b480 Freeze Vehicle HAL interface
Freeze vehicle hal interface for android s.

Bug: 157608908
Test: atest vts_treble_vintf_vendor_test
Change-Id: I092f7c7facbb08f381560840c449ae1211625c65
2021-06-07 22:54:16 -07:00
David Anderson
761a175291 Merge "Fix typo in IFastboot.hal." am: 45f16a5705 am: 14006f2e96
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1721770

Change-Id: Id1f5196c18bd04df4c2a074e00397a5384be327e
2021-06-03 01:03:25 +00:00
David Anderson
9046c8dc8c Fix typo in IFastboot.hal.
Bug: N/A
Test: N/A
Change-Id: I7de7e92c0941607945ce01d5a31bcdec0628512d
2021-06-02 16:01:53 -07:00
Eino-Ville Talvala
6d3fa0a331 Camera: Add framework-only enum value to test pattern mode
Adding TEST_PATTERN_MODE_BLACK to support the new sensor privacy
feature on more limited-capability camera implementations.

Also updating older docs due to an API being moved to public.

Test: Camera CTS continues to pass
Bug: 189507251
Change-Id: I043d011ad43070d6c402cdffbff3d2e9b70ffd7b
2021-05-27 17:36:54 -07:00
Anthony Stange
57323715d1 Merge "sensors: trivial fixes in comments" am: c75b96410e am: 056a7cd65d am: 51ae67e98e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/572085

Change-Id: Id06b20b5c52bc5e775d747b993071bd7258132aa
2021-05-13 15:39:17 +00:00
Sergii Piatakov
59bb6f9394 sensors: trivial fixes in comments
Fix trivial typos in HAL and VTS comments.

Test: n/a
Change-Id: Ib52d6e1e8e83290cb4b1cf142677b8c772d606e7
Signed-off-by: Sergii Piatakov <sergii.piatakov@globallogic.com>
2021-05-12 20:43:21 +00:00
junyulai
88b237cfb5 [SP37] Change requirement of older event callback.
Currently, vendors are asked to duplicate old events to onEvent()
and onEvent_1_1(). This is not the typically way other modules
would do. Thus, remove the requirement of duplicate events,
and replace it with only firing onEvent_1_1 when feasible.

Note no VTS is added currently, from vendor feedback, there is
no reliable way to guarantee the callbacks will be called in the
test.

Test: hidl-gen -L hash -r android.hardware:hardware/interfaces \
      android.hardware.tetheroffload.control@1.1
Bug: 149467454
Merged-In: I75c1a7788e5d48fb3e2836d54b4fd854c0247214
Change-Id: I75c1a7788e5d48fb3e2836d54b4fd854c0247214
  (cherry-picked from ag/14408065)
2021-05-10 11:37:57 +08:00
junyulai
6cb491a386 [SP37] Change requirement of older event callback.
Currently, vendors are asked to duplicate old events to onEvent()
and onEvent_1_1(). This is not the typically way other modules
would do. Thus, remove the requirement of duplicate events,
and replace it with only firing onEvent_1_1 when feasible.

Note no VTS is added currently, from vendor feedback, there is
no reliable way to guarantee the callbacks will be called in the
test.

Test: hidl-gen -L hash -r android.hardware:hardware/interfaces \
      android.hardware.tetheroffload.control@1.1
Bug: 149467454
Change-Id: I75c1a7788e5d48fb3e2836d54b4fd854c0247214
2021-05-03 14:00:17 +08:00