Commit graph

11904 commits

Author SHA1 Message Date
Steven Moreland
aa5085e852 Replace clang-format with symlink.
Automatic consistency.

Bug: 122835115
Test: manual
Change-Id: I6583f9f7923a822aa11f1839fbf375c1063a89c6
2019-01-18 14:26:33 -08:00
Treehugger Robot
312dce0ec0 Merge "Add startNetworkScan 1.4 API." 2019-01-18 00:15:52 +00:00
Treehugger Robot
9a9b8e2bd8 Merge "dump_hals_for_release: account for numbers in file name" 2019-01-18 00:12:20 +00:00
Youming Ye
9f94a1532f Add startNetworkScan 1.4 API.
add APIs startNetworkScan_1_4 and startNetworkScanResponse_1_4,
disallowing error codes OPERATION_NOT_ALLOWED and
REQUEST_NOT_SUPPORTED for network scan.

Test: Compilation
Bug: 73784494
Change-Id: If42e61fb30c4b482d4552f04f1934bd3c8d1a525
Merged-In: If42e61fb30c4b482d4552f04f1934bd3c8d1a525
2019-01-17 21:41:58 +00:00
Yifan Hong
089322e515 dump_hals_for_release: account for numbers in file name
It did not recognize ISupplicantP2pIface.hal and media.c2 package.
Test: run it, check ISupplicantP2pIface and media.c2
Bug: 121546794

Change-Id: Ib386608f407a961c7a041c20cbf92c305f27cc5c
2019-01-17 13:40:05 -08:00
Treehugger Robot
2f6a9949a7 Merge "mutateOperationOperandTypeSkip for new DEPTHWISE_CONV_2D variant." 2019-01-17 19:52:50 +00:00
sqian
6142408071 Add Emergency Call Routing in HAL
Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.

In multi-sim senario, this radio request will be sent through the IRadio
service that serves the subscription the emergency number belongs to,
no matter of the PUK/PIN state of the subscription and the service state.

Test: Treehugger
Bug: 112657134
Change-Id: Iaa9768226dc2d7d2d66a9678823ba7d0047a1988
Merged-In: Iaa9768226dc2d7d2d66a9678823ba7d0047a1988
(cherry picked from commit dd49ad675e)
2019-01-17 00:31:23 +00:00
Pengquan Meng
5a71637a04 Merge "Add ConnectionStatus to CellInfo v1_4" 2019-01-16 23:48:41 +00:00
Pengquan Meng
1355303547 Add ConnectionStatus to CellInfo v1_4
Bug: 117805040
Test: build
Change-Id: Ic0343671000c320ec8f62f84bcefc18c84ee323a
2019-01-15 13:48:14 -08:00
Treehugger Robot
94acf41dcc Merge "Camera: Clarify the FMQ read order for request/result" 2019-01-15 21:46:58 +00:00
Steven Moreland
c696782032 Merge "clang-format: ContinuationIndentWidth: 8" 2019-01-15 00:47:12 +00:00
Treehugger Robot
27a3c84ebd Merge "Bluetooth Audio HAL interface v2" 2019-01-15 00:35:25 +00:00
Shuzhen Wang
eaab6169b1 Camera: Clarify the FMQ read order for request/result
If there are more than one metadata entities being passed
via FMQ, specify the framework read order.

Test: Build
Bug: 119575429
Change-Id: Ia34ac69ce670b1ebeda12d92af490c347f33c15b
Merged-In: Ia34ac69ce670b1ebeda12d92af490c347f33c15b
2019-01-14 16:29:25 -08:00
Steven Moreland
0169ce4e36 clang-format: ContinuationIndentWidth: 8
More normal, matches system/core.

Bug: 122835115
Test: manual
Change-Id: I41d92756ce9ddfa27b24215f5e92017756a82a25
2019-01-14 10:46:41 -08:00
Yin-Chia Yeh
dbb2211d32 Merge "Camera: fill in bufferSize correctly" into pie-vts-dev
am: d04f64ef24

