Lines Matching refs:key
62 private static final String LOCK_PATTERN_FILE = "gesture.key";
63 private static final String LOCK_PASSWORD_FILE = "password.key";
125 public void setBoolean(String key, boolean value, int userId) throws RemoteException {
128 writeToDb(key, value ? "1" : "0", userId);
132 public void setLong(String key, long value, int userId) throws RemoteException {
135 writeToDb(key, Long.toString(value), userId);
139 public void setString(String key, String value, int userId) throws RemoteException {
142 writeToDb(key, value, userId);
146 public boolean getBoolean(String key, boolean defaultValue, int userId) throws RemoteException {
149 String value = readFromDb(key, null, userId);
155 public long getLong(String key, long defaultValue, int userId) throws RemoteException {
158 String value = readFromDb(key, null, userId);
163 public String getString(String key, String defaultValue, int userId) throws RemoteException {
166 return readFromDb(key, defaultValue, userId);
309 private void writeToDb(String key, String value, int userId) {
310 writeToDb(mOpenHelper.getWritableDatabase(), key, value, userId);
313 private void writeToDb(SQLiteDatabase db, String key, String value, int userId) {
315 cv.put(COLUMN_KEY, key);
322 new String[] {key, Integer.toString(userId)});
330 private String readFromDb(String key, String defaultValue, int userId) {
336 new String[] { Integer.toString(userId), key },