Amith Yamasani | 52c489c | 2012-03-28 11:42:42 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package com.android.internal.widget; |
| 18 | |
Adrian Roos | b5e4722 | 2015-08-14 15:53:06 -0700 | [diff] [blame] | 19 | import android.app.trust.IStrongAuthTracker; |
Jorim Jaggi | e8fde5d | 2016-06-30 23:41:37 -0700 | [diff] [blame] | 20 | import com.android.internal.widget.ICheckCredentialProgressCallback; |
Andres Morales | 2397427 | 2015-05-14 22:42:26 -0700 | [diff] [blame] | 21 | import com.android.internal.widget.VerifyCredentialResponse; |
| 22 | |
Amith Yamasani | 52c489c | 2012-03-28 11:42:42 -0700 | [diff] [blame] | 23 | /** {@hide} */ |
| 24 | interface ILockSettings { |
| 25 | void setBoolean(in String key, in boolean value, in int userId); |
| 26 | void setLong(in String key, in long value, in int userId); |
| 27 | void setString(in String key, in String value, in int userId); |
| 28 | boolean getBoolean(in String key, in boolean defaultValue, in int userId); |
| 29 | long getLong(in String key, in long defaultValue, in int userId); |
| 30 | String getString(in String key, in String defaultValue, in int userId); |
Rubin Xu | 1de89b3 | 2016-11-30 20:03:13 +0000 | [diff] [blame^] | 31 | void setLockCredential(in String credential, int type, in String savedCredential, int userId); |
Ricky Wai | 4613fe4 | 2016-05-24 11:11:42 +0100 | [diff] [blame] | 32 | void resetKeyStore(int userId); |
Rubin Xu | 1de89b3 | 2016-11-30 20:03:13 +0000 | [diff] [blame^] | 33 | VerifyCredentialResponse checkCredential(in String credential, int type, int userId, |
Jorim Jaggi | e8fde5d | 2016-06-30 23:41:37 -0700 | [diff] [blame] | 34 | in ICheckCredentialProgressCallback progressCallback); |
Rubin Xu | 1de89b3 | 2016-11-30 20:03:13 +0000 | [diff] [blame^] | 35 | VerifyCredentialResponse verifyCredential(in String credential, int type, long challenge, int userId); |
| 36 | VerifyCredentialResponse verifyTiedProfileChallenge(String credential, int type, long challenge, int userId); |
Paul Lawrence | 945490c | 2014-03-27 16:37:28 +0000 | [diff] [blame] | 37 | boolean checkVoldPassword(int userId); |
Amith Yamasani | 52c489c | 2012-03-28 11:42:42 -0700 | [diff] [blame] | 38 | boolean havePattern(int userId); |
| 39 | boolean havePassword(int userId); |
Ricky Wai | dc283a8 | 2016-03-24 19:55:08 +0000 | [diff] [blame] | 40 | void setSeparateProfileChallengeEnabled(int userId, boolean enabled, String managedUserPassword); |
| 41 | boolean getSeparateProfileChallengeEnabled(int userId); |
Adrian Roos | b5e4722 | 2015-08-14 15:53:06 -0700 | [diff] [blame] | 42 | void registerStrongAuthTracker(in IStrongAuthTracker tracker); |
| 43 | void unregisterStrongAuthTracker(in IStrongAuthTracker tracker); |
| 44 | void requireStrongAuth(int strongAuthReason, int userId); |
Jim Miller | 4f93c58 | 2016-01-27 19:05:43 -0800 | [diff] [blame] | 45 | void systemReady(); |
Adrian Roos | 4ab7e59 | 2016-04-13 15:38:13 -0700 | [diff] [blame] | 46 | void userPresent(int userId); |
Victor Chang | a0940d3 | 2016-05-16 19:36:08 +0100 | [diff] [blame] | 47 | int getStrongAuthForUser(int userId); |
Amith Yamasani | 52c489c | 2012-03-28 11:42:42 -0700 | [diff] [blame] | 48 | } |