Commit graph

7709 commits

Author SHA1 Message Date
Treehugger Robot
19940c6778 Merge "Add default implementation for radio config HAL" 2018-01-24 02:30:19 +00:00
Treehugger Robot
7b9e7c3f4b Merge "Remove unnecessary group from blank_screen." 2018-01-24 02:20:40 +00:00
Yifan Hong
94b7d2ca19 Compatibility matrices: add minor revision to kernel versions
Test: builds
Bug: 72388844
Change-Id: Id60cef10610f39d70eebccbeb6e625e3d93795c6
2018-01-23 17:28:27 -08:00
Yifan Hong
44c9b2e1f4 Compatibility matrices: kernel req at each FCM version
* devices with Shipping FCM version
   legacy / O / O-MR1 use 3.18, 4.4, 4.9

* devices with Shipping FCM version P use 4.4 4.9

Bug: 72389707

Test: manual inspection on
$OUT/system/etc/vintf/compatibility_matrix.*.xml

Change-Id: I4f37325c0210f88e9e6d3e7136a82d50da3e93fe
2018-01-23 17:28:27 -08:00
Steven Moreland
efab822141 Remove unnecessary group from blank_screen.
Was accidentally copy-pasted here.

Bug: N/A
Test: setprop ctl.start blank_screen
Change-Id: I0b100b02aecd2649f2528834f431a0bc8b164c46
2018-01-23 15:15:40 -08:00
yinxu
26487e7a11 Add default implementation for radio config HAL
Bug: 64131518
Test: Basic telephony sanity
Change-Id: I6bd6c6c46f8f70fd13b6c02ddfe399e04190133a
2018-01-23 10:29:28 -08:00
Badhri Jagan Sridharan
204314ace2 Merge "Usb: HIDL: UsbGadget hal" 2018-01-23 03:09:27 +00:00
Treehugger Robot
cf99978291 Merge "camera: add support for camera removal" 2018-01-23 00:52:00 +00:00
Ying Xu
92b3386572 Merge "Migrate the slot related APIs" 2018-01-23 00:48:13 +00:00
Guennadi Liakhovetski
eca1d45ba7 camera: add support for camera removal
Add camera removal support to CameraProvider and CameraModule.

Change-Id: I047e486d1665ba9e0b1455f77a7bbbb5e0d66653
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
2018-01-22 12:01:08 -08:00
Badhri Jagan Sridharan
4a93dec03c Usb: HIDL: UsbGadget hal
Hal interface for runtime management of USB gadget confiuguration.

Bug: 63669128
Test: Manually tested usb gadget hal for usb configurations
Change-Id: I1913dd5b99fdf4d710a2b0695c616c1d27575c53
2018-01-22 19:23:51 +00:00
yinxu
7fd46a30f3 Migrate the slot related APIs
SIM slot related APIs are not related to any radio/modem, so they need
to be migrate to a different HAL which is not related to any
radio/modem.

Bug: 64131518
Test: Basic telephony sanity

Change-Id: I626f13c5f6fb39091f6bddd5b6d373f09561af90
2018-01-22 10:36:53 -08:00
Steven Moreland
64a7afb07e Add 'blank_screen' util.
This can be transitioned to by init to shutdown the
screen thereby preventing init from either depending
on binder or accessing halified sysnodes directly.

Bug: 70846424
Test: manual + init use
Change-Id: I86893ee5d7118547cd073297c0626e474f366b82
2018-01-19 13:09:32 -08:00
Treehugger Robot
d7a0f2984d Merge "Camera: Fix hotplug" 2018-01-18 20:11:39 +00:00
Treehugger Robot
e5b3e4b869 Merge "Update makefiles for audio." 2018-01-18 00:41:57 +00:00
Steven Moreland
11f290b1ba Update makefiles for audio.
This dependency is imported but not used, so it should technically
go in the Android.bp file.

