Commit graph

1389 commits

Author SHA1 Message Date
Tri Vo
54ecb7ea67 libpower_test: require root on test device
And promote the test back to presubmit

Fixes: 134078730
Test: libpower_test
Change-Id: I2773bf57698460d98fbeba79659724b0ef75eaf3
2019-06-15 13:58:06 -07:00
Tri Vo
9462a528d1 Merge "libpower: add error logs" 2019-06-05 00:26:00 +00:00
Tri Vo
18e20caa81 Merge "Demote libpower_test to postsubmit" 2019-06-04 18:16:36 +00:00
Tri Vo
329dbd296d Demote libpower_test to postsubmit
The state of the test device w.r.t. root permissions is not guaranteed,
which leads to this test (and others) to be flaky.

Bug: 134078730
Test: n/a
Change-Id: Ieb87e3275289b11f843c18343e5d50a41c7b1993
2019-06-04 11:12:05 -07:00
Tri Vo
3714b98cf5 libpower: add error logs
Bug: 134078730
Test: libpower_test
Change-Id: I35ac20c3f075bb83e61d5fad5bcfd8a1876b0c30
2019-05-31 11:48:17 -07:00
Jooyung Han
1a0ad92fd9 Merge "Revert "Mark libhardware_legacy as double_loadable""
am: 0f90ed1ffc

Change-Id: Ib15b303f5b5f6a8a1e87ee9ba625bfc3ee3e4ffa
2019-03-12 15:24:41 -07:00
Treehugger Robot
0f90ed1ffc Merge "Revert "Mark libhardware_legacy as double_loadable"" 2019-03-12 22:11:27 +00:00
Jooyung Han
53a4f1a31f Revert "Mark libhardware_legacy as double_loadable"
This reverts commit 3ec8dc636a.

Reason for revert: libhardware_legacy is no longer used by libmediandk(aosp/915075)

Change-Id: I74accc24cf20dae40c29a3b1a2fcd985346143cb
2019-03-11 14:11:02 +00:00
Tri Vo
ee40e5225e Merge "libpower: remove VTS configs"
am: 2bd0b3da7e

Change-Id: I11b3c499224801016ade398f7894ff6426ba8f8e
2019-03-01 09:42:59 -08:00
Treehugger Robot
2bd0b3da7e Merge "libpower: remove VTS configs" 2019-03-01 17:30:34 +00:00
Tri Vo
0f6b6bdf59 libpower: remove VTS configs
Rationale:
- libpower_test is not part of VTS compliance.
- we already rely on TEST_MAPPING for continuous integration.

Bug: n/a
Test: n/a
Change-Id: I20830712276a04be98b4c60d6d24036998501de6
2019-02-28 14:31:57 -08:00
Xin Li
6b3259d4f3 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: I4d500884139b866223b9fb4cd5da0b49f2f6ac72
2019-02-20 16:19:27 -08:00
Jooyung Han
e394c4d180 Merge "Mark libhardware_legacy as double_loadable"
am: 8258648600

Change-Id: Ife2d3846e22588b162db48892308afd94015e3ab
2019-02-13 20:22:59 -08:00
Treehugger Robot
8258648600 Merge "Mark libhardware_legacy as double_loadable" 2019-02-14 02:10:05 +00:00
Jooyung Han
3ec8dc636a Mark libhardware_legacy as double_loadable
libhardware_legacy is a VNDK lib and also used by LLNDK(libmediandk)
which means this lib can be double-loaded.

deps:
 - libmediandk -> libmedia_jni -> libandroid_runtime -> libhardware_legacy

Bug: 121280180
Test: m -j
Change-Id: I169e6fe520edb4a6961a6452b22b49b9bfbdf823
2019-02-08 11:44:08 +09:00
Tri Vo
b9599c61dd Merge "libpower: add TEST_MAPPING"
am: 6827114793

Change-Id: Ib52303bfc32f59d105c202db1b61dc4eb85a61f1
2019-02-04 19:27:40 -08:00
Tri Vo
6827114793 Merge "libpower: add TEST_MAPPING" 2019-02-05 03:15:26 +00:00
Tri Vo
850ab7e2a0 libpower: add TEST_MAPPING
Bug: n/a
Test: presubmit
Change-Id: Ib2505acb33871eb920c9ed7d62cabd6ad7e36839
2019-02-03 18:18:23 -08:00
Tri Vo
da84ea052b Merge "libpower: handle SystemSuspend shutdown on client side." am: 899b195ce7
am: 18cb7da6ea

Change-Id: I8031bcf1236d953427be35c4cc0497a6737866cd
2018-12-04 19:20:12 -08:00
Tri Vo
18cb7da6ea Merge "libpower: handle SystemSuspend shutdown on client side."
am: 899b195ce7

Change-Id: I07e79066d5df7c9bc3aa5e3c467f32ccce4b2172
2018-12-04 19:15:10 -08:00
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
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
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
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
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
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
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
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