diff options
| author | Carter Hsu <carterhsu@google.com> | 2018-07-13 10:41:29 +0800 |
|---|---|---|
| committer | Carter Hsu <carterhsu@google.com> | 2018-07-13 06:46:10 +0000 |
| commit | 8284636fecaf9d679646416988762ce4b3ca685b (patch) | |
| tree | 68c4457480d66e690099287a6afa87a862f68210 /identity/support/src/cppbor_parse.cpp | |
| parent | c0a06f34c88cf9dc017be6178113b35c3c7fc67e (diff) | |
audio: add wakelock capability for audiohalservice
1. wake_lock group
2. BLOCK_SUSPEND capability
int pm_wake_lock(const char *buf)
{
const char *str = buf;
struct wakelock *wl;
u64 timeout_ns = 0;
size_t len;
int ret = 0;
if (!capable(CAP_BLOCK_SUSPEND))
return -EPERM;
Bug: 111018819
Test: manual
Change-Id: I1283e4b1ab2b95e4e94df045240001485593f1ab
Signed-off-by: Carter Hsu <carterhsu@google.com>
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions
