/development/samples/SampleSyncAdapter/samplesyncadapter_server/model/ |
H A D | datastore.py | 40 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 D | SearchActivity.java | 35 // Get the intent, verify the action and get the query 38 String query = intent.getStringExtra(SearchManager.QUERY); 41 suggestions.saveRecentQuery(query, null);
|
H A D | ActionBarUsage.java | 100 public boolean onQueryTextSubmit(String query) { 102 "Searching for: " + query + "...", Toast.LENGTH_SHORT).show();
|
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
H A D | DictionaryProvider.java | 85 * 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 D | DictionaryDatabase.java | 93 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 D | SearchableDictionary.java | 76 // 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 D | SearchFragment.java | 56 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 D | MonkeySourceNetworkViews.java | 73 * 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 D | LookupActivity.java | 222 // 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 D | ContactAccessorSdk3_4.java | 57 Cursor cursor = contentResolver.query(contactUri, 68 cursor = contentResolver.query(phoneUri,
|
H A D | ContactAccessorSdk5.java | 63 Cursor cursor = contentResolver.query(contactUri, 75 cursor = contentResolver.query(Phone.CONTENT_URI,
|
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
H A D | MainActivity.java | 28 * 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 D | ContactablesLoaderCallbacks.java | 38 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 D | QueueHelper.java | 58 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 D | uvcvideo.h | 67 __u8 query; member in struct:uvc_xu_control_query
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
H A D | AutoComplete5.java | 35 Cursor cursor = content.query(Contacts.CONTENT_URI,
|
H A D | List2.java | 37 Cursor c = getContentResolver().query(Contacts.CONTENT_URI,
|
H A D | AutoComplete4.java | 44 Cursor cursor = content.query(Contacts.CONTENT_URI, 91 return mContent.query(uri, CONTACT_PROJECTION, null, null, null);
|
H A D | SearchViewActionBar.java | 102 public boolean onQueryTextSubmit(String query) { argument 103 mStatusView.setText("Query = " + query + " : submitted");
|
H A D | WindowFocusObserver.java | 88 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 D | SelectionBuilder.java | 52 * .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 D | ActionBarUsage.java | 89 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 D | NotePadProviderTest.java | 360 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 D | NotesDbAdapter.java | 146 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 D | NotesDbAdapter.java | 146 return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, 161 mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID,
|