Commit graph

12144 commits

Author SHA1 Message Date
Treehugger Robot
5acbc036b0 Merge "Add getModemEnabled HAL API" 2019-01-22 21:29:24 +00:00
Nazanin Bakhshi
da4e793b56 Add getModemEnabled HAL API
Bug: 121020566
Test: vts
Change-Id: I1ac193dd144b840e4f3e3a397c0c93327ac00186
Merged-In: I1ac193dd144b840e4f3e3a397c0c93327ac00186
2019-01-22 20:51:33 +00:00
Youming Ye
2d80031567 Clean up error codes and add error description for IRadioResponse 1.4.
am: 7224c5dc1c

Change-Id: If38a344a841d0a81f5263d24338967af535e913e
2019-01-22 11:58:58 -08:00
Youming Ye
7224c5dc1c Clean up error codes and add error description for IRadioResponse 1.4.
Clean up some unneeded/confusing error codes in the 1.4 Radio HAL.
Quoting description from aosp/616923:

-Remove SYSTEM_ERROR. This is an ultra-generic error
 that also provides no meaningful distinction from
 INTERNAL_ERROR but is even less specified in scope.

-Remove NO_MEMORY. This is very implementation
 specific, and should be essentially impossible to
 hit in the generic sense. Today we don't have a
 generic EBUSY error code, which this would map to.
 Since it should be essentially impossible to hit,
 the preference is to assert that it shouldn't be.
 If an implementation really has memory pressure
 then it can return INTERNAL_ERROR, of which this
 is a class. INTERNAL_ERROR will be treated as a
 temporary failure anyway, making NO_MEMORY a
 distinction without a difference.

-Remove CANCELLED. We have no way to cancel an API
 call. If a persistent/ongoing request is cancelled
 by the caller using a separate API request, then
 that's a success case rather than an error case.

Bug: 73174777
Change-Id: I5bf268f86ed52e7294f7127f24beba04c9159fea
Test: Compilation
2019-01-22 17:49:40 +00:00
Pierre Lee
cb516f7cca Merge "The test failed when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200"
am: ac6175ee79

Change-Id: I3e2b8d078abcd414663f802afa1d3d6926e08247
2019-01-21 20:21:33 -08:00
Pierre Lee
6f6fe9a5e2 The test failed when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200
VTS gets the name of all the cameras in the machine and check each camera, When traversal to the configuration reference of 1600*1200 camera, the outputPreviewStreams variable does not clear, save the value of the Previous camera
The outputPreviewStreams variable needs to be cleared when check next camera

Bug: 122806546
Test: ConfigureStreamsWithSessionParameters can pass when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200
Change-Id: Ia4845d43871730e14b5ba1411ce72f8c4bb69042
Merged-In: Ia4845d43871730e14b5ba1411ce72f8c4bb69042
2019-01-22 04:13:52 +00:00
Treehugger Robot
ac6175ee79 Merge "The test failed when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200" 2019-01-22 04:12:43 +00:00
Tor Norbye
a63b2e4d4f Update signature files to the new format
am: 0074475ccf

Change-Id: I1ea62c1b2bcb450dc695dab74230560a48f09191
2019-01-20 07:25:52 -08:00
Tor Norbye
0074475ccf Update signature files to the new format
The new format is described in tools/metalava/FORMAT.md.

Fixes: 116589402 Switch signature files over to the v2 format
Fixes: 112626813 Drop "synchronized" modifier from the signature format
Fixes: 122358225 Omit overriding methods that only differ in final [...]
Fixes: 73088715 API Review: Need doclava to output nullability
Fixes: 79739773 API Review: Metalava enforcing constants are constant
Exempt-From-Owner-Approval: Large-scale tooling change
Test: make sdk, make update-api, make checkapi
Change-Id: I767f9fb2941789615c9513072a381e79a5654373
Merged-In: I2943d9a65c24e7ca8fb9ae9b69f7edf06173f467
2019-01-18 22:08:52 -08:00
paulhu
14e4d76502 Refine error causes to make them more clear
Many of error causes reason are using very esoteric
abbreviations and acronyms. Refine description for making more
clear to the developer.

Bug: 113505704
Test: Build pass and data call can setup normally.
Change-Id: Ifb9c256eef8354add46c76c322cd6a3bd126bd44
2019-01-19 03:17:35 +00:00
Michele Berionne
578fc681b2 Merge "Carrier restriction enhancements for Android Q"
am: f6dbeefbc3

Change-Id: I48aa943c11e036e25a26c5698822bd729f1686b0
2019-01-18 16:34:16 -08:00
Benjamin Schwartz
88b2a11aca Merge "power.stats: Add more informative default implementation"
am: bc93126d60

Change-Id: I545c27e5cc196f95a5676a650cb920ed4d0aef47
2019-01-18 16:31:52 -08:00
Michele Berionne
f6dbeefbc3 Merge "Carrier restriction enhancements for Android Q" 2019-01-19 00:13:57 +00:00
Benjamin Schwartz
bc93126d60 Merge "power.stats: Add more informative default implementation" 2019-01-18 23:48:18 +00:00
Nazanin Bakhshi
ee43c27f26 Add HAL API for enabling DSDS setModemsConfig and getModemsConfig APIs will allow the framework to set the number of live modems to switch to single/multi sim state
am: dd7937b705

