Treehugger Robot
899b195ce7
Merge "libpower: handle SystemSuspend shutdown on client side."
2018-12-05 03:00:02 +00:00
Tri Vo
631215c63a
libpower: handle SystemSuspend shutdown on client side.
...
On device shutdown, it's possible for SystemSuspend to have exited
before its clients. We change libpower to handle this case by checking
DEAD_OBJECT transaction error, so that client can shutdown cleanly.
Fixes: 120292523
Test: libpower_test
Change-Id: Ie43b72f2c326a9dcdc48371c03b4d97d7fd4e12a
2018-12-04 16:22:28 -08:00
Ahmed ElArabawy
dc1658a9fc
Wifi: Support setting latency mode
...
This commit adds the enum and prototype to enable setting of wifi
latency mode.
Bug: 34905427
Test: Unit test
Test: ./hardware/interfaces/wifi/1.3/default/tests/runtests.sh
Test: VTS test
Test: run vts -m VtsHalWifiV1_3TargetTest
Change-Id: I846fd5f41b740be9ebf2efb16be87d456b573b2a
2018-12-03 16:00:31 -08:00
Tri Vo
a376f0ceac
Merge "Handle concurrent exit and wake lock acquisition." am: 8803d61599
am: b69e9a62c7
...
am: d3429a0c72
Change-Id: I423a17cfd5b25d4dc7cce7d3191f637bf9106b45
2018-11-29 11:40:28 -08:00
Tri Vo
d3429a0c72
Merge "Handle concurrent exit and wake lock acquisition." am: 8803d61599
...
am: b69e9a62c7
Change-Id: I72cfd53e8441f2ee9d1fe4e643f7056d5da17cd7
2018-11-29 11:29:07 -08:00
Tri Vo
b69e9a62c7
Merge "Handle concurrent exit and wake lock acquisition."
...
am: 8803d61599
Change-Id: I38e255cf1c48e8b7097c61ad62d775c5b9cdd44b
2018-11-29 11:15:41 -08:00
Tri Vo
8803d61599
Merge "Handle concurrent exit and wake lock acquisition."
2018-11-29 18:51:24 +00:00
Tri Vo
ca0b45a15e
Handle concurrent exit and wake lock acquisition.
...
We use "-Wexit-time-destructors" and "-fno-c++-static-destructors" flags
to make sure that no static variables are destroyed at exit time.
We do this to avoid the race condition between process exit and use of
static vars when calling acquire/release_wake_lock().
Bug: 117575503
Test: libpower_test
Change-Id: I16acfeb2412685e376d8bd1069c86f60f56d215a
2018-11-28 16:04:12 -08:00
Tri Vo
88479ce7a4
Merge "libpower: try detect memory corruption and abort" am: 3e7f1b1a79
am: 53b0b7e011
...
am: 7ca5dbd0a4
Change-Id: I7da9145fd619e81539669feb378c59e0e12db24a
2018-11-16 17:27:42 -08:00
Tri Vo
7ca5dbd0a4
Merge "libpower: try detect memory corruption and abort" am: 3e7f1b1a79
...
am: 53b0b7e011
Change-Id: I1b43833b6cd404f5147d68f9992ff18817b7f8c7
2018-11-16 17:23:40 -08:00
Tri Vo
53b0b7e011
Merge "libpower: try detect memory corruption and abort"
...
am: 3e7f1b1a79
Change-Id: I3dbe172bffce0bd12bf8bbacd0de0a591dd47ac3
2018-11-16 17:19:35 -08:00
Tri Vo
3e7f1b1a79
Merge "libpower: try detect memory corruption and abort"
2018-11-17 01:07:52 +00:00
Tri Vo
a8742d6851
libpower: try detect memory corruption and abort
...
Bug: 117575503
Test: device boots
Change-Id: Idf81ad5591c675473624dc4d0a057ae715ed748f
2018-11-16 14:35:13 -08:00
Tri Vo
c1054a7187
Merge "VTS configs for libpower test." am: 66487b5083
am: d9dd1c1a06
...
am: b1f506cd23
Change-Id: I062f593c801467c393cb5e962db7863560827af2
2018-10-27 14:09:16 -07:00
Tri Vo
b1f506cd23
Merge "VTS configs for libpower test." am: 66487b5083
...
am: d9dd1c1a06
Change-Id: I2128b2a3a7104a4fab6dd21655d80d5c95ea6b75
2018-10-27 14:05:25 -07:00
Tri Vo
d9dd1c1a06
Merge "VTS configs for libpower test."
...
am: 66487b5083
Change-Id: I5b10f6c2bf726e2640996f8eb866c275e35fd53e
2018-10-27 14:01:21 -07:00
Tri Vo
66487b5083
Merge "VTS configs for libpower test."
2018-10-27 20:49:38 +00:00
Tri Vo
ff454503df
VTS configs for libpower test.
...
Test: vts-tradefed run commandAndExit vts-systems
--skip-all-system-status-check --primary-abi-only --skip-preconditions
--skip-device-info --module LibpowerTest -l VERBOSE
Change-Id: I1371beb8f3d7cef9cddcfdd7f3c0276ab940ea46
2018-10-25 15:00:24 -07:00
Bill Yi
d5c1054650
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 916b76a48f
-s ours am: b432aff068
-s ours
...
am: b5863a928a
-s ours
Change-Id: I5d5dcac0cdc22afc369f94f1ca859d598a2eb7a0
2018-10-24 19:10:30 -07:00
Bill Yi
b5863a928a
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am: 916b76a48f
-s ours
...
am: b432aff068
-s ours
Change-Id: I907fa58ddaef7b6a320fe3a0303ee66567955618
2018-10-24 18:45:23 -07:00
Bill Yi
b432aff068
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
...
am: 916b76a48f
-s ours
Change-Id: I37eabf5e38179537510f204fe6bf397399906566
2018-10-24 16:28:41 -07:00
Bill Yi
916b76a48f
Merge pie-platform-release to aosp-master - DO NOT MERGE
...
Change-Id: Ib32ef1865b9e1e87d28c47e772d1a65de4ecfdd2
2018-10-24 14:47:07 -07:00
Bill Yi
da97e071fe
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am: 90240578b8
-s ours
...
am: 144b90bceb
-s ours
Change-Id: If7f8abdcf50d7a9ca74b27bc7052308a429d00f6
2018-10-24 11:02:54 -07:00
Bill Yi
144b90bceb
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
...
am: 90240578b8
-s ours
Change-Id: I448b8e6202542d76ef302bf973ad06a313e4fd5f
2018-10-24 10:50:15 -07:00
Bill Yi
90240578b8
Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
...
Change-Id: I566acd7ef9db22313cbc80494616c92c6cf6600d
2018-10-24 09:06:59 -07:00
Tri Vo
2da8a044f4
Merge "libhardware_legacy: add trong to OWNERS" am: 11a3e53789
am: 783ff8d435
...
am: bb3327c885
Change-Id: I2f3e3db1776842606a235434b3bd6e44d41fc318
2018-10-22 18:42:46 -07:00
Tri Vo
bb3327c885
Merge "libhardware_legacy: add trong to OWNERS" am: 11a3e53789
...
am: 783ff8d435
Change-Id: Ie237b2984f151edde8d0fcbdd66bf40af6196f4f
2018-10-22 18:29:40 -07:00
Tri Vo
783ff8d435
Merge "libhardware_legacy: add trong to OWNERS"
...
am: 11a3e53789
Change-Id: Idad2b7b5ec24b21d81ef106ff162dad7df3f541e
2018-10-22 18:24:38 -07:00
Treehugger Robot
11a3e53789
Merge "libhardware_legacy: add trong to OWNERS"
2018-10-23 01:16:57 +00:00
Tri Vo
1fb5595bea
Merge "libpower: add stress test" am: 2e6bb802a1
am: 2cec89b9df
...
am: 1a6061a419
Change-Id: I33613c745cd53a209a68e396c229debe71693a3f
2018-10-22 18:02:34 -07:00
Tri Vo
1afd347d3e
Merge "libpower: pass static-duration strong pointer as const reference." am: 18ad7b2cba
am: 18684e0815
...
am: 755c3eb98e
Change-Id: I6a3c0967b3c5e57211fa2d4a16442eec1f6e69c3
2018-10-22 17:53:15 -07:00
Tri Vo
1a6061a419
Merge "libpower: add stress test" am: 2e6bb802a1
...
am: 2cec89b9df
Change-Id: I19e850df744266b071999587e5acbf55697776d5
2018-10-22 17:35:39 -07:00
Tri Vo
2cec89b9df
Merge "libpower: add stress test"
...
am: 2e6bb802a1
Change-Id: Idfca3385a1423da99168605a0925b5eb8352e0e6
2018-10-22 17:19:35 -07:00
Tri Vo
755c3eb98e
Merge "libpower: pass static-duration strong pointer as const reference." am: 18ad7b2cba
...
am: 18684e0815
Change-Id: I726359fd0a1fd3cf9e00676460a0e267807f3a5e
2018-10-22 17:09:27 -07:00
Treehugger Robot
2e6bb802a1
Merge "libpower: add stress test"
2018-10-22 23:38:29 +00:00
Tri Vo
18684e0815
Merge "libpower: pass static-duration strong pointer as const reference."
...
am: 18ad7b2cba
Change-Id: I592535b4c8956ea5bbb6135907d56d669a16a761
2018-10-22 16:28:29 -07:00
Treehugger Robot
18ad7b2cba
Merge "libpower: pass static-duration strong pointer as const reference."
2018-10-22 22:52:49 +00:00
Tri Vo
e5d852f96b
libhardware_legacy: add trong to OWNERS
...
Bug: n/a
Test: n/a
Change-Id: Ib68c04cd0eeb668a3ac0da130b6754c2c9cdc65a
2018-10-22 15:19:45 -07:00
Tri Vo
18177506a7
libpower: add stress test
...
Test: libpower_test
Change-Id: I971e9c792d1d44a7c11b746fea880fdf28015753
2018-10-22 14:03:54 -07:00
Tri Vo
e1a9a6337f
libpower: pass static-duration strong pointer as const reference.
...
With this change:
1. We avoid constructing a strong pointer on every call to
getSystemSuspendServiceOnce().
2. In case the function static pointer is corrupted, the error
propagates to the API call where we're able to handle the errors instead
of the compiler-generated code in the return statement of
getSystemSuspendServiceOnce().
Bug: 117575503
Test: device builds/boots
Change-Id: I85b5616efca25063c876b242529e2bf561f5b834
2018-10-22 13:29:30 -07:00
Tri Vo
b8208e174b
Merge "Simplify libpower" am: e9f8002117
am: 36c877ff06
...
am: e68e0986fc
Change-Id: I6e805ca057d445e64b1bc7355d0b5039df2b9e77
2018-10-16 17:43:55 -07:00
Tri Vo
e68e0986fc
Merge "Simplify libpower" am: e9f8002117
...
am: 36c877ff06
Change-Id: Ia82b84bac965b2a3a0de56282e84ff7efe21683a
2018-10-16 17:33:29 -07:00
Tri Vo
36c877ff06
Merge "Simplify libpower"
...
am: e9f8002117
Change-Id: I28fc49eda15688d4c240ead6ffd67082aad41720
2018-10-16 17:17:10 -07:00
Tri Vo
e9f8002117
Merge "Simplify libpower"
2018-10-16 23:56:02 +00:00
Tri Vo
8eb59a0050
Simplify libpower
...
Changed:
- simplified getting system suspend service
- added isOk() check when releasing a wake lock
Bug: 117575503
Test: presubmit
Change-Id: I78f1f50a7670e7df88e59999c35f99a6df06e8ef
2018-10-16 13:30:58 -07:00
Tri Vo
3e47120f6d
Merge "libpower: acquire wake locks from SystemSuspend service." am: aa8f6d2a2d
am: f65f240c32
...
am: 66ecda2e90
Change-Id: I0d83bafebf7acd282d01a4d3f2532dcbd5cc1d05
2018-10-09 17:35:18 -07:00
Tri Vo
66ecda2e90
Merge "libpower: acquire wake locks from SystemSuspend service." am: aa8f6d2a2d
...
am: f65f240c32
Change-Id: I215354479653a2fbc2d0a2d962c241dc4d8ee19b
2018-10-09 17:28:37 -07:00
Tri Vo
f65f240c32
Merge "libpower: acquire wake locks from SystemSuspend service."
...
am: aa8f6d2a2d
Change-Id: Icba174bcfa41904baaa977efa5e937ea57dd0257
2018-10-09 17:21:32 -07:00
Tri Vo
aa8f6d2a2d
Merge "libpower: acquire wake locks from SystemSuspend service."
2018-10-09 23:52:06 +00:00
Tri Vo
e0a9c90bf5
libpower: acquire wake locks from SystemSuspend service.
...
This change routes libpower and libhardware_legacy to SystemSuspend service for
wake locks instead of /sys/power/wake_[un]lock.
Bug: 78888165
Bug: 115946999
Test: /sys/kernel/debug/suspend_stats shows that device suspends if left alone
Change-Id: Id4d392e13d06be6d86e3112dedeb6a57bb24c06f
2018-10-05 17:45:00 -07:00