OSDN Git Service
Chih-Wei Huang [Mon, 20 Apr 2020 15:04:02 +0000 (23:04 +0800)]
Add powerbtnd thread
Also send wakeup key on resume to ensure the system wakes up
normally.
Chih-Wei Huang [Mon, 20 Apr 2020 10:43:48 +0000 (18:43 +0800)]
Make sleep state configurable and add a fallback
This patch allows the user to set the sleep state target from
Android properties for wakeup_count method.
It also includes a fallback state if the default state is not
available and the user didn't set the sleep.state property.
Branden Archer [Thu, 4 Jul 2019 01:50:15 +0000 (18:50 -0700)]
[automerger skipped] Relax testing under GSI
am:
c4cd8ed446 -s ours
am skip reason: change_id Ie52e916a658b09eea66ffd9c5f2ac704656f4f3f with SHA1
dbdc57870f is in history
Change-Id: I8271eff16ebf11cd68807bd627fd70a4cf189766
Branden Archer [Mon, 1 Jul 2019 17:43:52 +0000 (10:43 -0700)]
Relax testing under GSI
VTS testing on GSI images will no longer occur on userdebug
builds. Instead, a user build is used with a boot image containing
a rootable adb. There is a change in Keystore that allows root to
create test keys on debuggable builds specifically for this VTS test.
Without that change the positive test cases will fail, as the test
keys cannot be generated.
To allow this test to continue working when run against GSI builds,
the parts of the test which require debuggable builds are skipped.
Test: build/test VtsHalWifiKeystoreV1_0TargetTest
on a GSI user build with rootable adb
Bug:
135421408
Change-Id: I4f7d29389dc170966e76a6661854cc92d0ea6e7f
Merged-In: Ie52e916a658b09eea66ffd9c5f2ac704656f4f3f
Branden Archer [Mon, 1 Jul 2019 17:43:52 +0000 (10:43 -0700)]
Relax testing under GSI
VTS testing on GSI images will no longer occur on userdebug
builds. Instead, a user build is used with a boot image containing
a rootable adb. There is a change in Keystore that allows root to
create test keys on debuggable builds specifically for this VTS test.
Without that change the positive test cases will fail, as the test
keys cannot be generated.
To allow this test to continue working when run against GSI builds,
the parts of the test which require debuggable builds are skipped.
Test: build/test VtsHalWifiKeystoreV1_0TargetTest
on a GSI user build with rootable adb
Bug:
135421408
Change-Id: Ie52e916a658b09eea66ffd9c5f2ac704656f4f3f
Branden Archer [Tue, 16 Apr 2019 00:02:28 +0000 (17:02 -0700)]
Split Wifi Keystore HAL tests into smaller pieces
There was originally one test per function, which attempted many
possible error conditions and one success condition. It would be
easier to reason through the tests and maintain them if they
were smaller and each test attempted on thing.
Note that the logic on the "wrong user" tests was reversed; the
HAL expects the user to be the wifi user. The reverse may have
originally worked because the HAL library was run within the test
process.
Bug:
130207625
Test: On an AOSP build:
make VtsHalWifiKeystoreV1_0TargetTest;
vts-tradefed run commandAndExit vts -m VtsHalWifiKeystoreV1_0TargetTest
Change-Id: I534b7f66cdb1047a972a4dab708609b15cf287df
Merged-In: I282e151d0b38903578bd9077814c810e44b3b93d
Branden Archer [Mon, 15 Apr 2019 23:39:29 +0000 (16:39 -0700)]
Access Wifi Keystore HAL via binder
The test originally linked against the HAL directly, as well as the
generated stub to access the HAL.. This "worked", however if both the
32-bit and 64-bit versions of the generated stub library were
not present the test would fail. It turned out that on AOSP builds
this was the case, as a 32-bit version of android.system.wifi.keystore
was not present as it was never used at runtime.
To avoid this issue, the stub is now linked statically. Further, the
HAL under test is accessed over binder.
Bug:
130207625
Test: On an AOSP build:
make vts;
vts-tradefed run commandAndExit vts -m VtsHalWifiKeystoreV1_0TargetTest
Change-Id: I02cac1e89c8bed45a4b9b98820c86500327891b6
Merged-In: I138f3e7809a337cec81dccbc52c7a9170acd1d3d
Tri Vo [Tue, 26 Mar 2019 01:47:56 +0000 (18:47 -0700)]
Merge "Promote SystemSuspendV1_0UnitTest to presubmit" am:
4774a61582 am:
350ce28199
am:
4df20883f4
Change-Id: I6af2e589302a8dbc6119f14d7ed0b5de88be8fe2
Tri Vo [Tue, 26 Mar 2019 01:43:53 +0000 (18:43 -0700)]
Merge "Promote SystemSuspendV1_0UnitTest to presubmit" am:
4774a61582
am:
350ce28199
Change-Id: I6935f0b803df2eab28695f7c076214e2dbac16ce
Tri Vo [Tue, 26 Mar 2019 01:39:53 +0000 (18:39 -0700)]
Merge "Promote SystemSuspendV1_0UnitTest to presubmit"
am:
4774a61582
Change-Id: I6b4b6b7cfd17b9082582306a14603c37b5ca46d9
Treehugger Robot [Tue, 26 Mar 2019 01:31:07 +0000 (01:31 +0000)]
Merge "Promote SystemSuspendV1_0UnitTest to presubmit"
Tri Vo [Tue, 26 Mar 2019 00:14:18 +0000 (17:14 -0700)]
Ability to choose either suspend counter or /sys/power/wake_lock. am:
a833d47822 am:
85ad4a9a10
am:
f7791b77c5
Change-Id: I23fa71e80b2ad2c6812407fa3adfe62e26fbc749
Tri Vo [Mon, 25 Mar 2019 23:55:40 +0000 (16:55 -0700)]
Ability to choose either suspend counter or /sys/power/wake_lock. am:
a833d47822
am:
85ad4a9a10
Change-Id: I2d3b08a40ceb5fc81e8f4853d7c051db1ed4bbee
Tri Vo [Mon, 25 Mar 2019 23:50:42 +0000 (16:50 -0700)]
Ability to choose either suspend counter or /sys/power/wake_lock.
am:
a833d47822
Change-Id: I7ae431a50dd1c48a2829ca9ee441f59297c4d3d1
Tri Vo [Mon, 25 Mar 2019 19:38:50 +0000 (12:38 -0700)]
Promote SystemSuspendV1_0UnitTest to presubmit
After increasing some timeout values aosp/931617, this test is now
stable in postsubmit.
Fixes:
127310798
Test: presubmit
Change-Id: I1ee6852552e7e4b5f16f6f52670467a3a5239f9d
Tri Vo [Wed, 20 Mar 2019 04:42:09 +0000 (21:42 -0700)]
Ability to choose either suspend counter or /sys/power/wake_lock.
Suspend blocker that are kept track of by SystemSuspend can now be
backed by either a ref-counter OR /sys/power/wake_lock interface.
We need /sys/power/wake_[un]lock to export debugging info via
/sys/kernel/debug/wakeup_sources. We do this to preserve the workflow
with existing toolchains.
In the future, we want to keep all native wake lock debugging info in
SystemSuspend. That info will then be exposed directly to our tools.
Debug info in /d/wakeup_sources might be misaligned if there wake locks
with colliding names on the device. There are no such cases in Android
platform or pixel devices.
Bug:
128923994
Test: SystemSuspendV1_0UnitTest
Test: device suspends if left alone
Test: /d/wakeup_sources keeps track of all native wake locks
Change-Id: I7d15fca42efca945122ec0671f424e75e186f5d8
Tri Vo [Thu, 21 Mar 2019 17:43:57 +0000 (10:43 -0700)]
SystemSuspendTest.CleanupOnAbort increase timeout am:
28d18ced6f am:
f8f4527ef9
am:
c81b32a2a9
Change-Id: Ibe2c194aa409bccf230b33752755d764a09c632c
Tri Vo [Thu, 21 Mar 2019 17:38:53 +0000 (10:38 -0700)]
SystemSuspendTest.CleanupOnAbort increase timeout am:
28d18ced6f
am:
f8f4527ef9
Change-Id: I3ff45f855d0f15f3c7424ab3bbf99f5f056f803d
Tri Vo [Thu, 21 Mar 2019 17:31:50 +0000 (10:31 -0700)]
SystemSuspendTest.CleanupOnAbort increase timeout
am:
28d18ced6f
Change-Id: Ibc716da5ae4e2a99f346637a6a1d64dddd921c13
Tri Vo [Wed, 20 Mar 2019 20:30:53 +0000 (13:30 -0700)]
SystemSuspendTest.CleanupOnAbort increase timeout
This test case checks that wake locks are cleaned up on process death.
The timing of binder driver cleaning up dead wake locks is scheduler
dependent. Increase the timeout to reduce flakes.
Bug:
127310798
Test: SystemSuspendV1_0UnitTest
Change-Id: Ic1727fc3923ec908a5426fc7a24c76c39d06cc25
Steven Moreland [Tue, 5 Mar 2019 03:27:19 +0000 (19:27 -0800)]
Merge "Use auto-generated makefile for suspend HAL." am:
78b6eb0fac am:
1a40c5cbbe
am:
11a155ba7b
Change-Id: I22ce7eb18e0d4a92a3b0fff75478e70b0c811c2d
Steven Moreland [Tue, 5 Mar 2019 03:23:18 +0000 (19:23 -0800)]
Merge "Use auto-generated makefile for suspend HAL." am:
78b6eb0fac
am:
1a40c5cbbe
Change-Id: I2204d15fcb1c443d58bf7e86b4769e1b7ecd6b25
Steven Moreland [Tue, 5 Mar 2019 03:20:17 +0000 (19:20 -0800)]
Merge "Use auto-generated makefile for suspend HAL."
am:
78b6eb0fac
Change-Id: I770e133f03c5a95195eaf38f8576ab035ad29a7f
Treehugger Robot [Tue, 5 Mar 2019 03:11:01 +0000 (03:11 +0000)]
Merge "Use auto-generated makefile for suspend HAL."
Steven Moreland [Tue, 5 Mar 2019 01:01:23 +0000 (17:01 -0800)]
Use auto-generated makefile for suspend HAL.
Bug:
123976090
Test: system/hardware/interfaces/update-makefiles.sh
Change-Id: I8406240dda30b954be0c2f4e8136bd60ec0a51ba
Tri Vo [Mon, 4 Mar 2019 21:57:39 +0000 (13:57 -0800)]
Demote system_suspend test to postsubmit am:
872fa528a0 am:
fabb91db8d
am:
bbbf1177ea
Change-Id: I0d7ed9600edbce6434302eff5ab6ac8a17aeca37
Tri Vo [Mon, 4 Mar 2019 21:42:37 +0000 (13:42 -0800)]
Demote system_suspend test to postsubmit am:
872fa528a0
am:
fabb91db8d
Change-Id: I2eacda79fe942fe0bfeab1456afc4d8b70f7e7a6
Tri Vo [Mon, 4 Mar 2019 21:29:04 +0000 (13:29 -0800)]
Demote system_suspend test to postsubmit
am:
872fa528a0
Change-Id: I8ce80ec0f7d513815af470b8e54390796bae765f
Tri Vo [Mon, 4 Mar 2019 19:01:39 +0000 (11:01 -0800)]
Demote system_suspend test to postsubmit
SystemSuspendTest.CleanupOnAbort is flaky b/
127310798. Demote the test
from presubmit to postsubmit.
Fixes:
127286160
Test: n/a
Change-Id: I7cb70583fae9292a6f0c4a6fbd63594d42fb2247
Tri Vo [Fri, 1 Mar 2019 20:26:31 +0000 (12:26 -0800)]
system_suspend: remove VTS configs am:
0a0f1fde38 am:
4478ec8bee
am:
38bbcf864e
Change-Id: Id3c267d8ee7a0ffde0940d3f317a0bd7c5cf0898
Tri Vo [Fri, 1 Mar 2019 20:16:18 +0000 (12:16 -0800)]
system_suspend: remove VTS configs am:
0a0f1fde38
am:
4478ec8bee
Change-Id: I04eda2dc6daf443b005ac87984a8e056e18d19ae
Tri Vo [Fri, 1 Mar 2019 20:11:31 +0000 (12:11 -0800)]
system_suspend: remove VTS configs
am:
0a0f1fde38
Change-Id: I81090a7537c17ddcf2e8bb06e674922ad4ac6d6b
Tri Vo [Thu, 28 Feb 2019 22:28:07 +0000 (14:28 -0800)]
system_suspend: remove VTS configs
Rationale:
- SystemSuspendV1_0TargetUnitTest is not part of VTS compliance.
- we already rely on TEST_MAPPING for continuous integration.
Bug: n/a
Test: n/a
Change-Id: I646940d982717a937144af5e4ceedc41b01d0199
Xin Li [Mon, 25 Feb 2019 09:47:49 +0000 (01:47 -0800)]
Merge stage-aosp-master into pi-dev-plus-aosp
am:
dc39079de3
Change-Id: Id96fa7e4be673be238ce00f16761656b28f0269b
Xin Li [Mon, 25 Feb 2019 08:31:51 +0000 (00:31 -0800)]
Merge stage-aosp-master into pi-dev-plus-aosp
Bug:
126125118
Change-Id: Ib6c224a8164b61b2e93f904f5d511534cb9da864
Xin Li [Thu, 21 Feb 2019 00:20:09 +0000 (16:20 -0800)]
DO NOT MERGE - Merge pi-dev@
5234907 into stage-aosp-master
Bug:
120848293
Change-Id: Idc623d90fa7bf292d8732543455505056cd62cfb
Santos Cordon [Fri, 1 Feb 2019 21:40:45 +0000 (21:40 +0000)]
Add force-suspend functionality to SystemSuspend.
Bug:
111991113
Test: manual - 'adb shell svc power forcesuspend'
Change-Id: I951c7586602d8ed5a7eccdfcd68008815c12510d
Steven Moreland [Tue, 12 Feb 2019 00:56:15 +0000 (16:56 -0800)]
Freeze HALs for Android Q am:
5864e3d66f am:
69e1a6f90e
am:
43a0ecf935
Change-Id: I91f08e65f01e0d2e16b0af497dbd95c2b0bf2be9
Steven Moreland [Tue, 12 Feb 2019 00:36:21 +0000 (16:36 -0800)]
Freeze HALs for Android Q am:
5864e3d66f
am:
69e1a6f90e
Change-Id: I48305fd25e4a0e1dd4dc375ce26a6ce60f3bff3d
Steven Moreland [Tue, 12 Feb 2019 00:11:13 +0000 (16:11 -0800)]
Freeze HALs for Android Q
am:
5864e3d66f
Change-Id: I523205a1aa97a5121c8f60d79a8024379aa26606
Steven Moreland [Mon, 11 Feb 2019 21:10:56 +0000 (13:10 -0800)]
Freeze HALs for Android Q
Bug:
119518846
Test: none
Change-Id: Ia036f9da6dcb1380e5117fa7e90e5d95257fc6ec
Tri Vo [Fri, 8 Feb 2019 23:20:48 +0000 (15:20 -0800)]
system_suspend: update OWNERS am:
0ea522479a am:
4061cdfb1a
am:
3a7c2a89c8
Change-Id: I74d91a9f40b0dada37f17f5d009aa5d45381bbaa
Tri Vo [Fri, 8 Feb 2019 23:15:47 +0000 (15:15 -0800)]
system_suspend: update OWNERS am:
0ea522479a
am:
4061cdfb1a
Change-Id: Id352599d36b6b770c44e6dccc673ed91e8bbb395
Tri Vo [Fri, 8 Feb 2019 23:10:45 +0000 (15:10 -0800)]
system_suspend: update OWNERS
am:
0ea522479a
Change-Id: I87f85256e54351d152c050b90231d8b2786ca8d2
Tri Vo [Thu, 7 Feb 2019 21:34:20 +0000 (13:34 -0800)]
system_suspend: update OWNERS
Bug: n/a
Test: n/a
Change-Id: I725607ee0b94c8a549ef5b0ac842abfa28ad416e
Tri Vo [Wed, 6 Feb 2019 01:02:44 +0000 (17:02 -0800)]
system_suspend: add missing types.hal dependency am:
86df742372 am:
5457edc630
am:
bfcf56de3e
Change-Id: I597cafc320e7931d72e520845bb7c5a93c18f8cd
Tri Vo [Wed, 6 Feb 2019 00:53:52 +0000 (16:53 -0800)]
system_suspend: add missing types.hal dependency am:
86df742372
am:
5457edc630
Change-Id: I601cc4911f837780d371b4db7d229f374a54dd47
Tri Vo [Wed, 6 Feb 2019 00:45:25 +0000 (16:45 -0800)]
system_suspend: add missing types.hal dependency
am:
86df742372
Change-Id: Icd2c55b75dbf7abe69144fad7fe81277e1af5fee
Tri Vo [Tue, 5 Feb 2019 21:57:17 +0000 (13:57 -0800)]
system_suspend: add missing types.hal dependency
Bug: n/a
Test: m android.system.suspend@1.0
Change-Id: If98be39f29e7cea740c413ece582e854cd6ef0c3
Santos Cordon [Tue, 5 Feb 2019 19:42:51 +0000 (11:42 -0800)]
[automerger skipped] Migrating suspend functionality to SuspendControlService am:
d3cd97b1a3 am:
f1469307ff
am:
8eb2941680 -s ours
am skip reason: change_id Ia92c42ecf069d606916854430e81f2e232d788c7 with SHA1
f955190c0d is in history
Change-Id: I3c943f0c6cd88a1afe8b96f4f964c1d96af9e3aa
Santos Cordon [Tue, 5 Feb 2019 19:12:13 +0000 (11:12 -0800)]
Migrating suspend functionality to SuspendControlService am:
d3cd97b1a3
am:
f1469307ff
Change-Id: I073d640d8099b06cd1f276ccb61efa4cd96c31a4
Santos Cordon [Tue, 5 Feb 2019 18:29:16 +0000 (10:29 -0800)]
Migrating suspend functionality to SuspendControlService
am:
d3cd97b1a3
Change-Id: I57d80f54268d4708238838d010a1fb55c5fa2f72
Santos Cordon [Wed, 9 Jan 2019 16:48:25 +0000 (16:48 +0000)]
Migrating suspend functionality to SuspendControlService
Move most API methods (other than acquireWakeLock) from SystemSuspend to
SuspendControlService for interactions that happend solely between
suspend HAL and the system server. This allows us to tighten security
SEPolicy around methods that only system-server should be using.
Bug:
121210355
Test: SystemSuspendV1_0UnitTest
Change-Id: Ia92c42ecf069d606916854430e81f2e232d788c7
Merged-In: Ia92c42ecf069d606916854430e81f2e232d788c7
Santos Cordon [Wed, 9 Jan 2019 16:48:25 +0000 (16:48 +0000)]
Migrating suspend functionality to SuspendControlService
Move most API methods (other than acquireWakeLock) from SystemSuspend to
SuspendControlService for interactions that happend solely between
suspend HAL and the system server. This allows us to tighten security
SEPolicy around methods that only system-server should be using.
Bug:
121210355
Test: SystemSuspendV1_0UnitTest
Change-Id: Ia92c42ecf069d606916854430e81f2e232d788c7
Tri Vo [Tue, 5 Feb 2019 03:45:04 +0000 (19:45 -0800)]
system_suspend: add TEST_MAPPING am:
4f1098e39d am:
0cbe08f3b0
am:
aa2b3e6449
Change-Id: I5dfee495d408df5da12fe291c9fb833076e93d47
Tri Vo [Tue, 5 Feb 2019 03:40:37 +0000 (19:40 -0800)]
system_suspend: add TEST_MAPPING am:
4f1098e39d
am:
0cbe08f3b0
Change-Id: I1bd4f617c0c4559600130f400d128bda8f69b0df
Tri Vo [Tue, 5 Feb 2019 03:21:03 +0000 (19:21 -0800)]
system_suspend: add TEST_MAPPING
am:
4f1098e39d
Change-Id: Iac342df604faa2984c391203ba5411638161b367
Tri Vo [Sat, 2 Feb 2019 01:42:36 +0000 (17:42 -0800)]
system_suspend: add TEST_MAPPING
Bug: n/a
Test: presubmit
Change-Id: I5e708c03fd649a336703a732e6a9cecfca28a1de
Branden Archer [Thu, 31 Jan 2019 16:30:08 +0000 (08:30 -0800)]
Add VTS for Wifi Keystore HAL's getPublicKey() am:
9e45561f00 am:
a34e152b56
am:
f25592e0fc
Change-Id: I9d2b6a3148e58ded55078a50febf86943f4b604b
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:53 +0000 (08:24 -0800)]
Add VTS for Wifi Keystore HAL's getPublicKey() am:
9e45561f00
am:
a34e152b56
Change-Id: I31a2773bcbf7390db8bf200c4d4b027b17d08c5a
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:50 +0000 (08:19 -0800)]
Add VTS for Wifi Keystore HAL's getPublicKey()
am:
9e45561f00
Change-Id: I9325b8a63726b37a1b9bf2494471c0a900a6124c
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 20:44:25 +0000 (12:44 -0800)]
Add VTS for Wifi Keystore HAL's getPublicKey()
This exercises paths through the Wifi Keystore HAL's
getPublicKey() method.
Test: atest system/hardware/interfaces/wifi/keystore/1.0/
vts/functional/VtsHalWifiKeystoreV1_0TargetTest.cpp
Change-Id: Ie549ea1c1cd6c767c013c340ae297ae8dfacca69
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