/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | LegacyApiSupport.java | 1611 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 1617 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); 1618 qb.setProjectionMap(sPeopleProjectionMap); 1619 applyRawContactsAccount(qb); 1624 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); 1625 qb.setProjectionMap(sPeopleProjectionMap); 1626 applyRawContactsAccount(qb); 1627 qb.appendWhere(" AND " + People._ID + "="); 1628 qb.appendWhere(uri.getPathSegments().get(1)); 1632 qb 1927 applyRawContactsAccount(SQLiteQueryBuilder qb) argument 1945 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 | 5147 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 5164 setTablesAndProjectionMapForContacts(qb, uri, projection); 5165 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); 5171 setTablesAndProjectionMapForContacts(qb, uri, projection); 5173 qb.appendWhere(Contacts._ID + "=?"); 5201 setTablesAndProjectionMapForContacts(qb, uri, projection); 5204 qb.appendWhere(Contacts._ID + "=?"); 5238 setTablesAndProjectionMapForData(qb, uri, projection, false); 5243 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); 5245 qb 6428 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String having, String limit, CancellationSignal cancellationSignal) argument 6486 bundleFastScrollingIndexExtras(Cursor cursor, Uri queryUri, final SQLiteDatabase db, SQLiteQueryBuilder qb, String selection, String[] selectionArgs, String sortOrder, String countExpression, CancellationSignal cancellationSignal) argument 6561 getFastScrollingIndexExtras(final Uri queryUri, final SQLiteDatabase db, final SQLiteQueryBuilder qb, final String selection, final String[] selectionArgs, final String sortOrder, String countExpression, final CancellationSignal cancellationSignal) argument 6910 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, Uri uri, String[] projection) argument 6920 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean includeDataUsageStat) argument 6949 setTablesAndProjectionMapForContactsWithSnippet(SQLiteQueryBuilder qb, Uri uri, String[] projection, String filter, long directoryId, boolean deferSnippeting) argument 7172 setTablesAndProjectionMapForRawContacts(SQLiteQueryBuilder qb, Uri uri) argument 7180 setTablesAndProjectionMapForRawEntities(SQLiteQueryBuilder qb, Uri uri) argument 7186 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct) argument 7191 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns) argument 7200 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, Integer usageType) argument 7205 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns, Integer usageType) argument 7237 setTableAndProjectionMapForStatusUpdates(SQLiteQueryBuilder qb, String[] projection) argument 7249 setTablesAndProjectionMapForStreamItems(SQLiteQueryBuilder qb) argument 7254 setTablesAndProjectionMapForStreamItemPhotos(SQLiteQueryBuilder qb) argument 7268 setTablesAndProjectionMapForEntities(SQLiteQueryBuilder qb, Uri uri, String[] projection) argument 7358 appendLocalDirectoryAndAccountSelectionIfNeeded(SQLiteQueryBuilder qb, long directoryId, Uri uri) argument 7390 appendAccountFromParameter(SQLiteQueryBuilder qb, Uri uri) argument 7414 appendAccountIdFromParameter(SQLiteQueryBuilder qb, Uri uri) argument [all...] |
H A D | CallLogProvider.java | 131 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 132 qb.setTables(Tables.CALLS); 133 qb.setProjectionMap(sCallsProjectionMap); 134 qb.setStrict(true); 154 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); 155 qb.appendWhereEscapeString(phoneNumber); 156 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)"); 158 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!=" 176 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
|
H A D | VoicemailContentTable.java | 214 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 215 qb.setTables(mTableName); 216 qb.setProjectionMap(mVoicemailProjectionMap); 217 qb.setStrict(true); 222 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
|
H A D | ContactsDatabaseHelper.java | 4740 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) { 4744 qb.setTables(sb.toString()); 4748 qb.appendWhere(sb.toString()); 4754 * @param qb The query builder. 4757 public void buildFallbackPhoneLookupAndContactQuery(SQLiteQueryBuilder qb, String number) { argument 4775 qb.setTables(sb.toString()); 4781 qb.appendWhere(sb.toString()); 4739 buildPhoneLookupAndContactQuery( SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) argument
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
H A D | ClockProvider.java | 63 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 69 qb.setTables(ClockDatabaseHelper.ALARMS_TABLE_NAME); 72 qb.setTables(ClockDatabaseHelper.ALARMS_TABLE_NAME); 73 qb.appendWhere(ClockContract.AlarmsColumns._ID + "="); 74 qb.appendWhere(uri.getLastPathSegment()); 77 qb.setTables(ClockDatabaseHelper.INSTANCES_TABLE_NAME); 80 qb.setTables(ClockDatabaseHelper.INSTANCES_TABLE_NAME); 81 qb.appendWhere(ClockContract.InstancesColumns._ID + "="); 82 qb.appendWhere(uri.getLastPathSegment()); 85 qb [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | SmsProvider.java | 95 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 101 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL); 105 constructQueryForUndelivered(qb); 109 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED); 113 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED); 117 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX); 121 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT); 125 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT); 129 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX); 133 qb 309 constructQueryForBox(SQLiteQueryBuilder qb, int type) argument 317 constructQueryForUndelivered(SQLiteQueryBuilder qb) argument [all...] |
H A D | MmsProvider.java | 76 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 86 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL); 89 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX); 92 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT); 95 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS); 98 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX); 101 qb.setTables(TABLE_PDU); 102 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); 108 qb.setTables(TABLE_PDU); 109 qb 217 constructQueryForBox(SQLiteQueryBuilder qb, int msgBox) argument [all...] |
H A D | TelephonyProvider.java | 412 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 413 qb.setStrict(true); // a little protection from injection attacks 414 qb.setTables("carriers"); 425 qb.appendWhere("current IS NOT NULL"); 432 qb.appendWhere("_id = " + url.getPathSegments().get(1)); 438 qb.appendWhere("_id = " + getPreferredApnId()); 468 ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);
|
/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/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/MediaProvider/src/com/android/providers/media/ |
H A D | MediaProvider.java | 2072 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, argument 2074 qb.setTables(table); 2078 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); 2135 qb.appendWhere(column + " = " + origId); 2272 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 2291 qb.setDistinct(true); 2298 qb.setTables("images"); 2300 qb.setDistinct(true); 2303 //qb.setProjectionMap(mImagesProjectionMap, true); 2307 qb 2649 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 | 883 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 888 qb.setTables(VIEW_ACCOUNTS); 889 qb.setProjectionMap(ACCOUNTS_PROJECTION_MAP); 938 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 939 qb.setTables(TABLE_BOOKMARKS_JOIN_IMAGES); 952 qb.setTables(TABLE_BOOKMARKS_JOIN_IMAGES); 964 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 971 query = qb.buildQuery(projection, where, null, null, sortOrder, null); 973 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); 983 String bookmarksBarQuery = qb 1165 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 | 853 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 873 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 874 qb.setProjectionMap(sEventsProjectionMap); 880 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 881 qb.setProjectionMap(sEventsProjectionMap); 883 qb.appendWhere(SQL_WHERE_ID); 887 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 888 qb.setProjectionMap(sEventEntitiesProjectionMap); 894 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 895 qb 1045 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String limit) argument 1087 handleInstanceQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, boolean forceExpansion, String instancesTimezone, boolean isHomeTimezone) argument 1255 handleInstanceSearchQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String query, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, String instancesTimezone, boolean isHomeTimezone) argument 1311 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/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 | 2379 public Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, argument 2386 return queryMatchingContacts(qb, db, projection, bestMatches, maxSuggestions, filter); 2404 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, argument 2425 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(), 2466 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | LauncherProvider.java | 121 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); 122 qb.setTables(args.table); 125 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
|