Adrian Roos | 82142c2 | 2014-03-27 14:56:59 +0100 | [diff] [blame] | 1 | /* |
| 2 | ** |
| 3 | ** Copyright 2014, The Android Open Source Project |
| 4 | ** |
| 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | ** you may not use this file except in compliance with the License. |
| 7 | ** You may obtain a copy of the License at |
| 8 | ** |
| 9 | ** http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | ** |
| 11 | ** Unless required by applicable law or agreed to in writing, software |
| 12 | ** distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | ** See the License for the specific language governing permissions and |
| 15 | ** limitations under the License. |
| 16 | */ |
| 17 | package android.app.trust; |
| 18 | |
| 19 | import android.app.trust.ITrustListener; |
| 20 | |
| 21 | /** |
| 22 | * System private API to comunicate with trust service. |
| 23 | * |
| 24 | * {@hide} |
| 25 | */ |
| 26 | interface ITrustManager { |
| 27 | void reportUnlockAttempt(boolean successful, int userId); |
Zachary Iqbal | 327323d | 2017-01-12 14:41:13 -0800 | [diff] [blame] | 28 | void reportUnlockLockout(int timeoutMs, int userId); |
Adrian Roos | 82142c2 | 2014-03-27 14:56:59 +0100 | [diff] [blame] | 29 | void reportEnabledTrustAgentsChanged(int userId); |
Adrian Roos | 82142c2 | 2014-03-27 14:56:59 +0100 | [diff] [blame] | 30 | void registerTrustListener(in ITrustListener trustListener); |
| 31 | void unregisterTrustListener(in ITrustListener trustListener); |
Adrian Roos | 481a6df | 2014-11-20 19:48:56 +0100 | [diff] [blame] | 32 | void reportKeyguardShowingChanged(); |
Clara Bayarri | 56878a9 | 2015-10-29 15:43:55 +0000 | [diff] [blame] | 33 | void setDeviceLockedForUser(int userId, boolean locked); |
Adrian Roos | 50bfeec | 2014-11-20 16:21:11 +0100 | [diff] [blame] | 34 | boolean isDeviceLocked(int userId); |
Adrian Roos | 8289368 | 2015-04-02 16:17:46 +0200 | [diff] [blame] | 35 | boolean isDeviceSecure(int userId); |
Adrian Roos | c13723f | 2016-01-12 20:29:03 +0100 | [diff] [blame] | 36 | boolean isTrustUsuallyManaged(int userId); |
Kevin Chyn | 3fdbbf8 | 2017-05-06 15:11:53 -0700 | [diff] [blame] | 37 | void unlockedByFingerprintForUser(int userId); |
| 38 | void clearAllFingerprints(); |
Adrian Roos | 82142c2 | 2014-03-27 14:56:59 +0100 | [diff] [blame] | 39 | } |