Yifan Hong
ca405472d8
health: Add libhealth_aidl_impl_user. am: fab263ceae
am: 1478a6ff47
am: ab2f8bc0c3
am: 5b80b83fa5
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1937725
Change-Id: I045455413891f9ea0801792a258e79bad3d03ab4
2022-01-06 01:31:00 +00:00
Yifan Hong
fab263ceae
health: Add libhealth_aidl_impl_user.
...
This is the defaults for users of libhealth_aidl_impl.
Test: builds
Bug: 213273090
Change-Id: Iddcc0a0bc194f337c5e9a632ea2468140804a30a
2022-01-05 14:47:53 -08:00
Steven Moreland
b8051cabc5
Remove separate_platform_variant entries. am: a049eb0faf
am: 08643bdf3a
am: d01346a45c
am: 712226f9f3
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1927650
Change-Id: Ie4f77679054520f94051716120b74f26819cff90
2022-01-04 21:44:51 +00:00
Steven Moreland
a049eb0faf
Remove separate_platform_variant entries.
...
This no longer does anything.
Bug: 161456198
Test: build
Change-Id: If7ca08cc1d7a829c637e1ea8254eed6361be0490
2022-01-04 18:22:44 +00:00
Treehugger Robot
cebe679db4
Merge "health: Add AIDL VTS to general-tests." am: c8b8ec2983
am: 2ceacdd912
am: 0586a08229
am: 0947226935
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1923019
Change-Id: If10e42321c66848db6993461f752a62ec491d01e
2021-12-22 22:52:13 +00:00
Treehugger Robot
c8b8ec2983
Merge "health: Add AIDL VTS to general-tests."
2021-12-22 21:23:27 +00:00
Yifan Hong
8469276466
health: Add AIDL VTS to general-tests.
...
This allows it to run on forrest.
Test: pass
Bug: 203245778
Change-Id: I78481d5bd7185cd660243e44440982f50c9f07ca
2021-12-14 20:31:28 +00:00
Yifan Hong
16892aee80
Merge "health: add libhealthshim" am: 4c12800dd8
am: e6c4962d8b
am: 2032ec93e2
am: f874942181
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1884456
Change-Id: I46da14f5871aa7831282468ae92488401d1a7ac1
2021-12-07 19:27:40 +00:00
Yifan Hong
4c12800dd8
Merge "health: add libhealthshim"
2021-12-07 18:18:07 +00:00
Treehugger Robot
cefc38f199
Merge "health: properly support charger mode." am: 21c1e163d4
am: d9964bb31a
am: 233a367c14
am: d6f310a7c5
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1894881
Change-Id: Idd1f86c608e0023619ffd26ca85593d511c47c40
2021-12-01 04:42:36 +00:00
Treehugger Robot
21c1e163d4
Merge "health: properly support charger mode."
2021-12-01 03:45:49 +00:00
Treehugger Robot
c70f0dcfbb
Merge "health storage AIDL HAL logs more." am: 4b0c7f0e7a
am: 94dea4096c
am: 9bc26cbcb8
am: 76db9d7ba6
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1905374
Change-Id: I5922550be0e1ad99459bfdcd9ff0e1446baf071c
2021-11-30 00:46:39 +00:00
Yifan Hong
7a6956ee0d
health: add libhealthshim
...
This is a shim library that wraps a HIDL IHealth to
an AIDL BnHealth.
Also add tests for the library.
Bug: 177269435
Test: libhealthshim_test
Change-Id: Ia5f32c1ae0693c70cf698b46b48d5f77006cf6c7
2021-11-29 16:43:05 -08:00
Treehugger Robot
4b0c7f0e7a
Merge "health storage AIDL HAL logs more."
2021-11-29 23:33:55 +00:00
Yifan Hong
9f1639f6b4
health storage AIDL HAL logs more.
...
Test: builds
Bug: 206775954
Change-Id: I211e29e495a974e9c93ac97c7dd9ef93e1bcb5ef
2021-11-29 22:03:15 +00:00
Treehugger Robot
265aa9bc8e
Merge "health: fix running HAL in recovery mode." am: b75e7b43c5
am: 36c5db90b3
am: eb2217eb8c
am: aff10e4b5e
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1893226
Change-Id: If1f950502ec70829e96a79a0b026f58ee60e8c04
2021-11-20 02:45:19 +00:00
Yifan Hong
87ece16955
health: fix running HAL in recovery mode.
...
- Add proper RC files
- overrides charger.recovery
- update readme for implementing recovery mode
Test: pass
Bug: 177269435
Change-Id: Id60b57978e4e5bf78af32bd67523333ba0c2a04d
2021-11-19 02:18:21 +00:00
Yifan Hong
8824d6c08a
health: Update README.md for SELinux rule example am: d4ebad8aef
am: a68e416fee
am: c8b2bc6339
am: b38d6e929f
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1894882
Change-Id: Id69a8900a62136911720473d5903a6744138081d
2021-11-17 19:41:08 +00:00
Yifan Hong
04c4754b9c
health: properly support charger mode.
...
Use charger_vendor SELinux context.
Also update readme to reflect the change.
Test: manual in offline-charging mode
Bug: 177269435
Change-Id: Icf5cd9d579b3365037e2d360fcc29b0ef4be1b15
2021-11-17 07:27:12 +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
Yifan Hong
d3a63f0512
Merge "health: do not use default destructor." am: 4915df85a0
am: 5ad2b7fda6
am: 4651b98b59
am: 8e6e7afc9e
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1891477
Change-Id: I1cf9797876917d418a74d0f77abfb73f8f603d96
2021-11-16 03:20:44 +00:00
Yifan Hong
4915df85a0
Merge "health: do not use default destructor."
2021-11-16 02:25:29 +00: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
Yifan Hong
705d82ca8c
Merge "health: Also add h2aTranslate(V1_0.HealthInfo)" am: 1698fe28eb
am: 3678db4957
am: 77639a8dd5
am: a2cbf7a563
am: 2c6178fff7
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1883265
Change-Id: If2d5d5428d48730d4942531144151d2af4d11f4c
2021-11-10 22:44:23 +00:00
Yifan Hong
1698fe28eb
Merge "health: Also add h2aTranslate(V1_0.HealthInfo)"
2021-11-10 21:11:00 +00:00
Treehugger Robot
5f885c707f
Merge "health: make libhealth_aidl_impl visibility public" am: 4795980565
am: fb57025383
am: 63b6c7a9e6
am: 48bac14c4a
am: b892853f84
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1885109
Change-Id: I82470872e43a6ea4e37b71f4dad603b1abae6d1f
2021-11-09 07:46:01 +00:00
Yifan Hong
b6533047e6
Merge "health: handle charger in health HAL" am: 701ff4a1de
am: abb62e5e53
am: ae92201c57
am: fe7fca6c9c
am: 29af1fe837
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1866345
Change-Id: Ibfa5ee50caa763daebf701d04975c37cd16e4e26
2021-11-08 22:12:43 +00:00
Yifan Hong
0af83e56b5
Merge "health AIDL: Add readme" am: 9af94c627c
am: fe5ba8ae61
am: 1c4e695225
am: 60ff9fd511
am: 2af9b1b036
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1875620
Change-Id: I92caefeef08350df8b9489553d676f5fb4c36ff1
2021-11-08 22:12:17 +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
Bob Badour
cbe4f23e43
[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces am: 7a31e5dbd9
am: 19379841b2
am: c0ccdf2c39
am: e91b69774a
am: 4c40e710f5
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880391
Change-Id: I38d0a3d9a9b5185c79ffcc19a20d447f88061444
2021-11-04 23:04:34 +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
Yifan Hong
a8f55cacaa
health: handle charger in health HAL
...
Test: manual in charger mode
Bug: 203246116
Change-Id: Id02077d78fa8b1489ea4fba5b10e32f961c4cea0
2021-11-03 11:56:01 -07:00
Treehugger Robot
f765a1fd41
Merge "health AIDL: add vts tests" am: 9b965ac6a5
am: 0b1b6a0258
am: a2f7571af3
am: 5874237a8c
am: 4429ee707a
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1875176
Change-Id: Ie81a7e85c1b81b8eedd23065bd4b5b080106379d
2021-10-30 01:55:35 +00:00
Treehugger Robot
290b434c0b
Merge "health: make AIDL HAL recovery available." am: 919d9a3da3
am: 1d798d6b05
am: 64c37c4ab2
am: 4b17ebfe10
am: a5f53f5c57
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1866341
Change-Id: I6dfb3840942b25ae34c6a7c923c13e043fd716b1
2021-10-30 01:55:25 +00:00
Treehugger Robot
9b965ac6a5
Merge "health AIDL: add vts tests"
2021-10-30 00:53:03 +00:00
Treehugger Robot
919d9a3da3
Merge "health: make AIDL HAL recovery available."
2021-10-30 00:30:34 +00:00
Yifan Hong
2200cffdad
health AIDL: add vts tests
...
This is a direct translation of the health 2.0
and 2.1 VTS tests.
Some slight modifications are made (e.g. use googlemock
matchers) to make the test code more readable.
Test: run on Pixel
Bug: 203245778
Change-Id: Ifc3799a04a6a09d0d53f400b60d19fbfe004a3e3
2021-10-29 15:51:42 -07:00
Yifan Hong
9bcb6184ce
Merge "health impl: compare interfaces with their binders" am: 1f5c57c965
am: e1bc376ed4
am: 2faf3adc25
am: f23ab16751
am: a9c420d770
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1875175
Change-Id: I53859b8fde62e359bf6756350de14b9d4f6c53fa
2021-10-29 22:25:36 +00:00
Treehugger Robot
fe3c7fda6a
Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 4cb51afac9
am: 77000a1e72
am: ff5abf0302
am: f112b5af06
am: 0629e64519
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1874549
Change-Id: I96c3d4eefb2056c25c21f59f3254464ccd30f164
2021-10-29 22:25:05 +00:00
Yifan Hong
1f5c57c965
Merge "health impl: compare interfaces with their binders"
2021-10-29 21:16:46 +00:00
Yifan Hong
6839f6742e
health impl: compare interfaces with their binders
...
The intention is to compare binder objects not the
outer interface class.
Test: VTS
Bug: 177269435
Change-Id: I1c48112a75cb229b40c42ed2a3f347472d1860f9
2021-10-29 21:16:34 +00:00
Bob Badour
a88d5b1cb3
[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
...
Added SPDX-license-identifier-Apache-2.0 to:
health/aidl/Android.bp
health/aidl/default/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: I24a0212a955a084c795990653c45b60ebda33357
2021-10-28 17:18:27 -07:00
Yifan Hong
c37f38d465
Merge "health: Add default impl of health AIDL HAL" am: 236fa8908c
am: 8fe0dacf4f
am: 5b3a4eb7a2
am: d4228e5de4
am: b09d3478c0
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1550322
Change-Id: Id6207e8ca0adca09239a89e5729c48584422258f
2021-10-28 04:14:52 +00:00
Yifan Hong
e32a8ea137
health: make AIDL HAL recovery available.
...
Test: builds
Bug: 170338625
Change-Id: I45e0032e7a765cdeb39e01d17bacf11d1c10a75c
2021-10-26 23:53:55 -07:00
Yifan Hong
830cdb119e
health: Add default impl of health AIDL HAL
...
Compared to the HIDL HAL implementation,
- libhealthloop (and the HealthLoop class) is kept
- Create libhealthaidlimpl that replaces libhealth2impl. Fork the implementation because
libhealth2impl is highly coupled with HIDL’s design rationale. This includes forking:
- HalHealthLoop
- Health implementation
- Combine the passthrough Health and hwbinder BinderHealth classes into the AIDL
implementation of Health. This is because AIDL does not support passthrough transport.
Separating the implementation for the two transports in HIDL does not make sense for AIDL.
- In HIDL, a BinderHealth is a HalHealthLoop which is composed of a (passthrough)
Health implementation. As a result of this change, in AIDL, a Health implementation
is a HalHealthLoop, which associates with the Health implementation itself with a raw
pointer.
- hidl_death_recipient becomes ScopedAIBinder_DeathRecipient
- Callback becomes LinkedCallback
Test: manual
Bug: 177269435
Change-Id: I76e914117ce09b218cdb9d655f2135d29bb629ae
2021-10-26 23:53:55 -07:00
Yifan Hong
8dd1925541
health: separate_platform_variant = false am: b47f676008
am: 4eb35d82b2
am: 5aa275fce8
am: e53f88d29d
am: b1030dcd79
...
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1870443
Change-Id: I289584acfc28f349af485c9cd39728167a403cba
2021-10-26 23:58:26 +00:00