Home
last modified time | relevance | path

Searched refs:sortOrder (Results 1 – 25 of 163) sorted by relevance

1234567

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java340 String selection, String[] selectionArgs, String sortOrder) { in query() argument
356 SqlQueryChecker.checkQueryParametersForSubqueries(projection, selection, sortOrder); in query()
385 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query()
404 projection, selection, selectionArgs, sortOrder); in query()
413 projection, selection, sortOrder, smsTable, pduTable); in query()
424 selection, sortOrder, smsTable, pduTable); in query()
429 selectionArgs, sortOrder); in query()
434 selectionArgs, sortOrder); in query()
444 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, in query()
467 sortOrder); in query()
[all …]
DSqlQueryChecker.java36 String selection, String sortOrder) { in checkQueryParametersForSubqueries() argument
48 Log.v("MmsProvider", "checkQueryParametersForSubqueries checking sort: " + sortOrder); in checkQueryParametersForSubqueries()
49 SQLiteTokenizer.tokenize(sortOrder, SQLiteTokenizer.OPTION_NONE, in checkQueryParametersForSubqueries()
/packages/apps/Contacts/src/com/android/contacts/list/
DDefaultContactListAdapter.java58 String sortOrder = null; in configureLoader() local
87 sortOrder = Contacts.SORT_KEY_PRIMARY; in configureLoader()
103 if (sortOrder == null) { in configureLoader()
104 sortOrder = Contacts.SORT_KEY_PRIMARY; in configureLoader()
106 sortOrder += ", " + Contacts.SORT_KEY_PRIMARY; in configureLoader()
109 if (sortOrder == null) { in configureLoader()
110 sortOrder = Contacts.SORT_KEY_ALTERNATIVE; in configureLoader()
112 sortOrder += ", " + Contacts.SORT_KEY_ALTERNATIVE; in configureLoader()
115 loader.setSortOrder(sortOrder); in configureLoader()
DContactListAdapter.java399 final int sortOrder = getContactNameDisplayOrder(); in getProjection() local
401 if (sortOrder == ContactsPreferences.DISPLAY_ORDER_PRIMARY) { in getProjection()
407 if (sortOrder == ContactsPreferences.DISPLAY_ORDER_PRIMARY) { in getProjection()
419 final int sortOrder = getContactNameDisplayOrder(); in getDataProjectionForContacts() local
421 if (sortOrder == ContactsPreferences.DISPLAY_ORDER_PRIMARY) { in getDataProjectionForContacts()
427 if (sortOrder == ContactsPreferences.DISPLAY_ORDER_PRIMARY) { in getDataProjectionForContacts()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java307 String sortOrder = TextUtils.join(", ", columns); in resolveSortOrder() local
313 sortOrder += " COLLATE " + collatorName; in resolveSortOrder()
326 sortOrder += " COLLATE NOCASE"; in resolveSortOrder()
335 sortOrder += " ASC"; in resolveSortOrder()
339 sortOrder += " DESC"; in resolveSortOrder()
344 queryArgs.putString(QUERY_ARG_SQL_SORT_ORDER, sortOrder); in resolveSortOrder()
433 String sortOrder = origSortOrder.substring(0, index); in recoverAbusiveSortOrder() local
442 Log.w(TAG, "Recovered abusive '" + sortOrder + "' and '" + limit + "' from '" in recoverAbusiveSortOrder()
445 queryArgs.putString(QUERY_ARG_SQL_SORT_ORDER, sortOrder); in recoverAbusiveSortOrder()
456 @Nullable String sortOrder) { in createSqlQueryBundle() argument
[all …]
DSQLiteQueryBuilder.java464 final String sortOrder = queryArgs.getString(QUERY_ARG_SQL_SORT_ORDER); in query() local
466 return query(helper, projectionIn, selection, selectionArgs, groupBy, having, sortOrder, in query()
472 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument
475 having, sortOrder, limit, cancellationSignal); in query()
516 String having, String sortOrder, String limit, CancellationSignal cancellationSignal) { in query() argument
524 sortOrder, limit); in query()
530 enforceStrictGrammar(selection, groupBy, having, sortOrder, limit); in query()
550 wrap(having), sortOrder, limit); in query()
800 @Nullable String having, @Nullable String sortOrder, @Nullable String limit) {
807 SQLiteTokenizer.tokenize(sortOrder, SQLiteTokenizer.OPTION_NONE,
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java106 public Query withSortOrder(String sortOrder) { in withSortOrder() argument
107 mSortOrder = sortOrder; in withSortOrder()
137 String[] selectionArgs, String sortOrder) { in equals() argument
158 if (!mAnySortOrder && !Objects.equals(sortOrder, mSortOrder)) { in equals()
517 String sortOrder) { in query() argument
520 + queryToString(uri, projection, selection, selectionArgs, sortOrder)); in query()
525 if (query.equals(uri, projection, selection, selectionArgs, sortOrder)) { in query()
535 queryToString(uri, projection, selection, selectionArgs, sortOrder)); in query()
639 String[] selectionArgs, String sortOrder) { in queryToString() argument
655 if (sortOrder != null) { in queryToString()
[all …]
DForwardingContentProvider.java54 String[] selectionArgs, String sortOrder) { in query() argument
56 return mClient.query(url, projection, selection, selectionArgs, sortOrder); in query()
65 String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) { in query() argument
67 return mClient.query(url, projection, selection, selectionArgs, sortOrder, in query()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorQueryData.java40 String[] projection, String selection, String[] selectionArgs, String sortOrder) { in FrequentContactsCursorLoader() argument
41 super(bindingId, context, uri, projection, selection, selectionArgs, sortOrder); in FrequentContactsCursorLoader()
103 String selection, String[] selectionArgs, String sortOrder) { in FrequentContactsCursorQueryData() argument
106 sortOrder); in FrequentContactsCursorQueryData()
DBoundCursorLoader.java34 final String sortOrder) { in BoundCursorLoader() argument
35 super(context, uri, projection, selection, selectionArgs, sortOrder); in BoundCursorLoader()
DCursorQueryData.java45 final String selection, final String[] selectionArgs, final String sortOrder) { in CursorQueryData() argument
51 mSortOrder = sortOrder; in CursorQueryData()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java86 String sortOrder = MediaStore.Audio.Artists._ID; in load() local
87 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
111 String sortOrder = MediaStore.Audio.Albums._ID; in load() local
112 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
148 String sortOrder = MediaStore.Audio.Media._ID; in load() local
149 … Cursor cursor = mContentResolver.query(contentUri, projection, selection, null, sortOrder); in load()
191 String sortOrder = MediaStore.Audio.Playlists._ID; in load() local
192 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
215 String sortOrder = MediaStore.Audio.Genres._ID; in load() local
216 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java128 String sortOrder, String countExpression) { in buildCacheKey() argument
135 appendIfNotNull(sb, sortOrder); in buildCacheKey()
204 public Bundle get(Uri queryUri, String selection, String[] selectionArgs, String sortOrder, in get() argument
208 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, in get()
236 public void put(Uri queryUri, String selection, String[] selectionArgs, String sortOrder, in put() argument
240 final String key = buildCacheKey(queryUri, selection, selectionArgs, sortOrder, in put()
DProfileProvider.java67 String sortOrder) { in query() argument
68 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
73 String sortOrder, CancellationSignal cancellationSignal) { in query() argument
77 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query()
DContactsProvider2.java5656 String sortOrder) { in query() argument
5657 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
5662 String sortOrder, CancellationSignal cancellationSignal) { in query() argument
5673 cursor = queryInternal(uri, projection, selection, selectionArgs, sortOrder, in query()
5686 String[] selectionArgs, String sortOrder, CancellationSignal cancellationSignal) { in queryInternal() argument
5690 " order=[" + sortOrder + "] CPID=" + Binder.getCallingPid() + in queryInternal()
5697 mContactsHelper.validateSql(getCallingPackage(), sortOrder); in queryInternal() local
5713 sortOrder, cancellationSignal); in queryInternal()
5719 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in queryInternal()
5728 return queryDirectoryIfNecessary(uri, projection, selection, selectionArgs, sortOrder, in queryInternal()
[all …]
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java316 String sortOrder) { in query() argument
326 return queryAccount(projection, selection, selectionArgs, sortOrder); in query()
330 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query()
357 searchString, projection, sortOrder); in query()
362 selectionArgs, sortOrder); in query()
382 String[] selectionArgs, String sortOrder); in queryAccount() argument
401 String[] selectionArgs, String sortOrder); in queryMessage() argument
450 String sortOrder); in queryConversation() argument
473 String[] projection, String selection, String[] selectionArgs, String sortOrder); in queryConvoContact() argument
DBluetoothMapEmailProvider.java519 String sortOrder) { in query() argument
525 return queryAccount(projection, selection, selectionArgs, sortOrder); in query()
528 return queryFolder(accountId, projection, selection, selectionArgs, sortOrder); in query()
531 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query()
551 String[] selectionArgs, String sortOrder); in queryAccount() argument
564 String[] selectionArgs, String sortOrder); in queryFolder() argument
585 String[] selectionArgs, String sortOrder); in queryMessage() argument
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java143 public void setSortOrder(int sortOrder) { in setSortOrder() argument
144 mSortOrder = sortOrder; in setSortOrder()
146 editor.putInt(SORT_ORDER_KEY, sortOrder); in setSortOrder()
404 int sortOrder = getDefaultSortOrder(); in maybeMigrateSystemSettings() local
406 sortOrder = Settings.System.getInt(mContext.getContentResolver(), in maybeMigrateSystemSettings()
410 setSortOrder(sortOrder); in maybeMigrateSystemSettings()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSqlInjectionDetectionTest.java117 final String selection, final String sortOrder) { in assertQueryValid() argument
118 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryValid()
123 final String[] projection, final String selection, final String sortOrder) { in assertQueryThrows() argument
125 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryThrows()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java359 String selection, String[] selectionArgs, String sortOrder) { in query() argument
386 if (TextUtils.isEmpty(sortOrder)) { in query()
387 sortOrder = DEFAULT_BOOKMARKS_SORT_ORDER; in query()
399 if (TextUtils.isEmpty(sortOrder)) { in query()
400 sortOrder = DEFAULT_BOOKMARKS_SORT_ORDER; in query()
409 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()
426 return qb.query(db, projection, selection, selectionArgs, groupBy, null, sortOrder, limit); in query()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DSQLiteQueryBuilderTest.java782 final String sortOrder = "bucket_id COLLATE LOCALIZED ASC"; in testStrict_158537159() local
785 builder.enforceStrictGrammar(null, null, null, sortOrder, null); in testStrict_158537159()
789 builder.enforceStrictGrammar(null, null, null, sortOrder, null); in testStrict_158537159()
802 final String sortOrder = "bucket_id COLLATE custom_zh ASC"; in testStrictCustomCollator() local
803 builder.enforceStrictGrammar(null, null, null, sortOrder, null); in testStrictCustomCollator()
893 String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) { in assertStrictQueryValid() argument
895 groupBy, having, sortOrder, limit, null)) { in assertStrictQueryValid() argument
900 String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) { in assertStrictQueryInvalid() argument
902 groupBy, having, sortOrder, limit, null)) { in assertStrictQueryInvalid() argument
904 groupBy, having, sortOrder, limit).toString()); in assertStrictQueryInvalid()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java174 String sortOrder) { in query() argument
183 + " sortOrder = " + sortOrder); in query()
190 if (!TextUtils.isEmpty(sortOrder)) { in query()
191 orderBy = sortOrder; in query()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java90 @Nullable String sortOrder) { in query() argument
99 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
109 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
124 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/
DChatProvider.java64 String sortOrder) { in query() argument
73 return qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
76 return qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java245 @Nullable String[] selectionArgs, @Nullable String sortOrder) { in query() argument
248 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
253 @Nullable String[] selectionArgs, @Nullable String sortOrder, in query() argument
261 cursor = queryBlockedList(projection, selection, selectionArgs, sortOrder, in query()
291 String sortOrder, CancellationSignal cancellationSignal) { in queryBlockedList() argument
298 /* groupBy =*/ null, /* having =*/null, sortOrder, in queryBlockedList()

1234567