Bug: 71863483
Test: none
Change-Id: I3ee391bdea47182689156b3243b75a3572f7d8bf
2018-01-17 11:25:24 -08:00
Steven Moreland
a6c5ff2c6d Update makefiles.
Some have missed being updated.

Bug: N/A
Test: N/A
Change-Id: I0925e85701f6e8b98f9b09bfafbed73469d1d185
2018-01-17 11:20:17 -08:00
Chia-I Wu
699df2167a graphics: use allocator HAL support library in default impl
Rename Gralloc0Allocator to Gralloc0Hal and make it inherit from
AllocatorHal.  Do the same to Gralloc1Allocator.  Add GrallocLoader
to load either of Gralloc[01]Hal and create a IAllocator instance.

Test: boots and VTS
Change-Id: I09ae680c0086ca9e73e412a34d7cd2f3665d3bc2
2018-01-14 21:39:38 -08:00
Chia-I Wu
864c9f8234 graphics: clang-format allocator default impl
Test: builds
Change-Id: I01cee2e7bc778f2e3e540a9856c25f1a0e390186
2018-01-14 21:39:38 -08:00
Chia-I Wu
b511645d99 graphics: make allocator default impl a static library
Convert the default impl into a static library,
android.hardware.graphics.allocator@2.0-passthrough.

Test: boots and VTS
Change-Id: I8ec8b30766462ecb3fb789af7c6dbb3c088ccf57
2018-01-14 21:39:38 -08:00
Chia-I Wu
d6daa8ddf9 graphics: add allocator HAL support library
Add a header-only library
android.hardware.graphics.allocator@2.0-hal that can be used by
implementations.  An imlpementation can

  class VendorHal : public AllocatorHal { ... };

  auto allocator = std::make_unique<Allocator>();
  allocator->init(std::make_unique<VendorHal>(...));

Or, if vendor extensions are to be added to the IAllocator,

  class AlocatorHalExt : public AllocatorHal { ... };
  class VendorHal : public AllocatorHalExt { ... };
  class AllocatorExt : public AllocatorImpl<IAllocatorExt, AllocatorHalExt> { ... };

  auto allocator = std::make_unique<AllocatorExt>();
  allocator->init(std::make_unique<VendorHal>(...));

Test: builds
Change-Id: I7cb7a4888316b871e5c49d96524b1642fc708f2d
2018-01-14 21:39:38 -08:00
Chia-I Wu
d6695d5bdc graphics: move libgralloc1-adapter
Move libgralloc1-adapter from 2.0/default/ to
2.0/utils/gralloc1-adapter/.  Fix build issues after the move.

Test: builds
Change-Id: I674fe60c724a4ffc1540c796b92209a1dbf36438
2018-01-14 21:39:38 -08:00
Yifan Hong
1612a3c27e Merge "Install all comp mat to system image" 2018-01-11 19:14:24 +00:00
Cassie Han
ab6101db50 Merge "Add cellInfoList_1_2 in 1.2/IRadioIndication.hal." 2018-01-11 17:47:42 +00:00
Yifan Hong
2d8442c762 Install all comp mat to system image
Moved framework_compatibility_matrix.xml module definition
from target/board/Android.mk here because it depends on
compatibility_matrix.*.xml.

Test: m dist
Bug: 69636193

Change-Id: I7480b27756992b47555f6b397925170ae9d1ac22
2018-01-10 19:17:23 -08:00
Treehugger Robot
6f8633d819 Merge "Add interface specification for lights hal." 2018-01-10 18:27:52 +00:00
Cassie
3fb7617b69 Add cellInfoList_1_2 in 1.2/IRadioIndication.hal.
As part of the new NetworkScan API project, we need to add V1_2
cellInfoList in RadioIndication to support the V1_2 CellInfo as well.

