OSDN Git Service

android-x86/system-hardware-interfaces.git
5 years agosystem_suspend: remove VTS configs am: 0a0f1fde38
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

5 years agosystem_suspend: remove VTS configs
Tri Vo [Fri, 1 Mar 2019 20:11:31 +0000 (12:11 -0800)]
system_suspend: remove VTS configs
am: 0a0f1fde38

Change-Id: I81090a7537c17ddcf2e8bb06e674922ad4ac6d6b

5 years agosystem_suspend: remove VTS configs
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

5 years agoMerge stage-aosp-master into pi-dev-plus-aosp
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

5 years agoDO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
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

5 years agoFreeze HALs for Android Q am: 5864e3d66f
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

5 years agoFreeze HALs for Android Q
Steven Moreland [Tue, 12 Feb 2019 00:11:13 +0000 (16:11 -0800)]
Freeze HALs for Android Q
am: 5864e3d66f

Change-Id: I523205a1aa97a5121c8f60d79a8024379aa26606

5 years agoFreeze HALs for Android Q
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

5 years agosystem_suspend: update OWNERS am: 0ea522479a
Tri Vo [Fri, 8 Feb 2019 23:15:47 +0000 (15:15 -0800)]
system_suspend: update OWNERS am: 0ea522479a
am: 4061cdfb1a

Change-Id: Id352599d36b6b770c44e6dccc673ed91e8bbb395

5 years agosystem_suspend: update OWNERS
Tri Vo [Fri, 8 Feb 2019 23:10:45 +0000 (15:10 -0800)]
system_suspend: update OWNERS
am: 0ea522479a

Change-Id: I87f85256e54351d152c050b90231d8b2786ca8d2

5 years agosystem_suspend: update OWNERS
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

5 years agosystem_suspend: add missing types.hal dependency am: 86df742372
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

5 years agosystem_suspend: add missing types.hal dependency
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

5 years agosystem_suspend: add missing types.hal dependency
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

5 years agoMigrating suspend functionality to SuspendControlService am: d3cd97b1a3
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

5 years agoMigrating suspend functionality to SuspendControlService
Santos Cordon [Tue, 5 Feb 2019 18:29:16 +0000 (10:29 -0800)]
Migrating suspend functionality to SuspendControlService
am: d3cd97b1a3

Change-Id: I57d80f54268d4708238838d010a1fb55c5fa2f72

5 years agoMigrating suspend functionality to SuspendControlService
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

5 years agosystem_suspend: add TEST_MAPPING am: 4f1098e39d
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

5 years agosystem_suspend: add TEST_MAPPING
Tri Vo [Tue, 5 Feb 2019 03:21:03 +0000 (19:21 -0800)]
system_suspend: add TEST_MAPPING
am: 4f1098e39d

Change-Id: Iac342df604faa2984c391203ba5411638161b367

5 years agosystem_suspend: add TEST_MAPPING
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

5 years agoAdd VTS for Wifi Keystore HAL's getPublicKey() am: 9e45561f00
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

5 years agoAdd VTS for Wifi Keystore HAL's getBlob() am: b6e830f18f
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

5 years agoDeploy VtsHalWifiKeystoreV1_0Target in automated vts tests am: 1d7a7e4ede
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

5 years agoAdd VTS for Wifi Keystore HAL's sign() am: 317497a968
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

5 years agoAdd VTS for Wifi Keystore HAL's getPublicKey()
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

5 years agoAdd VTS for Wifi Keystore HAL's getBlob()
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

5 years agoDeploy VtsHalWifiKeystoreV1_0Target in automated vts tests
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

5 years agoAdd VTS for Wifi Keystore HAL's sign()
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

5 years agoMerge "Add OWNERS for Wifi Keystore HAL and VTS tests" am: e142f41d62
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

5 years agoMerge "Add OWNERS for Wifi Keystore HAL and VTS tests"
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

5 years agoAdd VTS for Wifi Keystore HAL's getPublicKey()
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

5 years agoAdd VTS for Wifi Keystore HAL's getBlob()
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

5 years agoDeploy VtsHalWifiKeystoreV1_0Target in automated vts tests
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

5 years agoAdd VTS for Wifi Keystore HAL's sign()
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

5 years agoMerge "Add OWNERS for Wifi Keystore HAL and VTS tests"
Branden Archer [Tue, 29 Jan 2019 19:06:15 +0000 (19:06 +0000)]
Merge "Add OWNERS for Wifi Keystore HAL and VTS tests"

5 years agoAdd 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

5 years agoMerge "Assign a new future before calling update()" am: ab761288e2
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

