Commit graph

33685 commits

Author SHA1 Message Date
Michael Butler
8f6b82c7a5 Merge "Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal" 2021-11-19 02:45:32 +00:00
Michael Butler
71b595549c Merge "Make NNAPI Version more structured -- hal" 2021-11-18 23:58:42 +00:00
Michael Butler
60a7b86cf0 Rename Version::ANDROID_* to kVersionFeatureLevel* -- hal
Prior to this change, version constants (e.g., Version::ANDROID_S) were
public static constants to make the version constants look as if they
were enum values. However, this method prevented versions from being
constexpr, because the Version type was incomplete by that point in
time. This change moves these version constants outside of the Version
struct, and makes them constexpr. They have the new names:
* Version::ANDROID_OC_MR1 -> kVersionFeatureLevel1
* Version::ANDROID_P -> kVersionFeatureLevel2
* Version::ANDROID_Q -> kVersionFeatureLevel3
* Version::ANDROID_R -> kVersionFeatureLevel4
* Version::ANDROID_S -> kVersionFeatureLevel5
* Version::FEATURE_LEVEL_6 -> kVersionFeatureLevel6
* Version::EXPERIMENTAL -> kVersionFeatureLevelExperimental

Bug: 206975939
Test: mma
Change-Id: Ibf5f2fdb1459a69c51865aa5fdcd0cb0c3a88ade
2021-11-18 23:56:54 +00:00
Michael Butler
34f0a8f418 Make NNAPI Version more structured -- hal
Prior to this topic, NNAPI Versions were linear and represented by an
enumeration. However, this did not properly account for the
non-linearity of runtime-specific features such as a control flow
operations with operands of dynamic sizes. This topic alters Version to
be a struct containing a feature level enumeration as well as a boolean
which indicates whether there are runtime-specific features.

Bug: 206975939
Test: mma
Test: NeuralNetworksTests_static
Change-Id: I78c54ef597bf269b137f2835332bdedac49883d4
2021-11-18 23:56:15 +00:00
Treehugger Robot
a4a390c0d9 Merge "Wifi: P2P VTS tests fail with no P2P support" 2021-11-18 21:31:09 +00:00
Yifan Hong
d4ebad8aef health: Update README.md for SELinux rule example
Test: none
Bug: 177269435
Change-Id: Ifd5ef99e7dd1c27fe9973daa65ad70714f86a46b
2021-11-16 23:22:16 -08:00
Carter Hsu
f665b8fa86 Merge "audio: Support 64bit configuration on 32+64bit compatible OS" 2021-11-17 04:50:22 +00:00
Sooraj Sasindran
0d9ef9f0b9 Merge "Add new VoNR api into IRadioVoice module" 2021-11-16 22:51:33 +00:00
Hongguang Chen
32b4c5025b Merge "Add blindScan condition to blindScan test" 2021-11-16 22:34:32 +00:00
Treehugger Robot
20d4bc2d00 Merge "Add 5.15 to the current compatibility matrix" 2021-11-16 22:32:28 +00:00
Michael Butler
21e079c9e2 Merge "Configure Version value for each version of NN AIDL utils" 2021-11-16 19:30:51 +00:00
ming.lo
3d49487541 Add blindScan condition to blindScan test
Bug: 203389496

Change-Id: If44df620ab90b5b0247fbee15e2b2a57e27683b5
Merged-In: If44df620ab90b5b0247fbee15e2b2a57e27683b5
2021-11-16 18:56:18 +00:00
Yifan Hong
4915df85a0 Merge "health: do not use default destructor." 2021-11-16 02:25:29 +00:00
Carter Hsu
150dded787 audio: Support 64bit configuration on 32+64bit compatible OS
The default value is 'prefer32', in order to run the hardware audio
service as 64 bit on a 32+64bit OS, please add the content below
into 'device.mk':

SOONG_CONFIG_NAMESPACES += android_hardware_audio
SOONG_CONFIG_android_hardware_audio += \
	run_64bit
SOONG_CONFIG_android_hardware_audio_run_64bit := true

Bug: 205240941
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ic7632a4f80298721512cd538ce93945b82a9981f
2021-11-16 00:44:36 +00:00
Michael Butler
20f76f3654 Configure Version value for each version of NN AIDL utils
Currently, there are two different versions of the NN AIDL utils:
* neuralnetworks_utils_hal_aidl_v1 (v1)
* neuralnetowrks_utils_hal_aidl (v2)