Bug: 63984327, 69058403
Test: Basic telephony sanity
Change-Id: I53deb0d3b6ba58a86a8f734618841ff91d6dc6fa
2018-01-10 09:46:20 -08:00
Yifan Hong
2e25e4fe6f Rename 26.xml=>1.xml, 27.xml=>2.xml
FCM Version uses a different set of numbers than the SDK level.
This is to decouple the connection between them; it is not required
to have one FCM Version per SDK level.

Test: build test
Test: boots

Bug: 69636193
Change-Id: I62a29b702271d8a7ca8ae80e545a6d2e3b46fdcf
Merged-In: I62a29b702271d8a7ca8ae80e545a6d2e3b46fdcf
2018-01-09 17:48:44 -08:00
Myles Watson
0d63f8af7c Bluetooth: Sleep instead of dying on EOF
When a device is restarted, the UART may go away before the
packetizer.  Print an error and sleep in case it isn't really
a restart.

Bug: 70855323
Test: Repeated restarts, check for Bluetooth tombstones
Change-Id: I2b4e677451e826d40dcc9d063d80dc0e17fc9aca
2018-01-09 23:54:05 +00:00
Lianchao Song
424ffd0da5 BT Interface: fix hci cmd timeout
Add mutex in function Send() and OnTimeout() to do mutual
exclusive access on lpm_wake_deasserted.

If lpm_wake_deasserted is out of sync with the actual
wake state, then platforms which use the lpm hint
will break.

Bug: 64299848
Test: run affected platform for a long period of time
and find that hci commands do not time out
Change-Id: I9f630d6f40f84b9c047c6488632cd44d6602bb14
2018-01-09 21:14:47 +00:00
Zhuoyao Zhang
207e97c735 Disable seccomp policy for configstore hal on coverage builds.
Test: lunch walleye_coverage-userdebug && make
      verify configstore@1.0.policy is not generated.

Change-Id: Iad1f55fe10c2c77a3ca56418ec315e10ab71753f
2018-01-08 12:06:22 -08:00
Steven Moreland
98ca764006 Add interface specification for lights hal.
So that init knows how to start it and to provide
an example of how to specify interfaces since there
are no lazy starting services on Pixel yet.

In order to make lights a lazy service, it would also
have to be marked as 'oneshot'.

Test: manually using Light as a lazy service
Bug: 64678982
Merged-In: I846a7e2d9545b42af9b985adb74883bda1b8c355
Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
2018-01-05 18:15:25 +00:00
Howard Chen
c0204ee13d Merge "Add a test method to test interface in struct" 2018-01-05 03:55:14 +00:00
sqian
910a238c21 Remove unused functions
Test: Compile
Bug: 63760809
Change-Id: I582c259ca0787a701d434eea9592c9e8d7351f08
Merged-In: I582c259ca0787a701d434eea9592c9e8d7351f08
(cherry picked from commit 3ba20e6b6b)
2018-01-04 12:13:33 -08:00
Guennadi Liakhovetski
7b7ede7ebd Camera: Fix hotplug
According to the camera_module_t::get_number_of_cameras() description
in camera_common.h, it should only return the number of "fixed"
cameras, i.e. cameras, facing to the front and to the back. Any
cameras, with the facing value of "external," i.e. externally connected
cameras, should not be reported by it, instead they should later be
reported, using the
camera_module_callbacks_t::camera_device_status_change() callback.
However, this doesn't work. When a camera is reported this way, it is
ignored as unknown. Fix this by adding a new camera, when its status
change is reported.

Change-Id: I18874ed005f477e32fb723c00c16b67a81cde6ce
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
2018-01-04 11:42:27 +01:00
Treehugger Robot
12517de51d Merge "Remove empty generates clause." 2018-01-04 09:03:28 +00:00
Steven Moreland
8147d62e33 Remove empty generates clause.
Doesn't do anything, not part of the language.

Bug: 71545356
Test: none
Change-Id: I5fce87a9cf01ff546f2b7b177b60454b8bfbf106
2018-01-03 14:14:24 -08:00
Howard Chen
0cd07d214b Add a test method to test interface in struct
Add a test method to IBaz to test struct with a composed interface

