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 | |
Dianne Hackborn | 87bba1e | 2010-02-26 17:25:54 -0800 | [diff] [blame] | 18 | package android.app.admin; |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 19 | |
| 20 | import android.content.ComponentName; |
Adam Connors | 010cfd4 | 2014-04-16 12:48:13 +0100 | [diff] [blame] | 21 | import android.content.Intent; |
Sander Alewijnse | f475ca3 | 2014-02-17 15:13:58 +0000 | [diff] [blame] | 22 | import android.content.IntentFilter; |
Julia Reynolds | fca04ca | 2015-02-17 13:39:12 -0500 | [diff] [blame] | 23 | import android.graphics.Bitmap; |
Jason Monk | 03bc991 | 2014-05-13 09:44:57 -0400 | [diff] [blame] | 24 | import android.net.ProxyInfo; |
Robin Lee | 66e5d96 | 2014-04-09 16:44:21 +0100 | [diff] [blame] | 25 | import android.os.Bundle; |
Jim Miller | e303bf4 | 2014-08-26 17:12:29 -0700 | [diff] [blame] | 26 | import android.os.PersistableBundle; |
Dianne Hackborn | 8ea138c | 2010-01-26 18:01:04 -0800 | [diff] [blame] | 27 | import android.os.RemoteCallback; |
Julia Reynolds | 1e95839 | 2014-05-16 14:25:21 -0400 | [diff] [blame] | 28 | import android.os.UserHandle; |
Kenny Guy | fa80a4f | 2014-08-20 19:40:59 +0100 | [diff] [blame] | 29 | import java.util.List; |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 30 | |
| 31 | /** |
| 32 | * Internal IPC interface to the device policy service. |
| 33 | * {@hide} |
| 34 | */ |
| 35 | interface IDevicePolicyManager { |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 36 | void setPasswordQuality(in ComponentName who, int quality); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 37 | int getPasswordQuality(in ComponentName who, int userHandle); |
Konstantin Lopyrev | a15dcfa | 2010-05-24 17:10:56 -0700 | [diff] [blame] | 38 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 39 | void setPasswordMinimumLength(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 40 | int getPasswordMinimumLength(in ComponentName who, int userHandle); |
Konstantin Lopyrev | a15dcfa | 2010-05-24 17:10:56 -0700 | [diff] [blame] | 41 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 42 | void setPasswordMinimumUpperCase(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 43 | int getPasswordMinimumUpperCase(in ComponentName who, int userHandle); |
Konstantin Lopyrev | a15dcfa | 2010-05-24 17:10:56 -0700 | [diff] [blame] | 44 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 45 | void setPasswordMinimumLowerCase(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 46 | int getPasswordMinimumLowerCase(in ComponentName who, int userHandle); |
Konstantin Lopyrev | a15dcfa | 2010-05-24 17:10:56 -0700 | [diff] [blame] | 47 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 48 | void setPasswordMinimumLetters(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 49 | int getPasswordMinimumLetters(in ComponentName who, int userHandle); |
Konstantin Lopyrev | a15dcfa | 2010-05-24 17:10:56 -0700 | [diff] [blame] | 50 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 51 | void setPasswordMinimumNumeric(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 52 | int getPasswordMinimumNumeric(in ComponentName who, int userHandle); |
Konstantin Lopyrev | a15dcfa | 2010-05-24 17:10:56 -0700 | [diff] [blame] | 53 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 54 | void setPasswordMinimumSymbols(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 55 | int getPasswordMinimumSymbols(in ComponentName who, int userHandle); |
Konstantin Lopyrev | c857740 | 2010-06-04 17:15:02 -0700 | [diff] [blame] | 56 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 57 | void setPasswordMinimumNonLetter(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 58 | int getPasswordMinimumNonLetter(in ComponentName who, int userHandle); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 59 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 60 | void setPasswordHistoryLength(in ComponentName who, int length); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 61 | int getPasswordHistoryLength(in ComponentName who, int userHandle); |
Konstantin Lopyrev | 3255823 | 2010-05-20 16:18:05 -0700 | [diff] [blame] | 62 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 63 | void setPasswordExpirationTimeout(in ComponentName who, long expiration); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 64 | long getPasswordExpirationTimeout(in ComponentName who, int userHandle); |
Jim Miller | a4e28d1 | 2010-11-08 16:15:47 -0800 | [diff] [blame] | 65 | |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 66 | long getPasswordExpiration(in ComponentName who, int userHandle); |
Jim Miller | a4e28d1 | 2010-11-08 16:15:47 -0800 | [diff] [blame] | 67 | |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 68 | boolean isActivePasswordSufficient(int userHandle); |
| 69 | int getCurrentFailedPasswordAttempts(int userHandle); |
Amith Yamasani | 3a3d212 | 2014-10-29 11:41:31 -0700 | [diff] [blame] | 70 | int getProfileWithMinimumFailedPasswordsForWipe(int userHandle); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 71 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 72 | void setMaximumFailedPasswordsForWipe(in ComponentName admin, int num); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 73 | int getMaximumFailedPasswordsForWipe(in ComponentName admin, int userHandle); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 74 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 75 | boolean resetPassword(String password, int flags); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 76 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 77 | void setMaximumTimeToLock(in ComponentName who, long timeMs); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 78 | long getMaximumTimeToLock(in ComponentName who, int userHandle); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 79 | |
Dianne Hackborn | df83afa | 2010-01-20 13:37:26 -0800 | [diff] [blame] | 80 | void lockNow(); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 81 | |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 82 | void wipeData(int flags, int userHandle); |
Oscar Montemayor | 69238c6 | 2010-08-03 10:51:06 -0700 | [diff] [blame] | 83 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 84 | ComponentName setGlobalProxy(in ComponentName admin, String proxySpec, String exclusionList); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 85 | ComponentName getGlobalProxyAdmin(int userHandle); |
Jason Monk | 03bc991 | 2014-05-13 09:44:57 -0400 | [diff] [blame] | 86 | void setRecommendedGlobalProxy(in ComponentName admin, in ProxyInfo proxyInfo); |
Andy Stadler | 7b0f8f0 | 2011-01-12 14:59:52 -0800 | [diff] [blame] | 87 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 88 | int setStorageEncryption(in ComponentName who, boolean encrypt); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 89 | boolean getStorageEncryption(in ComponentName who, int userHandle); |
| 90 | int getStorageEncryptionStatus(int userHandle); |
Andy Stadler | 7b0f8f0 | 2011-01-12 14:59:52 -0800 | [diff] [blame] | 91 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 92 | void setCameraDisabled(in ComponentName who, boolean disabled); |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 93 | boolean getCameraDisabled(in ComponentName who, int userHandle); |
Ben Komalo | 2447edd | 2011-05-09 16:05:33 -0700 | [diff] [blame] | 94 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 95 | void setScreenCaptureDisabled(in ComponentName who, boolean disabled); |
Sander Alewijnse | d2a1eec | 2014-07-09 12:57:05 +0100 | [diff] [blame] | 96 | boolean getScreenCaptureDisabled(in ComponentName who, int userHandle); |
| 97 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 98 | void setKeyguardDisabledFeatures(in ComponentName who, int which); |
Jim Miller | 48b9b0d | 2012-09-19 23:16:50 -0700 | [diff] [blame] | 99 | int getKeyguardDisabledFeatures(in ComponentName who, int userHandle); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 100 | |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 101 | void setActiveAdmin(in ComponentName policyReceiver, boolean refreshing, int userHandle); |
| 102 | boolean isAdminActive(in ComponentName policyReceiver, int userHandle); |
| 103 | List<ComponentName> getActiveAdmins(int userHandle); |
| 104 | boolean packageHasActiveAdmins(String packageName, int userHandle); |
| 105 | void getRemoveWarning(in ComponentName policyReceiver, in RemoteCallback result, int userHandle); |
| 106 | void removeActiveAdmin(in ComponentName policyReceiver, int userHandle); |
| 107 | boolean hasGrantedPolicy(in ComponentName policyReceiver, int usesPolicy, int userHandle); |
Jim Miller | b8ec470 | 2012-08-31 17:19:10 -0700 | [diff] [blame] | 108 | |
Konstantin Lopyrev | c857740 | 2010-06-04 17:15:02 -0700 | [diff] [blame] | 109 | void setActivePasswordState(int quality, int length, int letters, int uppercase, int lowercase, |
Amith Yamasani | 599dd7c | 2012-09-14 23:20:08 -0700 | [diff] [blame] | 110 | int numbers, int symbols, int nonletter, int userHandle); |
| 111 | void reportFailedPasswordAttempt(int userHandle); |
| 112 | void reportSuccessfulPasswordAttempt(int userHandle); |
Amith Yamasani | 71e6c69 | 2013-03-24 17:39:28 -0700 | [diff] [blame] | 113 | |
Geoffrey Borggaard | 334c7e3 | 2013-08-08 14:31:36 -0400 | [diff] [blame] | 114 | boolean setDeviceOwner(String packageName, String ownerName); |
Amith Yamasani | 71e6c69 | 2013-03-24 17:39:28 -0700 | [diff] [blame] | 115 | boolean isDeviceOwner(String packageName); |
| 116 | String getDeviceOwner(); |
Geoffrey Borggaard | 334c7e3 | 2013-08-08 14:31:36 -0400 | [diff] [blame] | 117 | String getDeviceOwnerName(); |
Jason Monk | b0dced8 | 2014-06-06 14:36:20 -0400 | [diff] [blame] | 118 | void clearDeviceOwner(String packageName); |
Maggie Benthall | da51e68 | 2013-08-08 22:35:44 -0400 | [diff] [blame] | 119 | |
Amith Yamasani | bf3a946 | 2014-07-28 14:26:42 -0700 | [diff] [blame] | 120 | boolean setProfileOwner(in ComponentName who, String ownerName, int userHandle); |
| 121 | ComponentName getProfileOwner(int userHandle); |
Adam Connors | 776c555 | 2014-01-09 10:42:56 +0000 | [diff] [blame] | 122 | String getProfileOwnerName(int userHandle); |
Alexandra Gherghina | 512675b | 2014-04-02 11:23:54 +0100 | [diff] [blame] | 123 | void setProfileEnabled(in ComponentName who); |
Jessica Hummel | 1333ea1 | 2014-06-23 11:20:10 +0100 | [diff] [blame] | 124 | void setProfileName(in ComponentName who, String profileName); |
Amith Yamasani | bf3a946 | 2014-07-28 14:26:42 -0700 | [diff] [blame] | 125 | void clearProfileOwner(in ComponentName who); |
| 126 | boolean hasUserSetupCompleted(); |
Adam Connors | 776c555 | 2014-01-09 10:42:56 +0000 | [diff] [blame] | 127 | |
Robin Lee | 306fe08 | 2014-06-19 14:04:24 +0000 | [diff] [blame] | 128 | boolean installCaCert(in ComponentName admin, in byte[] certBuffer); |
| 129 | void uninstallCaCert(in ComponentName admin, in String alias); |
Esteban Talavera | 808f6ef | 2014-08-28 17:15:54 +0100 | [diff] [blame] | 130 | void enforceCanManageCaCerts(in ComponentName admin); |
Sander Alewijnse | f475ca3 | 2014-02-17 15:13:58 +0000 | [diff] [blame] | 131 | |
Bernhard Bauer | 26408cc | 2014-09-08 14:07:31 +0100 | [diff] [blame] | 132 | boolean installKeyPair(in ComponentName who, in byte[] privKeyBuffer, in byte[] certBuffer, String alias); |
Robin Lee | abf3570 | 2015-02-17 14:12:48 +0000 | [diff] [blame] | 133 | void choosePrivateKeyAlias(int uid, in String host, int port, in String url, in String alias, IBinder aliasCallback); |
Bernhard Bauer | 26408cc | 2014-09-08 14:07:31 +0100 | [diff] [blame] | 134 | |
Rubin Xu | ec32b56 | 2015-03-03 17:34:05 +0000 | [diff] [blame] | 135 | void setCertInstallerPackage(in ComponentName who, String installerPackage); |
| 136 | String getCertInstallerPackage(in ComponentName who); |
| 137 | |
Sander Alewijnse | f475ca3 | 2014-02-17 15:13:58 +0000 | [diff] [blame] | 138 | void addPersistentPreferredActivity(in ComponentName admin, in IntentFilter filter, in ComponentName activity); |
| 139 | void clearPackagePersistentPreferredActivities(in ComponentName admin, String packageName); |
Robin Lee | 66e5d96 | 2014-04-09 16:44:21 +0100 | [diff] [blame] | 140 | |
| 141 | void setApplicationRestrictions(in ComponentName who, in String packageName, in Bundle settings); |
| 142 | Bundle getApplicationRestrictions(in ComponentName who, in String packageName); |
Amith Yamasani | be46532 | 2014-04-24 13:45:17 -0700 | [diff] [blame] | 143 | |
Amith Yamasani | f20d640 | 2014-05-24 15:34:37 -0700 | [diff] [blame] | 144 | void setRestrictionsProvider(in ComponentName who, in ComponentName provider); |
| 145 | ComponentName getRestrictionsProvider(int userHandle); |
| 146 | |
Amith Yamasani | be46532 | 2014-04-24 13:45:17 -0700 | [diff] [blame] | 147 | void setUserRestriction(in ComponentName who, in String key, boolean enable); |
Nicolas Prevot | 8194899 | 2014-05-16 18:25:26 +0100 | [diff] [blame] | 148 | void addCrossProfileIntentFilter(in ComponentName admin, in IntentFilter filter, int flags); |
| 149 | void clearCrossProfileIntentFilters(in ComponentName admin); |
Adam Connors | 010cfd4 | 2014-04-16 12:48:13 +0100 | [diff] [blame] | 150 | |
Kenny Guy | fa80a4f | 2014-08-20 19:40:59 +0100 | [diff] [blame] | 151 | boolean setPermittedAccessibilityServices(in ComponentName admin,in List packageList); |
| 152 | List getPermittedAccessibilityServices(in ComponentName admin); |
| 153 | List getPermittedAccessibilityServicesForUser(int userId); |
| 154 | |
| 155 | boolean setPermittedInputMethods(in ComponentName admin,in List packageList); |
| 156 | List getPermittedInputMethods(in ComponentName admin); |
| 157 | List getPermittedInputMethodsForCurrentUser(); |
| 158 | |
Amith Yamasani | e5bcff6 | 2014-07-19 15:44:09 -0700 | [diff] [blame] | 159 | boolean setApplicationHidden(in ComponentName admin, in String packageName, boolean hidden); |
Amith Yamasani | e5bcff6 | 2014-07-19 15:44:09 -0700 | [diff] [blame] | 160 | boolean isApplicationHidden(in ComponentName admin, in String packageName); |
Julia Reynolds | 966881e | 2014-05-14 12:23:08 -0400 | [diff] [blame] | 161 | |
Julia Reynolds | 1e95839 | 2014-05-16 14:25:21 -0400 | [diff] [blame] | 162 | UserHandle createUser(in ComponentName who, in String name); |
Jason Monk | 03978a4 | 2014-06-10 15:05:30 -0400 | [diff] [blame] | 163 | UserHandle createAndInitializeUser(in ComponentName who, in String name, in String profileOwnerName, in ComponentName profileOwnerComponent, in Bundle adminExtras); |
Julia Reynolds | 1e95839 | 2014-05-16 14:25:21 -0400 | [diff] [blame] | 164 | boolean removeUser(in ComponentName who, in UserHandle userHandle); |
Jason Monk | 582d911 | 2014-07-09 19:57:08 -0400 | [diff] [blame] | 165 | boolean switchUser(in ComponentName who, in UserHandle userHandle); |
Julia Reynolds | 1e95839 | 2014-05-16 14:25:21 -0400 | [diff] [blame] | 166 | |
Adam Connors | 655be2a | 2014-07-14 09:01:25 +0000 | [diff] [blame] | 167 | void enableSystemApp(in ComponentName admin, in String packageName); |
| 168 | int enableSystemAppWithIntent(in ComponentName admin, in Intent intent); |
| 169 | |
Sander Alewijnse | 5c02db6 | 2014-05-07 10:46:57 +0100 | [diff] [blame] | 170 | void setAccountManagementDisabled(in ComponentName who, in String accountType, in boolean disabled); |
| 171 | String[] getAccountTypesWithManagementDisabled(); |
Alexandra Gherghina | 999d394 | 2014-07-03 11:40:08 +0100 | [diff] [blame] | 172 | String[] getAccountTypesWithManagementDisabledAsUser(int userId); |
justinzhang | 511e0d8 | 2014-03-24 16:09:24 -0400 | [diff] [blame] | 173 | |
Jason Monk | 48aacba | 2014-08-13 16:29:08 -0400 | [diff] [blame] | 174 | void setLockTaskPackages(in ComponentName who, in String[] packages); |
| 175 | String[] getLockTaskPackages(in ComponentName who); |
Jason Monk | d7b8621 | 2014-06-16 13:15:38 -0400 | [diff] [blame] | 176 | boolean isLockTaskPermitted(in String pkg); |
Julia Reynolds | da55165 | 2014-05-14 17:15:16 -0400 | [diff] [blame] | 177 | |
| 178 | void setGlobalSetting(in ComponentName who, in String setting, in String value); |
| 179 | void setSecureSetting(in ComponentName who, in String setting, in String value); |
Julia Reynolds | 4a21b25 | 2014-06-04 11:11:43 -0400 | [diff] [blame] | 180 | |
| 181 | void setMasterVolumeMuted(in ComponentName admin, boolean on); |
| 182 | boolean isMasterVolumeMuted(in ComponentName admin); |
Jason Monk | 35c62a4 | 2014-06-17 10:24:47 -0400 | [diff] [blame] | 183 | |
| 184 | void notifyLockTaskModeChanged(boolean isEnabled, String pkg, int userId); |
Kenny Guy | c13053b | 2014-05-29 14:17:17 +0100 | [diff] [blame] | 185 | |
Esteban Talavera | d5c5c13 | 2014-08-20 11:35:57 +0100 | [diff] [blame] | 186 | void setUninstallBlocked(in ComponentName admin, in String packageName, boolean uninstallBlocked); |
Esteban Talavera | 729b2a6 | 2014-08-27 18:01:58 +0100 | [diff] [blame] | 187 | boolean isUninstallBlocked(in ComponentName admin, in String packageName); |
Adam Connors | 210fe21 | 2014-07-17 15:41:43 +0100 | [diff] [blame] | 188 | |
| 189 | void setCrossProfileCallerIdDisabled(in ComponentName who, boolean disabled); |
| 190 | boolean getCrossProfileCallerIdDisabled(in ComponentName who); |
| 191 | boolean getCrossProfileCallerIdDisabledForUser(int userId); |
Makoto Onuki | 1040da1 | 2015-03-19 11:24:00 -0700 | [diff] [blame] | 192 | void startManagedQuickContact(String lookupKey, long contactId, in Intent originalIntent); |
Jim Miller | 604e755 | 2014-07-18 19:00:02 -0700 | [diff] [blame] | 193 | |
Ricky Wai | 778ba13 | 2015-03-31 14:21:22 +0100 | [diff] [blame] | 194 | void setBluetoothContactSharingDisabled(in ComponentName who, boolean disabled); |
| 195 | boolean getBluetoothContactSharingDisabled(in ComponentName who); |
| 196 | boolean getBluetoothContactSharingDisabledForUser(int userId); |
| 197 | |
Jim Miller | e303bf4 | 2014-08-26 17:12:29 -0700 | [diff] [blame] | 198 | void setTrustAgentConfiguration(in ComponentName admin, in ComponentName agent, |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 199 | in PersistableBundle args); |
Jim Miller | e303bf4 | 2014-08-26 17:12:29 -0700 | [diff] [blame] | 200 | List<PersistableBundle> getTrustAgentConfiguration(in ComponentName admin, |
| 201 | in ComponentName agent, int userId); |
Jim Miller | 604e755 | 2014-07-18 19:00:02 -0700 | [diff] [blame] | 202 | |
Svetoslav | 976e8bd | 2014-07-16 15:12:03 -0700 | [diff] [blame] | 203 | boolean addCrossProfileWidgetProvider(in ComponentName admin, String packageName); |
| 204 | boolean removeCrossProfileWidgetProvider(in ComponentName admin, String packageName); |
| 205 | List<String> getCrossProfileWidgetProviders(in ComponentName admin); |
Sander Alewijnse | 0ced627 | 2014-08-26 11:18:26 +0100 | [diff] [blame] | 206 | |
Fyodor Kupolov | bdc58c6 | 2015-01-29 13:24:03 -0800 | [diff] [blame] | 207 | void setAutoTimeRequired(in ComponentName who, boolean required); |
Sander Alewijnse | 0ced627 | 2014-08-26 11:18:26 +0100 | [diff] [blame] | 208 | boolean getAutoTimeRequired(); |
Fyodor Kupolov | 96fb932 | 2014-12-01 15:08:09 -0800 | [diff] [blame] | 209 | |
| 210 | boolean isRemovingAdmin(in ComponentName adminReceiver, int userHandle); |
Julia Reynolds | 20118f1 | 2015-02-11 12:34:08 -0500 | [diff] [blame] | 211 | |
| 212 | boolean setUserEnabled(in ComponentName who); |
| 213 | boolean isDeviceInitializer(String packageName); |
Julia Reynolds | 1c3754a | 2015-03-05 10:06:41 -0500 | [diff] [blame] | 214 | void clearDeviceInitializer(in ComponentName who); |
Julia Reynolds | 20118f1 | 2015-02-11 12:34:08 -0500 | [diff] [blame] | 215 | boolean setDeviceInitializer(in ComponentName who, in ComponentName initializer, String initializerName); |
| 216 | String getDeviceInitializer(); |
Julia Reynolds | eaafdf72 | 2015-04-02 08:49:47 -0400 | [diff] [blame] | 217 | ComponentName getDeviceInitializerComponent(); |
Julia Reynolds | fca04ca | 2015-02-17 13:39:12 -0500 | [diff] [blame] | 218 | |
| 219 | void setUserIcon(in ComponentName admin, in Bitmap icon); |
Craig Lafayette | dbe31a6 | 2015-04-02 13:14:39 -0400 | [diff] [blame] | 220 | |
| 221 | void sendDeviceInitializerStatus(int statusCode, String description); |
Rubin Xu | 5faad8e | 2015-04-20 17:43:48 +0100 | [diff] [blame] | 222 | void setSystemUpdatePolicy(in ComponentName who, in PersistableBundle policy); |
| 223 | PersistableBundle getSystemUpdatePolicy(); |
Benjamin Franz | e36087e | 2015-04-07 16:40:34 +0100 | [diff] [blame] | 224 | |
| 225 | boolean setKeyguardEnabledState(in ComponentName admin, boolean enabled); |
Benjamin Franz | ea2ec97 | 2015-03-16 17:18:09 +0000 | [diff] [blame] | 226 | void setStatusBarEnabledState(in ComponentName who, boolean enabled); |
Andrei Kapishnikov | 4eb6a36 | 2015-04-02 15:21:20 -0400 | [diff] [blame] | 227 | boolean getDoNotAskCredentialsOnBoot(); |
Dianne Hackborn | d684784 | 2010-01-12 18:14:19 -0800 | [diff] [blame] | 228 | } |