Home
last modified time | relevance | path

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

1234

/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/
Ddatastore.py40 query = cls.gql('WHERE handle = :1', username)
41 return query.get()
47 query = cls.gql('WHERE handle = :1', username)
48 return query.get().updated
54 query = cls.gql('WHERE handle = :1', username)
55 return query.get().key().id()
61 query = cls.gql('WHERE handle = :1', username)
62 return query.get().status
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryProvider.java89 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in DictionaryProvider
115 private Cursor getSuggestions(String query) { in getSuggestions() argument
116 query = query.toLowerCase(); in getSuggestions()
125 return mDictionary.getWordMatches(query, columns); in getSuggestions()
128 private Cursor search(String query) { in search() argument
129 query = query.toLowerCase(); in search()
135 return mDictionary.getWordMatches(query, columns); in search()
DSearchableDictionary.java77 String query = intent.getStringExtra(SearchManager.QUERY); in handleIntent() local
78 showResults(query); in handleIntent()
86 private void showResults(String query) { in showResults() argument
89 new String[] {query}, null); in showResults()
93 mTextView.setText(getString(R.string.no_results, new Object[] {query})); in showResults()
98 count, new Object[] {count, query}); in showResults()
DDictionaryDatabase.java93 return query(selection, selectionArgs, columns); in getWord()
107 public Cursor getWordMatches(String query, String[] columns) { in getWordMatches() argument
109 String[] selectionArgs = new String[] {query+"*"}; in getWordMatches()
111 return query(selection, selectionArgs, columns); in getWordMatches()
135 private Cursor query(String selection, String[] selectionArgs, String[] columns) { in query() method in DictionaryDatabase
144 Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), in query()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetworkViews.java76 public MonkeyCommandReturn query(AccessibilityNodeInfo node, List<String> args); in query() method
228 return getter.query(node, args); in translateCommand()
245 return (new GetAccessibilityIds()).query(node, new ArrayList<String>()); in translateCommand()
270 MonkeyCommandReturn result = idGetter.query(node, emptyArgs); in translateCommand()
289 public MonkeyCommandReturn query(AccessibilityNodeInfo node, in query() method in MonkeySourceNetworkViews.GetLocation
311 public MonkeyCommandReturn query(AccessibilityNodeInfo node, in query() method in MonkeySourceNetworkViews.GetText
335 public MonkeyCommandReturn query(AccessibilityNodeInfo node, in query() method in MonkeySourceNetworkViews.GetClass
349 public MonkeyCommandReturn query(AccessibilityNodeInfo node, in query() method in MonkeySourceNetworkViews.GetChecked
364 public MonkeyCommandReturn query(AccessibilityNodeInfo node, in query() method in MonkeySourceNetworkViews.GetEnabled
379 public MonkeyCommandReturn query(AccessibilityNodeInfo node, in query() method in MonkeySourceNetworkViews.GetSelected
[all …]
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DSearchSupportFragment.java58 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
59 Log.i(TAG, String.format("Search Query Text Submit %s", query)); in onQueryTextSubmit()
61 loadQuery(query); in onQueryTextSubmit()
65 private void loadQuery(String query) { in loadQuery() argument
66 mQuery = query; in loadQuery()
68 if (!TextUtils.isEmpty(query) && !query.equals("nil")) { in loadQuery()
DSearchFragment.java56 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
57 Log.i(TAG, String.format("Search Query Text Submit %s", query)); in onQueryTextSubmit()
59 loadQuery(query); in onQueryTextSubmit()
63 private void loadQuery(String query) { in loadQuery() argument
64 mQuery = query; in loadQuery()
66 if (!TextUtils.isEmpty(query) && !query.equals("nil")) { in loadQuery()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DLookupActivity.java223 String query = intent.getStringExtra(SearchManager.QUERY); in onNewIntent() local
224 startNavigating(query, true); in onNewIntent()
231 String query = data.getPathSegments().get(0); in onNewIntent() local
232 startNavigating(query, true); in onNewIntent()
280 String query = args[0]; in doInBackground() local
285 if (query == null) { in doInBackground()
286 query = ExtendedWikiHelper.getRandomWord(); in doInBackground()
289 if (query != null) { in doInBackground()
291 publishProgress(query); in doInBackground()
292 String wikiText = ExtendedWikiHelper.getPageContent(query, true); in doInBackground()
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DSearchActivity.java38 String query = intent.getStringExtra(SearchManager.QUERY); in onCreate() local
41 suggestions.saveRecentQuery(query, null); in onCreate()
DActionBarUsage.java100 public boolean onQueryTextSubmit(String query) {
102 "Searching for: " + query + "...", Toast.LENGTH_SHORT).show();
/development/samples/browseable/BasicSyncAdapter/src/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()
/development/samples/NotePad/tests/src/com/example/android/notepad/
DNotePadProviderTest.java360 noteIdCursor = mMockResolver.query( in testWriteDataToPipe()
446 Cursor cursor = mMockResolver.query( in testQueriesOnNotesUri()
464 cursor = mMockResolver.query( in testQueriesOnNotesUri()
479 Cursor projectionCursor = mMockResolver.query( in testQueriesOnNotesUri()
499 projectionCursor = mMockResolver.query( in testQueriesOnNotesUri()
557 Cursor cursor = mMockResolver.query( in testQueriesOnNoteIdUri()
576 cursor = mMockResolver.query( in testQueriesOnNoteIdUri()
598 cursor = mMockResolver.query(noteIdUri, // the URI for a single note in testQueriesOnNoteIdUri()
642 Cursor cursor = mMockResolver.query( in testInserts()
731 Cursor cursor = mMockResolver.query( in testDeletes()
/development/samples/browseable/MediaBrowserService/src/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()
/development/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DQueueHelper.java71 public static List<MediaSessionCompat.QueueItem> getPlayingQueueFromSearch(String query, in getPlayingQueueFromSearch() argument
74 Log.d(TAG, "Creating playing queue for musics from search " + query); in getPlayingQueueFromSearch()
76 return convertToQueue(musicProvider.searchMusic(query), MEDIA_ID_MUSICS_BY_SEARCH, query); in getPlayingQueueFromSearch()
/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessorSdk5.java63 Cursor cursor = contentResolver.query(contactUri, in loadContact()
75 cursor = contentResolver.query(Phone.CONTENT_URI, in loadContact()
DContactAccessorSdk3_4.java57 Cursor cursor = contentResolver.query(contactUri, in loadContact()
68 cursor = contentResolver.query(phoneUri, in loadContact()
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
DMainActivity.java63 String query = intent.getStringExtra(SearchManager.QUERY); in handleIntent() local
68 bundle.putString(QUERY_KEY, query); in handleIntent()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarUsage.java89 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
90 Toast.makeText(this, "Searching for: " + query + "...", Toast.LENGTH_SHORT).show(); in onQueryTextSubmit()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DSearchViewActionBar.java102 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
103 mStatusView.setText("Query = " + query + " : submitted"); in onQueryTextSubmit()
DWindowFocusObserver.java88 public boolean onQueryTextSubmit(String query) { in onQueryTextSubmit() argument
89 Toast.makeText(this, "Searching for: " + query + "...", Toast.LENGTH_SHORT).show(); in onQueryTextSubmit()
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes()
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote()
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes()
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote()
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/
DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes()
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote()
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes()
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote()
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, in fetchAllNotes()
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, in fetchNote()

1234