5 years agoMerge "Assign a new future before calling update()"
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

5 years agoMerge "Assign a new future before calling update()"
Treehugger Robot [Fri, 25 Jan 2019 04:08:10 +0000 (04:08 +0000)]
Merge "Assign a new future before calling update()"

5 years agoAssign 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

5 years agoHandle /sys/power/* interfaces not being available. am: 0dbe3f326d
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

5 years agoHandle /sys/power/* interfaces not being available.
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

5 years agoHandle /sys/power/* interfaces not being available.
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

5 years agosystem suspend: more information about wake locks am: ba81fb29c4
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

5 years agosystem suspend: more information about wake locks
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

5 years agosystem suspend: more information about wake locks
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

5 years agoFix inverted error code. am: 25f58c7312
Janis Danisevskis [Wed, 5 Dec 2018 21:34:42 +0000 (13:34 -0800)]
Fix inverted error code. am: 25f58c7312
am: 8f12a66e75

Change-Id: I36aab81250fefd903a2b022bfcb75bc19e228ac5

5 years agoFix inverted error code.
Janis Danisevskis [Wed, 5 Dec 2018 21:30:44 +0000 (13:30 -0800)]
Fix inverted error code.
am: 25f58c7312

Change-Id: I01195e9e20bfb16efa959d2aaea5c50df33165dc

5 years agoFix inverted error code.
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

5 years agoUse stream operator to report result code am: f98908042a
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

5 years agoUse stream operator to report result code
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

5 years agoUse stream operator to report result code
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

5 years agoMerge "Add trong@ to OWNERS for suspend HAL." am: 5ebf69e8dd
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

5 years agoMerge "Add trong@ to OWNERS for suspend HAL."
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

5 years agoMerge "Add trong@ to OWNERS for suspend HAL."
Tri Vo [Fri, 16 Nov 2018 20:50:22 +0000 (20:50 +0000)]
Merge "Add trong@ to OWNERS for suspend HAL."

5 years agoMerge "Multi-threaded Keystore" am: 7d6ca3b265
Janis Danisevskis [Thu, 15 Nov 2018 01:57:41 +0000 (17:57 -0800)]
Merge "Multi-threaded Keystore" am: 7d6ca3b265
am: f4db2f14ca

Change-Id: I032441d60f79538785974e704a81c79b1d5a1027

5 years agoMerge "Multi-threaded Keystore"
Janis Danisevskis [Thu, 15 Nov 2018 01:45:02 +0000 (17:45 -0800)]
Merge "Multi-threaded Keystore"
am: 7d6ca3b265

Change-Id: I56b08c61180f6577530fe423a3c7e6cc2d549d58

5 years agoMerge "Multi-threaded Keystore"
Janis Danisevskis [Thu, 15 Nov 2018 01:19:10 +0000 (01:19 +0000)]
Merge "Multi-threaded Keystore"

5 years agoMerge "Revert "Start suspend HAL early."" am: 86fc043885
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

5 years agoMerge "Revert "Start suspend HAL early.""
Tri Vo [Wed, 14 Nov 2018 01:41:23 +0000 (17:41 -0800)]
Merge "Revert "Start suspend HAL early.""
am: 86fc043885

Change-Id: I683c22dcb17e785921ce595e441b35d92c12b59d

5 years agoMerge "Revert "Start suspend HAL early.""
Treehugger Robot [Wed, 14 Nov 2018 01:29:48 +0000 (01:29 +0000)]
Merge "Revert "Start suspend HAL early.""

5 years agoAdd trong@ to OWNERS for suspend HAL.
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

5 years agoRevert "Start suspend HAL early."
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

5 years agoMulti-threaded Keystore
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

5 years agoMerge "Remove legacy functions form IKeystoreService.aidl" am: a7dbd69b3e
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

5 years agoMerge "Remove legacy functions form IKeystoreService.aidl"
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

5 years agoMerge "Remove legacy functions form IKeystoreService.aidl"
Treehugger Robot [Thu, 8 Nov 2018 23:01:46 +0000 (23:01 +0000)]
Merge "Remove legacy functions form IKeystoreService.aidl"

5 years agoStart suspend HAL early. am: ec7772299d
Tri Vo [Thu, 8 Nov 2018 22:55:48 +0000 (14:55 -0800)]
Start suspend HAL early. am: ec7772299d
am: 8dd47f2e80

Change-Id: I155a4de2022c8ffe4e0d6625b77b44eb18477f2a

5 years agoStart suspend HAL early.
Tri Vo [Thu, 8 Nov 2018 22:39:09 +0000 (14:39 -0800)]
Start suspend HAL early.
am: ec7772299d

Change-Id: I04843a7730f13a9703785eefaded5a982aab9075

5 years agoStart suspend HAL early.
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

5 years agoRemove legacy functions form IKeystoreService.aidl
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

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE am...
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

5 years ago[automerger skipped] Merge pie-platform-release to aosp-master - DO NOT MERGE
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

5 years agoMerge pie-platform-release to aosp-master - DO NOT MERGE
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

5 years ago[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE
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

5 years agoMerge pi-platform-release to stage-aosp-master - DO NOT MERGE
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

5 years agoDeploy SystemSuspendV1_0UnitTest in automated VTS runs. am: b69833356c
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

5 years agoDeploy SystemSuspendV1_0UnitTest in automated VTS runs.
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

5 years agoDeploy SystemSuspendV1_0UnitTest in automated VTS runs.
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

5 years agoFix deadlock when callback modifies callback list. am: c0578b9128
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

5 years agoFix deadlock when callback modifies callback list.
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

5 years agoFix deadlock when callback modifies callback list.
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

5 years agoImplement exponential backoff analogous to libsuspend am: 5d524a1d61
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

5 years agoImplement exponential backoff analogous to libsuspend
Tri Vo [Fri, 28 Sep 2018 02:51:55 +0000 (19:51 -0700)]
Implement exponential backoff analogous to libsuspend
am: 5d524a1d61

Change-Id: Ica9313242603fa9f2c8bc3ebaa0a473645ffd5dd

5 years agoImplement exponential backoff analogous to libsuspend
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

5 years agoPassing partial vs full wake lock info for ARC++ am: 365b75f157
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

5 years agoPassing partial vs full wake lock info for ARC++
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

5 years agoPassing partial vs full wake lock info for ARC++
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

5 years agoAdd ISystemSuspendCallback. am: b53742607a
Tri Vo [Mon, 10 Sep 2018 02:25:53 +0000 (19:25 -0700)]
Add ISystemSuspendCallback. am: b53742607a
am: 5331ab6fca

Change-Id: Ib6accbeae955fe4095d6fa1f2a6ddd9a576e4256

5 years agoAdd ISystemSuspendCallback.
Tri Vo [Mon, 10 Sep 2018 02:20:20 +0000 (19:20 -0700)]
Add ISystemSuspendCallback.
am: b53742607a

Change-Id: I87cb696e83bf7d52f0a7fe35e12cf62a0c69f68f

5 years agoAdd ISystemSuspendCallback.
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

5 years agoAdd IWakeLock::release() method. am: d502490bac
Tri Vo [Thu, 6 Sep 2018 06:56:57 +0000 (23:56 -0700)]
Add IWakeLock::release() method. am: d502490bac
am: 1f00dd48f6

Change-Id: Ie89b6df20aa02850858bbe6b16c9c51abe3990fc

5 years agoAdd debugName parameter to acquireWakeLock(). am: a3573abb32
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

5 years agoAdd IWakeLock::release() method.
Tri Vo [Thu, 6 Sep 2018 05:12:26 +0000 (22:12 -0700)]
Add IWakeLock::release() method.
am: d502490bac

Change-Id: Id5e96044930c08c01589afdf1d213c98f39efb92

5 years agoAdd debugName parameter to acquireWakeLock().
Tri Vo [Thu, 6 Sep 2018 05:12:22 +0000 (22:12 -0700)]
Add debugName parameter to acquireWakeLock().
am: a3573abb32

Change-Id: Ic8523357af3e14f5ffa4f461cf50eb8fcb74c00e

5 years agoAdd IWakeLock::release() method.
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

5 years agoAdd debugName parameter to acquireWakeLock().
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

5 years agoSystem suspend HAL implementation. am: 180813bea6
Tri Vo [Fri, 17 Aug 2018 03:30:43 +0000 (20:30 -0700)]
System suspend HAL implementation. am: 180813bea6
am: b5cfa06fbd

Change-Id: Id33e2dde5ac8b482c04608434f83f592033e3ad6

5 years agoSystem suspend HAL implementation.
Tri Vo [Fri, 17 Aug 2018 00:40:01 +0000 (17:40 -0700)]
System suspend HAL implementation.
am: 180813bea6

Change-Id: I262ff63599f32cabbac892f799f9573c21aba1d1

5 years agoSystem suspend HAL implementation.
Tri Vo [Thu, 16 Aug 2018 04:20:08 +0000 (21:20 -0700)]
System suspend HAL implementation.

Bug: 78888165
Test: SystemSuspendV1_0UnitTest
Change-Id: I4ba1075ce51684e431098635c72aece67351644a