summaryrefslogtreecommitdiffstats
path: root/power
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | VTS tests now static link to HAL def libs.Tri Vo2017-08-281-16/+2
| | |\| | | | | | | | | | | | | | | | | | | | | am: b65c5ceff2 Change-Id: I393284c12ca5cb79926c4891ffcfd332408a5b9f
| | | * VTS tests now static link to HAL def libs.Tri Vo2017-08-251-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And use VtsHalTargetTestDefaults. This is a partial cherry-pick of ag/2657080. Bug: 64040096 Test: compiles, works fine in internal master Merged-In: I8f6995e9536a9aefe283ee3effec9f5a7f03b620 Change-Id: I76d47d8546416b57055841851a9d343026cd3210
| | | * Updating all makefiles.Steven Moreland2017-08-142-133/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64487114 Test: none Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a Merged-In: I2fa89b6661c39859ec4fb62c4bb0a05a35e645f0 Merged-In: Ifdc3c17cb2b85c18b37dac2d03bb5c8935c23180 Change-Id: I170fa1c4fe39f8109b1670db58ef99bb11afc0be
| | | * vts: fix TryDifferentGovernors in Power hal testbohu2017-06-241-0/+1
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | am: ae96eee82b Change-Id: Iaa383d8d150b8b633c3d238c52622fddc0d3ec09
| | * | | Updating all makefiles.Steven Moreland2017-08-114-210/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64487114 Test: none Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a Merged-In: I2fa89b6661c39859ec4fb62c4bb0a05a35e645f0 Change-Id: Ifdc3c17cb2b85c18b37dac2d03bb5c8935c23180
| * | | | Merge "Remove default implementation for PowerHal 1.1" into oc-mr1-devAhmed ElArabawy2017-09-126-367/+0
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 3822ffb138 Change-Id: Ia168f1165f27dad0221abbcb83ed4e7b1079d471
| | * | | | Remove default implementation for PowerHal 1.1Ahmed ElArabawy2017-09-126-367/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default implementation in powerHAL 1.1 is not used by any device Devices using powerHal 1.1 have their own implementation in their device/<vendor>/<devicename> while older devices don't use 1.1 at all. This CL removes the default implementation for the PowerHAL 1.1 Bug: 65453628 Test: Build successfully (code not used anyway) Merged-In: I695348683c6e2e504a523897082543274dc239aa Change-Id: I695348683c6e2e504a523897082543274dc239aa Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
| * | | | | Revert "Revert "Updating all makefiles.""Steven Moreland2017-08-112-208/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relanding without automotive/vehicle/2.0+2.1 changes. This reverts commit 1020ebedfbf7c5014896266a98de562a6116d4a2. Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a Change-Id: Icc49df42c2bedf443d878d5d8fbaa53441ea65db
| * | | | | Revert "Updating all makefiles."Steven Moreland2017-08-112-4/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8ac1971678999c46338d751fdaec16c2e4bd78cb. Reason for revert: Didn't remove automotive changes from this CL. Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a Change-Id: I1c660cffc8817ad0b33da9f6eceb3d88e7c48416
| * | | | | Updating all makefiles.Steven Moreland2017-08-102-208/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64487114 Test: none Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a Change-Id: I2fa89b6661c39859ec4fb62c4bb0a05a35e645f0
* | | | | Add 'vendor.' prefix to a vendor HAL service nameJaekyun Seok2017-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To prevent property name collisions between properties of system and vendor, 'vendor.' prefix must be added to a vendor HAL service name. You can see the details in http://go/treble-sysprop-compatibility. Test: succeeded building and tested on a walleye device Bug: 36796459 Change-Id: I4e8fbee791ec917a8f627a1366f4d44ec7e6febc
* | | | | Remove default implementation for PowerHal 1.1Ahmed ElArabawy2017-09-086-367/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default implementation in powerHAL 1.1 is not used by any device Devices using powerHal 1.1 have their own implementation in their device/<vendor>/<devicename> while older devices don't use 1.1 at all. This CL removes the default implementation for the PowerHAL 1.1 Bug: 65453628 Test: Build successfully (code not used anyway) Change-Id: I695348683c6e2e504a523897082543274dc239aa Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* | | | | Updating all makefiles.Steven Moreland2017-08-102-212/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 64487114 Test: none Change-Id: I8608c8f636c35f21e4246a805a9eff6d14124e0a
* | | | | Merge "VTS tests now static link to HAL def libs. #2" into oc-mr1-dev am: ↵Tri Vo2017-08-102-28/+5
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2883486706 am: a6969cdd68 Change-Id: Iecd7cfd4e02aea837647e2f12446e7375744f004
| * | | | VTS tests now static link to HAL def libs. #2Tri Vo2017-08-102-28/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And use VtsHalTargetTestDefaults. Bug: 64040096 Test: crop out all non-affected tests from vts-hal-hidl.xml and run vts-tradefed run commandAndExit vts-hal-hidl --skip-all-system-status-check --skip-preconditions 2 failures, same as without this change: GatekeeperHidlTest.DeleteAllUsersTest GatekeeperHidlTest.DeleteUserTest Change-Id: I8f6995e9536a9aefe283ee3effec9f5a7f03b620
* | | | | Update make file for vndk enabled. am: 608d773ef8Justin Yun2017-08-052-0/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d66371512c Change-Id: I35b778c39c2349346278deb6dea56b8cd3701f7d
| * | | | Update make file for vndk enabled.Justin Yun2017-08-042-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the Android.bp generated with hidl-gen. Test: build with and without BOARD_VNDK_VERSION=current Bug: 63866913 Change-Id: I1a9db1df49e0f13c5790da2b118ae9ec63ba34a7
* | | | | Update makefiles (frameworks.jar).Steven Moreland2017-08-032-0/+8
|/ / / / | | | | | | | | | | | | | | | | | | | | Test: links at runtime and buildtime Bug: 35771640 Change-Id: Ic7a71653d659115205e5bdbb782f73b774af0b29
* / / / Update Android.bp HIDL makefilesTri Vo2017-08-032-2/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Allow HAL definition libs to be static. Bug: 32920003 Bug: 64040096 Test: update-all-google-makefiles.sh Change-Id: I1483d572bea6799717d1614fb7d52fe225e31104
* | | Add powerHintAsync functionalityPhilip Cuadra2017-07-134-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add an async version of powerHint called powerHintAsync. Bug: 62377008 Test: Take systrace, confirm powerHint is now an async HIDL transaction Change-Id: I7c4d850ef17c909977675771d6c2b8a3fa1609d2
* | | vts: fix TryDifferentGovernors in Power hal testbohu2017-06-241-0/+1
|\ \ \ | | |/ | |/| | | | | | | | | | am: ae96eee82b Change-Id: I700de5db71fb60b33983309d8d71a672dd2f98a3
| * | vts: fix TryDifferentGovernors in Power hal testbohu2017-06-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test should return when it cannot open cpu governor files BUG: 62138092 Test: build sdk_gphone_x86-userdebug, launch emulator, run test: run vts -m VtsHalPowerV1_0Target The test should all pass. Change-Id: I3b47261e9525b6a04e995dac1ad63d9cc088b004
* | | Update internal makefiles.Steven Moreland2017-06-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | These makefiles are not in dev topic branches or AOSP currently so they were not updated. This update adds hidl-generated-module defaults. Test: pass Change-Id: Ie52c54877d795bf5358aa600e6d1a13a4f166d25
* | | Update makefiles. (2/2) am: 76cfb84140Steven Moreland2017-05-221-0/+1
|\ \ \ | | |/ | |/| | | | | | | | | | am: f203167814 Change-Id: I1f13401266f3c2f78c627088b09c79cd7c8d0276
| * | Update makefiles. (2/2)Steven Moreland2017-05-221-0/+1
| |\| | | | | | | | | | | | | | | | am: 76cfb84140 Change-Id: I24d21438a5b2f447d2160929c6ff6e17b2b66820
| | * Update makefiles. (2/2)Steven Moreland2017-05-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Adds default configuration for all hals. Bug: 38415912 Test: pass Change-Id: Idd1f3a2b7b16ad956d31784a513e93a066cdd02e
* | | Update makefiles.Steven Moreland2017-05-123-8/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note cleanspec required because of b/38205169 (genrule doesn't delete output files before building, so when removing some, they get stale). Test: power vts test compiles Change-Id: Ie7ef0fc3d943a75fe898238cf861fb7f99f4146b Fixes: 35813011
* | | Fix side branch build breakage.Steven Moreland2017-05-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some branch is complaining: error: undefined reference to 'android::hardware::power::V1_0::IPower::unlinkToDeath(android::sp<android::hardware::hidl_death_recipient> const&)' Test: N/A Test: works on master branch Change-Id: Ifbd47fd47312e02e25eb326f374c71c7dceb2944
* | | Update makefiles for c++-sources and c++-headers. (2/2) am: bc71124120Steven Moreland2017-05-111-2/+2
|\| | | | | | | | | | | | | | | | | am: a32ebce372 Change-Id: Ic1dd8f98e72656bc12a6e5224e541f75afb79daa
| * | Update makefiles for c++-sources and c++-headers. (2/2)Steven Moreland2017-05-111-2/+2
| |\| | | | | | | | | | | | | | | | am: bc71124120 Change-Id: Icf36068a4d863a8520854c7a83e51f960c188e12
| | * Update makefiles for c++-sources and c++-headers. (2/2)Steven Moreland2017-05-091-2/+2
| | | | | | | | | | | | | | | | | | Test: pass Bug: 38174080 Change-Id: Icad451f9f9ad5f46412356a4171a8a1222f8e545
| * | Remove redundant dependenciesSteven Moreland2017-05-021-2/+0
| |/ | | | | | | | | | | | | | | | | android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport. Test: links Bug: 33276472 Merged-In: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
| * Changed the naming scheme for Treble java libraries (both static and dynamic)Andreas Huber2017-04-131-4/+4
| | | | | | | | | | | | | | | | | | android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java Bug: 37207894 Test: make Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0 Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
* | power hal: Add power HAL API 1.1Kumar Anand2017-05-0912-1/+783
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend APIs to collect subsystem low power statistics. Many subsystems (e.g.wifi) could be living on an independent power island (sourced from VBatt directly) and might even have their own dedicated XTAL to source their clocks. Since these SOCs are capable of autonomously operating (while the platform is in one of the sleep states), they are still drawing power from the VBatt. Hence it is critical to understand the (SOC) level low power statistics as well when the battery level changes and be able to find any correlation in event of unexpected battery drain. Bug: 29339696 Test: VTS Change-Id: I1b6ea557dbdf1aa06e9560635fcba8d54afabda7 Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
* | Remove redundant dependenciesSteven Moreland2017-05-021-2/+0
| | | | | | | | | | | | | | | | android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport. Test: links Bug: 33276472 Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
* | Changed the naming scheme for Treble java libraries (both static and dynamic)Andreas Huber2017-04-131-4/+4
|/ | | | | | | | android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java Bug: 37207894 Test: make Change-Id: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
* Merge changes from topic 'hidl-vendor-available' into oc-devSteven Moreland2017-04-121-0/+1
|\ | | | | | | | | | | * changes: Update makefiles (2/2). Update makefiles.
| * Update makefiles (2/2).Steven Moreland2017-04-111-0/+1
| | | | | | | | | | Test: pass Change-Id: Ic7e6289c7b69785491708ce0acbb657f4c704229
* | Fix failure to load power HAL implementationConnor O'Brien2017-04-111-16/+18
|/ | | | | | | | | | | | | Some working implementations of the libhardware power HAL do not implement an open method. Change the HIDL implementation to not rely on that method being available. Test: Flashed marlin with modified power.marlin that omits an open() implementation; power HAL loads successfully and passes VTS Bug: 37245218 Signed-off-by: Connor O'Brien <connoro@google.com> Change-Id: Icc77b3011a0e44330062aa51ae49e39ad349a2a5
* Fix transitive includes.Steven Moreland2017-04-061-0/+1
| | | | | | | | | Files relying on transitive include of utils/Log.h (and things that it includes) from MQDescriptor.h Test: pass Merged-In: Iff316b21bef556bb026378b7f89e97ded3febef4 Change-Id: Iff316b21bef556bb026378b7f89e97ded3febef4
* Convert all comments into "doxygen-ready" comments.Andreas Huber2017-03-292-24/+25
| | | | | | Bug: 36453077 Test: mma Change-Id: I0b1f77dfae5d2258969e33d85ecf45401ffbdfaa
* Update makefiles for hwtypes.hSteven Moreland2017-03-281-0/+1
| | | | | Test: pass Change-Id: I8e17eb8fec5d2f04c526476a866c8dd54ccb556c
* Change vts target base test class nameYuexi Ma2017-03-102-4/+4
| | | | | Test: make vts succeed, vts kernel tests and nfc hal tests passed Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
* hidl_default to all targets.Steven Moreland2017-03-082-0/+3
| | | | | | | | | | | find hardware/interfaces -type f -not -path "*/.git/*" \ -exec sed -i -e '/cc_[A-Za-z_]\+/ { N; s/$/\n defaults: \["hidl_defaults"\],/ }' {} \; ./hardware/interfaces/update-makefiles.sh Test: pass Bug: 35840847 Change-Id: If10c464d2f000b85c8d698fe11a4f3fc4cfad282
* Power: remove warnings from VTS test.Steven Moreland2017-03-081-1/+1
| | | | | Test: pass Change-Id: I1851d7f7e330ed2d9f92a35e29842cf04b13601f
* change all vts hidl tests to use VtsHalHidlTargetBaseTest (internal master)Yuexi Ma2017-02-282-5/+4
| | | | | | Bug: 33385836 Test: mma Change-Id: Ide3ebc4a9db76257f33bcfb0c1f13d2ee33eeaa8
* Merge "Fix bugs in power HAL VTS test"Connor O'Brien2017-02-271-10/+12
|\
| * Fix bugs in power HAL VTS testConnor O'Brien2017-02-271-10/+12
| | | | | | | | | | | | | | | | | | | | Ensure CPU governor list is null-terminated; stop treating newline char as a governor name; stop leaking file descriptors on failure. Bug: 35753237 Test: Test runs and passes on marlin and bullhead Change-Id: I8a6409a50e5daac36770dc577d0628fec8148847 Signed-off-by: Connor O'Brien <connoro@google.com>
* | Remove viral dependency on libhwbinder. (2/2)Steven Moreland2017-02-242-3/+0
|/ | | | | | | | | | | | | | | | find hardware/interfaces -name Android.mk -exec sed -i -e '/libhwbinder \\/d' {} \; find hardware/interfaces -name Android.bp -exec sed -i -e '/"libhwbinder"/d' {} \; ./hardware/interfaces/update-makefiles.sh Note, automotive has some actual dependencies on libhwbinder, filed b/35758626 for this. Test: everything links Test: (sanity) booted marlin on internal master with these changes Bug: 35710429 Change-Id: I6d0726c8130d00684b978efbdd48e3ae396f12e5
* Increase power HAL VTS coverageConnor O'Brien2017-02-221-1/+72
| | | | | | | Bug: 32022775 Test: Run tests on bullhead and marlin Change-Id: I4928d5ac951d02152a3f491bff1c28de3f95c16c Signed-off-by: Connor O'Brien <connoro@google.com>