Searched refs:query (Results 1 - 25 of 89) sorted by relevance

1234

/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/
H A 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/Support7Demos/src/com/example/android/supportv7/app/
H A DSearchActivity.java35 // Get the intent, verify the action and get the query
38 String query = intent.getStringExtra(SearchManager.QUERY);
41 suggestions.saveRecentQuery(query, null);
H A DActionBarUsage.java100 public boolean onQueryTextSubmit(String query) {
102 "Searching for: " + query + "...", Toast.LENGTH_SHORT).show();
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
H A DDictionaryProvider.java85 * the search query as the first element.
89 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:DictionaryProvider
92 // Use the UriMatcher to see what kind of query we have and format the db query accordingly
115 private Cursor getSuggestions(String query) { argument
116 query = query.toLowerCase();
125 return mDictionary.getWordMatches(query, columns);
128 private Cursor search(String query) { argument
129 query
[all...]
H A DDictionaryDatabase.java93 return query(selection, selectionArgs, columns);
95 /* This builds a query that looks like:
101 * Returns a Cursor over all words that match the given query
103 * @param query The string to search for
107 public Cursor getWordMatches(String query, String[] columns) { argument
109 String[] selectionArgs = new String[] {query+"*"};
111 return query(selection, selectionArgs, columns);
113 /* This builds a query that looks like:
114 * SELECT <columns> FROM <table> WHERE <KEY_WORD> MATCH 'query*'
115 * which is an FTS3 search for the query tex
135 private Cursor query(String selection, String[] selectionArgs, String[] columns) { method in class:DictionaryDatabase
[all...]
H A DSearchableDictionary.java76 // handles a search query
77 String query = intent.getStringExtra(SearchManager.QUERY);
78 showResults(query);
83 * Searches the dictionary and displays results for the given query.
84 * @param query The search query
86 private void showResults(String query) { argument
89 new String[] {query}, null);
93 mTextView.setText(getString(R.string.no_results, new Object[] {query}));
98 count, new Object[] {count, query});
[all...]
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
H A DSearchFragment.java56 public boolean onQueryTextSubmit(String query) { argument
57 Log.i(TAG, String.format("Search Query Text Submit %s", query));
59 loadQuery(query);
63 private void loadQuery(String query) { argument
64 mQuery = query;
66 if (!TextUtils.isEmpty(query) && !query.equals("nil")) {
/development/cmds/monkey/src/com/android/commands/monkey/
H A DMonkeySourceNetworkViews.java73 * Get the response to the query
74 * @return the response to the query
76 public MonkeyCommandReturn query(AccessibilityNodeInfo node, List<String> args); method in interface:MonkeySourceNetworkViews.ViewIntrospectionCommand
98 * Also sets up a communication connection so we can query the
228 return getter.query(node, args);
245 return (new GetAccessibilityIds()).query(node, new ArrayList<String>());
270 MonkeyCommandReturn result = idGetter.query(node, emptyArgs);
289 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetLocation
311 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetText
335 public MonkeyCommandReturn query(AccessibilityNodeInf method in class:MonkeySourceNetworkViews.GetClass
349 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetChecked
364 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetEnabled
379 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetSelected
395 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.SetSelected
419 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetFocused
435 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.SetFocused
460 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetAccessibilityIds
489 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetParent
510 public MonkeyCommandReturn query(AccessibilityNodeInfo node, method in class:MonkeySourceNetworkViews.GetChildren
[all...]
/development/samples/Wiktionary/src/com/example/android/wiktionary/
H A DLookupActivity.java222 // Start query for incoming search request
223 String query = intent.getStringExtra(SearchManager.QUERY);
224 startNavigating(query, true);
231 String query = data.getPathSegments().get(0);
232 startNavigating(query, true);
261 * background query to the Wiktionary API. When finished, it transitions
275 * Perform the background query using {@link ExtendedWikiHelper}, which
280 String query = args[0];
284 // If query word is null, assume request for random word
285 if (query
[all...]
/development/samples/BusinessCard/src/com/example/android/businesscard/
H A DContactAccessorSdk3_4.java57 Cursor cursor = contentResolver.query(contactUri,
68 cursor = contentResolver.query(phoneUri,
H A DContactAccessorSdk5.java63 Cursor cursor = contentResolver.query(contactUri,
75 cursor = contentResolver.query(Phone.CONTENT_URI,
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
H A DMainActivity.java28 * and uses it as a query to search the contacts database via the Contactables
34 public static final String QUERY_KEY = "query";
61 // SearchManager.QUERY is the key that a SearchManager will use to send a query string
63 String query = intent.getStringExtra(SearchManager.QUERY);
65 // We need to create a bundle containing the query string to send along to the
68 bundle.putString(QUERY_KEY, query);
72 // Start the loader with the new query, and an object that will handle all callbacks.
H A DContactablesLoaderCallbacks.java38 public static final String QUERY_KEY = "query";
49 // not just data dumps from Contacts db. One search term is used to query
50 // display name, email address and phone number. In this case, the query was extracted
55 String query = args.getString(QUERY_KEY);
57 CommonDataKinds.Contactables.CONTENT_FILTER_URI, query);
62 // Easy way to limit the query to contacts with phone numbers.
90 // Reset text in case of a previous query
131 // Look at DDMS to see all the columns returned by a query to Contactables.
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
H A DQueueHelper.java58 public static final List<MediaSession.QueueItem> getPlayingQueueFromSearch(String query, argument
61 LogHelper.e(TAG, "Creating playing queue for musics from search ", query);
63 return convertToQueue(musicProvider.searchMusics(query));
/development/ndk/platforms/android-L/include/linux/
H A Duvcvideo.h67 __u8 query; member in struct:uvc_xu_control_query
/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DAutoComplete5.java35 Cursor cursor = content.query(Contacts.CONTENT_URI,
H A DList2.java37 Cursor c = getContentResolver().query(Contacts.CONTENT_URI,
H A DAutoComplete4.java44 Cursor cursor = content.query(Contacts.CONTENT_URI,
91 return mContent.query(uri, CONTACT_PROJECTION, null, null, null);
H A DSearchViewActionBar.java102 public boolean onQueryTextSubmit(String query) { argument
103 mStatusView.setText("Query = " + query + " : submitted");
H A DWindowFocusObserver.java88 public boolean onQueryTextSubmit(String query) { argument
89 Toast.makeText(this, "Searching for: " + query + "...", Toast.LENGTH_SHORT).show();
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/db/
H A DSelectionBuilder.java52 * .query(db, projection, sortOrder)
57 * specified via method call. SelectionBuilder takes care of issuing a "query" command to the
89 * criteria, executed as a sub-query.
254 * SQL sub-query), the column name will be replaced with a more specific, SQL-compatible
284 * Execute query (SQL {@code SELECT}) against specified database.
288 * @param db Database to query.
296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) { method in class:SelectionBuilder
297 return query(db, columns, null, null, orderBy, null);
301 * Execute query ({@code SELECT}) against database.
305 * @param db Database to query
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy, method in class:SelectionBuilder
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/app/
H A DActionBarUsage.java89 public boolean onQueryTextSubmit(String query) { argument
90 Toast.makeText(this, "Searching for: " + query + "...", Toast.LENGTH_SHORT).show();
/development/samples/NotePad/tests/src/com/example/android/notepad/
H A DNotePadProviderTest.java360 noteIdCursor = mMockResolver.query(
423 // Defines a projection of column names to return for a query
430 // Defines a selection column for the query. When the selection columns are passed
431 // to the query, the selection arguments replace the placeholders.
434 // Defines the selection columns for a query.
441 // Defines a query sort order
445 // If there are no records in the table, the returned cursor from a query should be empty.
446 Cursor cursor = mMockResolver.query(
458 // If the table contains records, the returned cursor from a query should contain records.
464 cursor = mMockResolver.query(
[all...]
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/
H A DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE,
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/
H A DNotesDbAdapter.java146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE,
161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,

Completed in 687 milliseconds

1234