Home
last modified time | relevance | path

Searched refs:CallLogQuery (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/calllog/
DCallLogQuery.java25 public final class CallLogQuery { class
93 int section = cursor.getInt(CallLogQuery.SECTION); in isSectionHeader()
94 return section == CallLogQuery.SECTION_NEW_HEADER in isSectionHeader()
95 || section == CallLogQuery.SECTION_OLD_HEADER; in isSectionHeader()
99 int section = cursor.getInt(CallLogQuery.SECTION); in isNewSection()
100 return section == CallLogQuery.SECTION_NEW_ITEM in isNewSection()
101 || section == CallLogQuery.SECTION_NEW_HEADER; in isNewSection()
DCallLogAdapter.java437 final int section = c.getInt(CallLogQuery.SECTION); in bindView()
440 if (section == CallLogQuery.SECTION_NEW_HEADER in bindView()
441 || section == CallLogQuery.SECTION_OLD_HEADER) { in bindView()
446 section == CallLogQuery.SECTION_NEW_HEADER in bindView()
457 final String number = c.getString(CallLogQuery.NUMBER); in bindView()
458 final long date = c.getLong(CallLogQuery.DATE); in bindView()
459 final long duration = c.getLong(CallLogQuery.DURATION); in bindView()
460 final int callType = c.getInt(CallLogQuery.CALL_TYPE); in bindView()
461 final String countryIso = c.getString(CallLogQuery.COUNTRY_ISO); in bindView()
467 this, c.getPosition(), c.getLong(CallLogQuery.ID), count)); in bindView()
[all …]
DCallLogGroupBuilder.java71 cursor.copyStringToBuffer(CallLogQuery.NUMBER, firstNumber); in addGroups()
73 int firstCallType = cursor.getInt(CallLogQuery.CALL_TYPE); in addGroups()
75 cursor.copyStringToBuffer(CallLogQuery.NUMBER, currentNumber); in addGroups()
76 final int callType = cursor.getInt(CallLogQuery.CALL_TYPE); in addGroups()
80 if (CallLogQuery.isSectionHeader(cursor)) { in addGroups()
DCallLogQueryHandler.java117 new MatrixCursor(CallLogQuery.EXTENDED_PROJECTION); in createHeaderCursorFor()
129 return createHeaderCursorFor(CallLogQuery.SECTION_OLD_HEADER); in createOldCallsHeaderCursor()
134 return createHeaderCursorFor(CallLogQuery.SECTION_NEW_HEADER); in createNewCallsHeaderCursor()
186 CallLogQuery._PROJECTION, selection, selectionArgs.toArray(EMPTY_STRING_ARRAY), in fetchCalls()
258 cursor, CallLogQuery.SECTION_NAME, CallLogQuery.SECTION_NEW_ITEM); in onQueryComplete()
262 cursor, CallLogQuery.SECTION_NAME, CallLogQuery.SECTION_OLD_ITEM); in onQueryComplete()
DIntentProvider.java80 if (CallLogQuery.isSectionHeader(cursor)) {
86 String voicemailUri = cursor.getString(CallLogQuery.VOICEMAIL_URI);
98 ids[index] = cursor.getLong(CallLogQuery.ID);
DCallLogFragment.java292 String number = cursor.getString(CallLogQuery.NUMBER); in callSelectedEntry()
308 int callType = cursor.getInt(CallLogQuery.CALL_TYPE); in callSelectedEntry()
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/
DCallLogGroupBuilderTest.java172 mCursor = new MatrixCursor(CallLogQuery.EXTENDED_PROJECTION); in createCursor()
209 addCallLogEntry(number, type, CallLogQuery.SECTION_OLD_ITEM); in addOldCallLogEntry()
214 addCallLogEntry(number, type, CallLogQuery.SECTION_NEW_ITEM); in addNewCallLogEntry()
219 if (section != CallLogQuery.SECTION_NEW_ITEM in addCallLogEntry()
220 && section != CallLogQuery.SECTION_OLD_ITEM) { in addCallLogEntry()
225 values[CallLogQuery.ID] = mCursor.getPosition(); in addCallLogEntry()
226 values[CallLogQuery.NUMBER] = number; in addCallLogEntry()
227 values[CallLogQuery.CALL_TYPE] = type; in addCallLogEntry()
228 values[CallLogQuery.SECTION] = section; in addCallLogEntry()
234 addCallLogHeader(CallLogQuery.SECTION_OLD_HEADER); in addOldCallLogHeader()
[all …]
DCallLogQueryTestUtils.java34 assertEquals(CallLogQuery._PROJECTION.length, values.length); in createTestValues()
41 0L, null, 1, CallLogQuery.SECTION_OLD_ITEM in createTestExtendedValues()
43 Assert.assertEquals(CallLogQuery.EXTENDED_PROJECTION.length, values.length); in createTestExtendedValues()
DCallLogAdapterTest.java70 mCursor = new MatrixCursor(CallLogQuery.EXTENDED_PROJECTION); in setUp()
178 values[CallLogQuery.NUMBER] = TEST_NUMBER; in createCallLogEntry()
179 values[CallLogQuery.COUNTRY_ISO] = TEST_COUNTRY_ISO; in createCallLogEntry()
186 values[CallLogQuery.CACHED_NAME] = TEST_NAME; in createCallLogEntryWithCachedValues()
187 values[CallLogQuery.CACHED_NUMBER_TYPE] = TEST_NUMBER_TYPE; in createCallLogEntryWithCachedValues()
188 values[CallLogQuery.CACHED_NUMBER_LABEL] = TEST_NUMBER_LABEL; in createCallLogEntryWithCachedValues()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DCallLogActivityTests.java24 import com.android.contacts.calllog.CallLogQuery;
122 mCursor = new MatrixCursor(CallLogQuery.EXTENDED_PROJECTION); in setUp()
201 values[CallLogQuery.CACHED_FORMATTED_NUMBER] = TEST_FORMATTED_NUMBER; in testBindView_NumberOnlyDbCachedFormattedNumber()
421 return mCursor.getString(CallLogQuery.NUMBER); in getPhoneNumberForListEntry()
509 values[CallLogQuery.ID] = mIndex; in getValuesToInsert()
510 values[CallLogQuery.NUMBER] = number; in getValuesToInsert()
511 values[CallLogQuery.DATE] = date == NOW ? new Date().getTime() : date; in getValuesToInsert()
512 values[CallLogQuery.DURATION] = duration < 0 ? mRnd.nextInt(10 * 60) : duration; in getValuesToInsert()
516 values[CallLogQuery.CALL_TYPE] = type; in getValuesToInsert()
517 values[CallLogQuery.COUNTRY_ISO] = TEST_COUNTRY_ISO; in getValuesToInsert()
[all …]