Change-Id: I33583bbfda0b8f1a480df6a2fe7c88bdf504d493
2019-01-14 04:06:37 -08:00
Treehugger Robot
d04f64ef24 Merge "Camera: fill in bufferSize correctly" into pie-vts-dev 2019-01-14 11:53:27 +00:00
Yin-Chia Yeh
9d4ff706e1 Camera: fill in bufferSize correctly
Test: partner testing
Bug: 118724188
Change-Id: If21762467e6458f923d7f9b7eeef41d987c196a1
2019-01-14 10:54:11 +00:00
Pavlin Radoslavov
1ea96a3802 Bluetooth Audio HAL interface v2
Generalized Bluetooth Audio HAL interface.
It is similar to the original android.hardware.bluetooth.a2dp@1.0
interface with the following modifications:

* The session type can be one of the following:
  - A2DP Software Encoding Datapath
  - A2DP Hardware Encoding Datapath
  - Hearing Aid Software Encoding Datapath
* For Hardware Offload Datapath (A2DP), the HAL interface is used only
  for the control path
* For Software Encoding Datapath (A2DP or Hearing Aid), the HAL
  interface is used for both the control and data paths
* Added Delay Report support: IBluetoothAudioHost.getPresentationPosition()
  that was missing in the original android.hardware.bluetooth.a2dp@1.0
  HAL interface.
* Removed "oneway" calls to avoid potential reordering of HAL calls:
  b/111244402
* Updated SBC-specific codec configuration
* Added AAC-specific and LDAC-specific codec configuration
* Reorganized the original CodecConfiguration into two sections:
  - PcmDataConfiguration: Audio PCM data configuration
  - EncodedDataConfiguration: Encoded audio data codec configuration.
    It is used only if the HAL is responsible for encoding the PCM audio
    data.
* Added new HAL IBluetoothAudioProvidersFactory.
  It is used to open an audio provider for an audio session as specified by
  the session type and the codec configuration as negotiated with the
  remote device.

Bug: 111519504
Test: manual
Change-Id: I2ee4cf50b177baee077cf0b5143dbeadda57c8fb
Merged-In: I2ee4cf50b177baee077cf0b5143dbeadda57c8fb
(cherry picked from commit fcc0732db4)
2019-01-14 03:55:18 +08:00
Dan Albert
a6a529236e Fix comparator operator() definition.
Comparators should be const. The libc++ update checks for this and
rejects non-const comparators.

Test: m
Bug: None
Change-Id: If2f76c020943b5bcb55803f0742990c9965afd6e
2019-01-11 14:48:55 -08:00
Nathan Harold
15213e4175 Merge "Require IRadio 1.4 for Devices Launching Q" 2019-01-11 20:12:01 +00:00
Nathan Harold
0bc890da0c Require IRadio 1.4 for Devices Launching Q
In order to continue providing the best Telephony
experience possible, Android devices that ship
with Q should implement the IRadio 1.4 HAL.

Likewise, new devices should ship with IRadioConfig
version 1.2.

Bug: 112764647
Test: compilation; boots with Pixel 2
Change-Id: I7ce1a7e81dc54d6e4e13b4bdaad8228465bf1570
2019-01-11 00:36:50 +00:00
Marissa Wall
104ecb9e60 graphics: update owners
With olv@ no longer on the graphics team we need to update the
owners file to remove him and add new owners.

For composer the new owners are: lpy@ and vhau@
For allocator/mapper the new owner is: marissaw@

