Home | History | Annotate | Download | only in calllogbackup

Lines Matching refs:Calls

30 import android.provider.CallLog.Calls;
120 CallLog.Calls._ID,
121 CallLog.Calls.DATE,
122 CallLog.Calls.DURATION,
123 CallLog.Calls.NUMBER,
124 CallLog.Calls.POST_DIAL_DIGITS,
125 CallLog.Calls.VIA_NUMBER,
126 CallLog.Calls.TYPE,
127 CallLog.Calls.COUNTRY_ISO,
128 CallLog.Calls.GEOCODED_LOCATION,
129 CallLog.Calls.NUMBER_PRESENTATION,
130 CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME,
131 CallLog.Calls.PHONE_ACCOUNT_ID,
132 CallLog.Calls.PHONE_ACCOUNT_ADDRESS,
133 CallLog.Calls.DATA_USAGE,
134 CallLog.Calls.FEATURES,
135 CallLog.Calls.ADD_FOR_ALL_USERS,
150 // Get the list of the previous calls IDs which were backed up.
194 void runBackup(CallLogBackupState state, BackupDataOutput data, Iterable<Call> calls) {
198 // (1) new calls
199 // (2) calls which have been deleted.
200 for (Call call : calls) {
217 // Remove calls which no longer exist in the set.
229 List<Call> calls = new LinkedList<>();
236 CallLog.Calls.CONTENT_URI, CALL_LOG_PROJECTION, null, null, null);
242 calls.add(call);
250 return calls;
262 // We backup the calllog in the user running this backup agent, so write calls to this user.
263 Calls.addCall(null /* CallerInfo */, this, call.number, call.postDialDigits, call.viaNumber,
375 call.id = cursor.getInt(cursor.getColumnIndex(CallLog.Calls._ID));
376 call.date = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DATE));
377 call.duration = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DURATION));
378 call.number = cursor.getString(cursor.getColumnIndex(CallLog.Calls.NUMBER));
380 cursor.getColumnIndex(CallLog.Calls.POST_DIAL_DIGITS));
381 call.viaNumber = cursor.getString(cursor.getColumnIndex(CallLog.Calls.VIA_NUMBER));
382 call.type = cursor.getInt(cursor.getColumnIndex(CallLog.Calls.TYPE));
384 cursor.getInt(cursor.getColumnIndex(CallLog.Calls.NUMBER_PRESENTATION));
386 cursor.getString(cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_COMPONENT_NAME));
388 cursor.getString(cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_ID));
390 cursor.getString(cursor.getColumnIndex(CallLog.Calls.PHONE_ACCOUNT_ADDRESS));
391 call.dataUsage = cursor.getLong(cursor.getColumnIndex(CallLog.Calls.DATA_USAGE));
392 call.features = cursor.getInt(cursor.getColumnIndex(CallLog.Calls.FEATURES));
393 call.addForAllUsers = cursor.getInt(cursor.getColumnIndex(Calls.ADD_FOR_ALL_USERS));