/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceRequest.java | 73 protected WifiP2pServiceRequest(int protocolType, String query) { in WifiP2pServiceRequest() argument 74 validateQuery(query); in WifiP2pServiceRequest() 77 mQuery = query; in WifiP2pServiceRequest() 78 if (query != null) { in WifiP2pServiceRequest() 79 mLength = query.length()/2 + 2; in WifiP2pServiceRequest() 94 int transId, String query) { in WifiP2pServiceRequest() argument 98 mQuery = query; in WifiP2pServiceRequest() 154 private void validateQuery(String query) { in validateQuery() argument 155 if (query == null) { in validateQuery() 160 if (query.length()%2 == 1) { in validateQuery() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteQueryBuilder.java | 212 StringBuilder query = new StringBuilder(120); in buildQueryString() local 214 query.append("SELECT "); in buildQueryString() 216 query.append("DISTINCT "); in buildQueryString() 219 appendColumns(query, columns); in buildQueryString() 221 query.append("* "); in buildQueryString() 223 query.append("FROM "); in buildQueryString() 224 query.append(tables); in buildQueryString() 225 appendClause(query, " WHERE ", where); in buildQueryString() 226 appendClause(query, " GROUP BY ", groupBy); in buildQueryString() 227 appendClause(query, " HAVING ", having); in buildQueryString() [all …]
|
D | SQLiteDirectCursorDriver.java | 43 public Cursor query(CursorFactory factory, String[] selectionArgs) { in query() method in SQLiteDirectCursorDriver 44 final SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, mCancellationSignal); in query() local 47 query.bindAllArgsAsStrings(selectionArgs); in query() 50 cursor = new SQLiteCursor(this, mEditTable, query); in query() 52 cursor = factory.newCursor(mDatabase, this, mEditTable, query); in query() 55 query.close(); in query() 59 mQuery = query; in query()
|
D | SQLiteCursor.java | 79 String editTable, SQLiteQuery query) { in SQLiteCursor() argument 80 this(driver, editTable, query); in SQLiteCursor() 93 public SQLiteCursor(SQLiteCursorDriver driver, String editTable, SQLiteQuery query) { in SQLiteCursor() argument 94 if (query == null) { in SQLiteCursor() 105 mQuery = query; in SQLiteCursor() 107 mColumns = query.getColumnNames(); in SQLiteCursor()
|
/frameworks/ex/common/java/com/android/common/ |
D | Search.java | 64 public static Cursor getSuggestions(Context context, SearchableInfo searchable, String query) { in getSuggestions() argument 65 return getSuggestions(context, searchable, query, -1); in getSuggestions() 78 String query, int limit) { in getSuggestions() argument 91 .query("") // TODO: Remove, workaround for a bug in Uri.writeToParcel() in getSuggestions() 108 selArgs = new String[] { query }; in getSuggestions() 110 uriBuilder.appendPath(query); in getSuggestions() 121 return context.getContentResolver().query(uri, null, selection, selArgs, null); in getSuggestions()
|
/frameworks/base/core/java/android/net/ |
D | Uri.java | 630 private Part query; field in Uri.StringUri 633 return query == null in getQueryPart() 634 ? query = Part.fromEncoded(parseQuery()) : query; in getQueryPart() 781 .query(getQueryPart()) in buildUpon() 1138 private final Part query; field in Uri.HierarchicalUri 1142 Part query, Part fragment) { in HierarchicalUri() argument 1146 this.query = Part.nonNull(query); in HierarchicalUri() 1169 query.writeTo(parcel); in writeToParcel() 1221 if (!query.isEmpty()) { in appendSspTo() 1222 builder.append('?').append(query.getEncoded()); in appendSspTo() [all …]
|
/frameworks/support/renderscript/v8/rs_support/scriptc/ |
D | rs_program.rsh | 31 * @param ps program store to query 39 * @param ps program store to query 46 * @param ps program store to query 54 * @param ps program store to query 62 * @param ps program store to query 70 * @param ps program store to query 78 * @param ps program store to query 86 * @param ps program store to query 94 * @param ps program store to query 102 * @param pr program raster to query [all …]
|
D | rs_sampler.rsh | 32 * @param s sampler to query 41 * @param s sampler to query 50 * @param s sampler to query 59 * @param s sampler to query 68 * @param s sampler to query
|
/frameworks/rs/scriptc/ |
D | rs_program.rsh | 31 * @param ps program store to query 39 * @param ps program store to query 46 * @param ps program store to query 54 * @param ps program store to query 62 * @param ps program store to query 70 * @param ps program store to query 78 * @param ps program store to query 86 * @param ps program store to query 94 * @param ps program store to query 102 * @param pr program raster to query [all …]
|
D | rs_sampler.rsh | 32 * @param s sampler to query 41 * @param s sampler to query 50 * @param s sampler to query 59 * @param s sampler to query 68 * @param s sampler to query
|
/frameworks/base/docs/html/guide/topics/search/ |
D | adding-recent-query-suggestions.jd | 33 queries. For example, if a user previously searched for "puppies," then that query appears as a 34 suggestion once he or she begins typing the same query. Figure 1 shows an example of a search dialog 35 with recent query suggestions.</p> 47 <p class="img-caption"><strong>Figure 1.</strong> Screenshot of a search dialog with recent query 51 <p>Recent query suggestions are simply saved searches. When the user selects one of 53 android.content.Intent#ACTION_SEARCH} intent with the suggestion as the search query, which your 74 suggestions, the following procedure takes place as soon as the user begins typing a query:</p> 77 <li>The system takes the search query text (whatever has been typed so far) and performs a 78 query to the content provider that contains your suggestions.</li> 80 suggestions that match the search query text.</li> [all …]
|
D | adding-custom-suggestions.jd | 14 <li><a href="#HandlingSuggestionQuery">Handling a suggestion query</a></li> 75 your searchable activity. Whereas a normal search query sends an intent with the {@link 105 suggestions, the following procedure takes place when the user types a query:</p> 108 <li>The system takes the search query text (whatever has been typed so far) and performs a 109 query to your content provider that manages your suggestions.</li> 111 suggestions that are relevant to the search query text.</li> 118 <li>If the user types another key, or changes the query in any way, the above steps are repeated 161 android.content.ContentProvider#query(Uri,String[],String,String[],String) query()} each time 163 android.content.ContentProvider#query(Uri,String[],String,String[],String) query()}, your 170 <dt><a href="#HandlingSuggestionQuery">Handling the suggestion query</a></dt> [all …]
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
D | TrackerDataHelper.java | 108 public Cursor query(String tag, int limit) { in query() method in TrackerDataHelper 111 Cursor cursor = mContext.getContentResolver().query( in query() 128 public Cursor query(int limit) { in query() method in TrackerDataHelper 129 return query(null, limit); in query() 139 public Cursor query(String tag) { in query() method in TrackerDataHelper 140 return query(tag, Integer.MAX_VALUE); in query()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CallerInfoTest.java | 84 QueryRunner query; in testEmergencyIsProperlySetUsingAsyncQuery() local 86 query = new QueryRunner("911"); in testEmergencyIsProperlySetUsingAsyncQuery() 87 query.runAndCheckCompletion(); in testEmergencyIsProperlySetUsingAsyncQuery() 90 query = new QueryRunner("tel:911"); in testEmergencyIsProperlySetUsingAsyncQuery() 91 query.runAndCheckCompletion(); in testEmergencyIsProperlySetUsingAsyncQuery() 94 query = new QueryRunner("18001234567"); in testEmergencyIsProperlySetUsingAsyncQuery() 95 query.runAndCheckCompletion(); in testEmergencyIsProperlySetUsingAsyncQuery()
|
/frameworks/base/core/java/android/app/ |
D | SearchManager.java | 633 public void triggerSearch(String query, in triggerSearch() argument 640 if (query == null || TextUtils.getTrimmedLength(query) == 0) { in triggerSearch() 644 startSearch(query, false, launchActivity, appSearchData, false); in triggerSearch() 767 public Cursor getSuggestions(SearchableInfo searchable, String query) { in getSuggestions() argument 768 return getSuggestions(searchable, query, -1); in getSuggestions() 782 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument 795 .query("") // TODO: Remove, workaround for a bug in Uri.writeToParcel() in getSuggestions() 812 selArgs = new String[] { query }; in getSuggestions() 814 uriBuilder.appendPath(query); in getSuggestions() 824 return mContext.getContentResolver().query(uri, null, selection, selArgs, null); in getSuggestions()
|
/frameworks/base/docs/html/training/load-data-background/ |
D | index.jd | 41 If you run the query directly from an {@link android.app.Activity}, it may get blocked and 43 will see an annoying delay in the UI. To avoid these problems, you should initiate a query on a 47 You can do this in a straightforward way by using an object that runs a query asynchronously in 50 background query, a {@link android.support.v4.content.CursorLoader} automatically re-runs the 51 query when data associated with the query changes. 55 background query. Examples in this class use the {@link android.support.v4 v4 support library} 64 Learn how to run a query in the background, using a 73 Learn how to handle the {@link android.database.Cursor} returned from the query, and how
|
D | setup-loader.jd | 32 A {@link android.support.v4.content.CursorLoader} runs an asynchronous query in the background 37 query is ongoing. 63 To initialize a query, call 66 used in the query, or, if you don't need any user data, you can do it in 102 To start the query, return a {@link android.support.v4.content.CursorLoader} from this method. 104 methods to define your query, or you can instantiate the object and define the query at the 110 * is ready to start the query. This usually happens when initLoader() is 125 mDataUrl, // Table to query 138 Once the background framework has the object, it starts the query in the background. When the 139 query is done, the background framework calls
|
/frameworks/support/v4/honeycomb/android/support/v4/widget/ |
D | SearchViewCompatHoneycomb.java | 33 public boolean onQueryTextSubmit(String query); in onQueryTextSubmit() argument 55 public boolean onQueryTextSubmit(String query) { in newOnQueryTextListener() 56 return listener.onQueryTextSubmit(query); in newOnQueryTextListener() 87 public static void setQuery(View searchView, CharSequence query, boolean submit) { 88 ((SearchView) searchView).setQuery(query, submit);
|
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
D | BandwidthEnforcementTestService.java | 159 final byte[] query = buildDnsQuery("www", "android", "com"); in testDns() 161 query, query.length, InetAddress.parseNumericAddress("8.8.8.8"), 53); in testDns() 164 final byte[] reply = new byte[query.length]; in testDns() 184 private static byte[] buildDnsQuery(String... query) throws IOException { in buildDnsQuery() argument 198 for (String phrase : query) { in buildDnsQuery()
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | SearchViewCompat.java | 42 void setQuery(View searchView, CharSequence query, boolean submit); in setQuery() argument 96 public void setQuery(View searchView, CharSequence query, boolean submit) { in setQuery() argument 152 public boolean onQueryTextSubmit(String query) { in newOnQueryTextListener() 153 return listener.onQueryTextSubmit(query); in newOnQueryTextListener() 189 public void setQuery(View searchView, CharSequence query, boolean submit) { 190 SearchViewCompatHoneycomb.setQuery(searchView, query, submit); 352 public boolean onQueryTextSubmit(String query) { 420 public static void setQuery(View searchView, CharSequence query, boolean submit) { 421 IMPL.setQuery(searchView, query, submit);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 412 String path, String query, String fragment) { in testHierarchical() argument 421 if (query != null) { in testHierarchical() 422 sb.append('?').append(query); in testHierarchical() 440 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 442 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 449 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 451 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 461 .encodedQuery(query) in testHierarchical() 466 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical() 468 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical() [all …]
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerBaseTest.java | 90 Cursor cursor = dm.query(new Query().setFilterById(id)); in onReceive() 398 private void doWaitForDownloadsOrTimeout(Query query, long poll, long timeoutMillis) in doWaitForDownloadsOrTimeout() argument 402 query.setFilterByStatus(DownloadManager.STATUS_PENDING | DownloadManager.STATUS_PAUSED in doWaitForDownloadsOrTimeout() 404 Cursor cursor = mDownloadManager.query(query); in doWaitForDownloadsOrTimeout() 523 Cursor cursor = mDownloadManager.query(new Query()); in removeAllCurrentDownloads() 558 Query query = new Query(); in getCursor() local 560 query.setFilterById(id); in getCursor() 563 Cursor cursor = mDownloadManager.query(query); in getCursor()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | SelectionBuilder.java | 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query() method in SelectionBuilder 100 return query(db, table, columns, null, null, orderBy, null); in query() 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query() method in SelectionBuilder 108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseStatementTest.java | 85 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testExecuteStatement() 139 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementLongBinding() 161 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementStringBinding() 184 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementClearBindings() 206 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testSimpleStringBinding() 231 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementMultipleBindings() 266 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in run() 315 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementConstraint()
|
D | NewDatabasePerformanceTests.java | 201 .query("t1", COLUMNS, where[i], null, null, null, null); in testRun() 238 .query("t1", COLUMNS, where[i], null, null, null, null); in testRun() 278 .query("t1", COLUMNS, where[i], null, null, null, null); in testRun() 315 mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null, in testRun() 354 mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null, in testRun() 393 mDatabase.query("t1 INNER JOIN t2 ON t1.c = t2.c", COLUMNS, null, in testRun() 444 .query("t1", COLUMNS, where[i], null, null, null, null); in testRun() 482 .query("t1", COLUMNS, where[i], null, null, null, null); in testRun() 513 mDatabase.query("t1", COLUMNS, null, null, null, null, null); in testRun() 544 mDatabase.query("t1", COLUMNS, null, null, null, null, null); in testRun() [all …]
|