blob: 7e38194807bd20a36485aa7fd4c36a69ab4a0af0 [file] [log] [blame]
Dianne Hackbornd6847842010-01-12 18:14:19 -08001/*
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
18package android.app;
19
20import android.content.ComponentName;
21
22/**
23 * Internal IPC interface to the device policy service.
24 * {@hide}
25 */
26interface IDevicePolicyManager {
27 void setPasswordMode(in ComponentName who, int mode);
28 int getPasswordMode();
Dianne Hackbornd6847842010-01-12 18:14:19 -080029
30 void setMinimumPasswordLength(in ComponentName who, int length);
31 int getMinimumPasswordLength();
Dianne Hackbornd6847842010-01-12 18:14:19 -080032
Dianne Hackborndf83afa2010-01-20 13:37:26 -080033 boolean isActivePasswordSufficient();
Dianne Hackbornd6847842010-01-12 18:14:19 -080034 int getCurrentFailedPasswordAttempts();
35
Dianne Hackborndf83afa2010-01-20 13:37:26 -080036 boolean resetPassword(String password);
37
Dianne Hackbornd6847842010-01-12 18:14:19 -080038 void setMaximumTimeToLock(in ComponentName who, long timeMs);
39 long getMaximumTimeToLock();
40
Dianne Hackborndf83afa2010-01-20 13:37:26 -080041 void lockNow();
42
Dianne Hackbornd6847842010-01-12 18:14:19 -080043 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}