Searched refs:qb (Results 1 - 23 of 23) sorted by relevance

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DHbpcdLookupProvider.java171 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
179 qb.setTables(TABLE_MCC_IDD);
180 qb.setProjectionMap(sIddProjectionMap);
187 qb.setTables(TABLE_MCC_LOOKUP_TABLE);
188 qb.setProjectionMap(sLookupProjectionMap);
209 qb.setTables(joinT.toString());
210 qb.setProjectionMap(sConflictProjectionMap);
214 qb.setTables(TABLE_MCC_SID_RANGE);
215 qb.setProjectionMap(sRangeProjectionMap);
222 qb
[all...]
H A DSmsProvider.java96 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
102 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL);
106 constructQueryForUndelivered(qb);
110 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED);
114 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED);
118 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX);
122 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT);
126 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT);
130 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX);
134 qb
319 constructQueryForBox(SQLiteQueryBuilder qb, int type) argument
327 constructQueryForUndelivered(SQLiteQueryBuilder qb) argument
[all...]
H A DMmsProvider.java77 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
87 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL);
90 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX);
93 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT);
96 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS);
99 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX);
102 qb.setTables(TABLE_PDU);
103 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0));
109 qb.setTables(TABLE_PDU);
110 qb
224 constructQueryForBox(SQLiteQueryBuilder qb, int msgBox) argument
[all...]
H A DTelephonyProvider.java640 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
641 qb.setStrict(true); // a little protection from injection attacks
642 qb.setTables("carriers");
655 qb.appendWhere("numeric = '" + mTelephonyManager.getSimOperator(subId)+"'");
679 qb.appendWhere("current IS NOT NULL");
686 qb.appendWhere("_id = " + url.getPathSegments().get(1));
704 qb.appendWhere("_id = " + getPreferredApnId(subId));
709 qb.setTables(SIMINFO_TABLE);
741 ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DLegacyApiSupport.java1611 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 DVoicemailStatusTable.java87 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 DContactsProvider2.java5179 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
5196 setTablesAndProjectionMapForContacts(qb, projection);
5197 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri);
5203 setTablesAndProjectionMapForContacts(qb, projection);
5205 qb.appendWhere(Contacts._ID + "=?");
5233 setTablesAndProjectionMapForContacts(qb, projection);
5236 qb.appendWhere(Contacts._ID + "=?");
5270 setTablesAndProjectionMapForData(qb, uri, projection, false);
5275 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID);
5277 qb
6486 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String having, String limit, CancellationSignal cancellationSignal) argument
6700 bundleFastScrollingIndexExtras(Cursor cursor, Uri queryUri, final SQLiteDatabase db, SQLiteQueryBuilder qb, String selection, String[] selectionArgs, String sortOrder, String countExpression, CancellationSignal cancellationSignal) argument
6776 getFastScrollingIndexExtras(final SQLiteDatabase db, final SQLiteQueryBuilder qb, final String selection, final String[] selectionArgs, final String sortOrder, String countExpression, final CancellationSignal cancellationSignal) argument
7115 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, String[] projection) argument
7124 setTablesAndProjectionMapForContacts( SQLiteQueryBuilder qb, String[] projection, boolean includeDataUsageStat) argument
7153 setTablesAndProjectionMapForContactsWithSnippet(SQLiteQueryBuilder qb, Uri uri, String[] projection, String filter, long directoryId, boolean deferSnippeting) argument
7375 setTablesAndProjectionMapForRawContacts(SQLiteQueryBuilder qb, Uri uri) argument
7383 setTablesAndProjectionMapForRawEntities(SQLiteQueryBuilder qb, Uri uri) argument
7389 setTablesAndProjectionMapForData( SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct) argument
7395 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns) argument
7404 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, Integer usageType) argument
7409 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns, Integer usageType) argument
7441 setTableAndProjectionMapForStatusUpdates( SQLiteQueryBuilder qb, String[] projection) argument
7454 setTablesAndProjectionMapForStreamItems(SQLiteQueryBuilder qb) argument
7459 setTablesAndProjectionMapForStreamItemPhotos(SQLiteQueryBuilder qb) argument
7473 setTablesAndProjectionMapForEntities( SQLiteQueryBuilder qb, Uri uri, String[] projection) argument
7571 appendLocalDirectoryAndAccountSelectionIfNeeded( SQLiteQueryBuilder qb, long directoryId, Uri uri) argument
7604 appendAccountFromParameter(SQLiteQueryBuilder qb, Uri uri) argument
7628 appendAccountIdFromParameter(SQLiteQueryBuilder qb, Uri uri) argument
[all...]
H A DVoicemailContentTable.java216 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
217 qb.setTables(mTableName);
218 qb.setProjectionMap(mVoicemailProjectionMap);
219 qb.setStrict(true);
224 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
H A DCallLogProvider.java164 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
165 qb.setTables(Tables.CALLS);
166 qb.setProjectionMap(sCallsProjectionMap);
167 qb.setStrict(true);
187 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, ");
188 qb.appendWhereEscapeString(phoneNumber);
189 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)");
191 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!="
209 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
H A DContactsDatabaseHelper.java4965 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) {
4970 qb.setTables(sb.toString());
4974 qb.appendWhere(sb.toString());
4980 * @param qb The query builder.
4983 public void buildFallbackPhoneLookupAndContactQuery(SQLiteQueryBuilder qb, String number) { argument
5001 qb.setTables(sb.toString());
5007 qb.appendWhere(sb.toString());
4964 buildPhoneLookupAndContactQuery( SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) argument
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockProvider.java63 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/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java127 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 DBluetoothOppProvider.java307 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 DMediaProvider.java2094 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, argument
2096 qb.setTables(table);
2100 qb.appendWhere("_id = " + uri.getPathSegments().get(3));
2157 qb.appendWhere(column + " = " + origId);
2295 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
2314 qb.setDistinct(true);
2321 qb.setTables("images");
2323 qb.setDistinct(true);
2326 //qb.setProjectionMap(mImagesProjectionMap, true);
2330 qb
2672 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 DCellBroadcastContentProvider.java93 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 DBrowserProvider2.java883 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 DSnapshotProvider.java158 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 DCalendarProvider2.java853 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
1256 handleInstanceSearchQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String query, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, String instancesTimezone, boolean isHomeTimezone) argument
1313 handleEventDayQuery(SQLiteQueryBuilder qb, int begin, int end, String[] projection, String selection, String instancesTimezone, boolean isHomeTimezone) argument
[all...]
H A DCalendarInstancesHelper.java561 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
562 qb.setTables(CalendarDatabaseHelper.Views.EVENTS);
563 qb.setProjectionMap(CalendarProvider2.sEventsProjectionMap);
584 qb.appendWhere(SQL_WHERE_GET_EVENTS_ENTRIES);
594 Cursor c = qb.query(db, EXPAND_COLUMNS, null /* selection */, selectionArgs,
834 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
836 qb.setTables(CalendarDatabaseHelper.Views.EVENTS);
837 qb.setProjectionMap(CalendarProvider2.sEventsProjectionMap);
841 qb.appendWhere(where);
849 qb
[all...]
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
H A DPartnerBookmarksProvider.java363 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 DLauncherProvider.java117 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
118 qb.setTables(args.table);
121 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DContactAggregator.java2384 public Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, argument
2391 return queryMatchingContacts(qb, db, projection, bestMatches, maxSuggestions, filter);
2409 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, argument
2430 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(),
2471 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherProvider.java143 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
144 qb.setTables(args.table);
147 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);

Completed in 4111 milliseconds