OSDN Git Service
Branden Archer [Thu, 31 Jan 2019 16:29:59 +0000 (08:29 -0800)]
Add VTS for Wifi Keystore HAL's getBlob() am:
b6e830f18f am:
8677b2c5a7
am:
9980285910
Change-Id: I5b545e89d41d3952bf9d144c2a6327594f5ba3d5
Branden Archer [Thu, 31 Jan 2019 16:29:50 +0000 (08:29 -0800)]
Deploy VtsHalWifiKeystoreV1_0Target in automated vts tests am:
1d7a7e4ede am:
0ceae4f916
am:
7d6ecea3aa
Change-Id: Ic441328644f1060fa44e4544e7b57f0cea938581
Branden Archer [Thu, 31 Jan 2019 16:29:41 +0000 (08:29 -0800)]
Add VTS for Wifi Keystore HAL's sign() am:
317497a968 am:
316ec32f1a
am:
84df885f1c
Change-Id: I908c7f15a79016595f6d138075246f94b50a2edb
Branden Archer [Thu, 31 Jan 2019 16:24:48 +0000 (08:24 -0800)]
Add VTS for Wifi Keystore HAL's getBlob() am:
b6e830f18f
am:
8677b2c5a7
Change-Id: Idb06ba6a2ae704445a72a12c523ce2348968df73
Branden Archer [Thu, 31 Jan 2019 16:24:43 +0000 (08:24 -0800)]
Deploy VtsHalWifiKeystoreV1_0Target in automated vts tests am:
1d7a7e4ede
am:
0ceae4f916
Change-Id: Iaf683aacd2a427e17ec721b12833e648c0e76221
Branden Archer [Thu, 31 Jan 2019 16:24:37 +0000 (08:24 -0800)]
Add VTS for Wifi Keystore HAL's sign() am:
317497a968
am:
316ec32f1a
Change-Id: I0301d6ddd4ea09032eb12e59b908a060d8a69bb0
Branden Archer [Thu, 31 Jan 2019 16:19:45 +0000 (08:19 -0800)]
Add VTS for Wifi Keystore HAL's getBlob()
am:
b6e830f18f
Change-Id: I7f08c9be3da68dc743fadb67e8a94c4230a87dd5
Branden Archer [Thu, 31 Jan 2019 16:19:41 +0000 (08:19 -0800)]
Deploy VtsHalWifiKeystoreV1_0Target in automated vts tests
am:
1d7a7e4ede
Change-Id: Ifdf23e1ad1c749cd9a5a9bb6b2298b3cd9652374
Branden Archer [Thu, 31 Jan 2019 16:19:36 +0000 (08:19 -0800)]
Add VTS for Wifi Keystore HAL's sign()
am:
317497a968
Change-Id: I8578bf8bc73d29dd743d44875b1417f9af64e56f
Branden Archer [Tue, 29 Jan 2019 19:32:48 +0000 (11:32 -0800)]
Merge "Add OWNERS for Wifi Keystore HAL and VTS tests" am:
e142f41d62 am:
7928f5b244
am:
dc2ff398af
Change-Id: I9ddf961cc283fce1909219c3f763d486392bd94e
Branden Archer [Tue, 29 Jan 2019 19:27:10 +0000 (11:27 -0800)]
Merge "Add OWNERS for Wifi Keystore HAL and VTS tests" am:
e142f41d62
am:
7928f5b244
Change-Id: Id387c8a32d283d9feb0b2f5b1f6fcd4254e8b004
Branden Archer [Tue, 29 Jan 2019 19:21:06 +0000 (11:21 -0800)]
Merge "Add OWNERS for Wifi Keystore HAL and VTS tests"
am:
e142f41d62
Change-Id: I1c39148505399d53474b3122c454d274add68216
Branden Archer [Fri, 4 Jan 2019 19:16:18 +0000 (11:16 -0800)]
Add VTS for Wifi Keystore HAL's getBlob()
This exercises paths through the Wifi Keystore HAL's getBlob()
method.
Test: atest system/hardware/interfaces/wifi/keystore/1.0/
vts/functional/VtsHalWifiKeystoreV1_0TargetTest.cpp
Change-Id: I93114c8de00049478b9bf57124d09b1f4f2ebdd6
Branden Archer [Fri, 4 Jan 2019 17:43:34 +0000 (09:43 -0800)]
Deploy VtsHalWifiKeystoreV1_0Target in automated vts tests
Bug:
120182820
Test: vts-tradefed run commandAndExit vts-hal --module VtsHalWifiKeystoreV1_0Target
Change-Id: I95d7ce91571014b7c639bf0628a3d3f3c565a27a
Branden Archer [Fri, 14 Dec 2018 23:01:05 +0000 (15:01 -0800)]
Add VTS for Wifi Keystore HAL's sign()
This generates a signing key and attempts to use it
in the Wifi Keystore HAL's sign() call. This reproduces
the SIGSEGV in
120182820, and with the fix shows that
data can be signed.
Bug:
120182820
Test: atest system/hardware/interfaces/wifi/keystore/1.0/
vts/functional/VtsHalWifiKeystoreV1_0TargetTest.cpp
Change-Id: I98afa26e7a54cacff8935a3420d0ea5a2ca5ac50
Branden Archer [Tue, 29 Jan 2019 19:06:15 +0000 (19:06 +0000)]
Merge "Add OWNERS for Wifi Keystore HAL and VTS tests"
Branden Archer [Wed, 16 Jan 2019 18:54:11 +0000 (10:54 -0800)]
Add OWNERS for Wifi Keystore HAL and VTS tests
These are the owners as listed in hardware/interfaces/wifi/**
Test: none necessary
Change-Id: I247dea0a97029ce002db726d0c800c9835f89d07
Branden Archer [Fri, 25 Jan 2019 04:25:26 +0000 (20:25 -0800)]
Merge "Assign a new future before calling update()" am:
ab761288e2 am:
90f296c067
am:
eeb86d1670
Change-Id: I70f012d6f9316ca3c3261fe2175edc69d52366f6
Branden Archer [Fri, 25 Jan 2019 04:21:28 +0000 (20:21 -0800)]
Merge "Assign a new future before calling update()" am:
ab761288e2
am:
90f296c067
Change-Id: I549f9d819b2b48dd7410a92d2d006fa3d9cc512f
Branden Archer [Fri, 25 Jan 2019 04:17:25 +0000 (20:17 -0800)]
Merge "Assign a new future before calling update()"
am:
ab761288e2
Change-Id: Iab1a8600000bf36c117b05a82ad1986cbd0f48fa
Treehugger Robot [Fri, 25 Jan 2019 04:08:10 +0000 (04:08 +0000)]
Merge "Assign a new future before calling update()"
Branden Archer [Wed, 2 Jan 2019 19:26:09 +0000 (11:26 -0800)]
Assign a new future before calling update()
An empty future was being used, and when the update() call
completed the value in the empty future was grabbed
resulting in a nullptr de-reference.
Bug:
120182820
Test: atest system/hardware/interfaces/wifi/keystore/1.0/
vts/functional/VtsHalWifiKeystoreV1_0TargetTest.cpp
Change-Id: I02968a5b93f2e59ce5801676ab3bae437e2c53d8
Tri Vo [Fri, 21 Dec 2018 23:50:17 +0000 (15:50 -0800)]
Handle /sys/power/* interfaces not being available. am:
0dbe3f326d am:
155dc360a8
am:
5617a944ca
Change-Id: I008a867d6790f45e9b2fd2cb85464fd1023d1661
Tri Vo [Fri, 21 Dec 2018 23:46:15 +0000 (15:46 -0800)]
Handle /sys/power/* interfaces not being available. am:
0dbe3f326d
am:
155dc360a8
Change-Id: I6608aaa31c5e355ebad1b1b0cb35a6264cb85e98
Tri Vo [Fri, 21 Dec 2018 23:42:15 +0000 (15:42 -0800)]
Handle /sys/power/* interfaces not being available.
am:
0dbe3f326d
Change-Id: I79a9b0f0d19f185f570da2672d98456484f4630d
Tri Vo [Thu, 20 Dec 2018 20:53:04 +0000 (12:53 -0800)]
Handle /sys/power/* interfaces not being available.
If either /sys/power/wakeup_count or /sys/power/state fail to open, we
construct SystemSuspend with blocking fds. This way this process will
keep running, handle wake lock requests, collect stats, but won't
suspend the device.
We want this behavior on devices (hosts) where system suspend should not
be handles by Android platform e.g. ARC++, Android virtual devices.
Bug:
118637369
Test: Remove system.suspend access to /sys/power/{ wakeup_count state }
using SELinux. Device still boots and doesn't suspend.
Change-Id: I068a584ada6968520219ee5288f598a53aa48c68
Tri Vo [Fri, 7 Dec 2018 23:20:26 +0000 (15:20 -0800)]
system suspend: more information about wake locks am:
ba81fb29c4 am:
6cd53dfb0c
am:
4e53a2961d
Change-Id: I628f179eb510a138dd31ec20028cf992bff95019
Tri Vo [Fri, 7 Dec 2018 23:17:52 +0000 (15:17 -0800)]
system suspend: more information about wake locks am:
ba81fb29c4
am:
6cd53dfb0c
Change-Id: I450c0d4769d664fdef5ae383660db6f4497f3c84
Tri Vo [Fri, 7 Dec 2018 23:13:21 +0000 (15:13 -0800)]
system suspend: more information about wake locks
am:
ba81fb29c4
Change-Id: Ic5432dacf983860664135c1a15acf0a643e2e5a3
Tri Vo [Fri, 9 Nov 2018 02:24:52 +0000 (18:24 -0800)]
system suspend: more information about wake locks
/sys/power/{wake_lock wake_unlock} can give a list of all currently
active and inactive wake lock names. Bring system suspend debug
functionality up to par by keeping track of all used wake lock names,
client pids, current state and last used timestamp.
To prevent collected stats from growing unboundedly we evict least
recently used stats entry after a given threshold.
Bug:
78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: I26eb94e61d4656ec1bba45b4a70a0715fae15d05
Janis Danisevskis [Wed, 5 Dec 2018 21:39:09 +0000 (13:39 -0800)]
Fix inverted error code. am:
25f58c7312 am:
8f12a66e75
am:
261ee4e5b4
Change-Id: I5063508423aefbe8defff79d947f782d43a040b6
Janis Danisevskis [Wed, 5 Dec 2018 21:34:42 +0000 (13:34 -0800)]
Fix inverted error code. am:
25f58c7312
am:
8f12a66e75
Change-Id: I36aab81250fefd903a2b022bfcb75bc19e228ac5
Janis Danisevskis [Wed, 5 Dec 2018 21:30:44 +0000 (13:30 -0800)]
Fix inverted error code.
am:
25f58c7312
Change-Id: I01195e9e20bfb16efa959d2aaea5c50df33165dc
Janis Danisevskis [Wed, 5 Dec 2018 00:52:58 +0000 (16:52 -0800)]
Fix inverted error code.
During the Multithreaded keystore refactor the error code returned by
getKeyCharacteristics was mistakenly inverted.
Test: yes please!
Bug:
120182820
Bug:
111443219
Change-Id: I5f5c07f30e0ee264ce75a5ffd2986186b9d66ce3
Branden Archer [Wed, 5 Dec 2018 18:59:42 +0000 (10:59 -0800)]
Use stream operator to report result code am:
f98908042a am:
f5cf23943b
am:
d0eb668f5b
Change-Id: I548b9de707e856653a026e345ee937f802d66423
Branden Archer [Wed, 5 Dec 2018 18:48:00 +0000 (10:48 -0800)]
Use stream operator to report result code am:
f98908042a
am:
f5cf23943b
Change-Id: I6e01c6fa50eb39b3f3674eda287cb070e10cfd58
Branden Archer [Wed, 5 Dec 2018 18:37:08 +0000 (10:37 -0800)]
Use stream operator to report result code
am:
f98908042a
Change-Id: I1f8934f057475608e4e8e9ecc280c9ca74be0ba9
Branden Archer [Tue, 20 Nov 2018 19:05:23 +0000 (11:05 -0800)]
Use stream operator to report result code
The cast operator for KeyStoreNativeReturnCode and
KeyStoreNativeReturnCode will be removed later.
There already exists a stream operator to get
at the underlying value. Use that instead.
Bug:
119771891
Test: Built for walleye successfully.
Change-Id: I784d3c54d7b2d612201f045fe2862cf2529f4e1f
Tri Vo [Fri, 16 Nov 2018 22:11:44 +0000 (14:11 -0800)]
Merge "Add trong@ to OWNERS for suspend HAL." am:
5ebf69e8dd am:
8659169f45
am:
49e22d129c
Change-Id: I059db0b8cf318b1ea689066e4cfad8b06d42f364
Tri Vo [Fri, 16 Nov 2018 21:17:31 +0000 (13:17 -0800)]
Merge "Add trong@ to OWNERS for suspend HAL." am:
5ebf69e8dd
am:
8659169f45
Change-Id: Ie765c316d8b173353bc20ada5678c395f039fab4
Tri Vo [Fri, 16 Nov 2018 21:05:55 +0000 (13:05 -0800)]
Merge "Add trong@ to OWNERS for suspend HAL."
am:
5ebf69e8dd
Change-Id: Id44ec5796ce54d713d33573ddadc5e2a852699ce
Tri Vo [Fri, 16 Nov 2018 20:50:22 +0000 (20:50 +0000)]
Merge "Add trong@ to OWNERS for suspend HAL."
Janis Danisevskis [Thu, 15 Nov 2018 14:40:49 +0000 (06:40 -0800)]
Merge "Multi-threaded Keystore" am:
7d6ca3b265 am:
f4db2f14ca
am:
091884aedc
Change-Id: I41e12a1d9483ffe9c73f4f3e405e5e353b6d44e2
Janis Danisevskis [Thu, 15 Nov 2018 01:57:41 +0000 (17:57 -0800)]
Merge "Multi-threaded Keystore" am:
7d6ca3b265
am:
f4db2f14ca
Change-Id: I032441d60f79538785974e704a81c79b1d5a1027
Janis Danisevskis [Thu, 15 Nov 2018 01:45:02 +0000 (17:45 -0800)]
Merge "Multi-threaded Keystore"
am:
7d6ca3b265
Change-Id: I56b08c61180f6577530fe423a3c7e6cc2d549d58
Janis Danisevskis [Thu, 15 Nov 2018 01:19:10 +0000 (01:19 +0000)]
Merge "Multi-threaded Keystore"
Tri Vo [Wed, 14 Nov 2018 01:54:34 +0000 (17:54 -0800)]
Merge "Revert "Start suspend HAL early."" am:
86fc043885 am:
3d8ab6e73a
am:
1277f55834
Change-Id: I27fc12c219beae34a26bd70d2598c3ec6e010abc
Tri Vo [Wed, 14 Nov 2018 01:46:31 +0000 (17:46 -0800)]
Merge "Revert "Start suspend HAL early."" am:
86fc043885
am:
3d8ab6e73a
Change-Id: Ic32376873e558315e79053c83f195d092a1f9d82
Tri Vo [Wed, 14 Nov 2018 01:41:23 +0000 (17:41 -0800)]
Merge "Revert "Start suspend HAL early.""
am:
86fc043885
Change-Id: I683c22dcb17e785921ce595e441b35d92c12b59d
Treehugger Robot [Wed, 14 Nov 2018 01:29:48 +0000 (01:29 +0000)]
Merge "Revert "Start suspend HAL early.""
Tri Vo [Wed, 14 Nov 2018 00:09:20 +0000 (16:09 -0800)]
Add trong@ to OWNERS for suspend HAL.
Bug: n/a
Test: n/a
Change-Id: I4c763478d86c68735edbf1355a8c25a8f9e22b7d
Tri Vo [Tue, 13 Nov 2018 22:25:01 +0000 (22:25 +0000)]
Revert "Start suspend HAL early."
This reverts commit
ec7772299db6bc76f1c2aa1d471447cfddce04ae.
Fixes:
119325488
Reason for revert: regressed boot time
Change-Id: I91e2300b1f0625a5787d0af02db06b3079331787
Janis Danisevskis [Fri, 9 Nov 2018 21:29:08 +0000 (13:29 -0800)]
Merge "Remove legacy functions form IKeystoreService.aidl" am:
a7dbd69b3e am:
f7ddbe1390
am:
593d538ff4
Change-Id: I7a404c328575caacdbcbe33875b50e7ab1544e84
Janis Danisevskis [Fri, 2 Nov 2018 21:51:02 +0000 (14:51 -0700)]
Multi-threaded Keystore
This patch changes the calling code in the wifi interface to use the new
asynchronous keystore api model.
Test: would be nice
Bug:
111443219
Change-Id: Iee6a6fede4670dfe503dc7b87a34b88c1c8f01f4
Janis Danisevskis [Thu, 8 Nov 2018 23:39:03 +0000 (15:39 -0800)]
Merge "Remove legacy functions form IKeystoreService.aidl" am:
a7dbd69b3e
am:
f7ddbe1390
Change-Id: If1116aa610fcf4366440272973eefbbc4fd60e54
Janis Danisevskis [Thu, 8 Nov 2018 23:23:05 +0000 (15:23 -0800)]
Merge "Remove legacy functions form IKeystoreService.aidl"
am:
a7dbd69b3e
Change-Id: Ibb821f41dca0937ebce32c1d73c57672fd2dd4dd
Tri Vo [Thu, 8 Nov 2018 23:11:18 +0000 (15:11 -0800)]
Start suspend HAL early. am:
ec7772299d am:
8dd47f2e80
am:
6f3e189722
Change-Id: Ic5840db316a551038aa905bef7706c3a98225f82
Treehugger Robot [Thu, 8 Nov 2018 23:01:46 +0000 (23:01 +0000)]
Merge "Remove legacy functions form IKeystoreService.aidl"
Tri Vo [Thu, 8 Nov 2018 22:55:48 +0000 (14:55 -0800)]
Start suspend HAL early. am:
ec7772299d
am:
8dd47f2e80
Change-Id: I155a4de2022c8ffe4e0d6625b77b44eb18477f2a
Tri Vo [Thu, 8 Nov 2018 22:39:09 +0000 (14:39 -0800)]
Start suspend HAL early.
am:
ec7772299d
Change-Id: I04843a7730f13a9703785eefaded5a982aab9075
Tri Vo [Thu, 8 Nov 2018 18:40:57 +0000 (10:40 -0800)]
Start suspend HAL early.
Requests to acquire wake locks are blocked on suspend HAL being started.
So ideally it should be available to the system as early as possible.
Bug:
78888165
Test: boot walleye
Change-Id: If38836ce561f06ce9d3ee3f6e03885aaccbd48c0
Janis Danisevskis [Thu, 9 Aug 2018 18:15:44 +0000 (11:15 -0700)]
Remove legacy functions form IKeystoreService.aidl
In preparation for making the keystore service asynchronous we remove
redundant legacy functionality from the protocol.
This patch removes the functions get_pubkey, sign, verify, generate,
and import_key. Which have long been superseded by exportKey
(get_pubkey), begin/update/finish (sign, verify), generateKey
(generate), and importKey (import_key).
Test: Not yet
Bug:
109769728
Change-Id: Ia59b30377684c013e9b4496ca9e365f8c2710ec1
Bill Yi [Thu, 25 Oct 2018 03:03:22 +0000 (20:03 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am:
cae0b889f1 -s ours am:
76d5fba0d2 -s ours
am:
c3b0b670ae -s ours
Change-Id: I93024e19e0ca09916a06411edc6c62ebbfeced96
Bill Yi [Thu, 25 Oct 2018 02:04:42 +0000 (19:04 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am:
cae0b889f1 -s ours
am:
76d5fba0d2 -s ours
Change-Id: Id68fd92466e2032b41e55d64aad3aecb72d8adf7
Bill Yi [Wed, 24 Oct 2018 23:38:47 +0000 (16:38 -0700)]
[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
am:
cae0b889f1 -s ours
Change-Id: I879c6bec4c2bfe8a300505c5b907383e7d680b59
Bill Yi [Wed, 24 Oct 2018 21:48:19 +0000 (14:48 -0700)]
Merge pie-platform-release to aosp-master - DO NOT MERGE
Change-Id: Iae3aab5abbf9ec60db33a9184d76210c345641ee
Bill Yi [Wed, 24 Oct 2018 18:20:44 +0000 (11:20 -0700)]
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am:
86edb72fe7 -s ours
am:
63a34e6475 -s ours
Change-Id: I74f7473a8ffa6922b5c3bf6b21b0265cf70bdca8
Bill Yi [Wed, 24 Oct 2018 17:55:20 +0000 (10:55 -0700)]
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
am:
86edb72fe7 -s ours
Change-Id: I57fc667020827d996105441ea1e99e37533e00bc
Bill Yi [Wed, 24 Oct 2018 16:07:58 +0000 (09:07 -0700)]
Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
Change-Id: Ic1332b53d46886328c726d03b8206647dadd898f
Tri Vo [Sat, 20 Oct 2018 22:13:57 +0000 (15:13 -0700)]
Deploy SystemSuspendV1_0UnitTest in automated VTS runs. am:
b69833356c am:
f10cca93d4
am:
c5c5115aaf
Change-Id: I939486df3c54dee16226ed05a5dfa9b4eb2cc274
Tri Vo [Sat, 20 Oct 2018 22:08:43 +0000 (15:08 -0700)]
Deploy SystemSuspendV1_0UnitTest in automated VTS runs. am:
b69833356c
am:
f10cca93d4
Change-Id: Icc90e047efbf8dcc9915b9f72b4eb12eeed1eff6
Tri Vo [Sat, 20 Oct 2018 22:04:41 +0000 (15:04 -0700)]
Deploy SystemSuspendV1_0UnitTest in automated VTS runs.
am:
b69833356c
Change-Id: Ibd49d209b1859a2d07b8032113b4706f6cf827fb
Tri Vo [Wed, 10 Oct 2018 01:24:37 +0000 (18:24 -0700)]
Deploy SystemSuspendV1_0UnitTest in automated VTS runs.
Bug:
117176837
Test: vts-tradefed run commandAndExit vts-systems
--skip-all-system-status-check --primary-abi-only --skip-preconditions
--skip-device-info --module SystemSuspendV1_0TargetUnitTest
Change-Id: Icfef15e6fbbe86f7ca2a0a7e47897f1c837e7695
Tri Vo [Thu, 11 Oct 2018 01:08:46 +0000 (18:08 -0700)]
Fix deadlock when callback modifies callback list. am:
c0578b9128 am:
23cafd74e6
am:
cd1c6b3d5e
Change-Id: I2c5b2381805150c622876ec6addbef85fd9f964b
Tri Vo [Thu, 11 Oct 2018 01:04:19 +0000 (18:04 -0700)]
Fix deadlock when callback modifies callback list. am:
c0578b9128
am:
23cafd74e6
Change-Id: Ic55fdb1d1c8c3c60c213c7b9d7d913a6feb9f98b
Tri Vo [Thu, 11 Oct 2018 00:58:02 +0000 (17:58 -0700)]
Fix deadlock when callback modifies callback list.
am:
c0578b9128
Change-Id: Ifa436f31dbed547f3d3df9664dd8c92ff1496f34
Tri Vo [Wed, 10 Oct 2018 22:29:48 +0000 (15:29 -0700)]
Fix deadlock when callback modifies callback list.
Bug:
117555757
Test: SystemSuspendUnitTest
Change-Id: I40e7ffcc1bbc744a5b9e6d739166f1eebb8ed151
Tri Vo [Fri, 28 Sep 2018 03:00:01 +0000 (20:00 -0700)]
Implement exponential backoff analogous to libsuspend am:
5d524a1d61 am:
2877b3fd51
am:
06a0436fd0
Change-Id: Ib50b8606ecea195faf5d7616dfe1a13155b91cee
Tri Vo [Fri, 28 Sep 2018 02:56:00 +0000 (19:56 -0700)]
Implement exponential backoff analogous to libsuspend am:
5d524a1d61
am:
2877b3fd51
Change-Id: I8ff818111917f76f6714ab37e3a0f86f93af606a
Tri Vo [Fri, 28 Sep 2018 02:51:55 +0000 (19:51 -0700)]
Implement exponential backoff analogous to libsuspend
am:
5d524a1d61
Change-Id: Ica9313242603fa9f2c8bc3ebaa0a473645ffd5dd
Tri Vo [Thu, 20 Sep 2018 23:07:23 +0000 (16:07 -0700)]
Implement exponential backoff analogous to libsuspend
Suspends attempts are not free w.r.t. power consumption. This change prevents
rapid battery drain on devices with broken system suspend (e.g. due to faulty
driver)
Originally implemented in libususpend in commit
fb896944b6a78d951c8442b444af860a28117e5c
Bug:
78888165
Test: SystemSuspendV1_0UnitTest
Test: left device overnight, ~50% fewer failed attempts to suspend with this
change vs without.
Change-Id: Icff1135b9c316fa9de1558ecea42db9ed0d10d9a
Tri Vo [Tue, 25 Sep 2018 22:26:02 +0000 (15:26 -0700)]
Passing partial vs full wake lock info for ARC++ am:
365b75f157 am:
26b41fd33f
am:
fe70f220bd
Change-Id: I91ca7d6d37021dc7f60375fcdc2830e012e8a993
Tri Vo [Tue, 25 Sep 2018 22:03:11 +0000 (15:03 -0700)]
Passing partial vs full wake lock info for ARC++ am:
365b75f157
am:
26b41fd33f
Change-Id: I96cc30adea6e02e4f10056fe7dd5a01a01be9a6f
Tri Vo [Tue, 25 Sep 2018 21:28:46 +0000 (14:28 -0700)]
Passing partial vs full wake lock info for ARC++
am:
365b75f157
Change-Id: Ie783b4bed8cd0624d7320f79d7e043f772900618
Tri Vo [Fri, 21 Sep 2018 22:19:16 +0000 (15:19 -0700)]
Passing partial vs full wake lock info for ARC++
We pass an enum to acquireWakeLock(), symmetric to how it's done in libpower
interface.
The screen could be managed above (android) or below (ARC++) this HAL depending
on the device, so we don't mandate that full wake locks keep the screen alive.
Only requirement is that all wake locks block system suspend.
Bug:
115947180
Test: SystemSuspendV1_0UnitTest
Change-Id: I92c65371852ffb2f71f5d529b7020d256cb1ba76
Tri Vo [Mon, 10 Sep 2018 02:30:08 +0000 (19:30 -0700)]
Add ISystemSuspendCallback. am:
b53742607a am:
5331ab6fca
am:
4427f934fb
Change-Id: Id069b6c03b902c37f652ddf71329f99779b75c82
Tri Vo [Mon, 10 Sep 2018 02:25:53 +0000 (19:25 -0700)]
Add ISystemSuspendCallback. am:
b53742607a
am:
5331ab6fca
Change-Id: Ib6accbeae955fe4095d6fa1f2a6ddd9a576e4256
Tri Vo [Mon, 10 Sep 2018 02:20:20 +0000 (19:20 -0700)]
Add ISystemSuspendCallback.
am:
b53742607a
Change-Id: I87cb696e83bf7d52f0a7fe35e12cf62a0c69f68f
Tri Vo [Fri, 31 Aug 2018 00:58:41 +0000 (17:58 -0700)]
Add ISystemSuspendCallback.
The callback will be used to synchronously report system suspend events.
Current usage: BatteryStatsService needs to be notified about
each system suspend attempt and whether it was successful.
Bug:
78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: I234f74f6f3c35e5d6bb33ceda569e11520850ccf
Tri Vo [Thu, 6 Sep 2018 07:37:49 +0000 (00:37 -0700)]
Add IWakeLock::release() method. am:
d502490bac am:
1f00dd48f6
am:
7760955f2c
Change-Id: I6100e4aa1bca19c68899fa3233a2a4faf493dca7
Tri Vo [Thu, 6 Sep 2018 07:37:43 +0000 (00:37 -0700)]
Add debugName parameter to acquireWakeLock(). am:
a3573abb32 am:
5919e17799
am:
21b17c1194
Change-Id: I1d69da870168b5af9a17271c152f4e114d8fa51e
Tri Vo [Thu, 6 Sep 2018 06:56:57 +0000 (23:56 -0700)]
Add IWakeLock::release() method. am:
d502490bac
am:
1f00dd48f6
Change-Id: Ie89b6df20aa02850858bbe6b16c9c51abe3990fc
Tri Vo [Thu, 6 Sep 2018 06:56:51 +0000 (23:56 -0700)]
Add debugName parameter to acquireWakeLock(). am:
a3573abb32
am:
5919e17799
Change-Id: Idb2775a76dd967e33950d05c6cfa4eafbfb70e98
Tri Vo [Thu, 6 Sep 2018 05:12:26 +0000 (22:12 -0700)]
Add IWakeLock::release() method.
am:
d502490bac
Change-Id: Id5e96044930c08c01589afdf1d213c98f39efb92
Tri Vo [Thu, 6 Sep 2018 05:12:22 +0000 (22:12 -0700)]
Add debugName parameter to acquireWakeLock().
am:
a3573abb32
Change-Id: Ic8523357af3e14f5ffa4f461cf50eb8fcb74c00e
Tri Vo [Wed, 29 Aug 2018 20:44:37 +0000 (13:44 -0700)]
Add IWakeLock::release() method.
Motivation:
-This should help migrate code that relied on old
acquire/release_wake_lock() methods to new API.
-Being able to release a lock before the end of the scope is consistent
with other "lock" constructs (e.g. unique_lock, shared_lock).
Bug:
78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: Ibb654f523b9c255df68d93407b593deac006920b
Tri Vo [Tue, 28 Aug 2018 20:31:04 +0000 (13:31 -0700)]
Add debugName parameter to acquireWakeLock().
Bug:
78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: Ia6570af63eb1eb01145bd7870c196a0eed91883a
Tri Vo [Fri, 17 Aug 2018 05:51:15 +0000 (22:51 -0700)]
System suspend HAL implementation. am:
180813bea6 am:
b5cfa06fbd
am:
ec036db079
Change-Id: I4210cef6a9435428a99cbad350c507a25766a802
Tri Vo [Fri, 17 Aug 2018 03:30:43 +0000 (20:30 -0700)]
System suspend HAL implementation. am:
180813bea6
am:
b5cfa06fbd
Change-Id: Id33e2dde5ac8b482c04608434f83f592033e3ad6
Tri Vo [Fri, 17 Aug 2018 00:40:01 +0000 (17:40 -0700)]
System suspend HAL implementation.
am:
180813bea6
Change-Id: I262ff63599f32cabbac892f799f9573c21aba1d1