/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | VoicemailContentProvider.java | 109 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:VoicemailContentProvider 114 return getTableDelegate(uriData).query(uriData, projection, selectionBuilder.build(), 348 "\nPlease set query parameter '%s' in the URI.\nURI: %s",
|
H A D | VoicemailContentTable.java | 164 // Delete all the files associated with this query. Once we've deleted the rows, there will 168 cursor = query(uriData, FILENAME_ONLY_PROJECTION, selection, selectionArgs, null); 193 public Cursor query(UriData uriData, String[] projection, String selection, method in class:VoicemailContentTable 203 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
|
H A D | SearchIndexManager.java | 300 Cursor cursor = db.query(Tables.DATA_JOIN_MIMETYPE_RAW_CONTACTS, ContactIndexQuery.COLUMNS, 361 * Tokenizes the query and normalizes/hex encodes each token. The tokenizer uses the same 367 public static String getFtsMatchQuery(String query, FtsQueryBuilder ftsQueryBuilder) { argument 374 for (int i = 0; i <= query.length(); i++) { 376 if (i == query.length()) { 379 final char ch = query.charAt(i); 392 final String token = query.substring(tokenStart, i); 449 // the token could be empty (if the search query was "_"). we should still emit it
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | ContactDirectoryManagerTest.java | 81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:ContactDirectoryManagerTest.MockContactDirectoryProvider 173 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 211 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 229 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 271 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 280 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 317 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 329 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 375 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); 394 cursor = mResolver.query(Director [all...] |
H A D | LegacyContactsProviderTest.java | 104 Cursor c = mResolver.query(personId, null, People.NAME + "='John Doe'" , null, null); 109 mResolver.query(People.DELETED_CONTENT_URI, null, null, null, null); 762 boolean phone, boolean email, String query, boolean expectIcon1Uri, String expectedIcon2, 825 .appendPath(SearchManager.SUGGEST_URI_PATH_QUERY).appendPath(query).build(); 827 Cursor c = mResolver.query(searchUri, null, null, null, null); 938 Cursor c = mResolver.query(filterUri, null, null, null, null); 761 assertSearchSuggestion(boolean name, boolean photo, boolean organization, boolean phone, boolean email, String query, boolean expectIcon1Uri, String expectedIcon2, String expectedText1, String expectedText2) argument
|
/packages/providers/DrmProvider/src/com/android/providers/drm/ |
H A D | DrmProvider.java | 138 public Cursor query(Uri uri, String[] projectionIn, String selection, method in class:DrmProvider 176 Cursor c = qb.query(db, projectionIn, selection, 190 Cursor c = query(url, MIME_TYPE_PROJECTION, null, null, null); 320 Cursor c = query(uri, new String [] { "_data" }, userWhere, whereArgs, null);
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | TelephonyProvider.java | 424 public Cursor query(Uri url, String[] projectionIn, String selection, method in class:TelephonyProvider 461 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort);
|
H A D | MmsProvider.java | 67 public Cursor query(Uri uri, String[] projection, method in class:MmsProvider 71 // Generate the body of the query. 186 Log.e(TAG, "query: invalid request: " + uri); 202 Cursor ret = qb.query(db, projection, selection, 235 Cursor cursor = mOpenHelper.getReadableDatabase().query( 574 Cursor cursor = db.query(TABLE_PDU, new String[] { Mms._ID }, 617 Cursor cursor = db.query(table, new String[] { "_data" },
|
H A D | SmsProvider.java | 90 public Cursor query(Uri url, String[] projectionIn, String selection, method in class:SmsProvider 94 // Generate the body of the query. 149 Log.d(TAG, "query conversations: threadID=" + threadID); 223 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, 445 // the insert below, but we'd have to query to find the old _id 460 cursor = getContext().getContentResolver().query( 470 Log.e(TAG, "insert: query contact uri " + uri + " caught ", ex);
|
H A D | MmsSmsProvider.java | 49 * This class provides the ability to query the MMS and SMS databases 54 * requested in the projection for a query. Its value is either "mms" 63 * This is done atomically through a query. There is no insert URI 196 // of text matches. We query the sms table which is pretty simple. We also 197 // query the pdu, part and addr table to get the mms result. Notet we're 228 // In this pattern, two query parameter names are expected: 233 // Use this pattern to query the canonical address by given ID. 236 // Use this pattern to query all canonical addresses. 242 // In this pattern, two query parameters may be supplied: 284 public Cursor query(Ur method in class:MmsSmsProvider [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 570 public final Cursor query(Uri uri, String[] projection, String selection, method in class:AsyncQueryServiceTest.TestProvider 572 Log.d(TAG, "Provider query index=" + index);
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
H A D | ActionBarAdapter.java | 59 private static final String EXTRA_KEY_QUERY = "navBar.query"; 226 * Note even if the action bar is in search mode, if the query is empty, the search fragment 252 public void setQueryString(String query) { argument 253 mQueryString = query; 255 mSearchView.setQuery(query, false); 332 // TODO: Clean up SearchView code because it keeps setting the SearchView query, 351 public boolean onQueryTextSubmit(String query) { argument
|
H A D | ContactSelectionActivity.java | 529 public boolean onQueryTextSubmit(String query) { argument
|
/packages/apps/Email/src/com/android/email/activity/ |
H A D | EmailActivity.java | 138 * @param query query string. 141 long mailboxId, String query) { 150 i.putExtra(EXTRA_QUERY_STRING, query); 140 createSearchIntent(Activity fromActivity, long accountId, long mailboxId, String query) argument
|
H A D | MessagesAdapter.java | 80 /** If not null, the query represented by this group of messages */ 163 public void setQuery(String query) { argument 164 mQuery = query; 306 // Then do a query to get the cursor 366 * @return the total number of results that match the given search query. Note that
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherProvider.java | 103 public Cursor query(Uri uri, String[] projection, String selection, method in class:LauncherProvider 111 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); 285 cursor = resolver.query(uri, null, null, null, null); 468 c = db.query(TABLE_FAVORITES, new String[] { Favorites._ID, Favorites.INTENT }, 610 throw new RuntimeException("Error: could not query max id"); 635 c = db.query(TABLE_FAVORITES, new String[] { Favorites._ID, Favorites.ITEM_TYPE }, 1023 * Build a query string that will match any row where the column matches
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | UserBigramDictionary.java | 215 Cursor cursor = query(MAIN_COLUMN_LOCALE + "=?", new String[] { mLocale }); 241 private Cursor query(String selection, String[] selectionArgs) { method in class:UserBigramDictionary 251 // Get the database and run the query 253 Cursor c = qb.query(db, 315 Cursor c = db.query(FREQ_TABLE_NAME, new String[] { FREQ_COLUMN_PAIR_ID }, 355 Cursor c = db.query(MAIN_TABLE_NAME, new String[] { MAIN_COLUMN_ID },
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageManager.java | 500 private static Cursor query(ContentResolver resolver, Uri uri, method in class:ImageManager 507 return resolver.query( 517 Cursor cursor = query(cr, MediaStore.getMediaScannerUri(),
|
/packages/apps/Mms/src/com/android/mms/ |
H A D | SuggestionsProvider.java | 70 public Cursor query(Uri uri, String[] projection, String selection, method in class:SuggestionsProvider 75 Cursor c = getContext().getContentResolver().query( 97 public SuggestionsCursor(Cursor cursor, String query) { argument 99 mQuery = query;
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
H A D | SoundRecorder.java | 519 * A simple utility to do a query into the databases. 521 private Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { method in class:SoundRecorder 527 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); 542 Cursor cur = resolver.query(uri, cols, null, null, null); 560 Cursor cursor = query(uri, ids, where, args, null); 562 Log.v(TAG, "query returns null");
|
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/ |
H A D | ApplicationsProvider.java | 96 // A query parameter to refresh application statistics. Used by QSB. 312 public Cursor query(Uri uri, String[] projectionIn, String selection, method in class:ApplicationsProvider 314 if (DBG) Log.d(TAG, "query(" + uri + ")"); 328 String query = null; 330 query = uri.getLastPathSegment().toLowerCase(); 335 return getSuggestions(query, projectionIn); 345 String query = null; 347 query = uri.getLastPathSegment().toLowerCase(); 349 return getSearchResults(query, projectionIn); 356 private Cursor getSuggestions(String query, Strin argument 389 getSearchResults(String query, String[] projectionIn) argument 393 searchApplications(String query, String[] projectionIn, Map<String, String> columnMap) argument [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadProvider.java | 799 * Starts a database query 802 public Cursor query(final Uri uri, String[] projection, method in class:DownloadProvider 847 Cursor ret = db.query(DB_TABLE, projection, fullSelection.getSelection(), 858 Log.v(Constants.TAG, "query failed in downloads database"); 868 sb.append("starting query, database is "); 934 * Handle a query for the custom request headers registered for a download. 941 return db.query(Downloads.Impl.RequestHeaders.HEADERS_DB_TABLE, projection, where, 946 * Delete request headers for downloads matching the given query. 950 Cursor cursor = db.query(DB_TABLE, projection, where, whereArgs, null, null, null, null); 1013 Cursor c = query(ur [all...] |
/packages/apps/Browser/src/com/android/browser/provider/ |
H A D | BrowserProvider.java | 190 searchClientIdCursor = cr.query(Uri.parse("content://com.google.settings/partner"), 195 legacyClientIdCursor = cr.query(Uri.parse("content://com.google.settings/partner"), 633 // Return the url in the intent query column. This is ignored 636 // global search for query rewriting. 839 * Provide a set of results to be returned to query, intended to be used 854 public Cursor query(Uri url, String[] projectionIn, String selection, method in class:BrowserProvider 888 Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_NAMES[match % 10], projection, 919 Cursor c = mOpenHelper.getReadableDatabase().query(TABLE_NAMES[URI_MATCH_BOOKMARKS], 1044 Cursor cursor = cr.query(Browser.BOOKMARKS_URI, 1092 // set, so we don't need to query th [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | AllInOneActivity.java | 188 // If the query didn't return a cursor for some reason return 1150 public boolean onQueryTextSubmit(String query) { argument 1151 if ("TARDIS".equalsIgnoreCase(query)) { 1155 mController.sendEvent(this, EventType.SEARCH, null, null, -1, ViewType.CURRENT, 0, query,
|
H A D | CalendarController.java | 162 public String query; // query for a user search field in class:CalendarController.EventInfo 163 public ComponentName componentName; // used in combination with query 315 * sendEvent() variant with extraLong, search query, and search component name. 318 int viewType, long extraLong, String query, ComponentName componentName) { 319 sendEvent(sender, eventType, start, end, start, eventId, viewType, extraLong, query, 324 long eventId, int viewType, long extraLong, String query, ComponentName componentName) { 332 info.query = query; 522 launchSearch(event.id, event.query, even 317 sendEvent(Object sender, long eventType, Time start, Time end, long eventId, int viewType, long extraLong, String query, ComponentName componentName) argument 323 sendEvent(Object sender, long eventType, Time start, Time end, Time selected, long eventId, int viewType, long extraLong, String query, ComponentName componentName) argument 690 launchSearch(long eventId, String query, ComponentName componentName) argument [all...] |