Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 1 | /* |
| 2 | ** |
| 3 | ** Copyright 2010, 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 | |
| 18 | package android.app; |
| 19 | |
| 20 | import android.content.ComponentName; |
| 21 | |
| 22 | /** |
| 23 | * Internal IPC interface to the device policy service. |
| 24 | * {@hide} |
| 25 | */ |
| 26 | interface IDevicePolicyManager { |
| 27 | void setPasswordMode(in ComponentName who, int mode); |
| 28 | int getPasswordMode(); |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 29 | |
| 30 | void setMinimumPasswordLength(in ComponentName who, int length); |
| 31 | int getMinimumPasswordLength(); |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 32 | |
Dianne Hackborn | df83afa | 2010-01-20 13:37:26 -0800 | [diff] [blame] | 33 | boolean isActivePasswordSufficient(); |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 34 | int getCurrentFailedPasswordAttempts(); |
| 35 | |
Dianne Hackborn | df83afa | 2010-01-20 13:37:26 -0800 | [diff] [blame] | 36 | boolean resetPassword(String password); |
| 37 | |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 38 | void setMaximumTimeToLock(in ComponentName who, long timeMs); |
| 39 | long getMaximumTimeToLock(); |
| 40 | |
Dianne Hackborn | df83afa | 2010-01-20 13:37:26 -0800 | [diff] [blame] | 41 | void lockNow(); |
| 42 | |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 43 | void wipeData(int flags); |
| 44 | |
| 45 | void setActiveAdmin(in ComponentName policyReceiver); |
| 46 | ComponentName getActiveAdmin(); |
| 47 | void removeActiveAdmin(in ComponentName policyReceiver); |
| 48 | |
| 49 | void setActivePasswordState(int mode, int length); |
| 50 | void reportFailedPasswordAttempt(); |
| 51 | void reportSuccessfulPasswordAttempt(); |
| 52 | } |