Home
last modified time | relevance | path

Searched refs:callsCursor (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/telecom/src/android/telecom/cts/
DThirdPartyCallScreeningServiceTest.java449 Cursor callsCursor = mContentResolver.query(CallLog.Calls.CONTENT_URI, null, in addIncomingAndVerifyAllowed() local
451 int numberIndex = callsCursor.getColumnIndex(CallLog.Calls.NUMBER); in addIncomingAndVerifyAllowed()
452 int callTypeIndex = callsCursor.getColumnIndex(CallLog.Calls.TYPE); in addIncomingAndVerifyAllowed()
453 int blockReasonIndex = callsCursor.getColumnIndex(CallLog.Calls.BLOCK_REASON); in addIncomingAndVerifyAllowed()
454 if (callsCursor.moveToNext()) { in addIncomingAndVerifyAllowed()
455 String number = callsCursor.getString(numberIndex); in addIncomingAndVerifyAllowed()
456 int callType = callsCursor.getInt(callTypeIndex); in addIncomingAndVerifyAllowed()
457 int blockReason = callsCursor.getInt(blockReasonIndex); in addIncomingAndVerifyAllowed()
474 Cursor callsCursor = mContentResolver.query(CallLog.Calls.CONTENT_URI, null, in addIncomingAndVerifyBlocked() local
476 int numberIndex = callsCursor.getColumnIndex(CallLog.Calls.NUMBER); in addIncomingAndVerifyBlocked()
[all …]
DConnectionServiceTest.java470 Cursor callsCursor = mContext.getContentResolver().query(CallLog.Calls.CONTENT_URI, in testCallLogForBlockedNumberIncomingCall() local
472 int numberIndex = callsCursor.getColumnIndex(CallLog.Calls.NUMBER); in testCallLogForBlockedNumberIncomingCall()
473 int callTypeIndex = callsCursor.getColumnIndex(CallLog.Calls.TYPE); in testCallLogForBlockedNumberIncomingCall()
474 int reasonIndex = callsCursor.getColumnIndex(CallLog.Calls.BLOCK_REASON); in testCallLogForBlockedNumberIncomingCall()
475 if (callsCursor.moveToNext()) { in testCallLogForBlockedNumberIncomingCall()
477 callsCursor.getString(numberIndex)); in testCallLogForBlockedNumberIncomingCall()
478 assertEquals(CallLog.Calls.BLOCKED_TYPE, callsCursor.getInt(callTypeIndex)); in testCallLogForBlockedNumberIncomingCall()
480 callsCursor.getInt(reasonIndex)); in testCallLogForBlockedNumberIncomingCall()
DSelfManagedConnectionServiceTest.java626 Cursor callsCursor = mContext.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, in testSelfManagedCallNotLogged() local
628 int numberIndex = callsCursor.getColumnIndex(CallLog.Calls.NUMBER); in testSelfManagedCallNotLogged()
631 if (callsCursor.moveToNext()) { in testSelfManagedCallNotLogged()
632 String number = callsCursor.getString(numberIndex); in testSelfManagedCallNotLogged()
639 if (callsCursor.moveToNext()) { in testSelfManagedCallNotLogged()
642 String number = callsCursor.getString(numberIndex); in testSelfManagedCallNotLogged()
DCallDetailsTest.java1136 Cursor callsCursor = mContext.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, in testLogFeatures() local
1138 callsCursor.moveToFirst(); in testLogFeatures()
1139 int features = callsCursor.getInt(callsCursor.getColumnIndex("features")); in testLogFeatures()
DBaseTelecomTestWithMockServices.java1373 Cursor callsCursor = mContext.getContentResolver().query(CallLog.Calls.CONTENT_URI, null, in getLatestCallLogCursorIfMatchesUri() local
1375 int numberIndex = callsCursor.getColumnIndex(CallLog.Calls.NUMBER); in getLatestCallLogCursorIfMatchesUri()
1376 if (callsCursor.moveToNext()) { in getLatestCallLogCursorIfMatchesUri()
1377 String number = callsCursor.getString(numberIndex); in getLatestCallLogCursorIfMatchesUri()
1379 return callsCursor; in getLatestCallLogCursorIfMatchesUri()