Test: N/A
Change-Id: Ied297e9446d480629155e1d9a96575ee518c2135
2019-01-10 14:27:55 -08:00
Przemyslaw Szczepaniak
725f68487a mutateOperationOperandTypeSkip for new DEPTHWISE_CONV_2D variant.
Bug: 119255406
Test: Vts NNAPI tests.
Change-Id: Iaeb1ef1095dde51e9324f526a2126ed5d0491586
Merged-In: Iaeb1ef1095dde51e9324f526a2126ed5d0491586
(cherry picked from commit 47b9141609)
2019-01-10 18:12:28 +00:00
Xusong Wang
c3ea0775ba Add INSTANCE_NORMALIZATION to operation enum.
Bug: 120064464
Test: NeuralNetworksTest_static
Change-Id: Ia81c8e4a79e65275e4a85b93e3bc18a02ac2cbb0
Merged-In: Ia81c8e4a79e65275e4a85b93e3bc18a02ac2cbb0
(cherry picked from commit 897c0afbdf)
2019-01-10 18:08:27 +00:00
Michael K. Sanders
6049d17c3c Merge "Add support for QUANT8_SYMM_PER_CHANNEL as graph input" 2019-01-10 18:07:11 +00:00
Przemyslaw Szczepaniak
2fadc84792 mutateOperationOperandTypeSkip for new CONV_2D variant.
Bug: 119255406
Test: Vts NNAPI tests.
Change-Id: I265ae4968f5fe3589d79e5846a7d640a735a012f
Merged-In: I265ae4968f5fe3589d79e5846a7d640a735a012f
(cherry picked from commit f54f12634c)
2019-01-10 08:16:56 +00:00
Michael K. Sanders
41e6732a66 Adds float16 support for RANDOM_MULTINOMIAL.
Bug: 118607845
Test: VtsHalNeuralnetworksV1_2TargetTest --hal_service_instance=android.hardware.neuralnetworks@1.2::IDevice/sample-all
Change-Id: Iac8c0c23a8219702697a7a126e5e2e43ef0461f4
Merged-In: Iac8c0c23a8219702697a7a126e5e2e43ef0461f4
(cherry picked from commit 5b2615be21)
2019-01-10 08:16:38 +00:00
Przemyslaw Szczepaniak
4766f8b1a1 Add TENSOR_QUANT8_SYMM_PER_CHANNEL to operand types
Added ExtraParams union for extra Operand parameters.
It's a more sensible approach than adding more fields
to the Operand struct.

Bug: 119249581
Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I59731134cf0ea34cf9e10342686d331da9e9c3b3
Merged-In: I59731134cf0ea34cf9e10342686d331da9e9c3b3
(cherry picked from commit faa59b8a2c)
2019-01-10 08:15:58 +00:00
Baranidharan Muthukumaran
34986e08dc Merge "Fix KM VTS tests for Strongbox implementations" into pie-vts-dev
am: c08c73653a

Change-Id: I0c214e412d2fe1c3eb0f843face90a6ccbf3b031
2019-01-09 12:06:30 -08:00
Treehugger Robot
c08c73653a Merge "Fix KM VTS tests for Strongbox implementations" into pie-vts-dev 2019-01-09 19:53:53 +00:00
vichang
e0a8935ebd Merge "Add libandroidicu as static lib in the VtsHalAudio" 2019-01-09 19:03:52 +00:00
Przemyslaw Szczepaniak
c3da78ad14 Add support for QUANT8_SYMM_PER_CHANNEL as graph input
Bug: 119255406
Test: Vts/Cts NNAPI tests.
Change-Id: If7407355f7c1ac878f919369c06ec98592e3f3d4
Merged-In: If7407355f7c1ac878f919369c06ec98592e3f3d4
(cherry picked from commit 429096160d)
2019-01-09 14:15:52 +00:00
Treehugger Robot
000c3dfcb7 Merge "Add REDUCE_* operations" 2019-01-09 10:58:37 +00:00
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
Yi Kong
3b7ecd55f8 Merge "Suppress null-dereference warning" 2019-01-09 04:12:51 +00:00
Victor Chang
fdd3300306 Add libandroidicu as static lib in the VtsHalAudio
libxml2 now depends on libandroidicu.
Add the same dependency into the VTS.

TODO: b/121468463 to remove ICU from VtsHalAudio

