Home
last modified time | relevance | path

Searched refs:Projections (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DCp2Contact.java21 import com.android.dialer.searchfragment.common.Projections;
97 .setPhoneId(cursor.getLong(Projections.CONTACT_ID)) in fromCursor()
98 .setPhoneType(cursor.getInt(Projections.PHONE_TYPE)) in fromCursor()
99 .setPhoneLabel(cursor.getString(Projections.PHONE_LABEL)) in fromCursor()
100 .setPhoneNumber(cursor.getString(Projections.PHONE_NUMBER)) in fromCursor()
101 .setDisplayName(cursor.getString(Projections.DISPLAY_NAME)) in fromCursor()
102 .setPhotoId(cursor.getInt(Projections.PHOTO_ID)) in fromCursor()
103 .setPhotoUri(cursor.getString(Projections.PHOTO_URI)) in fromCursor()
104 .setLookupKey(cursor.getString(Projections.LOOKUP_KEY)) in fromCursor()
105 .setCarrierPresence(cursor.getInt(Projections.CARRIER_PRESENCE)) in fromCursor()
[all …]
DSearchContactViewHolder.java41 import com.android.dialer.searchfragment.common.Projections;
98 number = cursor.getString(Projections.PHONE_NUMBER); in bind()
99 String name = cursor.getString(Projections.DISPLAY_NAME); in bind()
116 String photoUri = cursor.getString(Projections.PHOTO_URI); in bind()
121 cursor.getLong(Projections.PHOTO_ID), in bind()
134 String currentLookupKey = cursor.getString(Projections.LOOKUP_KEY); in shouldShowPhoto()
138 String previousLookupKey = cursor.getString(Projections.LOOKUP_KEY); in shouldShowPhoto()
147 long contactId = cursor.getLong(Projections.ID); in getContactUri()
148 String lookupKey = cursor.getString(Projections.LOOKUP_KEY); in getContactUri()
155 int numberType = cursor.getInt(Projections.PHONE_TYPE); in getLabel()
[all …]
DSearchContactsCursorLoader.java34 import com.android.dialer.searchfragment.common.Projections;
64 ? Projections.CP2_PROJECTION in getProjection()
65 : Projections.CP2_PROJECTION_ALTERNATIVE; in getProjection()
69 String where = getProjection(context)[Projections.DISPLAY_NAME] + " IS NOT NULL"; in getWhere()
110 return new SmartDialCursor(new Cursor[] {new MatrixCursor(Projections.CP2_PROJECTION)}); in newInstance()
139 MatrixCursor cursor = new MatrixCursor(Projections.CP2_PROJECTION); in convertSmartDialCursorToSearchCursor()
145 Object[] newRow = new Object[Projections.CP2_PROJECTION.length]; in convertSmartDialCursorToSearchCursor()
146 for (int i = 0; i < Projections.CP2_PROJECTION.length; i++) { in convertSmartDialCursorToSearchCursor()
147 String column = Projections.CP2_PROJECTION[i]; in convertSmartDialCursorToSearchCursor()
181 return new RegularSearchCursor(new Cursor[] {new MatrixCursor(Projections.CP2_PROJECTION)}); in newInstance()
DContactFilterCursor.java36 import com.android.dialer.searchfragment.common.Projections;
131 MatrixCursor newCursor = new MatrixCursor(Projections.CP2_PROJECTION, coalescedContacts.size()); in createCursor()
255 addMatches(context, queryMatches, cursor.getString(Projections.DISPLAY_NAME)); in buildContactSearchTree()
256 addMatches(context, queryMatches, cursor.getString(Projections.COMPANY_NAME)); in buildContactSearchTree()
257 addMatches(context, queryMatches, cursor.getString(Projections.NICKNAME)); in buildContactSearchTree()
261 String number = QueryFilteringUtil.digitsOnly(cursor.getString(Projections.PHONE_NUMBER)); in buildContactSearchTree()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/directories/
DDirectoryContactViewHolder.java35 import com.android.dialer.searchfragment.common.Projections;
71 number = cursor.getString(Projections.PHONE_NUMBER); in bind()
73 String name = cursor.getString(Projections.DISPLAY_NAME); in bind()
90 String photoUri = cursor.getString(Projections.PHOTO_URI); in bind()
95 cursor.getLong(Projections.PHOTO_ID), in bind()
108 String currentLookupKey = cursor.getString(Projections.LOOKUP_KEY); in shouldShowPhoto()
112 String previousLookupKey = cursor.getString(Projections.LOOKUP_KEY); in shouldShowPhoto()
122 int numberType = cursor.getInt(Projections.PHONE_TYPE); in getLabel()
123 String numberLabel = cursor.getString(Projections.PHONE_LABEL); in getLabel()
133 String lookupKey = cursor.getString(Projections.LOOKUP_KEY); in getContactUri()
DDirectoryContactsCursorLoader.java29 import com.android.dialer.searchfragment.common.Projections;
58 Projections.DATA_PROJECTION, in DirectoryContactsCursorLoader()
109 String number = cursor.getString(Projections.PHONE_NUMBER); in createMatrixCursorFilteringNullNumbers()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/nearbyplaces/
DNearbyPlaceViewHolder.java30 import com.android.dialer.searchfragment.common.Projections;
64 number = cursor.getString(Projections.PHONE_NUMBER); in bind()
66 String name = cursor.getString(Projections.DISPLAY_NAME); in bind()
67 String address = cursor.getString(Projections.PHONE_LABEL); in bind()
71 String photoUri = cursor.getString(Projections.PHOTO_URI); in bind()
76 cursor.getLong(Projections.PHOTO_ID), in bind()
86 String businessInfoJson = cursor.getString(Projections.LOOKUP_KEY); in getContactUri()
DNearbyPlacesCursorLoader.java27 import com.android.dialer.searchfragment.common.Projections;
43 super(context, getContentUri(context, query), Projections.DATA_PROJECTION, null, null, null); in NearbyPlacesCursorLoader()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DGroupsTest.java115 Projections.PROJ_SUMMARY, null, null, null); in testGroupSummary()
121 final long groupId = cursor.getLong(Projections.COL_ID); in testGroupSummary()
122 final int summaryCount = cursor.getInt(Projections.COL_SUMMARY_COUNT); in testGroupSummary()
123 final int summaryWithPhones = cursor.getInt(Projections.COL_SUMMARY_WITH_PHONES); in testGroupSummary()
215 private interface Projections { interface in GroupsTest
DContactsActor.java717 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_RAW_CONTACTS, null, in getContactForRawContact()
723 final long aggId = cursor.getLong(Projections.COL_CONTACTS_ID); in getContactForRawContact()
732 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForContact()
743 final Cursor cursor = resolver.query(contactUri, Projections.PROJ_ID, null, null, in getDataCountForRawContact()
795 private interface Projections { interface in ContactsActor
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForGroupMembership.java30 import com.android.providers.contacts.ContactsDatabaseHelper.Projections;
231 Cursor c = db.query(Tables.GROUPS, Projections.ID,
DContactsProvider2.java145 import com.android.providers.contacts.ContactsDatabaseHelper.Projections;
3606 Cursor c = db.query(Views.GROUPS, Projections.ID, in deleteInTransaction()
3827 Cursor c = db.query(Tables.RAW_CONTACTS, Projections.LITERAL_ONE, in rawContactIsLocal()
3855 Views.STREAM_ITEMS, Projections.ID, selection, selectionArgs, null, null, null); in deleteStreamItems()
4399 Projections.ID, selection, in updateRawContacts()
DContactsDatabaseHelper.java362 public interface Projections { interface in ContactsDatabaseHelper
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DProjections.java23 public class Projections { class