Lines Matching defs:key
198 String key = READ_PROFILE_PROTECTED_SETTINGS[i];
199 if (key.equals(requestedKey) && mContext.checkCallingOrSelfPermission(READ_PROFILE)
209 public void setBoolean(String key, boolean value, int userId) throws RemoteException {
211 setStringUnchecked(key, userId, value ? "1" : "0");
215 public void setLong(String key, long value, int userId) throws RemoteException {
217 setStringUnchecked(key, userId, Long.toString(value));
221 public void setString(String key, String value, int userId) throws RemoteException {
223 setStringUnchecked(key, userId, value);
226 private void setStringUnchecked(String key, int userId, String value) {
227 mStorage.writeKeyValue(key, value, userId);
231 public boolean getBoolean(String key, boolean defaultValue, int userId) throws RemoteException {
232 checkReadPermission(key, userId);
234 String value = mStorage.readKeyValue(key, null, userId);
240 public long getLong(String key, long defaultValue, int userId) throws RemoteException {
241 checkReadPermission(key, userId);
243 String value = mStorage.readKeyValue(key, null, userId);
248 public String getString(String key, String defaultValue, int userId) throws RemoteException {
249 checkReadPermission(key, userId);
251 return mStorage.readKeyValue(key, defaultValue, userId);