OSDN Git Service

Properly disconnect after skipping an operation.
authorPhilip P. Moltmann <moltmann@google.com>
Wed, 11 Apr 2018 16:23:19 +0000 (09:23 -0700)
committerPhilip P. Moltmann <moltmann@google.com>
Wed, 11 Apr 2018 16:23:19 +0000 (09:23 -0700)
commit09dd8c47d81abc486161194f82fb1d3fafed349a
treebe84c9f0a987f0dd0f08346b37ec51791b12e0cf
parentd565f049575cb63fef1b92c47599da928a118112
Properly disconnect after skipping an operation.

If we skip an operation we used to just return. This lead to the service
staying connected, holding the wakelock and consuming power.

Hence after we skip an operation we need to check if we can disconnect
the service, basically treating skipping an operation similar failing
to execute the operation.

Fixes: 77766977
Test: Detected music via sound trigger service and triggered dropping of
operations

Change-Id: Ia837d628193b3a5c2763f4aae666193d624b6d7f
services/voiceinteraction/java/com/android/server/soundtrigger/SoundTriggerService.java