/packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
H A D | NoNullCursorAsyncQueryHandler.java | 36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, argument 38 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); 39 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs, 50 cursor = new EmptyCursor(projectionCookie.projection); 58 * Class to add projection to an existing cookie. 62 public final String[] projection; field in class:NoNullCursorAsyncQueryHandler.CookieWithProjection 64 public CookieWithProjection(Object cookie, String[] projection) { argument 66 this.projection = projection;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | DeletedContactUtil.java | 36 String[] projection = new String[]{ 40 Cursor cursor = resolver.query(uri, projection, null, null, null); 48 String[] projection = new String[] { 51 Cursor cursor = resolver.query(URI, projection, null, null, null); 64 public static List<String[]> query(ContentResolver resolver, String[] projection) { argument 65 Cursor cursor = resolver.query(URI, projection, null, null, null); 74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection, argument 78 Cursor cursor = resolver.query(URI, projection, selection, args, null);
|
H A D | ContactUtil.java | 45 String[] projection = new String[]{ 49 Cursor cursor = resolver.query(uri, projection, null, null, null); 57 String[] projection = new String[]{ 62 Cursor cursor = resolver.query(uri, projection, null, null, null);
|
H A D | RawContactUtil.java | 44 long rawContactId, String[] projection) { 47 Cursor cursor = resolver.query(uri, projection, null, null, null); 57 String[] projection) { 59 Cursor cursor = resolver.query(uri, projection, null, null, null); 73 String[] projection = new String[]{ 77 projection); 43 queryByRawContactId(ContentResolver resolver, long rawContactId, String[] projection) argument 56 queryByContactId(ContentResolver resolver, long contactId, String[] projection) argument
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | JoinContactLoader.java | 71 public void setProjection(String[] projection) { argument 72 super.setProjection(projection); 73 this.mProjection = projection;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
H A D | SharedImageProvider.java | 86 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { argument 91 if (projection == null) { 92 projection = new String[] { 105 MatrixCursor cursor = new MatrixCursor(projection); 106 Object[] columns = new Object[projection.length]; 107 for (int i = 0; i < projection.length; i++) { 108 if (projection[i].equalsIgnoreCase(BaseColumns._ID)) { 110 } else if (projection[i].equalsIgnoreCase(MediaStore.MediaColumns.DATA)) { 112 } else if (projection[i].equalsIgnoreCase(OpenableColumns.DISPLAY_NAME)) { 114 } else if (projection[ [all...] |
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
H A D | MockContentProvider.java | 67 public Query withProjection(String... projection) { argument 68 mProjection = projection; 72 public Query withDefaultProjection(String... projection) { argument 73 mDefaultProjection = projection; 123 public boolean equals(Uri uri, String[] projection, String selection, argument 129 if (!mAnyProjection && !equals(projection, mProjection)) { 178 public Cursor getResult(String[] projection) { argument 181 columnNames = projection; 192 Object[] columns = new Object[projection.length]; 193 for (int i = 0; i < projection 249 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 308 queryToString(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument [all...] |
/packages/apps/Email/src/com/android/email/data/ |
H A D | ThrottlingCursorLoader.java | 37 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection, argument 39 this(context, uri, projection, selection, selectionArgs, sortOrder, 44 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection, argument 46 super(context, uri, projection, selection, selectionArgs, sortOrder);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ProfileAndContactsLoader.java | 47 public void setProjection(String[] projection) { argument 48 super.setProjection(projection); 49 mProjection = projection;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupport.java | 86 public ArrayList<?> asList(String[] projection) { argument 100 if (projection == null) { 112 for (int i = 0; i < projection.length; i++) { 113 addColumnValue(list, projection[i]); 182 public Cursor handleSearchSuggestionsQuery(SQLiteDatabase db, Uri uri, String[] projection, argument 185 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection); 193 cursor, db, projection, selection, searchClause, limit, cancellationSignal); 209 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection, argument 218 projection 224 addSearchSuggestionsBasedOnFilter(MatrixCursor cursor, SQLiteDatabase db, String[] projection, String selection, String filter, String limit, CancellationSignal cancellationSignal) argument [all...] |
H A D | ProfileProvider.java | 76 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 78 return query(uri, projection, selection, selectionArgs, sortOrder, null); 82 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 85 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1,
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SqlInjectionDetectionTest.java | 97 private void assertQueryValid(final Uri uri, final String[] projection, argument 99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); 104 final String[] projection, final String selection, final String sortOrder) { 108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); 103 assertQueryThrows(Class<T> exception, final Uri uri, final String[] projection, final String selection, final String sortOrder) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
H A D | GalleryProvider.java | 114 public Cursor query(Uri uri, String[] projection, argument 126 projection, selection, selectionArgs, sortOrder); 135 private Cursor queryPicasaItem(MediaObject image, String[] projection, argument 137 if (projection == null) projection = SUPPORTED_PICASA_COLUMNS; 138 Object[] columnValues = new Object[projection.length]; 143 for (int i = 0, n = projection.length; i < n; ++i) { 144 String column = projection[i]; 167 MatrixCursor cursor = new MatrixCursor(projection);
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | MmsSmsProvider.java | 55 * requested in the projection for a query. Its value is either "mms" 295 public Cursor query(Uri uri, String[] projection, argument 301 cursor = getCompleteConversations(projection, selection, sortOrder); 312 projection, selection, selectionArgs, sortOrder); 315 projection, selection, sortOrder); 319 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, 324 uri.getPathSegments().get(1), projection, selection, 329 uri.getPathSegments().get(1), projection, selection, 334 uri.getPathSegments().get(2), projection, selection, sortOrder); 370 || projection ! 694 handleNullMessageProjection( String[] projection) argument 703 handleNullThreadsProjection( String[] projection) argument 719 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 741 getDraftThread(String[] projection, String selection, String sortOrder) argument 801 getConversations(String[] projection, String selection, String sortOrder) argument 854 getFirstLockedMessage(String[] projection, String selection, String sortOrder) argument 897 getCompleteConversations(String[] projection, String selection, String sortOrder) argument 910 makeProjectionWithDateAndThreadId( String[] projection, int dateMultiple) argument 926 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder) argument 961 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder) argument 1010 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1049 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1106 makeProjectionWithNormalizedDate( String[] projection, int dateMultiple) argument 1116 buildConversationQuery(String[] projection, String selection, String sortOrder) argument [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
H A D | ExchangeDirectoryProvider.java | 94 GalProjection(String[] projection) { argument 95 size = projection.length; 96 for (int i = 0; i < projection.length; i++) { 97 columnMap.put(projection[i], i); 107 GalContactRow(GalProjection projection, long contactId, String lookupKey, argument 109 this.mProjection = projection; 110 row = new Object[projection.size]; 155 static void addPhoneRow(MatrixCursor cursor, GalProjection projection, long contactId, argument 159 projection, contactId, lookupKey, accountName, displayName); 199 public Cursor query(Uri uri, String[] projection, Strin argument 342 buildGalResultCursor(String[] projection, GalResult galResult) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | QueryService.java | 58 final String projection = intent.getStringExtra(EXTRA_PROJECTION); 63 Log.i(TAG, "Projection: " + projection); 67 Cursor c = getContentResolver().query(uri, parseProjection(projection), selection, null,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
H A D | DumpFileProvider.java | 96 final String[] projection = (inProjection != null) ? inProjection 99 final MatrixCursor c = new MatrixCursor(projection); 105 final String column = projection[i];
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | SaveVideoFileUtils.java | 61 String[] projection, ContentResolverQueryCallback callback) { 64 cursor = contentResolver.query(uri, projection, null, null, null); 108 String[] projection = new String[] { 116 querySource(contentResolver, uri, projection, 60 querySource(ContentResolver contentResolver, Uri uri, String[] projection, ContentResolverQueryCallback callback) argument
|
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
H A D | Provider.java | 31 public Cursor query(Uri uri, String[] projection, argument
|
/packages/apps/Email/src/com/android/email/provider/ |
H A D | AttachmentProvider.java | 243 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 247 if (projection == null) { 248 projection = 278 MatrixCursor ret = new MatrixCursor(projection); 279 Object[] values = new Object[projection.length]; 280 for (int i = 0, count = projection.length; i < count; i++) { 281 String column = projection[i];
|
H A D | ContentCache.java | 47 * ContentCache cache = new ContentCache(name, projection, max); 50 * Cursor cursor = cache.getCursor(id, projection); 56 * Only cursors with the projection given in the definition of the cache can be cached 105 // The base projection (only queries in which all columns exist in this projection will be 406 * @param baseProjection the projection used for cached cursors; queries whose columns are not 430 * Return the base projection for cached rows 431 * Get the projection used for cached rows (typically, the largest possible projection) 466 * Try to cache a cursor for the given id and projection; return 474 putCursor(Cursor c, String id, String[] projection, CacheToken token) argument 481 putCursorImpl(Cursor c, String id, String[] projection, CacheToken token) argument 515 getCachedCursor(String id, String[] projection) argument 537 getMatrixCursor(String id, String[] projection) argument 541 getMatrixCursor(String id, String[] projection, ContentValues values) argument [all...] |
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/ |
H A D | MockProvider.java | 139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 141 if (selection != null || selectionArgs != null || sortOrder != null || projection == null) { 165 MatrixCursor cursor = new MatrixCursor(projection, 1); 167 Object[] rowValues = new Object[projection.length]; 169 for (String column: projection) {
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
H A D | MockProvider.java | 139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 141 if (selection != null || selectionArgs != null || sortOrder != null || projection == null) { 165 MatrixCursor cursor = new MatrixCursor(projection, 1); 167 Object[] rowValues = new Object[projection.length]; 169 for (String column: projection) {
|
/packages/apps/Gallery2/tests/src/com/android/photos/data/ |
H A D | PhotoDatabaseTest.java | 217 private void validateTable(String table, String[] projection) { argument 219 Cursor cursor = db.query(table, projection, null, null, null, null, null); 222 assertEquals(cursor.getColumnCount(), projection.length); 223 for (int i = 0; i < projection.length; i++) { 224 assertEquals(cursor.getColumnName(i), projection[i]);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocalAlbum.java | 172 String[] projection; 176 projection = LocalImage.PROJECTION; 180 projection = LocalVideo.PROJECTION; 186 Cursor cursor = resolver.query(baseUri, projection, "_id BETWEEN ? AND ?", 224 String[] projection, int id) { 225 return resolver.query(uri, projection, "_id=?", 223 getItemCursor(ContentResolver resolver, Uri uri, String[] projection, int id) argument
|