return; VSyncRecord.SyncRecordKey key = new VSyncRecord.SyncRecordKey(account, authority); VSyncRecord.SyncExtras syncExtras = new VSyncRecord.SyncExtras(extras); int isSyncable = getIsSyncableAsUser(account, authority, userId);
return; VSyncRecord.SyncRecordKey key = new VSyncRecord.SyncRecordKey(account, authority); VSyncRecord.SyncExtras syncExtras = new VSyncRecord.SyncExtras(extras); int isSyncable = getIsSyncableAsUser(account, authority, userId);
return; VSyncRecord.SyncRecordKey key = new VSyncRecord.SyncRecordKey(account, authority); VSyncRecord.SyncExtras syncExtras = new VSyncRecord.SyncExtras(extras); int isSyncable = getIsSyncableAsUser(account, authority, userId);
public int getIsSyncableAsUser(Account account, String providerName, int userId) { VSyncRecord.SyncRecordKey key = new VSyncRecord.SyncRecordKey(account, providerName); synchronized (mRecords) { Map<VSyncRecord.SyncRecordKey, VSyncRecord> map = mRecords.get(userId); if (map == null) { return -1; } VSyncRecord record = map.get(key); if (record == null) { return -1; } return record.syncable; } }
public VSyncRecord(int userId, Account account, String authority) { this.userId = userId; key = new SyncRecordKey(account, authority); }
public int getIsSyncableAsUser(Account account, String providerName, int userId) { VSyncRecord.SyncRecordKey key = new VSyncRecord.SyncRecordKey(account, providerName); synchronized (mRecords) { Map<VSyncRecord.SyncRecordKey, VSyncRecord> map = mRecords.get(userId); if (map == null) { return -1; } VSyncRecord record = map.get(key); if (record == null) { return -1; } return record.syncable; } }
public VSyncRecord(int userId, Account account, String authority) { this.userId = userId; key = new SyncRecordKey(account, authority); }
public int getIsSyncableAsUser(Account account, String providerName, int userId) { VSyncRecord.SyncRecordKey key = new VSyncRecord.SyncRecordKey(account, providerName); synchronized (mRecords) { Map<VSyncRecord.SyncRecordKey, VSyncRecord> map = mRecords.get(userId); if (map == null) { return -1; } VSyncRecord record = map.get(key); if (record == null) { return -1; } return record.syncable; } }
public VSyncRecord(int userId, Account account, String authority) { this.userId = userId; key = new SyncRecordKey(account, authority); }