Lines Matching defs:key

80     private static final String LOCK_PATTERN_FILE = "gesture.key";
81 private static final String LOCK_PASSWORD_FILE = "password.key";
167 String key = READ_PROFILE_PROTECTED_SETTINGS[i];
168 if (key.equals(requestedKey) && mContext.checkCallingOrSelfPermission(READ_PROFILE)
178 public void setBoolean(String key, boolean value, int userId) throws RemoteException {
181 writeToDb(key, value ? "1" : "0", userId);
185 public void setLong(String key, long value, int userId) throws RemoteException {
188 writeToDb(key, Long.toString(value), userId);
192 public void setString(String key, String value, int userId) throws RemoteException {
195 writeToDb(key, value, userId);
199 public boolean getBoolean(String key, boolean defaultValue, int userId) throws RemoteException {
200 checkReadPermission(key, userId);
202 String value = readFromDb(key, null, userId);
208 public long getLong(String key, long defaultValue, int userId) throws RemoteException {
209 checkReadPermission(key, userId);
211 String value = readFromDb(key, null, userId);
216 public String getString(String key, String defaultValue, int userId) throws RemoteException {
217 checkReadPermission(key, userId);
219 return readFromDb(key, defaultValue, userId);
266 // switching key guard type
391 private void writeToDb(String key, String value, int userId) {
392 writeToDb(mOpenHelper.getWritableDatabase(), key, value, userId);
395 private void writeToDb(SQLiteDatabase db, String key, String value, int userId) {
397 cv.put(COLUMN_KEY, key);
404 new String[] {key, Integer.toString(userId)});
412 private String readFromDb(String key, String defaultValue, int userId) {
418 new String[] { Integer.toString(userId), key },
491 private void loadSetting(SQLiteDatabase db, String key, int userId, boolean value) {
496 stmt.bindString(1, key);