Lines Matching defs:accountId
343 final long accountId = cursor.getLong(0);
350 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null);
552 long accountId = db.insert(TABLE_ACCOUNTS, ACCOUNTS_NAME, values);
553 if (accountId < 0) {
561 if (insertExtraLocked(db, accountId, key, value) < 0) {
578 private long insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) {
581 values.put(EXTRAS_ACCOUNTS_ID, accountId);
819 long accountId = getAccountIdLocked(db, account);
820 if (accountId < 0) {
824 AUTHTOKENS_ACCOUNTS_ID + "=" + accountId + " AND " + AUTHTOKENS_TYPE + "=?",
827 values.put(AUTHTOKENS_ACCOUNTS_ID, accountId);
907 final long accountId = getAccountIdLocked(db, account);
908 if (accountId >= 0) {
909 final String[] argsAccountId = {String.valueOf(accountId)};
973 long accountId = getAccountIdLocked(db, account);
974 if (accountId < 0) {
977 long extrasId = getExtrasIdLocked(db, accountId, key);
979 extrasId = insertExtraLocked(db, accountId, key, value);
1635 private long getExtrasIdLocked(SQLiteDatabase db, long accountId, String key) {
1637 EXTRAS_ACCOUNTS_ID + "=" + accountId + " AND " + EXTRAS_KEY + "=?",
2336 long accountId = getAccountIdLocked(db, account);
2337 if (accountId >= 0) {
2339 values.put(GRANTS_ACCOUNTS_ID, accountId);
2371 long accountId = getAccountIdLocked(db, account);
2372 if (accountId >= 0) {
2376 new String[]{String.valueOf(accountId), authTokenType,