Bug: 117094880
Test: m checkbuild
Merged-In: I105e7ad1517ecf8780adfb730650e1ad82f65857
Change-Id: I105e7ad1517ecf8780adfb730650e1ad82f65857
2019-01-08 19:40:59 +00:00
Benjamin Schwartz
df43c41b27 Merge changes from topic "power.stats HAL"
* changes:
  power/stats: Add VTS test cases for power.stats HAL
  power/stats: Add VTS testcases
  power/stats: Add default implementation
  power/stats: Update HIDL to include power stats API
  power/stats: Update HIDL to use synchronous FMQ
  power.stats: Add power.stats HIDL interface
2019-01-08 17:58:59 +00:00
Treehugger Robot
063024b1b6 Merge "Make health storage HAL lazy" 2019-01-07 23:25:20 +00:00
Benjamin Schwartz
0a624b957a power/stats: Add VTS test cases for power.stats HAL
Adding VTS test cases for power.stats HAL functions
getPowerEntityInfo, getPowerEntityStateInfo, and getPowerEntityStateResidencyData

Bug: 118365266
Test: run vts -m VtsHalPowerStatsV1_0Target
Change-Id: Ib60ac0b37bd30663c5e7434546cdcfbf64915538
(cherry picked from commit a630f84814)
Merged-In: Ib60ac0b37bd30663c5e7434546cdcfbf64915538
2019-01-07 14:01:59 -08:00
Vinay Kalia
810ba8df2b power/stats: Add VTS testcases
VTS testcases to test following APIs:
1. getRailInfo(...)
2. getEnergyData(...)
3. streamEnergyData(...)

BUG: 118365266
BUG: 111185513
Test: run vts -m VtsHalPowerStatsV1_0Target
Change-Id: Ie90ecfae937beebf96a9d66eb4b10954242ad07b
(cherry picked from commit fc48be1079)
Merged-In: Ie90ecfae937beebf96a9d66eb4b10954242ad07b
2019-01-07 14:01:34 -08:00
Vinay Kalia
7b3d7a0afc power/stats: Add default implementation
Add default implementation for power.stats HAL

BUG: 118777168
BUG: 111185513

Test: run vts -m VtsHalPowerStatsV1_0Target
Change-Id: Id81291f58a5cdfa0cc1f56356001b2862df0dbc2
(cherry picked from commit f94dda77a1)
Merged-In: Id81291f58a5cdfa0cc1f56356001b2862df0dbc2
2019-01-07 14:01:03 -08:00
Benjamin Schwartz
6b8d778c36 power/stats: Update HIDL to include power stats API
Adding new power.stats HAL api for subsystem low power stats collection that will eventually replace legacy power stats api.

BUG: 117887759
BUG: 111185513
Test: build successfully
Change-Id: I0da4de378ba0b5daeeb5c2b15435a0c22eff08b4
(cherry picked from commit f836c07bda)
Merged-In: I0da4de378ba0b5daeeb5c2b15435a0c22eff08b4
2019-01-07 14:00:36 -08:00
Vinay Kalia
3b91fd4ab6 power/stats: Update HIDL to use synchronous FMQ
Unsynchronous queue do not help solve the problem of
supporting multiple clients of power.stats. Since, there
is no current requirement to support multiple clients so
using synchronous queues instead.

BUG: 117424656
BUG: 111185513
Test: run vts -m VtsHalPowerStatsV1_0Target
Change-Id: Iab73de5a460e2a0ec5e949f8b021a87aefed58c8
(cherry picked from commit 84a48b8325)
Merged-In: Iab73de5a460e2a0ec5e949f8b021a87aefed58c8
2019-01-07 14:00:10 -08:00
Vinay Kalia
f12c171b3a power.stats: Add power.stats HIDL interface
Initial commit defines APIS to collect on-device
power-related data.

BUG: 117424656
BUG: 111185513
Test: Compilation and device boot
Change-Id: I6e3153c9fcd2d67e4a566a4621d7aa4c01da7636
(cherry picked from commit f91dcb5bfd)
Merged-In: I6e3153c9fcd2d67e4a566a4621d7aa4c01da7636
2019-01-07 13:58:41 -08: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