Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 54) sorted by relevance

123

/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/ui/
DSearchFragment.java81 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
82 Log.i(TAG, String.format("Search Query Text Submit %s", query)); in onQueryTextSubmit()
83 loadQuery(query); in onQueryTextSubmit()
87 private void loadQuery(String query) { in loadQuery() argument
88 mQuery = query; in loadQuery()
91 if (!TextUtils.isEmpty(query) && !query.equals("nil")) { in loadQuery()
92 mDelayedLoad.setSearchQuery(query); in loadQuery()
97 private void loadRows(String query) { in loadRows() argument
103 .contains(query.toLowerCase(Locale.ENGLISH)) in loadRows()
105 .contains(query.toLowerCase(Locale.ENGLISH))) { in loadRows()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DSearchFragment.java81 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
82 Log.i(TAG, String.format("Search Query Text Submit %s", query)); in onQueryTextSubmit()
83 queryByWords(query); in onQueryTextSubmit()
87 private void loadRows(String query) { in loadRows() argument
95 .indexOf(query.toLowerCase(Locale.ENGLISH)) >= 0 in loadRows()
97 .indexOf(query.toLowerCase(Locale.ENGLISH)) >= 0) { in loadRows()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/
DVideoContentProvider.java70 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in VideoContentProvider
86 private Cursor getSuggestions(String query) { in getSuggestions() argument
87 query = query.toLowerCase(); in getSuggestions()
107 return mVideoDatabase.getWordMatch(query, columns); in getSuggestions()
DVideoDatabase.java126 return query(selection, selectionArgs, columns); in getWord()
136 public Cursor getWordMatch(String query, String[] columns) { in getWordMatch() argument
151 String[] selectionArgs = new String[]{query + "*"}; in getWordMatch()
153 return query(selection, selectionArgs, columns); in getWordMatch()
164 private Cursor query(String selection, String[] selectionArgs, String[] columns) { in query() method in VideoDatabase
173 Cursor cursor = new PaginatedCursor(builder.query(mDatabaseOpenHelper.getReadableDatabase(), in query()
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/common/db/
DSelectionBuilder.java296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) { in query() method in SelectionBuilder
297 return query(db, columns, null, null, orderBy, null); in query()
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy, in query() method in SelectionBuilder
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
/developers/samples/android/common/src/java/com/example/android/common/db/
DSelectionBuilder.java296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) { in query() method in SelectionBuilder
297 return query(db, columns, null, null, orderBy, null); in query()
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy, in query() method in SelectionBuilder
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
DQueueHelper.java70 public static List<MediaSession.QueueItem> getPlayingQueueFromSearch(String query, in getPlayingQueueFromSearch() argument
73 LogHelper.d(TAG, "Creating playing queue for musics from search ", query); in getPlayingQueueFromSearch()
75 return convertToQueue(musicProvider.searchMusic(query), MEDIA_ID_MUSICS_BY_SEARCH, query); in getPlayingQueueFromSearch()
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
DQueueHelper.java70 public static List<MediaSession.QueueItem> getPlayingQueueFromSearch(String query, in getPlayingQueueFromSearch() argument
73 LogHelper.d(TAG, "Creating playing queue for musics from search ", query); in getPlayingQueueFromSearch()
75 return convertToQueue(musicProvider.searchMusic(query), MEDIA_ID_MUSICS_BY_SEARCH, query); in getPlayingQueueFromSearch()
/developers/build/prebuilts/gradle/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/
DMainActivity.java63 String query = intent.getStringExtra(SearchManager.QUERY); in handleIntent() local
68 bundle.putString(QUERY_KEY, query); in handleIntent()
DContactablesLoaderCallbacks.java55 String query = args.getString(QUERY_KEY); in onCreateLoader() local
57 CommonDataKinds.Contactables.CONTENT_FILTER_URI, query); in onCreateLoader()
/developers/samples/android/content/contacts/BasicContactables/Application/src/main/java/com/example/android/basiccontactables/
DMainActivity.java63 String query = intent.getStringExtra(SearchManager.QUERY); in handleIntent() local
68 bundle.putString(QUERY_KEY, query); in handleIntent()
DContactablesLoaderCallbacks.java55 String query = args.getString(QUERY_KEY); in onCreateLoader() local
57 CommonDataKinds.Contactables.CONTENT_FILTER_URI, query); in onCreateLoader()
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-SearchView/src/main/src/com/example/android/actionbarcompat/searchview/
DAppListFragment.java83 public void setFilterQuery(String query) { in setFilterQuery() argument
92 if (TextUtils.isEmpty(query)) { in setFilterQuery()
97 final Pattern p = Pattern.compile(".*" + query + ".*", Pattern.CASE_INSENSITIVE); in setFilterQuery()
/developers/samples/android/content/contacts/BasicContactables/
DREADME.md5 …splaying a SearchView in the Action Bar for user input and implementing a query Cursor with Common…
10 …d. It then implements the [LoaderManager.LoaderCallbacks][2] interface to query the contacts table…
16 For details on how to query the contacts provider, refer to the [Contacts Provider Access][6] guide.
/developers/build/prebuilts/gradle/BasicContactables/
DREADME.md5 …splaying a SearchView in the Action Bar for user input and implementing a query Cursor with Common…
10 …d. It then implements the [LoaderManager.LoaderCallbacks][2] interface to query the contacts table…
16 For details on how to query the contacts provider, refer to the [Contacts Provider Access][6] guide.
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/
DTvContractUtils.java78 cursor = resolver.query(channelsUri, projection, null, null, null); in updateChannels()
137 cursor = resolver.query(uri, projection, null, null, null); in getChannelCount()
164 cursor = resolver.query(uri, projection, null, null, null); in buildChannelMap()
191 cursor = resolver.query(uri, projection, null, null, null); in getLastProgramEndTimeMillis()
219 cursor = resolver.query(uri, projection, null, null, null); in getProgramPlaybackInfo()
/developers/build/prebuilts/gradle/DirectorySelection/
DREADME.md30 [buildDocumentUriUsingTree()][6] to access to the selected directory itself along with [query()][7]
51 Cursor docCursor = contentResolver.query(docUri, new String[]{
65 Cursor childCursor = contentResolver.query(childrenUri, new String[]{
104 [7]: https://developer.android.com/reference/android/content/ContentResolver.html#query(android.net…
/developers/build/prebuilts/gradle/ActionBarCompat-ShareActionProvider/Application/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/
DAssetProvider.java62 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in AssetProvider
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ShareActionProvider/Application/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/
DAssetProvider.java62 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in AssetProvider
/developers/build/prebuilts/gradle/ActiveNotifications/
DREADME.md20 In Android M, you can query for the active notifications that your app sent
24 to add notifications and then query how many notifications
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DDirectorySelectionFragment.java157 Cursor docCursor = contentResolver.query(docUri, new String[]{ in updateDirectoryEntries()
171 Cursor childCursor = contentResolver.query(childrenUri, new String[]{ in updateDirectoryEntries()
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in FeedProvider
106 Cursor c = builder.query(db, projection, sortOrder); in query()
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in FeedProvider
106 Cursor c = builder.query(db, projection, sortOrder); in query()
/developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/
DDirectorySelectionFragment.java157 Cursor docCursor = contentResolver.query(docUri, new String[]{ in updateDirectoryEntries()
171 Cursor childCursor = contentResolver.query(childrenUri, new String[]{ in updateDirectoryEntries()
/developers/samples/android/common/src/java/com/example/android/common/assetprovider/
DAssetProvider.java119 public Cursor query(Uri uri, String[] projection, String selection, in query() method in AssetProvider

123