/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerDataHelper.java | 103 * Query tracker data, filtering by given tag 108 public Cursor query(String tag, int limit) { method in class:TrackerDataHelper 111 Cursor cursor = mContext.getContentResolver().query( 128 public Cursor query(int limit) { method in class:TrackerDataHelper 129 return query(null, limit); 133 * Query tracker data, filtering by given tag. mo limit to number of rows 139 public Cursor query(String tag) { method in class:TrackerDataHelper 140 return query(tag, Integer.MAX_VALUE);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionUtils.java | 38 String query = suggestion.getSuggestionQuery(); local 52 if (query != null) { 53 intent.putExtra(SearchManager.QUERY, query); 73 String query = makeKeyComponent(normalizeUrl(suggestion.getSuggestionQuery())); local 76 int size = action.length() + 2 + data.length() + query.length(); 82 .append(query)
|
SuggestionsProviderImpl.java | 33 * The provider will only handle a single query at a time. If a new query comes 69 * Cancels all pending query tasks. 79 * Gets the sources that should be queried for the given query. 81 private List<Corpus> filterCorpora(String query, List<Corpus> corpora) { 82 // If there is only one corpus, always query it 86 if (shouldQueryCorpus(corpus, query)) { 87 if (DBG) Log.d(TAG, "should query corpus " + corpus); 90 if (DBG) Log.d(TAG, "should NOT query corpus " + corpus); 97 protected boolean shouldQueryCorpus(Corpus corpus, String query) { [all...] |
MultiSourceCorpus.java | 73 * @param query The query text. 78 protected Result createResult(String query, ArrayList<SourceResult> results, int latency) { 79 return new Result(query, results, latency); 83 * Gets the sources to query for suggestions for the given input. 85 * @param query The current input. 87 * @return The sources to query. 89 protected List<Source> getSourcesToQuery(String query, boolean onlyCorpus) { 92 if (candidate.getQueryThreshold() <= query.length()) { 137 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestionProvider.java | 66 private SourceResult emptyIfNull(SourceResult result, Source source, String query) { 67 return result == null ? new CursorBackedSourceResult(source, query) : result; 71 public Cursor query(Uri uri, String[] projection, String selection, method in class:GoogleSuggestionProvider 74 if (DBG) Log.d(TAG, "query uri=" + uri); 78 String query = getQuery(uri); local 80 emptyIfNull(mSource.queryExternal(query), mSource, query));
|
GoogleSuggestClient.java | 84 public SourceResult queryInternal(String query) { 85 return query(query); 89 public SourceResult queryExternal(String query) { 90 return query(query); 97 private SourceResult query(String query) { method in class:GoogleSuggestClient 98 if (TextUtils.isEmpty(query)) { 106 query = URLEncoder.encode(query, "UTF-8") [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
ContactsProviderTest.java | 43 * Verifies that query(ContactsContract.Contacts.CONTENT_URI) requires 51 mProvider.query(ContactsContract.Contacts.CONTENT_URI, 53 fail("query(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException as expected"); 62 * Verifies that query(ContactsContract.Profile.CONTENT_URI) requires 70 Cursor cursor = mProvider.query(ContactsContract.Profile.CONTENT_URI, 72 fail("query(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException as expected");
|
/external/webkit/LayoutTests/fast/url/script-tests/ |
query.js | 1 description("Test URLs that have a query string."); 6 // Allow question marks in the query without escaping 9 // Disabled because this test requires being able to set the query directly. 21 // Escape double quotemarks in the query.
|
/external/webkit/Source/WebCore/css/ |
StyleMedia.cpp | 51 bool StyleMedia::matchMedium(const String& query) const 70 media->setMediaText(query, ec);
|
/external/webkit/Source/WebCore/workers/ |
WorkerLocation.cpp | 69 return m_url.query().isEmpty() ? "" : "?" + m_url.query();
|
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteQuery.java | 25 * Represents a query that reads the resulting rows into a {@link SQLiteQuery}. 36 SQLiteQuery(SQLiteDatabase db, String query, CancellationSignal cancellationSignal) { 37 super(db, query, null, cancellationSignal); 48 * If it won't fit, then the query should discard part of what it filled. 49 * @param countAllRows True to count all rows that the query would 70 Log.e(TAG, "exception: " + ex.getMessage() + "; query: " + getSql());
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
WifiP2pDnsSdServiceRequest.java | 34 * @param query The part of service specific query. 37 private WifiP2pDnsSdServiceRequest(String query) { 38 super(WifiP2pServiceInfo.SERVICE_TYPE_BONJOUR, query);
|
/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/ |
SmartDialNameMatcherTest.java | 232 private void checkMatchesNumber(String number, String query, boolean expectedMatches, 234 checkMatchesNumber(number, query, expectedMatches, false, matchStart, matchEnd); 237 private void checkMatchesNumber(String number, String query, boolean expectedMatches, 239 final SmartDialMatchPosition pos = SmartDialNameMatcher.matchesNumber(number, query, 248 private void checkMatches(String displayName, String query, boolean expectedMatches, 250 final SmartDialNameMatcher matcher = new SmartDialNameMatcher(query); 254 displayName, query, matchPositions); 255 Log.d(TAG, "query=" + query + " text=" + displayName
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreTest.java | 41 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, null, null, null); 67 assertNull(mContentResolver.query(mScannerUri, PROJECTION, 75 // query 76 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, 85 assertNull(mContentResolver.query(mScannerUri, PROJECTION, null, null, null));
|
/external/chromium/net/http/ |
http_util_icu.cc | 19 return url.path() + "?" + url.query();
|
/external/qemu/android/ |
hw-control.c | 50 /* handle query */ 51 static void hw_control_do_query( HwControl* h, uint8_t* query, int querylen ); 96 uint8_t* query, 101 T("%s: query %4d '%.*s'", __FUNCTION__, querylen, querylen, query ); 103 q = if_starts_with( query, querylen, "power:light:brightness:" );
|
/external/webkit/Source/JavaScriptCore/wtf/url/api/ |
ParsedURL.h | 48 String query() const;
|
/external/webkit/Source/JavaScriptCore/wtf/url/src/ |
URLSegments.h | 49 Query, 67 // Note that this can get a little funny for the port, query, and fragment 73 // delimited components that is present (the port and query) and one that 78 // Example input: http://foo:80/?query 86 // *Query: 14 15 <- 99 URLComponent query; member in class:WTF::URLSegments
|
/external/webkit/Source/WebCore/storage/ |
StorageAreaSync.cpp | 278 SQLiteStatement query(m_database, "SELECT key, value FROM ItemTable"); 279 if (query.prepare() != SQLResultOk) { 287 int result = query.step(); 289 itemMap.set(query.getColumnText(0), query.getColumnText(1)); 290 result = query.step(); 389 SQLiteStatement& query = it->second.isNull() ? remove : insert; local 391 query.bindText(1, it->first); 395 query.bindText(2, it->second); 397 int result = query.step() [all...] |
/frameworks/base/core/java/com/android/internal/content/ |
SelectionBuilder.java | 96 * Execute query using the current internal state as {@code WHERE} clause. 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { method in class:SelectionBuilder 100 return query(db, table, columns, null, null, orderBy, null); 104 * Execute query using the current internal state as {@code WHERE} clause. 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, method in class:SelectionBuilder 108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having,
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
MockCorpus.java | 55 public Intent createSearchIntent(String query, Bundle appData) { 95 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { 96 return new Result(query, mSource.getSuggestions(query, queryLimit, true));
|
SingleCorpusPromoterTest.java | 30 public static final String TEST_QUERY = "query"; 57 private Suggestions makeSuggestions(String query) { 58 Suggestions suggestions = new Suggestions(query, mCorpora); 61 results.add(corpus.getSuggestions(query, 10, false));
|
/external/chromium/third_party/libjingle/source/talk/examples/call/ |
discoitemsquerytask.cc | 70 const XmlElement* query = stanza->FirstNamed(QN_DISCO_ITEMS_QUERY); local 71 if (query) { 72 SignalGotDiscoItems(to_, query);
|
friendinvitesendtask.cc | 41 XmlElement* query = new XmlElement(QN_ROSTER_QUERY); local 45 query->AddElement(item); 46 iq->AddElement(query);
|
/external/skia/src/core/ |
SkTileGrid.cpp | 54 void SkTileGrid::search(const SkIRect& query, SkTDArray<void*>* results) { 56 int tileStartX = (query.left() + 1) / fTileWidth; 57 int tileEndX = (query.right() + fTileWidth - 1) / fTileWidth; 58 int tileStartY = (query.top() + 1) / fTileHeight; 59 int tileEndY = (query.bottom() + fTileHeight - 1) / fTileHeight; 61 return; // query does not intersect the grid
|