Lines Matching defs:selection

299             String selection, String[] selectionArgs, String sortOrder) {
304 cursor = getCompleteConversations(projection, selection, sortOrder);
311 selection = concatSelections(
312 selection, Threads.TYPE + "=" + threadType);
315 projection, selection, selectionArgs, sortOrder);
318 projection, selection, sortOrder);
323 selection, sortOrder);
327 uri.getPathSegments().get(1), projection, selection,
332 uri.getPathSegments().get(1), projection, selection,
337 uri.getPathSegments().get(2), projection, selection, sortOrder);
346 String finalSelection = TextUtils.isEmpty(selection)
347 ? extraSelection : extraSelection + " AND " + selection;
359 selection,
371 || selection != null
375 "do not specify sortOrder, selection, selectionArgs, or projection" +
412 || selection != null
416 "do not specify sortOrder, selection, selectionArgs, or projection" +
441 String finalSelection = TextUtils.isEmpty(selection)
442 ? extraSelection : ("(" + extraSelection + ") AND " + selection);
450 cursor = getUndeliveredMessages(projection, selection,
455 cursor = getDraftThread(projection, selection, sortOrder);
471 cursor = getFirstLockedMessage(projection, selection, sortOrder);
496 String selection = "address=?";
503 selection += " OR PHONE_NUMBERS_EQUAL(address, ?, " +
514 selection, selectionArgs, null, null, null);
723 private Cursor getSimpleConversations(String[] projection, String selection,
726 selection, selectionArgs, null, null, " date DESC");
745 private Cursor getDraftThread(String[] projection, String selection,
757 concatSelections(selection, Mms.MESSAGE_BOX + "=" + Mms.MESSAGE_BOX_DRAFTS),
762 concatSelections(selection, Sms.TYPE + "=" + Sms.MESSAGE_TYPE_DRAFT),
805 private Cursor getConversations(String[] projection, String selection,
821 concatSelections(selection, MMS_CONVERSATION_CONSTRAINT),
826 concatSelections(selection, SMS_CONVERSATION_CONSTRAINT),
858 private Cursor getFirstLockedMessage(String[] projection, String selection,
872 selection,
878 selection,
902 String selection, String sortOrder) {
903 String unionQuery = buildConversationQuery(projection, selection, sortOrder);
931 String threadIdString, String[] projection, String selection,
941 selection, "thread_id = " + threadIdString);
966 String phoneNumber, String[] projection, String selection,
971 selection,
975 selection,
1015 String threadIdString, String[] projection, String selection,
1025 String finalSelection = concatSelections(selection, extraSelection);
1054 String[] projection, String selection, String[] selectionArgs,
1065 selection, Mms.MESSAGE_BOX + " = " + Mms.MESSAGE_BOX_OUTBOX);
1067 selection, "(" + Sms.TYPE + " = " + Sms.MESSAGE_TYPE_OUTBOX
1121 String selection, String sortOrder) {
1141 String mmsSelection = concatSelections(selection,
1150 0, "sms", concatSelections(selection, SMS_CONVERSATION_CONSTRAINT),
1174 public int delete(Uri uri, String selection,
1189 affectedRows = deleteConversation(uri, selection, selectionArgs);
1194 selection, selectionArgs, uri)
1195 + db.delete("sms", selection, selectionArgs);
1196 // Intentionally don't pass the selection variable to updateAllThreads.
1198 // the selection and not get updated.
1220 private int deleteConversation(Uri uri, String selection, String[] selectionArgs) {
1224 String finalSelection = concatSelections(selection, "thread_id = " + threadId);
1242 String selection, String[] selectionArgs) {
1249 selection, selectionArgs);
1253 affectedRows = db.update(TABLE_PENDING_MSG, values, selection, null);
1258 String finalSelection = TextUtils.isEmpty(selection)
1259 ? extraSelection : extraSelection + " AND " + selection;
1271 affectedRows = db.update(TABLE_THREADS, finalValues, selection, selectionArgs);
1288 String threadIdString, ContentValues values, String selection,
1298 String finalSelection = concatSelections(selection, "thread_id=" + threadIdString);