This change configures utils::kVersion to match the version of the
utility library that builds it.

Bug: N/A
Test: mma
Change-Id: I7d08bf50f76664702ec0828cc35a363eb29bdde3
2021-11-15 15:42:28 -08:00
Michael Butler
161883c967 Merge "Consolidate NNAPI OWNERS files" 2021-11-15 23:22:05 +00:00
Blair Prescott
7156c06525 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
2021-11-15 13:49:21 -08:00
Michael Butler
acd7955b21 Consolidate NNAPI OWNERS files
This change deletes all existing OWNERS files under
hardware/interfaces/neuralnetworks and creates a new OWNERS file with
the current NNAPI team members.

This change also updates the NNAPI project path in
hardware/interfaces/neuralnetworks/README.

Bug: 179510251
Test: N/A
Change-Id: Iaca69505c8449ae7d93be0db99205f5f56556e86
2021-11-15 20:22:41 +00:00
Gary Jian
0955e0154c Add new VoNR api into IRadioVoice module
-isVoNrEnabled
-setVoNrEnabled

Bug: 203162440
Test: make
Change-Id: Iae3e17c8ff5aa25ca0398bd179879c49deca71f5
2021-11-15 16:25:04 +08:00
Yifan Hong
2d418a2b5b health: do not use default destructor.
Otherwise, clients will need to know how to destroy
LinkedCallback, a hidden class.

Test: builds
Bug: 177269435
Change-Id: I89532755da16b672c4cbece55b943306f68cdb9e
2021-11-12 19:05:24 -08:00
Sarah Chin
2d1a006ae4 Merge "Remove deprecated/unused APIs from IRadio AIDL" 2021-11-12 23:53:09 +00:00
Treehugger Robot
c4718b793c Merge "Fix the integration issue for HAL 2.2" 2021-11-12 12:53:17 +00:00
Treehugger Robot
6c6116a542 Merge "Support multiple RANs in one request for setSignalStrengthReportingCriteria" 2021-11-11 21:58:00 +00:00
Rambo Wang
59de6eb636 Support multiple RANs in one request for setSignalStrengthReportingCriteria
- Move AccessNetwork (RAN) into SignalThresholdInfo to be better organized
- Support specifying multiple RANs and measurement types in one request

Bug: 200055871
Test: m -j
Merged-In: Ic6762e8ca488a119b1103319e7443c4342530f8c
Change-Id: Ic6762e8ca488a119b1103319e7443c4342530f8c
(cherry picked from commit 9073f55722)
2021-11-11 12:43:19 -08:00
Sarah Chin
e5b79b8e30 Remove deprecated/unused APIs from IRadio AIDL
Test: build
Bug: 199433581
Change-Id: I6cc0e2103803f3d56a9ed451645b6d8bab29e507
Merged-In: I6cc0e2103803f3d56a9ed451645b6d8bab29e507
2021-11-11 02:11:47 -08:00
David Drysdale
7a5b3d062d Merge "KeyMint VTS: extra unique ID test" 2021-11-11 06:25:37 +00:00
Alistair Delva
0466235d8f Add 5.15 to the current compatibility matrix
Allow devices built with minlts 5.15.0 to be assigned to the current
compatiblity checks.

Change-Id: I6be6334c6ee4feac637384bfa808f1fc57facd47
2021-11-10 14:03:07 -08:00
Yifan Hong
1698fe28eb Merge "health: Also add h2aTranslate(V1_0.HealthInfo)" 2021-11-10 21:11:00 +00:00
Chen Xu
4c718b3da6 Merge "Replacing SimPortInfo.portState enum with portActive flag" 2021-11-10 20:34:22 +00:00
Jayachandran Chinnakkannu
5916cc0beb Merge "Add some delay for SIM power up and down delay for setSimCardPower_1_6 API" 2021-11-10 17:15:22 +00:00
Ian Hua
2a7b0014a7 Merge "Freeze neuralnetworks AIDL version as v2 for FL6" 2021-11-10 10:51:18 +00:00
Alice Kuo
db52a7beac Link OWNERS to new location packages/modules/Bluetooth
Bug: 196026708
Change-Id: Ie437787cf6e6c24212bf1090f4eb8c3c377ed7bb
2021-11-10 09:43:30 +00:00
David Drysdale
13f2a40e44 KeyMint VTS: extra unique ID test
Test that specifying RESET_SINCE_ID_ROTATION results in a different
unique ID value.

