Home
last modified time | relevance | path

Searched refs:qb (Results 1 – 22 of 22) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java1590 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
1596 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
1597 qb.setProjectionMap(sPeopleProjectionMap); in query()
1598 applyRawContactsAccount(qb); in query()
1603 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
1604 qb.setProjectionMap(sPeopleProjectionMap); in query()
1605 applyRawContactsAccount(qb); in query()
1606 qb.appendWhere(" AND " + People._ID + "="); in query()
1607 qb.appendWhere(uri.getPathSegments().get(1)); in query()
1611 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
[all …]
DCallLogProvider.java97 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
101 qb.setTables("calls"); in query()
102 qb.setProjectionMap(sCallsProjectionMap); in query()
107 qb.setTables("calls"); in query()
108 qb.setProjectionMap(sCallsProjectionMap); in query()
109 qb.appendWhere("calls._id="); in query()
110 qb.appendWhere(uri.getPathSegments().get(1)); in query()
115 qb.setTables("calls"); in query()
116 qb.setProjectionMap(sCallsProjectionMap); in query()
118 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); in query()
[all …]
DContactsProvider.java900 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
917 qb.setTables(sDeletedGroupsTable); in queryInternal()
921 qb.appendWhere("_id="); in queryInternal()
922 qb.appendWhere(url.getPathSegments().get(1)); in queryInternal()
925 qb.setTables(sGroupsTable); in queryInternal()
926 qb.setProjectionMap(sGroupsProjectionMap); in queryInternal()
930 qb.setTables(sSettingsTable); in queryInternal()
934 qb.appendWhere("groupmembership._id="); in queryInternal()
935 qb.appendWhere(url.getPathSegments().get(3)); in queryInternal()
936 qb.appendWhere(" AND "); in queryInternal()
[all …]
DSocialProvider.java329 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
335 qb.setTables(Tables.ACTIVITIES_JOIN_PACKAGES_MIMETYPES_RAW_CONTACTS_CONTACTS); in query()
336 qb.setProjectionMap(sActivitiesContactsProjectionMap); in query()
343 qb.setTables(Tables.ACTIVITIES_JOIN_PACKAGES_MIMETYPES_RAW_CONTACTS_CONTACTS); in query()
344 qb.setProjectionMap(sActivitiesContactsProjectionMap); in query()
345 qb.appendWhere(Activities._ID + "=" + activityId); in query()
351 qb.setTables(Tables.ACTIVITIES_JOIN_PACKAGES_MIMETYPES_RAW_CONTACTS_CONTACTS); in query()
352 qb.setProjectionMap(sActivitiesContactsProjectionMap); in query()
353 qb.appendWhere(Activities.AUTHOR_CONTACT_ID + "=" + contactId); in query()
359 qb.setTables(Tables.ACTIVITIES_JOIN_PACKAGES_MIMETYPES_RAW_CONTACTS_CONTACTS); in query()
[all …]
DContactsProvider2.java3370 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
3383 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3389 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3390 qb.appendWhere(Contacts._ID + "=" + contactId); in query()
3418 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
3419 qb.appendWhere(Contacts._ID + "=" + lookupContactIdByLookupKey(db, lookupKey)); in query()
3426 qb.setTables(mDbHelper.getContactView(true /* require restricted */)); in query()
3427 qb.setProjectionMap(sContactsVCardProjectionMap); in query()
3428 qb.appendWhere(Contacts._ID + "=" + lookupContactIdByLookupKey(db, lookupKey)); in query()
3433 setTablesAndProjectionMapForContacts(qb, uri, projection); in query()
[all …]
DContactAggregator.java1068 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in lookupPhoneMatches() local
1069 mDbHelper.buildPhoneLookupAndRawContactQuery(qb, phoneNumber); in lookupPhoneMatches()
1070 Cursor c = qb.query(db, CONTACT_ID_COLUMNS, RawContactsColumns.AGGREGATION_NEEDED + "=0", in lookupPhoneMatches()
1520 public Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, String[] projection, in queryAggregationSuggestions() argument
1525 return queryMatchingContacts(qb, db, contactId, projection, bestMatches, maxSuggestions, in queryAggregationSuggestions()
1533 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, long contactId, in queryMatchingContacts() argument
1555 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(), in queryMatchingContacts()
1593 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID); in queryMatchingContacts()
DContactsDatabaseHelper.java1594 public void buildPhoneLookupAndRawContactQuery(SQLiteQueryBuilder qb, String number) { in buildPhoneLookupAndRawContactQuery() argument
1596 qb.setTables(Tables.DATA_JOIN_RAW_CONTACTS + in buildPhoneLookupAndRawContactQuery()
1607 qb.appendWhere(sb.toString()); in buildPhoneLookupAndRawContactQuery()
1610 public void buildPhoneLookupAndContactQuery(SQLiteQueryBuilder qb, String number) { in buildPhoneLookupAndContactQuery() argument
1614 qb.setTables(sb.toString()); in buildPhoneLookupAndContactQuery()
1618 qb.appendWhere(sb.toString()); in buildPhoneLookupAndContactQuery()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java90 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
96 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL); in query()
100 constructQueryForUndelivered(qb); in query()
104 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED); in query()
108 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED); in query()
112 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX); in query()
116 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT); in query()
120 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT); in query()
124 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX); in query()
128 qb.setTables(TABLE_SMS); in query()
[all …]
DMmsProvider.java66 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
76 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL); in query()
79 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX); in query()
82 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT); in query()
85 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS); in query()
88 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX); in query()
91 qb.setTables(TABLE_PDU); in query()
92 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); in query()
98 qb.setTables(TABLE_PDU); in query()
99 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(1)); in query()
[all …]
DTelephonyProvider.java323 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
324 qb.setTables("carriers"); in query()
335 qb.appendWhere("current IS NOT NULL"); in query()
342 qb.appendWhere("_id = " + url.getPathSegments().get(1)); in query()
347 qb.appendWhere("_id = " + getPreferredApnId()); in query()
357 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort); in query()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider.java386 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in doUpdateTimezoneDependentFields() local
387 handleInstanceQuery(qb, begin, end, new String[] { Instances._ID }, in doUpdateTimezoneDependentFields()
393 qb = new SQLiteQueryBuilder(); in doUpdateTimezoneDependentFields()
394 handleBusyBitsQuery(qb, startDay, endDay, sBusyBitProjection, in doUpdateTimezoneDependentFields()
1070 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
1079 qb.setTables("Events, Calendars"); in queryInternal()
1080 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
1081 qb.appendWhere("Events.calendar_id=Calendars._id"); in queryInternal()
1084 qb.setTables("Events, Calendars"); in queryInternal()
1085 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java948 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, in queryThumbnail() argument
950 qb.setTables(table); in queryThumbnail()
954 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); in queryThumbnail()
1005 qb.appendWhere(column + " = " + origId); in queryThumbnail()
1032 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
1038 qb.setTables("images"); in query()
1040 qb.setDistinct(true); in query()
1047 qb.setTables("images"); in query()
1049 qb.setDistinct(true); in query()
1053 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); in query()
[all …]
/packages/apps/IM/src/com/android/im/provider/
DImpsProvider.java1078 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
1104 qb.setTables(TABLE_PROVIDERS); in queryInternal()
1108 qb.setTables(PROVIDER_JOIN_ACCOUNT_TABLE); in queryInternal()
1109 qb.setProjectionMap(sProviderAccountsProjectionMap); in queryInternal()
1116 qb.setTables(TABLE_ACCOUNTS); in queryInternal()
1120 qb.setTables(CONTACT_JOIN_PRESENCE_CHAT_AVATAR_TABLE); in queryInternal()
1121 qb.setProjectionMap(sContactsProjectionMap); in queryInternal()
1125 qb.setTables(CONTACT_JOIN_PRESENCE_TABLE); in queryInternal()
1126 qb.setProjectionMap(sContactsProjectionMap); in queryInternal()
1130 qb.setTables(TABLE_CONTACTS); in queryInternal()
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java106 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
110 qb.setTables(USERDICT_TABLE_NAME); in query()
111 qb.setProjectionMap(sDictProjectionMap); in query()
115 qb.setTables(USERDICT_TABLE_NAME); in query()
116 qb.setProjectionMap(sDictProjectionMap); in query()
117 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1)); in query()
134 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
DApplicationsProvider.java342 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in getSuggestions() local
343 qb.setTables("applicationsLookup JOIN " + APPLICATIONS_TABLE + " ON" in getSuggestions()
345 qb.setProjectionMap(sSearchSuggestionsProjectionMap); in getSuggestions()
346 qb.appendWhere(buildTokenFilter(query)); in getSuggestions()
354 Cursor cursor = qb.query(mDb, projectionIn, null, null, groupBy, null, order); in getSuggestions()
370 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in refreshShortcut() local
371 qb.setTables(APPLICATIONS_TABLE); in refreshShortcut()
372 qb.setProjectionMap(sSearchSuggestionsProjectionMap); in refreshShortcut()
373 qb.appendWhere("package = ? AND class = ?"); in refreshShortcut()
375 Cursor cursor = qb.query(mDb, projectionIn, null, selectionArgs, null, null, null); in refreshShortcut()
/packages/providers/DrmProvider/src/com/android/providers/drm/
DDrmProvider.java142 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
146 qb.setTables("audio"); in query()
150 qb.setTables("audio"); in query()
151 qb.appendWhere("_id=" + uri.getPathSegments().get(1)); in query()
155 qb.setTables("images"); in query()
159 qb.setTables("images"); in query()
160 qb.appendWhere("_id=" + uri.getPathSegments().get(1)); in query()
168 Cursor c = qb.query(db, projectionIn, selection, in query()
/packages/apps/AlarmClock/src/com/android/alarmclock/
DAlarmProvider.java98 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
104 qb.setTables("alarms"); in query()
107 qb.setTables("alarms"); in query()
108 qb.appendWhere("_id="); in query()
109 qb.appendWhere(url.getPathSegments().get(1)); in query()
116 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, in query()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmProvider.java97 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
103 qb.setTables("alarms"); in query()
106 qb.setTables("alarms"); in query()
107 qb.appendWhere("_id="); in query()
108 qb.appendWhere(url.getPathSegments().get(1)); in query()
115 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, in query()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java304 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
309 qb.setTables(DB_TABLE); in query()
313 qb.setTables(DB_TABLE); in query()
314 qb.appendWhere(BluetoothShare._ID + "="); in query()
315 qb.appendWhere(uri.getPathSegments().get(1)); in query()
319 qb.setTables(DB_TABLE); in query()
320 qb.setProjectionMap(LIVE_FOLDER_PROJECTION_MAP); in query()
321 qb.appendWhere(BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND in query()
374 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java365 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
371 qb.setTables(DB_TABLE); in query()
375 qb.setTables(DB_TABLE); in query()
376 qb.appendWhere(Downloads._ID + "="); in query()
377 qb.appendWhere(uri.getPathSegments().get(1)); in query()
392 qb.appendWhere(" AND "); in query()
394 qb.appendWhere("( " + Constants.UID + "=" + Binder.getCallingUid() + " OR " in query()
452 Cursor ret = qb.query(db, projection, selection, selectionArgs, in query()
/packages/apps/Launcher/src/com/android/launcher/
DLauncherProvider.java105 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
106 qb.setTables(args.table); in query()
109 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java103 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
104 qb.setTables(args.table); in query()
107 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()