/system/netd/server/dns/ |
DnsTlsTransport.cpp | 38 std::future<DnsTlsTransport::Result> DnsTlsTransport::query(const netdutils::Slice query) { function in class:android::net::DnsTlsTransport 41 auto record = mQueries.recordQuery(query); 49 ALOGV("No socket for query. Opening socket and sending."); 52 sendQuery(record->query); 58 bool DnsTlsTransport::sendQuery(const DnsTlsQueryMap::Query q) { 60 bool sent = mSocket->query(q.newId, netdutils::drop(q.query, 2)); 165 uint8_t query[] = { local 166 rnd[6], rnd[7], // [0-1] query I [all...] |
DnsTlsDispatcher.cpp | 80 DnsTlsTransport::Response DnsTlsDispatcher::query( function in class:android::net::DnsTlsDispatcher 82 const Slice query, const Slice ans, int *resplen) { 89 code = this->query(server, mark, query, ans, resplen); 110 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned mark, function in class:android::net::DnsTlsDispatcher 111 const Slice query, 127 ALOGV("Sending query of length %zu", query.size()); 128 auto res = xport->transport.query(query); [all...] |
/art/tools/ahat/src/main/com/android/ahat/ |
ObjectsHandler.java | 38 public void handle(Doc doc, Query query) throws IOException { 39 int id = query.getInt("id", 0); 40 String className = query.get("class", null); 41 String heapName = query.get("heap", null); 54 SubsetSelector<AhatInstance> selector = new SubsetSelector(query, OBJECTS_ID, insts);
|
SubsetSelector.java | 32 private Query mQuery; 38 * @param id - the name of the query parameter key that should hold 40 * @param query - The query for the current page. This is required so the 46 public SubsetSelector(Query query, String id, List<T> elements) { 47 mQuery = query; 49 mLimit = getSelectedLimit(query, id, elements.size()); 65 * @param query the current page query [all...] |
ObjectHandler.java | 57 public void handle(Doc doc, Query query) throws IOException { 58 long id = query.getLong("id", 0); 69 printAllocationSite(doc, query, inst); 72 printGcRootPath(doc, query, inst); 105 printClassInstanceFields(doc, query, inst.asClassInstance()); 107 printArrayElements(doc, query, inst.asArrayInstance()); 109 printClassInfo(doc, query, inst.asClassObj()); 111 printReferences(doc, query, inst); 112 printDominatedObjects(doc, query, inst) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
DeletedContactUtil.java | 40 Cursor cursor = resolver.query(uri, projection, null, null, null); 56 Cursor cursor = resolver.query(URI, projection, null, null, null); 69 public static List<String[]> query(ContentResolver resolver, String[] projection) { method in class:DeletedContactUtil 70 Cursor cursor = resolver.query(URI, projection, null, null, null); 83 Cursor cursor = resolver.query(URI, projection, selection, args, null);
|
/libcore/luni/src/test/java/libcore/java/time/format/ |
DateTimeFormatterBuilderTest.java | 79 formatter.parse("Europe/London").query(TemporalQueries.zoneId())); 81 formatter.parse("UTC").query(TemporalQueries.zoneId())); 83 formatter.parse("GMT+01:00").query(TemporalQueries.zoneId())); 87 formatter.parse("UTC+01:00").query(TemporalQueries.zoneId())); 90 formatter.parse("+01:00").query(TemporalQueries.zoneId()));
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
Era.java | 132 * If the field is a {@link ChronoField} then the query is implemented here. 160 * If the field is a {@link ChronoField} then the query is implemented here. 172 * @param field the field to query the range for, not null 190 * If the field is a {@link ChronoField} then the query is implemented here. 222 * If the field is a {@link ChronoField} then the query is implemented here. 249 * Queries this era using the specified query. 251 * This queries this era using the specified query strategy object. 253 * obtain the result. Read the documentation of the query to understand 258 * specified query passing {@code this} as the argument. 261 * @param query the query to invoke, not nul 268 default <R> R query(TemporalQuery<R> query) { method in interface:Era [all...] |
/libcore/ojluni/src/main/java/java/time/temporal/ |
TemporalQueries.java | 85 * Examples might be a query that checks if the date is the day before February 29th 94 * The second is to use {@link TemporalAccessor#query(TemporalQuery)}: 98 * temporal = temporal.query(thisQuery); 100 * It is recommended to use the second approach, {@code query(TemporalQuery)}, 136 * A strict query for the {@code ZoneId}. 144 * In most cases, applications should use {@link #zone()} as this query is too strict. 165 * @return a query that can obtain the zone ID of a temporal, not null 172 * A query for the {@code Chronology}. 201 * That method is equivalent to this query, except that it throws an 204 * @return a query that can obtain the chronology of a temporal, not nul [all...] |
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/ |
ContactsCursorLoader.java | 87 /** Update cursor loader to filter contacts based on the provided query. */ 88 public void setQuery(String query) { 89 setUri(buildUri(query)); 92 private static Uri buildUri(String query) { 94 if (TextUtils.isEmpty(query)) { 97 baseUri = Contacts.CONTENT_FILTER_URI.buildUpon().appendPath(query);
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
SourceLatency.java | 90 String query, long delay) { 93 int length = query.length(); 95 final String prefix = query.substring(0, end); 133 public long checkSource(String src, ComponentName componentName, String query) { 135 return checkSourceInternal(src, searchable, query); 138 private long checkSourceInternal(String src, SearchableInfo searchable, String query) { 142 cursor = getSuggestions(searchable, query); 147 + " for '" + query + "'"); 150 + " for '" + query + "'"); 160 public Cursor getSuggestions(SearchableInfo searchable, String query) { [all...] |
/packages/apps/Settings/src/com/android/settings/search/ |
SearchFeatureProviderImpl.java | 89 * A generic method to make the query suitable for searching the database. 91 * @return the cleaned query string 94 String cleanQuery(String query) { 95 if (TextUtils.isEmpty(query)) { 99 query = IndexData.normalizeJapaneseString(query); 101 return query.trim();
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
SearchFeatureProvider.java | 25 import com.android.settings.intelligence.search.query.SearchQueryTask; 43 SearchResultLoader getSearchResultLoader(Context context, String query); 47 * user query. 49 List<SearchQueryTask> getSearchQueryTasks(Context context, String query); 102 * @param query input user query 105 void searchResultClicked(Context context, String query, SearchResult searchResult); 125 FutureTask<List<Pair<String, Float>>> getRankerTask(Context context, String query);
|
/external/mesa3d/src/gallium/drivers/r300/ |
r300_query.c | 73 struct pipe_query* query) 75 struct r300_query* q = r300_query(query); 78 FREE(query); 82 struct r300_query *query) 84 r300->query_current = query; 89 struct pipe_query* query) 92 struct r300_query* q = r300_query(query); 99 "Some other query has already been started.\n"); 116 struct pipe_query* query) 119 struct r300_query *q = r300_query(query); [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
urlparse.py | 112 class SplitResult(namedtuple('SplitResult', 'scheme netloc path query fragment'), ResultMixin):
120 class ParseResult(namedtuple('ParseResult', 'scheme netloc path params query fragment'), ResultMixin):
130 <scheme>://<netloc>/<path>;<params>?<query>#<fragment>
131 Return a 6-tuple: (scheme, netloc, path, params, query, fragment).
135 scheme, netloc, url, query, fragment = tuple
140 return ParseResult(scheme, netloc, url, params, query, fragment)
161 <scheme>://<netloc>/<path>?<query>#<fragment>
162 Return a 5-tuple: (scheme, netloc, path, query, fragment).
172 netloc = query = fragment = ''
186 url, query = url.split('?', 1) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
GlobalSearchSupportTest.java | 64 Cursor c = mResolver.query(searchUri, null, null, null, null); 72 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( 79 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( 87 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( 94 new SuggestionTesterBuilder(contact).query("L").expectedText1("Deer Dough").expectedText2( 101 new SuggestionTesterBuilder(contact).query("G").expectedText1("Deer Dough").expectedText2( 108 new SuggestionTesterBuilder(contact).query("S").expectIcon1Uri(false).expectedText1( 117 new SuggestionTesterBuilder(contact).query("1800").expectIcon1Uri(true).expectedText1( 129 private final String query; field in class:GlobalSearchSupportTest.SuggestionTester 141 query = builder.query 296 private String query; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder 321 public SuggestionTesterBuilder query(String value) { method in class:GlobalSearchSupportTest.SuggestionTesterBuilder [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
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) { 116 query = query.toLowerCase(); 125 return mDictionary.getWordMatches(query, columns); 128 private Cursor search(String query) { 129 query = query.toLowerCase() [all...] |
/external/freetype/src/cache/ |
ftccmap.c | 51 /* compute a query/node hash */ 56 /* the charmap query */ 113 FTC_CMapQuery query = (FTC_CMapQuery)ftcquery; local 122 node->face_id = query->face_id; 123 node->cmap_index = query->cmap_index; 124 node->first = (query->char_code / FTC_CMAP_INDICES_MAX) * 148 /* compare a cmap node to a given query */ 156 FTC_CMapQuery query = (FTC_CMapQuery)ftcquery; local 162 if ( node->face_id == query->face_id && 163 node->cmap_index == query->cmap_index 237 FTC_CMapQueryRec query; local [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/binderprovider/ |
DataSourceQueryResultBinderProvider.kt | 24 import androidx.room.solver.query.result.ListQueryResultAdapter 25 import androidx.room.solver.query.result.PositionalDataSourceQueryResultBinder 26 import androidx.room.solver.query.result.QueryResultBinder 41 override fun provide(declared: DeclaredType, query: ParsedQuery): QueryResultBinder { 42 if (query.tables.isEmpty()) { 46 val listAdapter = context.typeAdapterStore.findRowAdapter(typeArg, query)?.let { 50 + query.tables.map { it.name }).toSet()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
SenderInfoLoader.java | 67 * Limit the query params to avoid hitting the maximum of 99. We choose a number smaller than 68 * 99 since the contacts provider may wrap our query in its own and insert more params. 121 Trace.beginSection("build first query"); 129 // Build first query 130 StringBuilder query = new StringBuilder() local 133 appendQuestionMarks(query, emailsList); 134 query.append(')'); 142 Trace.beginSection("query 1"); 143 cursor = resolver.query(Data.CONTENT_URI, DATA_COLS, 144 query.toString(), toStringArray(emailsList), sortOrder) [all...] |
/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);
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/ |
QueryMethod.kt | 21 import androidx.room.solver.query.result.QueryResultBinder 30 data class QueryMethod(val element: ExecutableElement, val query: ParsedQuery, val name: String, 35 query.bindSections.map {
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
AllAppsSearchBarController.java | 106 // Skip if the query is empty 107 String query = v.getText().toString(); local 108 if (query.isEmpty()) { 112 PackageManagerHelper.getMarketSearchIntent(mLauncher, query), null); 117 // Only hide the search field if there is no query 118 String query = Utilities.trim(mInput.getEditableText().toString()); local 119 if (query.isEmpty()) { 159 void onSearchResult(String query, ArrayList<ComponentKey> apps);
|
/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)
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestionProvider.java | 66 private SourceResult emptyIfNull(SourceResult result, GoogleSource 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));
|