Test: VtsAidlKeyMintTargetTest
Bug: 202487002
Change-Id: I2aed96514bf9e4802f0ef756f880cac79fa09554
2021-11-10 06:26:31 +00:00
Gabriel Biren
e3f88a32db Merge "Switch hostapd VTS tests to NDK backend." 2021-11-09 15:28:06 +00:00
Alice Kuo
95ba6a2181 Fix the integration issue for HAL 2.2
Bug: 150670922
Bug: 197297498
Test: A2DP & LE aduio stream works well with HIDL 2.1/2.2
Change-Id: I64113dd4a229874b2d17ae71d088abafd8197cfd
2021-11-09 22:56:30 +08:00
sandeepjs
34a675a1fd Replacing SimPortInfo.portState enum with portActive flag
Test: build
Bug: 205666689
Change-Id: I81a880f6e4f5646faaeb76b48c746c3cbdb2ce27
2021-11-09 07:57:58 +00:00
Treehugger Robot
4795980565 Merge "health: make libhealth_aidl_impl visibility public" 2021-11-09 05:57:28 +00:00
Treehugger Robot
728f334599 Merge "Update OWNERS for VtsHalSensors tests." 2021-11-09 02:37:17 +00:00
Michael Butler
9ec39aa042 Merge "Remove unnecessary NNAPI header files" 2021-11-09 01:35:46 +00:00
Yifan Hong
2e07613c79 health: make libhealth_aidl_impl visibility public
It was meant to be the replacement of health2impl, the helper library
for implementing the health HAL. Hence, vendor implementation needs
to access it.

Test: pass
Bug: 177269435
Change-Id: I58f4bcd860983b2b16ea52fbdd6e05c8d4953454
2021-11-08 13:02:17 -08:00
Yifan Hong
701ff4a1de Merge "health: handle charger in health HAL" 2021-11-08 20:33:46 +00:00
Yifan Hong
9af94c627c Merge "health AIDL: Add readme" 2021-11-08 20:29:15 +00:00
Yifan Hong
02f04175c9 health AIDL: Add readme
Test: none
Bug: 177269435
Change-Id: I54e69d7789c6e1246bb126a27f9463e04407314e
2021-11-08 12:28:18 -08:00
Yifan Hong
4335f1cf9f health: Also add h2aTranslate(V1_0.HealthInfo)
... for BatteryService to use. Other fields
are kept as default values.

Test: builds
Bug: 177269435
Change-Id: I7e1c997f5441c7a81bcffb32688f4a2216378998
2021-11-08 12:23:23 -08:00
Jayachandran C
5c1aa7972f Add some delay for SIM power up and down delay for setSimCardPower_1_6 API
Bug: 203031664
Test: VTS
Change-Id: I68e7352ed95a8487dee291de493c78cf1491d569
2021-11-08 07:52:44 +00:00
Michael Butler
2ffa7ad391 Remove unnecessary NNAPI header files
This change removes the following header files, which were created
temporarily while NNAPI utility code was being re-organized, and are no
longer needed:
* include/AidlBufferTracker.h
* include/AidlHalInterfaces.h
* include/AidlHalUtils.h
* include/AidlValidateHal.h

Bug: 191442336
Test: mma
Test: atest neuralnetworks_utils_hal_*
Change-Id: I895d0bf6b5fd0ec4ef2977da0ecfe2a106e44083
2021-11-05 12:26:01 -07:00
Treehugger Robot
e1619a8923 Merge "Creates a vendor APEX for the power and power.stats AIDL HALs." 2021-11-04 21:59:41 +00:00
Bob Badour
7a31e5dbd9 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  health/utils/libhealthtest/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: Icad37f04c1ca51b2b111b980a45002bf027505c8
2021-11-04 11:22:46 -07:00
David Gross
7e2e6b33a4 Freeze neuralnetworks AIDL version as v2 for FL6
$ m android.hardware.neuralnetworks-update-api
$ m android.hardware.neuralnetworks-freeze-api

Bug: 203055646

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest
Change-Id: I35dbd32695acdffc552790dc7396bc8c724e9242
2021-11-04 10:11:16 -07:00
Treehugger Robot
8d27f7c7da Merge "audio: Fix handling of dynamic profiles in VtsHalAudioV7_0TargetTest" 2021-11-04 08:43:23 +00:00