/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | LegacyApiSupport.java | 1613 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 1619 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); 1620 qb.setProjectionMap(sPeopleProjectionMap); 1621 applyRawContactsAccount(qb); 1626 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); 1627 qb.setProjectionMap(sPeopleProjectionMap); 1628 applyRawContactsAccount(qb); 1629 qb.appendWhere(" AND " + People._ID + "="); 1630 qb.appendWhere(uri.getPathSegments().get(1)); 1634 qb 1929 applyRawContactsAccount(SQLiteQueryBuilder qb) argument 1947 applyGroupAccount(SQLiteQueryBuilder qb) argument [all...] |
H A D | VoicemailStatusTable.java | 87 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 88 qb.setTables(mTableName); 89 qb.setProjectionMap(sStatusProjectionMap); 90 qb.setStrict(true); 94 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
|
H A D | ContactsProvider2.java | 4931 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 4948 setTablesAndProjectionMapForContacts(qb, uri, projection); 4949 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); 4955 setTablesAndProjectionMapForContacts(qb, uri, projection); 4957 qb.appendWhere(Contacts._ID + "=?"); 4985 setTablesAndProjectionMapForContacts(qb, uri, projection); 4988 qb.appendWhere(Contacts._ID + "=?"); 5022 setTablesAndProjectionMapForData(qb, uri, projection, false); 5027 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); 5029 qb 6029 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String having, String limit, CancellationSignal cancellationSignal) argument 6087 bundleFastScrollingIndexExtras(Cursor cursor, Uri queryUri, final SQLiteDatabase db, SQLiteQueryBuilder qb, String selection, String[] selectionArgs, String sortOrder, String countExpression, CancellationSignal cancellationSignal) argument 6161 getFastScrollingIndexExtras(final Uri queryUri, final SQLiteDatabase db, final SQLiteQueryBuilder qb, final String selection, final String[] selectionArgs, final String sortOrder, String countExpression, final CancellationSignal cancellationSignal, final Locale currentLocale) argument 6528 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, Uri uri, String[] projection) argument 6538 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean includeDataUsageStat) argument 6567 setTablesAndProjectionMapForContactsWithSnippet(SQLiteQueryBuilder qb, Uri uri, String[] projection, String filter, long directoryId, boolean deferSnippeting) argument 6790 setTablesAndProjectionMapForRawContacts(SQLiteQueryBuilder qb, Uri uri) argument 6798 setTablesAndProjectionMapForRawEntities(SQLiteQueryBuilder qb, Uri uri) argument 6804 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct) argument 6809 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns) argument 6818 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, Integer usageType) argument 6823 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns, Integer usageType) argument 6856 setTableAndProjectionMapForStatusUpdates(SQLiteQueryBuilder qb, String[] projection) argument 6868 setTablesAndProjectionMapForStreamItems(SQLiteQueryBuilder qb) argument 6873 setTablesAndProjectionMapForStreamItemPhotos(SQLiteQueryBuilder qb) argument 6887 setTablesAndProjectionMapForEntities(SQLiteQueryBuilder qb, Uri uri, String[] projection) argument 6957 appendLocalDirectoryAndAccountSelectionIfNeeded(SQLiteQueryBuilder qb, long directoryId, Uri uri) argument 6989 appendAccountFromParameter(SQLiteQueryBuilder qb, Uri uri) argument 7013 appendAccountIdFromParameter(SQLiteQueryBuilder qb, Uri uri) argument [all...] |
H A D | CallLogProvider.java | 126 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 127 qb.setTables(Tables.CALLS); 128 qb.setProjectionMap(sCallsProjectionMap); 129 qb.setStrict(true); 147 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); 148 qb.appendWhereEscapeString(phoneNumber); 149 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)"); 165 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
|
H A D | VoicemailContentTable.java | 196 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 197 qb.setTables(mTableName); 198 qb.setProjectionMap(mVoicemailProjectionMap); 199 qb.setStrict(true); 204 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
|
H A D | ContactsDatabaseHelper.java | 4506 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) { 4510 qb.setTables(sb.toString()); 4514 qb.appendWhere(sb.toString()); 4520 * @param qb The query builder. 4523 public void buildFallbackPhoneLookupAndContactQuery(SQLiteQueryBuilder qb, String number) { argument 4541 qb.setTables(sb.toString()); 4547 qb.appendWhere(sb.toString()); 4505 buildPhoneLookupAndContactQuery( SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) argument
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | SmsProvider.java | 92 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 98 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL); 102 constructQueryForUndelivered(qb); 106 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED); 110 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED); 114 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX); 118 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT); 122 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT); 126 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX); 130 qb 298 constructQueryForBox(SQLiteQueryBuilder qb, int type) argument 306 constructQueryForUndelivered(SQLiteQueryBuilder qb) argument [all...] |
H A D | MmsProvider.java | 73 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 83 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL); 86 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX); 89 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT); 92 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS); 95 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX); 98 qb.setTables(TABLE_PDU); 99 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); 105 qb.setTables(TABLE_PDU); 106 qb 214 constructQueryForBox(SQLiteQueryBuilder qb, int msgBox) argument [all...] |
H A D | TelephonyProvider.java | 431 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 432 qb.setTables("carriers"); 443 qb.appendWhere("current IS NOT NULL"); 450 qb.appendWhere("_id = " + url.getPathSegments().get(1)); 456 qb.appendWhere("_id = " + getPreferredApnId()); 466 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | AlarmProvider.java | 55 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 61 qb.setTables("alarms"); 64 qb.setTables("alarms"); 65 qb.appendWhere("_id="); 66 qb.appendWhere(url.getPathSegments().get(1)); 73 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs,
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
H A D | UserDictionaryProvider.java | 127 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 131 qb.setTables(USERDICT_TABLE_NAME); 132 qb.setProjectionMap(sDictProjectionMap); 136 qb.setTables(USERDICT_TABLE_NAME); 137 qb.setProjectionMap(sDictProjectionMap); 138 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1)); 155 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy);
|
/packages/providers/DrmProvider/src/com/android/providers/drm/ |
H A D | DrmProvider.java | 142 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 146 qb.setTables("audio"); 150 qb.setTables("audio"); 151 qb.appendWhere("_id=" + uri.getPathSegments().get(1)); 155 qb.setTables("images"); 159 qb.setTables("images"); 160 qb.appendWhere("_id=" + uri.getPathSegments().get(1)); 176 Cursor c = qb.query(db, projectionIn, selection,
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppProvider.java | 307 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 312 qb.setTables(DB_TABLE); 316 qb.setTables(DB_TABLE); 317 qb.appendWhere(BluetoothShare._ID + "="); 318 qb.appendWhere(uri.getPathSegments().get(1)); 322 qb.setTables(DB_TABLE); 323 qb.setProjectionMap(LIVE_FOLDER_PROJECTION_MAP); 324 qb.appendWhere(BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND 377 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder);
|
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
H A D | ApplicationsProvider.java | 379 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 380 qb.setTables(APPLICATIONS_TABLE); 381 qb.setProjectionMap(sSearchSuggestionsProjectionMap); 382 qb.appendWhere("package = ? AND class = ?"); 384 Cursor cursor = qb.query(mDb, projectionIn, null, selectionArgs, null, null, null); 396 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 397 qb.setTables(APPLICATIONS_LOOKUP_JOIN); 398 qb.setProjectionMap(columnMap); 401 qb.appendWhere(buildTokenFilter(query)); 404 qb [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MediaProvider.java | 1982 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, argument 1984 qb.setTables(table); 1988 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); 2045 qb.appendWhere(column + " = " + origId); 2092 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 2113 qb.setDistinct(true); 2120 qb.setTables("images"); 2122 qb.setDistinct(true); 2125 //qb.setProjectionMap(mImagesProjectionMap, true); 2129 qb 2468 doAudioSearch(SQLiteDatabase db, SQLiteQueryBuilder qb, Uri uri, String[] projectionIn, String selection, String[] selectionArgs, String sort, int mode, String limit) argument [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastContentProvider.java | 93 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 94 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME); 104 qb.appendWhere("(_id=" + uri.getPathSegments().get(0) + ')'); 120 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy);
|
/packages/apps/Browser/src/com/android/browser/provider/ |
H A D | BrowserProvider2.java | 881 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 886 qb.setTables(VIEW_ACCOUNTS); 887 qb.setProjectionMap(ACCOUNTS_PROJECTION_MAP); 936 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 937 qb.setTables(TABLE_BOOKMARKS_JOIN_IMAGES); 950 qb.setTables(TABLE_BOOKMARKS_JOIN_IMAGES); 962 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 969 query = qb.buildQuery(projection, where, null, null, sortOrder, null); 971 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 981 String bookmarksBarQuery = qb 1163 createCombinedQuery( Uri uri, String[] projection, SQLiteQueryBuilder qb) argument [all...] |
H A D | SnapshotProvider.java | 158 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 167 qb.setTables(TABLE_SNAPSHOTS); 173 Cursor cursor = qb.query(db, projection, selection, selectionArgs,
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarProvider2.java | 823 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 843 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 844 qb.setProjectionMap(sEventsProjectionMap); 850 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 851 qb.setProjectionMap(sEventsProjectionMap); 853 qb.appendWhere(SQL_WHERE_ID); 857 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 858 qb.setProjectionMap(sEventEntitiesProjectionMap); 864 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 865 qb 1015 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String limit) argument 1057 handleInstanceQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, boolean forceExpansion, String instancesTimezone, boolean isHomeTimezone) argument 1225 handleInstanceSearchQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String query, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, String instancesTimezone, boolean isHomeTimezone) argument 1281 handleEventDayQuery(SQLiteQueryBuilder qb, int begin, int end, String[] projection, String selection, String instancesTimezone, boolean isHomeTimezone) argument [all...] |
H A D | CalendarInstancesHelper.java | 563 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 564 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 565 qb.setProjectionMap(CalendarProvider2.sEventsProjectionMap); 586 qb.appendWhere(SQL_WHERE_GET_EVENTS_ENTRIES); 595 Cursor c = qb.query(mDb, EXPAND_COLUMNS, null /* selection */, selectionArgs, 835 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 837 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 838 qb.setProjectionMap(CalendarProvider2.sEventsProjectionMap); 842 qb.appendWhere(where); 850 qb [all...] |
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/ |
H A D | LocalDataTest.java | 416 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 417 qb.setTables(tableName); 423 qb.setDistinct(true); 426 Log.v(TAG, "query = " + qb.buildQuery(projection, selection, 435 Cursor c = qb.query(mDatabase, projection, selection,
|
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/ |
H A D | PartnerBookmarksProvider.java | 363 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 389 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 390 qb.setTables(TABLE_BOOKMARKS); 395 qb.setTables(TABLE_BOOKMARKS); 402 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 409 query = qb.buildQuery(projection, where, null, null, sortOrder, null); 426 return qb.query(db, projection, selection, selectionArgs, groupBy, null, sortOrder, limit);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherProvider.java | 115 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 116 qb.setTables(args.table); 119 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
H A D | ContactAggregator.java | 2326 public Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, argument 2333 return queryMatchingContacts(qb, db, projection, bestMatches, maxSuggestions, filter); 2351 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, argument 2372 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(), 2413 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID);
|