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

12

/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 DMmsProvider.java100 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
110 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL, pduTable);
113 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX, pduTable);
116 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT, pduTable);
119 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS, pduTable);
122 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX, pduTable);
125 qb.setTables(pduTable);
126 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0));
132 qb.setTables(pduTable);
133 qb
251 constructQueryForBox(SQLiteQueryBuilder qb, int msgBox, String pduTable) argument
[all...]
H A DSmsProvider.java119 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
126 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL, smsTable);
130 constructQueryForUndelivered(qb, smsTable);
134 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED, smsTable);
138 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED, smsTable);
142 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX, smsTable);
146 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT, smsTable);
150 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT, smsTable);
154 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX, smsTable);
158 qb
372 constructQueryForBox(SQLiteQueryBuilder qb, int type, String smsTable) argument
380 constructQueryForUndelivered(SQLiteQueryBuilder qb, String smsTable) argument
[all...]
H A DCarrierProvider.java70 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
71 qb.setTables(CarrierDatabaseHelper.CARRIER_KEY_TABLE);
74 Cursor c = qb.query(db, projectionIn, selection, selectionArgs, null, null, sortOrder);
H A DTelephonyProvider.java1981 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
1982 qb.setStrict(true); // a little protection from injection attacks
1983 qb.setTables(CARRIERS_TABLE);
1996 qb.appendWhere(NUMERIC + " = '" + mTelephonyManager.getSimOperator(subId) + "'");
2020 qb.appendWhere("current IS NOT NULL");
2027 qb.appendWhere("_id = " + url.getPathSegments().get(1));
2045 qb.appendWhere("_id = " + getPreferredApnId(subId, true));
2050 qb.setTables(SIMINFO_TABLE);
2083 if (CARRIERS_TABLE.equals(qb.getTables())) {
2095 ret = qb
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DLegacyApiSupport.java1550 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
1556 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE);
1557 qb.setProjectionMap(sPeopleProjectionMap);
1558 applyRawContactsAccount(qb);
1563 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE);
1564 qb.setProjectionMap(sPeopleProjectionMap);
1565 applyRawContactsAccount(qb);
1566 qb.appendWhere(" AND " + People._ID + "=");
1567 qb.appendWhere(uri.getPathSegments().get(1));
1571 qb
1849 applyRawContactsAccount(SQLiteQueryBuilder qb) argument
1867 applyGroupAccount(SQLiteQueryBuilder qb) argument
[all...]
H A DContactMetadataProvider.java130 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
138 setTablesAndProjectionMapForMetadata(qb);
142 setTablesAndProjectionMapForMetadata(qb);
149 setTablesAndProjectionMapForSyncState(qb);
156 return qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
328 private void setTablesAndProjectionMapForMetadata(SQLiteQueryBuilder qb){ argument
329 qb.setTables(Views.METADATA_SYNC);
330 qb.setProjectionMap(sMetadataProjectionMap);
331 qb.setStrict(true);
334 private void setTablesAndProjectionMapForSyncState(SQLiteQueryBuilder qb){ argument
[all...]
H A DContactsProvider2.java5814 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
5831 setTablesAndProjectionMapForContacts(qb, projection);
5832 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri);
5838 setTablesAndProjectionMapForContacts(qb, projection);
5840 qb.appendWhere(Contacts._ID + "=?");
5868 setTablesAndProjectionMapForContacts(qb, projection);
5871 qb.appendWhere(Contacts._ID + "=?");
5905 setTablesAndProjectionMapForData(qb, uri, projection, false);
5910 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID);
5912 qb
7190 doQuery(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String having, String limit, CancellationSignal cancellationSignal) argument
7607 bundleFastScrollingIndexExtras(Cursor cursor, Uri queryUri, final SQLiteDatabase db, SQLiteQueryBuilder qb, String selection, String[] selectionArgs, String sortOrder, String countExpression, CancellationSignal cancellationSignal) argument
7683 getFastScrollingIndexExtras(final SQLiteDatabase db, final SQLiteQueryBuilder qb, final String selection, final String[] selectionArgs, final String sortOrder, String countExpression, final CancellationSignal cancellationSignal) argument
8022 setTablesAndProjectionMapForContacts(SQLiteQueryBuilder qb, String[] projection) argument
8031 setTablesAndProjectionMapForContacts( SQLiteQueryBuilder qb, String[] projection, boolean includeDataUsageStat) argument
8060 setTablesAndProjectionMapForContactsWithSnippet(SQLiteQueryBuilder qb, Uri uri, String[] projection, String filter, long directoryId, boolean deferSnippeting) argument
8282 setTablesAndProjectionMapForRawContacts(SQLiteQueryBuilder qb, Uri uri) argument
8290 setTablesAndProjectionMapForRawEntities(SQLiteQueryBuilder qb, Uri uri) argument
8296 setTablesAndProjectionMapForData( SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct) argument
8302 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns) argument
8311 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, Integer usageType) argument
8316 setTablesAndProjectionMapForData(SQLiteQueryBuilder qb, Uri uri, String[] projection, boolean distinct, boolean addSipLookupColumns, Integer usageType) argument
8348 setTableAndProjectionMapForStatusUpdates( SQLiteQueryBuilder qb, String[] projection) argument
8361 setTablesAndProjectionMapForStreamItems(SQLiteQueryBuilder qb) argument
8366 setTablesAndProjectionMapForStreamItemPhotos(SQLiteQueryBuilder qb) argument
8380 setTablesAndProjectionMapForEntities( SQLiteQueryBuilder qb, Uri uri, String[] projection) argument
8487 appendLocalDirectoryAndAccountSelectionIfNeeded( SQLiteQueryBuilder qb, long directoryId, Uri uri) argument
8520 appendAccountFromParameter(SQLiteQueryBuilder qb, Uri uri) argument
8544 appendAccountIdFromParameter(SQLiteQueryBuilder qb, Uri uri) argument
[all...]
H A DVoicemailStatusTable.java116 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
117 qb.setTables(mTableName);
118 qb.setProjectionMap(sStatusProjectionMap);
119 qb.setStrict(true);
123 Cursor c = qb
H A DVoicemailContentTable.java238 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
239 qb.setTables(mTableName);
240 qb.setProjectionMap(mVoicemailProjectionMap);
241 qb.setStrict(true);
246 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
H A DCallLogProvider.java244 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
245 qb.setTables(Tables.CALLS);
246 qb.setProjectionMap(sCallsProjectionMap);
247 qb.setStrict(true);
268 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, ");
269 qb.appendWhereEscapeString(phoneNumber);
270 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)");
272 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!="
290 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
/packages/apps/DeskClock/src/com/android/deskclock/provider/
H A DClockProvider.java150 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
157 qb.setTables(ALARMS_TABLE_NAME);
160 qb.setTables(ALARMS_TABLE_NAME);
161 qb.appendWhere(AlarmsColumns._ID + "=");
162 qb.appendWhere(uri.getLastPathSegment());
165 qb.setTables(INSTANCES_TABLE_NAME);
168 qb.setTables(INSTANCES_TABLE_NAME);
169 qb.appendWhere(InstancesColumns._ID + "=");
170 qb.appendWhere(uri.getLastPathSegment());
173 qb
[all...]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
H A DUserDictionaryProvider.java160 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
164 qb.setTables(USERDICT_TABLE_NAME);
165 qb.setProjectionMap(sDictProjectionMap);
169 qb.setTables(USERDICT_TABLE_NAME);
170 qb.setProjectionMap(sDictProjectionMap);
171 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1));
188 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java1112 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, argument
1114 qb.setTables(table);
1118 qb.appendWhere("_id = " + uri.getPathSegments().get(3));
1175 qb.appendWhere(column + " = " + origId);
1313 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
1332 qb.setDistinct(true);
1339 qb.setTables("images");
1341 qb.setDistinct(true);
1344 //qb.setProjectionMap(mImagesProjectionMap, true);
1348 qb
1690 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.java95 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
96 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME);
106 qb.appendWhere("(_id=" + uri.getPathSegments().get(0) + ')');
122 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy);
/packages/apps/Dialer/java/com/android/dialer/blocking/
H A DFilteredNumberProvider.java65 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
66 qb.setTables(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE);
72 qb.appendWhere(FilteredNumberColumns._ID + "=" + ContentUris.parseId(uri));
77 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppProvider.java294 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
295 qb.setStrict(true);
300 qb.setTables(DB_TABLE);
304 qb.setTables(DB_TABLE);
305 qb.appendWhere(BluetoothShare._ID + "=");
306 qb.appendWhere(uri.getPathSegments().get(1));
357 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder);
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DDatabaseWrapper.java197 private void explainQueryPlan(final SQLiteQueryBuilder qb, final SQLiteDatabase db, argument
205 final String queryString = qb.buildQuery(
248 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
249 qb.setTables(searchTable);
250 explainQueryPlan(qb, mDatabase, projection, selection, selectionArgs,
278 public Cursor query(final SQLiteQueryBuilder qb, argument
282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs,
290 final Cursor cursor = qb.query(mDatabase, projection, selection, queryArgs, groupBy,
296 qb.getTables(), selection, cursor.getCount()));
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A DCalendarProvider2.java824 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
844 qb.setTables(CalendarDatabaseHelper.Views.EVENTS);
845 qb.setProjectionMap(sEventsProjectionMap);
851 qb.setTables(CalendarDatabaseHelper.Views.EVENTS);
852 qb.setProjectionMap(sEventsProjectionMap);
854 qb.appendWhere(SQL_WHERE_ID);
858 qb.setTables(CalendarDatabaseHelper.Views.EVENTS);
859 qb.setProjectionMap(sEventEntitiesProjectionMap);
865 qb.setTables(CalendarDatabaseHelper.Views.EVENTS);
866 qb
1016 query(final SQLiteDatabase db, SQLiteQueryBuilder qb, String[] projection, String selection, String[] selectionArgs, String sortOrder, String groupBy, String limit) argument
1058 handleInstanceQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, boolean forceExpansion, String instancesTimezone, boolean isHomeTimezone) argument
1221 handleInstanceSearchQuery(SQLiteQueryBuilder qb, long rangeBegin, long rangeEnd, String query, String[] projection, String selection, String[] selectionArgs, String sort, boolean searchByDay, String instancesTimezone, boolean isHomeTimezone) argument
1277 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/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
H A DBlockedNumberProvider.java286 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
287 qb.setStrict(true);
288 qb.setTables(BlockedNumberDatabaseHelper.Tables.BLOCKED_NUMBERS);
289 qb.setProjectionMap(sBlockedNumberColumns);
291 return qb.query(mDbHelper.getReadableDatabase(), projection, selection, selectionArgs,
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java123 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
124 qb.setTables(args.table);
127 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DLauncherProvider.java178 SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
179 qb.setTables(args.table);
182 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DAbstractContactAggregator.java1953 public final Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, argument
1969 return queryMatchingContacts(qb, db, projection, bestMatchesWithoutDuplicateContactIds,
1988 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, argument
2009 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(),
2050 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID);

Completed in 291 milliseconds

12