/packages/apps/Contacts/tests/src/com/android/contacts/tests/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/Contacts/src/com/android/contacts/list/ |
H A D | JoinContactLoader.java | 43 public void setProjection(String[] projection) { argument 44 super.setProjection(projection); 45 this.mProjection = projection;
|
H A D | ProfileAndContactsLoader.java | 47 public void setProjection(String[] projection) { argument 48 super.setProjection(projection); 49 mProjection = projection;
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
H A D | GalleryProvider.java | 117 public Cursor query(Uri uri, String[] projection, argument 129 projection, selection, selectionArgs, sortOrder); 132 projection, selection, selectionArgs, sortOrder); 141 private Cursor queryMtpItem(MtpImage image, String[] projection, argument 143 Object[] columnValues = new Object[projection.length]; 144 for (int i = 0, n = projection.length; i < n; ++i) { 145 String column = projection[i]; 158 MatrixCursor cursor = new MatrixCursor(projection); 163 private Cursor queryPicasaItem(MediaObject image, String[] projection, argument 165 if (projection [all...] |
/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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | MmsSmsProvider.java | 54 * requested in the projection for a query. Its value is either "mms" 284 public Cursor query(Uri uri, String[] projection, argument 290 cursor = getCompleteConversations(projection, selection, sortOrder); 301 projection, selection, selectionArgs, sortOrder); 304 projection, selection, sortOrder); 308 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, 313 uri.getPathSegments().get(1), projection, selection, 318 uri.getPathSegments().get(1), projection, selection, 323 uri.getPathSegments().get(2), projection, selection, sortOrder); 360 || projection ! 667 handleNullMessageProjection( String[] projection) argument 676 handleNullThreadsProjection( String[] projection) argument 692 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 714 getDraftThread(String[] projection, String selection, String sortOrder) argument 774 getConversations(String[] projection, String selection, String sortOrder) argument 827 getFirstLockedMessage(String[] projection, String selection, String sortOrder) argument 870 getCompleteConversations(String[] projection, String selection, String sortOrder) argument 883 makeProjectionWithDateAndThreadId( String[] projection, int dateMultiple) argument 899 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder) argument 934 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder) argument 983 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1022 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1079 makeProjectionWithNormalizedDate( String[] projection, int dateMultiple) argument 1089 buildConversationQuery(String[] projection, String selection, String sortOrder) argument [all...] |
/packages/apps/Exchange/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/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupport.java | 120 public ArrayList asList(String[] projection) { argument 132 if (projection == null) { 143 for (int i = 0; i < projection.length; i++) { 144 addColumnValue(list, projection[i]); 198 SQLiteDatabase db, Uri uri, String[] projection, String limit) { 213 db, projection, selection, searchClause, limit); 231 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection, argument 240 db, projection, ContactsColumns.CONCRETE_ID + "=" + contactId, filter, null); 303 String[] projection, String selection, String filter, String limit) { 305 projection ! 197 handleSearchSuggestionsQuery( SQLiteDatabase db, Uri uri, String[] projection, String limit) argument 302 buildCursorForSearchSuggestionsBasedOnFilter(SQLiteDatabase db, String[] projection, String selection, String filter, String limit) argument [all...] |
H A D | VoicemailTable.java | 40 public Cursor query(UriData uriData, String[] projection, String selection, argument
|
H A D | ContactsProvider2.java | 536 * If any of these columns are used in a Data projection, there is no point in 719 * query that uses this projection map. 4773 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 4784 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder); 4793 queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1)); 4796 queryLocal(uri, projection, selection, selectionArgs, sortOrder, 4800 queryLocal(uri, projection, selection, selectionArgs, sortOrder, 4828 if (projection == null) { 4829 projection = getDefaultProjection(uri); 4832 Cursor cursor = getContext().getContentResolver().query(directoryUri, projection, selectio 4974 hasColumn(String[] projection, String column) argument 4985 queryLocal(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, long directoryId) argument 5955 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String limit) argument 5973 queryProviderStatus(Uri uri, String[] projection) argument 5991 queryWithContactIdAndLookupKey(SQLiteQueryBuilder lookupQb, SQLiteDatabase db, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String limit, String contactIdColumn, long contactId, String lookupKeyColumn, String lookupKey) argument 6416 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, Uri uri, String[] projection) argument 6426 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean includeDataUsageStat) argument 6455 setTablesAndProjectionMapForContactsWithSnippet(SQLiteQueryBuilder qb, Uri uri, String[] projection, String filter, long directoryId, boolean deferredSnippeting) argument 6476 appendSearchIndexJoin( StringBuilder sb, Uri uri, String[] projection, String filter, boolean deferredSnippeting) argument 6684 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct) argument 6689 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns) argument 6698 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, Integer usageType) argument 6703 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns, Integer usageType) argument 6736 setTableAndProjectionMapForStatusUpdates(SQLiteQueryBuilder qb, String[] projection) argument 6767 setTablesAndProjectionMapForEntities(SQLiteQueryBuilder qb, Uri uri, String[] projection) argument 6783 appendContactStatusUpdateJoin(StringBuilder sb, String[] projection, String lastStatusUpdateIdColumn) argument 6798 appendDataStatusUpdateJoin(StringBuilder sb, String[] projection, String dataIdColumn) argument 6818 appendContactPresenceJoin(StringBuilder sb, String[] projection, String contactIdColumn) argument 6828 appendDataPresenceJoin(StringBuilder sb, String[] projection, String dataIdColumn) argument 7611 completeName(Uri uri, String[] projection) argument 7669 appendProjectionArg(String[] projection, String arg) argument 8021 snippetNeeded(String [] projection) argument [all...] |
H A D | ProfileProvider.java | 74 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 78 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1);
|
H A D | VoicemailStatusTable.java | 84 public Cursor query(UriData uriData, String[] projection, String selection, argument 93 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
|
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
H A D | Provider.java | 31 public Cursor query(Uri uri, String[] projection, argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocalAlbum.java | 145 String[] projection; 149 projection = LocalImage.PROJECTION; 153 projection = LocalVideo.PROJECTION; 159 Cursor cursor = resolver.query(baseUri, projection, "_id BETWEEN ? AND ?", 197 String[] projection, int id) { 198 return resolver.query(uri, projection, "_id=?", 196 getItemCursor(ContentResolver resolver, Uri uri, String[] projection, int id) argument
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | Utility.java | 659 String[] projection, String selection, String[] selectionArgs, String sortOrder, 663 Cursor c = context.getContentResolver().query(uri, projection, selection, selectionArgs, 680 public static Long getFirstRowLong(Context context, Uri uri, String[] projection, argument 682 return getFirstRowColumn(context, uri, projection, selection, selectionArgs, 689 public static Long getFirstRowLong(Context context, Uri uri, String[] projection, argument 692 return getFirstRowColumn(context, uri, projection, selection, selectionArgs, 699 public static Integer getFirstRowInt(Context context, Uri uri, String[] projection, argument 701 return getFirstRowColumn(context, uri, projection, selection, selectionArgs, 708 public static Integer getFirstRowInt(Context context, Uri uri, String[] projection, argument 711 return getFirstRowColumn(context, uri, projection, selectio 658 getFirstRowColumn(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, int column, T defaultValue, CursorGetter<T> getter) argument 718 getFirstRowString(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, int column) argument 727 getFirstRowString(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, int column, String defaultValue) argument 737 getFirstRowBlob(Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, int column, byte[] defaultValue) argument 813 getRowColumns(Context context, Uri contentUri, String[] projection, String selection, String[] selectionArgs) argument 837 getRowColumns(Context context, Uri baseUri, long id, String ... projection) argument [all...] |
/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/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/Contacts/src/com/android/contacts/ |
H A D | GroupMemberLoader.java | 89 private GroupMemberLoader(Context context, long groupId, String[] projection) { argument 93 setProjection(projection);
|
/packages/apps/Email/src/com/android/email/activity/ |
H A D | ShortcutPickerFragment.java | 119 public AccountPickerLoader(Context context, Uri uri, String[] projection, String selection, argument 121 super(context, uri, projection, selection, selectionArgs, sortOrder); 236 public MailboxPickerLoader(Context context, Uri uri, String[] projection, String selection, argument 238 super(context, uri, projection, selection, selectionArgs, sortOrder); 299 /** Loader projection used for IMAP & POP3 accounts */ 304 /** Loader projection used for EAS accounts */ 309 /** Loader projection used for a matrix cursor */ 378 final String[] projection; 382 projection = EAS_PROJECTION; 385 projection [all...] |
/packages/apps/HTMLViewer/src/com/android/htmlviewer/ |
H A D | FileContentProvider.java | 81 public Cursor query(Uri uri, String[] projection, String selection, argument
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/ |
H A D | CrashingIconProvider.java | 66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadProvider.java | 802 public Cursor query(final Uri uri, String[] projection, argument 819 if (projection != null || selection != null || sort != null) { 829 if (projection == null) { 830 projection = sAppReadableColumnsArray; 832 // check the validity of the columns in projection 833 for (int i = 0; i < projection.length; ++i) { 834 if (!sAppReadableColumnsSet.contains(projection[i]) && 835 !downloadManagerColumnsList.contains(projection[i])) { 837 "column " + projection[i] + " is not allowed in queries"); 844 logVerboseQueryInfo(projection, selectio 865 logVerboseQueryInfo(String[] projection, final String selection, final String[] selectionArgs, final String sort, SQLiteDatabase db) argument [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppProvider.java | 300 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 339 if (projection == null) { 340 sb.append("projection is null; "); 341 } else if (projection.length == 0) { 342 sb.append("projection is empty; "); 344 for (int i = 0; i < projection.length; ++i) { 345 sb.append("projection["); 348 sb.append(projection[i]); 374 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder);
|