summaryrefslogtreecommitdiffstats
path: root/health
Commit message (Collapse)AuthorAgeFilesLines
* health storage hal vts test: add more tolerance.Yifan Hong2019-06-211-3/+7
| | | | | | | | Test: run on blueline Bug: 135631007 Change-Id: Ie1770a4a152a045e5f40eaf9cd7b551fe391a0b1 Merged-In: Ie1770a4a152a045e5f40eaf9cd7b551fe391a0b1 (cherry picked from commit ae3d61c2c336a40cd6cdfd073ad112e5d70286c3)
* libhidltransport users user libhidlbaseSteven Moreland2019-06-121-1/+2
| | | | | | | | | | | libhidltransport symbols are being moved into libhidlbase in order to optimize linking/memory usage. libhidltransport will no longer be required in the future (however removing references to it will come separately). Bug: 134961554 Test: boot Change-Id: Ibcc2db32d3bec1a786b60e11d4820ecd0605f403
* Update health@1.0 batteryVoltage units.Yifan Hong2019-03-271-1/+7
| | | | | | | | | | | | Both framework BatteryService and all implementations (that uses BatteryMonitor) uses millivolts for batteryVoltage. maxChargingVoltage is microvolts and that is correct. Fixes: 115881119 Test: treehugger Change-Id: I64044489fe6d56e0d211085d9536fe5cfd95efc4
* health vts: implement GTEST_SKIP if not defined.Yifan Hong2019-03-081-0/+46
| | | | | | | | | gtest in Android P tree does not have GTEST_SKIP. Implement a naive version of it. Bug: 118852225 Test: manually undefine GTEST_SKIP, test with and without --force Change-Id: I8df1154d8a94a67ae28e8024de6022fcfe76384d
* Merge "health: skip VTS on healthd if vendor HAL is present."Treehugger Robot2019-03-082-0/+13
|\
| * health: skip VTS on healthd if vendor HAL is present.Yifan Hong2019-03-072-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | If vendor HAL is present, healthd is not used by the framework. VTS should skip testing it when this is the case. Provide a --force option to the test if one wants to test healthd. Fixes: 118852225 Test: on walleye, test healthd with and without --force. Change-Id: I85f792f25406b1c02887a0ac273730e719003e2f
* | Update makefies: no 'types'Steven Moreland2019-03-043-17/+0
|/ | | | | | Bug: 123976090 Test: N/A Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
* Increate testcase timeout for VtsHalHealthStorageV1_0TargetTestHridya Valsaraju2019-02-131-6/+3
| | | | | | | | | | The test is flaky with the current timeout and this CL increases it to a safe value. Bug: 120994008 Test: test passes Change-Id: I63e0e11fcc1eb3bed490cdb21193e2c332cccf80
* Move to new Fstab classTom Cherry2019-01-301-16/+9
| | | | | Test: treehugger Change-Id: I0a3a58193c1482296bc5b60df3f9247e5f1366c3
* Merge "Make health storage HAL lazy"Treehugger Robot2019-01-072-1/+6
|\
| * Make health storage HAL lazyPeter Kalauskas2019-01-072-1/+6
| | | | | | | | | | | | | | | | | | | | | | 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
* | health: Add CAP_WAKE_ALARM to serviceFelix2019-01-062-0/+2
|/ | | | | | | | | | | | | | | | | 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>
* health: Fix typos in READMEFelix2019-01-041-2/+2
| | | | | Change-Id: I64eb6cdaaccf30cf96d273db4e8d434d6ea90c51 Signed-off-by: Felix <google@ix5.org>
* healthd_common.cpp: use epoll_create1Nick Kralevich2018-12-151-4/+2
| | | | | | | | | epoll_create leaks file descriptors. Use epoll_create1(EPOLL_CLOEXEC) instead. Bug: 120983106 Test: compiles and boots Change-Id: I50aad9f1c0633add2b44fb22be73dd292a366f39
* pack VTS cc_test binaries as general-testsKeun Soo YIM2018-12-073-0/+3
| | | | | | | Test: make general-tests Bug: 120093339 Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4 Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
* Merge "health VTS: split Properties test"Yifan Hong2018-10-021-5/+50
|\
| * health VTS: split Properties testYifan Hong2018-10-021-5/+50
| | | | | | | | | | | | | | ... into multiple test cases. Test: run test Change-Id: I2a03a7ab01d2918b746e06f55c2ee6d733ab4021
* | health: registerCallback() and getHealthInfo() does not notify all callbacksYifan Hong2018-10-022-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | registerCallback() and getHealthInfo() unintentionally broadcast health info to all callbacks, which has a performance impact. * registerCallback() still invokes the new callback immediately * getHealthInfo() does not call any callbacks at all. Test: VTS test call getHealthInfo does not invoke update() Bug: 117167903 Change-Id: Ida99fdd73831e747fbf2d65089c7c0e7661fe7c4
* | health: use recursive_mutex.Yifan Hong2018-10-022-6/+4
|/ | | | | | | | Need to use an reentrant lock. Bug: 117167903 Test: vts Change-Id: I25a366e06ed9d983823f7276668b7f45ddcf1c2b
* Initialize healthd_mode_ops in recovery default Health HAL impl.Hridya Valsaraju2018-09-282-2/+25
| | | | | | | | | | This is required for correct functioning of getHealthInfo() API in recovery since BatteryMonitor requires healthd_mode_ops to be initialized to update battery properties. Bug: 78793464 Test: fastboot getvar battery-voltage Change-Id: I9ff77664cada22e4aa3668bfb7d28d5f1d45590b
* Merge "health.storage: Add VTS test."Yifan Hong2018-09-212-0/+219
|\
| * health.storage: Add VTS test.Yifan Hong2018-09-212-0/+219
| | | | | | | | | | | | Test: run test Bug: 111655771 Change-Id: I353026bcf882fcdafa9986e4f60d5853abac7e54
* | health.storage: Add default implementation.Yifan Hong2018-09-206-0/+305
|/ | | | | | | | Test: lshal show default implementation when installed Test: `lshal debug` (read and write successfully) Test: `adb shell sm idle-maint run` Bug: 111655771 Change-Id: Ibb09836b99310b6bc21e87be9c0177175efa29df
* health.filesystem::IFileSystem -> health.storage::IStorageYifan Hong2018-09-194-8/+8
| | | | | | | | | | Rename the HAL because it is regarding 'storage health', not 'filesystem health'. Bug: 111655771 Test: compiles Change-Id: I07072c876fb07c88be8bd74cf6b84aec6020a697 Merged-In: I07072c876fb07c88be8bd74cf6b84aec6020a697
* health filesystem: update garbageCollect() function.Yifan Hong2018-09-124-10/+53
| | | | | | | Bug: 111655771 Test: run dev gc on vold Change-Id: I2cef404f9e2720c1be7822895187a590837763c8
* libhealthhalutils is recovery_availableYifan Hong2018-08-131-0/+1
| | | | | | Test: build it with recovery Bug: 80132328 Change-Id: I0728b9a900577cc41cb8acb3d70dd0afb507fb2a
* Add health.filesystem HAL.Yifan Hong2018-08-103-0/+93
| | | | | | | Test: builds Bug: 111655771 Change-Id: I29f157912ef74b4efd64def93ea125aa079ac1eb Merged-In: I29f157912ef74b4efd64def93ea125aa079ac1eb
* Merge "libhealthd.default: Mark as recovery_available."Treehugger Robot2018-08-091-0/+1
|\
| * libhealthd.default: Mark as recovery_available.Tao Bao2018-08-071-0/+1
| | | | | | | | | | | | Bug: 110380063 Test: `m dist` with aosp_taimen-userdebug Change-Id: I65c13107bdf77e9e0ab49af96e92ea462435fe6a
* | health: convert README to markdown format.Yifan Hong2018-08-083-162/+186
|/ | | | | | Test: none Change-Id: Ic9503d43a5e69cee0deb901193a99154d68f67b0 Fixes: 112277698
* IWYU: healthd IPCThreadStateSteven Moreland2018-08-011-0/+1
| | | | | | Bug: 65843592 Test: m Change-Id: I6f235c8a851079f335cfbc15b9bdb6f9d34d91fe
* healthd: add android.hardware.health@2.0-impl-default.recoveryYifan Hong2018-07-183-10/+146
| | | | | | Test: build recovery Bug: 80132328 Change-Id: I253bd1a756f3b94f6470da12bfc4488313a16aa4
* health@2.0-impl: recovery_available: trueYifan Hong2018-07-182-0/+4
| | | | | | | | | | | ... so that it can be installed to recovery image. Test: build and inspect out dir Test: boot to recovery and 'adb shell ls /vendor/lib64/hw' Bug: 80132328 Change-Id: Icb33c9e9e648b54db33cac23ed877392cce4e76b Merged-In: Icb33c9e9e648b54db33cac23ed877392cce4e76b (cherry picked from commit 4e40086d39ac31692212ddefafb926dd8894f80c)
* health: libhealthstoragedefault: recovery_availableYifan Hong2018-07-181-0/+1
| | | | | | | | | Test: builds Bug: 80132328 Change-Id: I2c4d880968e6938806cb9a2cf65352c73748f4ce Merged-In: I2c4d880968e6938806cb9a2cf65352c73748f4ce (cherry picked from commit 14d43837628ee3d1935fb2e33145eff0ba5c0273)
* Merge "healthd use vintf_fragments" into stage-aosp-masterTreeHugger Robot2018-07-171-14/+5
|\
| * healthd use vintf_fragmentsYifan Hong2018-07-171-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | This encourages device manufacturers to use service.override over service and to remove healthd on device, because it is one less step to do. Test: make VINTF metadata Bug: 66917623 Change-Id: I447395450060cdf17731514bb9a5e3ed912bbc66 Merged-In: I447395450060cdf17731514bb9a5e3ed912bbc66 (cherry picked from commit ae005c46101883a9c7938de9bc0286cfc4e7b7b8)
* | health: remove unused flag HEALTHD_USE_HEALTH_2_0Yifan Hong2018-07-171-2/+0
|/ | | | | | | Test: boots Bug: 79107699 Change-Id: Idc27ad452b799ef2ce4f18c787f2aa2afd1dd8cf (cherry picked from commit 1ffc50ad70dea0d1964bd860a2a40bf8fd2682fc)
* rename hidl_enum_{iterator,range}Steven Moreland2018-05-021-1/+1
| | | | | | | | This is actually a range, not an iterator. Bug: 78573628 Test: m Change-Id: Ie824a3eabcb7d5af94a8752e1498bdc8c7032e40
* Merge "Remove DiskStat checks from VTS Health HAL test" into pi-devTreeHugger Robot2018-04-101-14/+2
|\
| * Remove DiskStat checks from VTS Health HAL testHridya Valsaraju2018-04-031-14/+2
| | | | | | | | | | | | | | | | | | | | The fields being checked were uint64_t and it is valid for them to have any value greater than or equal to zero. Bug: 74057048 Test: vts-tradefed run vts -m VtsHalHealthV2_0 Change-Id: If932e1d6af8e162b7c570a1d5dd0f5ddce89ad1e
* | Merge "health: update readme for writing kmesg" into pi-devYifan Hong2018-04-061-0/+1
|\ \
| * | health: update readme for writing kmesgYifan Hong2018-04-051-0/+1
| |/ | | | | | | | | | | Test: none Bug: 77661605 Change-Id: Iea07a8361e7c23919515d8550d90d2bd329e616a
* | Merge "health: expand debug info." into pi-devTreeHugger Robot2018-04-051-0/+12
|\ \
| * | health: expand debug info.Yifan Hong2018-04-041-0/+12
| |/ | | | | | | | | | | | | | | Test: lshal -m android.hardware.health@2.0::IHealth/default Test: lshal -m android.hardware.health@2.0::IHealth/backup Bug: 74057048 Change-Id: Iaca0a7fd32209522d7d759342b98d6e6898595ac
* / health 2.0: update readme to uninstall healthdYifan Hong2018-04-041-3/+21
|/ | | | | | | Test: none Bug: 77541952 Change-Id: I44191f2d9f4a6d328c0ec96212c2add3b02874ca
* Merge "Convert health hal test to use VtsHalHidlTargetTestEnvBase" am: ↵Zhuoyao Zhang2018-02-161-1/+20
|\ | | | | | | | | | | | | | | 8a5a99ca3b am: ef211ccb88 am: d5e930ea16 Change-Id: Iea1bedb26ec6eabc050b4f2c7c99cda2dfe9894e
| * Convert health hal test to use VtsHalHidlTargetTestEnvBaseZhuoyao Zhang2018-02-121-1/+20
| | | | | | | | | | | | | | | | Bug: 64203181 Test: make vts vts-tradefed run vts -m VtsHalHealthV1_0Target Change-Id: Ibbe9421b5a737d7eb2d021bd64757a548d3c95fc
* | health 2.0: update README for typo. am: de542acbbf am: 6271c38c90Yifan Hong2018-01-311-1/+1
|\| | | | | | | | | | | am: a9e9f9182d Change-Id: Ia2997a95ca4034e79895197c56206e0cd0a7a379
| * health 2.0: update README for typo.Yifan Hong2018-01-301-1/+1
| | | | | | | | | | Test: none Change-Id: Iaede40e22b909a06592dceedb3b430232ced0b1a
| * health: add README.Yifan Hong2018-01-302-0/+127
| | | | | | | | | | | | | | Test: none Bug: 63702641 Change-Id: I1d23c0cdf56516585e7c6dd0db577784baa7b74e Merged-In: I1d23c0cdf56516585e7c6dd0db577784baa7b74e