OSDN Git Service

Add disableSelf() and more failure codes
authorAlex Salo <asalo@google.com>
Tue, 19 Mar 2019 23:18:31 +0000 (16:18 -0700)
committerAlex Salo <asalo@google.com>
Thu, 21 Mar 2019 21:43:51 +0000 (14:43 -0700)
commitb4a617767b34832a61f9deb5cce9b40c46548d8e
treec45e62adf255807ede9323fb4eea57eb75d56846
parent18c3f0c4a88203ffb9573150586262d00f4ba910
Add disableSelf() and more failure codes

disableSelf() allows the implementer of the service to notify the system
about the intent to disable self, e.g. in case it does not have sufficient
permissions to perform the task.

New failure codes are introduced to communicate the absense of the
camera permission and a cancellation event.

Bug: 128921381111939367
Test: manually
Change-Id: Id9a2a8e8d51d422e966a5858c85f8a73ca37ded7
api/system-current.txt
core/java/android/attention/AttentionManagerInternal.java
core/java/android/service/attention/AttentionService.java
services/core/java/com/android/server/attention/AttentionManagerService.java