Test: hidl_test_java/ internal master
Bug: 70529597
Change-Id: I73eaaf3dda6a24b88207729f31c75454c005c8cf
2018-01-03 17:16:58 +08:00
Yi Kong
004dd379df Use correct format specifier for uint32_t
Discovered by the upcoming compiler update.

Test: m checkbuild
Change-Id: I03ed479a6a5c42d8dcc192e85d5268d1cd65cab8
2018-01-02 22:57:46 -08:00
Treehugger Robot
384fa7b6dc Merge "SIM slot related interface changes" 2018-01-02 22:17:21 +00:00
sqian
7fe9365e6f Modify VTS error check so that the error code can be displayed
- Add AssertionResult in gtest to display logs
- Refactor all the error checks

- Replace INTERNAL_ERR with INVALID_ARGUMENT for
requestIsimAuthentication

- Add missing SIM_ABSENT from ag/2582439/

- Fix incorrect indentation

Bug: 63760809
Bug: 65150146
Test: run vts
Change-Id: Id3d876ea515f47998e3e45be11db5edf306ffc24
Merged-In: Id3d876ea515f47998e3e45be11db5edf306ffc24
(cherry picked from commit e986b85fdd)
2017-12-28 20:20:24 +00:00
Treehugger Robot
25ccf20c8c Merge "Add debug output for lights." 2017-12-22 21:47:01 +00:00
Sandeep Gutta
4a4d8cc197 SIM slot related interface changes
Add below new interfaces, corresponding response interface and structures.
- getSimSlotsStatus()
- setSimSlotsMapping()
- simSlotsStatusChanged()

Bug: 68998818
Test: compliation

Change-Id: Ia532c502782ef4d08d27f18ee0321a3ceaa94dcf
2017-12-22 11:29:06 -08:00
Mikhail Naganov
718b510080 audio: Fix StreamOut ownership in default wrapper
StreamOut::asyncCallback could became an owner of StreamOut
causing the destructor to be called on the offload callback
thread, while the legacy HAL is holding a mutex, which resulted
in a deadlock.

Removed erroneous usage of sp<StreamOut> in asyncCallback.
The legacy HAL joins the offload callback thread when closing
output stream, thus StreamOut destructor is guaranteed to finish
only after the offload callback thread has exited, and using
a raw pointer to StreamOut inside asyncCallback is correct.

Bug: 70863217
Change-Id: I0d77018cf3df5ad07251732733288d425dd836eb
Test: manual
2017-12-21 13:21:58 -08:00
Chia-I Wu
f43ab227a5 Merge "graphics: improve PRESENT_OR_VALIDATE_DISPLAY support" 2017-12-21 06:54:22 +00:00
Steven Moreland
b0c20e99a1 Add debug output for lights.
As an example and also to expose which lights are
registered easily. Note, this is all the information
that we can print given the libhardware lights interface.

Bug: 70846424
Test: lshal debug
Change-Id: I5f55e3e64149fc63a45ab9dab94d5fea27bb61da
2017-12-20 14:51:47 -08:00
Treehugger Robot
8e0f8836d9 Merge "openmax header files have been relocated" 2017-12-20 00:22:54 +00:00
Steven Moreland
fabe9e4bef Cleanup Lights Android.bp
Test: none
Change-Id: I3c5156a75a044c67f41878e880dece730ed7158f
2017-12-19 01:57:03 +00:00
Treehugger Robot
aaa995113e Merge "Light mk -> bp." 2017-12-19 01:56:14 +00:00
Steven Moreland
4025af9e81 Light mk -> bp.
Test: boots
Merged-In: I15c4779a7c9eea39fb20746f69800dcf20670275
Change-Id: I963b957491575edbf68727ad4c97b733dceb0149
2017-12-19 01:56:10 +00:00