Change-Id: Iee45797e31232c32442e96871aeaa2161d4a2962
2019-01-18 14:42:41 -08:00
Michele Berionne
ef9ab4a065 Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Change-Id: Ib05267fda5f2fd0b8821a5812fcf47d460e60a2b
Merged-In: Ib05267fda5f2fd0b8821a5812fcf47d460e60a2b
2019-01-18 22:37:21 +00:00
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
Nazanin Bakhshi
dd7937b705 Add HAL API for enabling DSDS
setModemsConfig and getModemsConfig APIs will allow the framework
to set the number of live modems to switch to single/multi sim state

Bug: 122073700
Test: vts
Change-Id: Ib200ffa5f2aebe21caf2b761407c79828730e6f1
Merged-In: Ib200ffa5f2aebe21caf2b761407c79828730e6f1
2019-01-18 18:42:35 +00:00
Pierre Lee
f234e45b20 The test failed when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200
VTS gets the name of all the cameras in the machine and check each camera, When traversal to the configuration reference of 1600*1200 camera, the outputPreviewStreams variable does not clear, save the value of the Previous camera
The outputPreviewStreams variable needs to be cleared when check next camera

Bug: 122806546
Test: ConfigureStreamsWithSessionParameters can pass when one of the three cameras was configured with a maximum android.scaler.availableStreamConfiguration size of 1600*1200
Change-Id: Ia4845d43871730e14b5ba1411ce72f8c4bb69042
2019-01-18 11:12:37 +08:00
Youming Ye
4eda2ffad6 Merge "Add startNetworkScan 1.4 API."
am: 312dce0ec0

Change-Id: I5926394617ca83bca47645a55b732329dcc2baee
2019-01-17 16:19:40 -08:00
Yifan Hong
9dfb0df7a4 Merge "dump_hals_for_release: account for numbers in file name"
am: 9a9b8e2bd8

Change-Id: I64d6e3948d0b9a84a8d50e15cfd22d95a694b69a
2019-01-17 16:18:53 -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
Przemyslaw Szczepaniak
5e67119b44 Merge "mutateOperationOperandTypeSkip for new DEPTHWISE_CONV_2D variant."
am: 2f6a9949a7

Change-Id: Ibe6e380a23a03828a43ee50519e881f84ba3144e
2019-01-17 11:55:35 -08:00
Treehugger Robot
2f6a9949a7 Merge "mutateOperationOperandTypeSkip for new DEPTHWISE_CONV_2D variant." 2019-01-17 19:52:50 +00:00
sqian
e73482f8c1 Add Emergency Call Routing in HAL
am: 6142408071

Change-Id: I124fbfa2da68355027a941803df129e0d9d722c0
2019-01-17 10:24:11 -08: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
4c2b2b1d69 Merge "Add ConnectionStatus to CellInfo v1_4"
am: 5a71637a04

Change-Id: If64630acf28ddbb46d98707f6507a2d1770f7ec4
2019-01-16 16:20:39 -08:00
Pengquan Meng
5a71637a04 Merge "Add ConnectionStatus to CellInfo v1_4" 2019-01-16 23:48:41 +00:00
Benjamin Schwartz
a51d9b91ee power.stats: Add more informative default implementation
The original default implementation for power.stats HAL did not have a
good example implementation of the power statistics related APIs. Adding
a new default implementation that gives a more informative example

Bug: 122267057
Test: run vts -m VtsHalPowerStatsV1_0Target
Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default"
Observed the following output
========== PowerStats HAL 1.0 state residencies ==========
          Entity            State         Total time     Total entries   Last entry timestamp
   DefaultEntity           Active               1 ms                 2               3 ms
   DefaultEntity            Sleep               4 ms                 5               6 ms
========== End of PowerStats HAL 1.0 state residencies ==========

Change-Id: Ida0951c267f609b16bb6406da150ed2e504ced9a
2019-01-16 11:33:51 -08:00
Shuzhen Wang
33541788b6 Merge "Camera: Clarify the FMQ read order for request/result"
am: 94acf41dcc

Change-Id: I75c9500c3581cc1c92d91c9d3068c88be2d97f94
2019-01-15 14:05:14 -08: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
43c0169b8e Merge "clang-format: ContinuationIndentWidth: 8"
am: c696782032

Change-Id: I8d83b11b96e892628649615bdb4d5a475b797a29
2019-01-14 17:15:09 -08:00
Pavlin Radoslavov
68defe6e33 Merge "Bluetooth Audio HAL interface v2"
am: 27a3c84ebd

Change-Id: I1d9cb3e968f875267cd67a8bcdb42cbd81344da2
2019-01-14 17:09:16 -08: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
04315a3f6b Merge "Camera: fill in bufferSize correctly" into pie-vts-dev am: d04f64ef24
am: dbb2211d32

Change-Id: Ic769abab991e29f723c6b80f28c3388595aa7e00
2019-01-14 04:13:39 -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
3df110feae Fix comparator operator() definition.
am: a6a529236e

Change-Id: I10a81993c08e251f2072ba6d34e93861a9f9e116
2019-01-13 01:47:32 -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
228d0c28c3 Merge "Require IRadio 1.4 for Devices Launching Q"
am: 15213e4175

Change-Id: I42b972ba2985fcb199a8f15ce067d1796686ab4c
2019-01-11 12:39:11 -08:00
Nathan Harold
15213e4175 Merge "Require IRadio 1.4 for Devices Launching Q" 2019-01-11 20:12:01 +00:00