Home
last modified time | relevance | path

Searched refs:projection (Results 1 – 25 of 49) sorted by relevance

12

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java254 public Cursor query(Uri uri, String[] projection, in query() argument
262 projection, selection, selectionArgs, sortOrder); in query()
273 projection, selection, selectionArgs, sortOrder); in query()
276 projection, selection, selectionArgs, sortOrder); in query()
281 uri.getPathSegments().get(1), projection, selection, in query()
286 uri.getPathSegments().get(1), projection, selection, in query()
291 uri.getPathSegments().get(1), projection, selection, in query()
296 uri.getPathSegments().get(2), projection, selection, in query()
328 || projection != null) { in query()
390 cursor = getUndeliveredMessages(projection, selection, in query()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DGlobalSearchSupport.java186 public ArrayList asList(String[] projection) { in asList() argument
190 if (projection == null) { in asList()
199 for (int i = 0; i < projection.length; i++) { in asList()
200 addColumnValue(list, projection[i]); in asList()
246 …public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, long contactId, String[] projection) { in handleSearchShortcutRefresh() argument
250 return buildCursorForSearchSuggestions(db, sb.toString(), projection); in handleSearchShortcutRefresh()
310 String[] projection) { in buildCursorForSearchSuggestions() argument
368 rows.add(suggestionList.get(i).asList(projection)); in buildCursorForSearchSuggestions()
371 return new ArrayListCursor(projection != null ? projection in buildCursorForSearchSuggestions()
DContactsProvider2.java3362 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
3379 return mDbHelper.getSyncState().query(db, projection, selection, selectionArgs, in query()
3383 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3389 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3405 setTablesAndProjectionMapForContacts(lookupQb, uri, projection); in query()
3409 Cursor c = query(db, lookupQb, projection, selection, selectionArgs, sortOrder, in query()
3418 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3433 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3456 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3460 if (projection != null) { in query()
[all …]
DCallLogProvider.java95 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
129 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder, null); in query()
/packages/apps/Email/src/com/android/exchange/
DAbstractSyncService.java338 protected String[] getRowColumns(Uri contentUri, String[] projection, String selection, in getRowColumns() argument
340 String[] values = new String[projection.length]; in getRowColumns()
342 Cursor c = cr.query(contentUri, projection, selection, selectionArgs, null); in getRowColumns()
345 for (int i = 0; i < projection.length; i++) { in getRowColumns()
362 protected String[] getRowColumns(Uri baseUri, long id, String ... projection) { in getRowColumns() argument
363 return getRowColumns(ContentUris.withAppendedId(baseUri, id), projection, null, null); in getRowColumns()
/packages/apps/Contacts/src/com/android/contacts/
DContactsListActivity.java1685 String[] projection = getProjectionForQuery(); in startQuery() local
1699 uri, projection, getContactSelection(), null, in startQuery()
1700 getSortOrder(projection)); in startQuery()
1708 projection, getContactSelection(), null, in startQuery()
1709 getSortOrder(projection)); in startQuery()
1715 projection, null, null, in startQuery()
1716 getSortOrder(projection)); in startQuery()
1721 projection, null, null, in startQuery()
1722 getSortOrder(projection)); in startQuery()
1727 mQueryHandler.startQuery(QUERY_TOKEN, null, uri, projection, null, null, in startQuery()
[all …]
/packages/apps/Email/src/com/android/email/provider/
DAttachmentProvider.java247 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
249 if (projection == null) { in query()
250 projection = in query()
280 MatrixCursor ret = new MatrixCursor(projection); in query()
281 Object[] values = new Object[projection.length]; in query()
282 for (int i = 0, count = projection.length; i < count; i++) { in query()
283 String column = projection[i]; in query()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java357 public Cursor query(final Uri uri, String[] projection, in query() argument
398 if (projection == null) { in query()
399 projection = sAppReadableColumnsArray; in query()
401 for (int i = 0; i < projection.length; ++i) { in query()
402 if (!sAppReadableColumnsSet.contains(projection[i])) { in query()
404 "column " + projection[i] + " is not allowed in queries"); in query()
417 if (projection == null) { in query()
419 } else if (projection.length == 0) { in query()
422 for (int i = 0; i < projection.length; ++i) { in query()
426 sb.append(projection[i]); in query()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java364 protected Cursor queryContact(long contactId, String[] projection) { in queryContact() argument
366 projection, null, null, null); in queryContact()
426 final String[] projection = new String[] { in assertStructuredName() local
431 Cursor c = mResolver.query(uri, projection, Data.MIMETYPE + "='" in assertStructuredName()
670 String[] projection) { in assertSelection() argument
692 … Cursor c = mResolver.query(uri, projection, sb.toString(), selectionArgs.toArray(new String[0]), in assertSelection()
723 String[] projection = new String[values.size()]; in buildProjection() local
725 for (int i = 0; i < projection.length; i++) { in buildProjection()
726 projection[i] = iter.next().getKey(); in buildProjection()
728 return projection; in buildProjection()
[all …]
DLegacyContactImporterTest.java203 … private void assertQueryResults(String fileName, Uri uri, String[] projection) throws Exception { in assertQueryResults() argument
205 String actual = dumpCursorToString(uri, projection).trim(); in assertQueryResults()
222 private String dumpCursorToString(Uri uri, String[] projection) { in dumpCursorToString() argument
223 Cursor c = mResolver.query(uri, projection, null, null, BaseColumns._ID); in dumpCursorToString()
DGlobalSearchSupportTest.java272 String[] projection = new String[]{ in assertSearchSuggestion() local
282 c = mResolver.query(refreshUri, projection, null, null, null); in assertSearchSuggestion()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java300 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
339 if (projection == null) { in query()
341 } else if (projection.length == 0) { in query()
344 for (int i = 0; i < projection.length; ++i) { in query()
348 sb.append(projection[i]); in query()
374 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/apps/Browser/src/com/android/browser/
DMostVisitedActivity.java105 String[] projection = new String[] { in MyAdapter() local
112 mCursor = managedQuery(Browser.BOOKMARKS_URI, projection, in MyAdapter()
DBrowserProvider.java766 String[] projection = null; in query() local
768 projection = new String[projectionIn.length + 1]; in query()
769 System.arraycopy(projectionIn, 0, projection, 0, projectionIn.length); in query()
770 projection[projectionIn.length] = "_id AS _id"; in query()
789 Cursor c = db.query(TABLE_NAMES[match % 10], projection, in query()
/packages/apps/Camera/src/com/android/camera/
DMovieViewControl.java147 String[] projection = new String[] { in getBookmark() local
153 mUri, projection, null, null, null); in getBookmark()
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java149 String[] projection = new String[] { in getBookmark() local
155 mUri, projection, null, null, null); in getBookmark()
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
DFileContentProvider.java74 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
/packages/apps/IM/src/com/android/im/provider/
DImps.java760 String[] projection) { in query() argument
761 return cr.query(CONTENT_URI, projection, null, null, null); in query()
765 String[] projection, String where, String orderBy) { in query() argument
766 return cr.query(CONTENT_URI, projection, where, in query()
1653 String[] projection = { NAME, VALUE }; in queryProviderSettings() local
1654 …Cursor c = cr.query(ContentUris.withAppendedId(CONTENT_URI, providerId), projection, null, null, n… in queryProviderSettings()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java104 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
134 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
/packages/apps/IM/src/com/android/im/app/
DContactView.java217 String[] projection = { Imps.GroupMembers.NICKNAME }; in queryGroupMembers() local
219 Cursor c = resolver.query(uri, projection, null, null, null); in queryGroupMembers()
DDatabaseUtils.java44 String[] projection, long providerId) { in queryAccountsForProvider() argument
47 Cursor c = cr.query(Imps.Account.CONTENT_URI, projection, where.toString(), null, null); in queryAccountsForProvider()
/packages/apps/GlobalSearch/src/com/android/globalsearch/
DStatsProvider.java44 …public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String… in query() argument
DSuggestionProvider.java145 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
/packages/apps/Phone/src/com/android/phone/
DBluetoothAtPhonebook.java93 String[] projection = {Calls.NUMBER}; in getLastDialledNumber() local
94 Cursor cursor = mContext.getContentResolver().query(Calls.CONTENT_URI, projection, in getLastDialledNumber()
/packages/apps/Music/src/com/android/music/
DTrackBrowserActivity.java1294 public String [] projection;
1304 public Cursor doQuery(Uri uri, String[] projection,
1313 args.projection = projection;
1318 startQuery(0, args, limituri, projection, selection, selectionArgs, orderBy);
1322 uri, projection, selection, selectionArgs, orderBy);
1331 startQuery(1, null, args.uri, args.projection, args.selection,

12