Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/frameworks/base/core/tests/systemproperties/src/android/os/
DPropertyInvalidatedCacheTest.java59 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
61 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
63 assertEquals("foo6", cache.query(6)); in testCacheRecompute()
66 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
67 assertEquals("foo5", cache.query(5)); in testCacheRecompute()
74 assertEquals("foo5", cache.query(5)); in testCacheInitialState()
75 assertEquals("foo5", cache.query(5)); in testCacheInitialState()
78 assertEquals("foo5", cache.query(5)); in testCacheInitialState()
79 assertEquals("foo5", cache.query(5)); in testCacheInitialState()
86 assertEquals("foo5", cache.query(5)); in testCachePropertyUnset()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceRequest.java78 protected WifiP2pServiceRequest(int protocolType, String query) { in WifiP2pServiceRequest() argument
79 validateQuery(query); in WifiP2pServiceRequest()
82 mQuery = query; in WifiP2pServiceRequest()
83 if (query != null) { in WifiP2pServiceRequest()
84 mLength = query.length()/2 + 2; in WifiP2pServiceRequest()
99 int transId, String query) { in WifiP2pServiceRequest() argument
103 mQuery = query; in WifiP2pServiceRequest()
159 private void validateQuery(String query) { in validateQuery() argument
160 if (query == null) { in validateQuery()
165 if (query.length()%2 == 1) { in validateQuery()
[all …]
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java172 private static void logError(Context context, LocationPermissionQuery query, String errorMsg) { in logError() argument
173 if (query.logAsInfo) { in logError()
199 LocationPermissionQuery query, String permissionToCheck) { in checkAppLocationPermissionHelper() argument
205 boolean hasManifestPermission = checkManifestPermission(context, query.callingPid, in checkAppLocationPermissionHelper()
206 query.callingUid, permissionToCheck); in checkAppLocationPermissionHelper()
212 query.callingUid, query.callingPackage); in checkAppLocationPermissionHelper()
220 Log.i(TAG, query.callingPackage + " is aware of " + locationTypeForLog + " but the" in checkAppLocationPermissionHelper()
227 ? query.minSdkVersionForFine : query.minSdkVersionForCoarse; in checkAppLocationPermissionHelper()
231 String errorMsg = "Allowing " + query.callingPackage + " " + locationTypeForLog in checkAppLocationPermissionHelper()
234 + query.method; in checkAppLocationPermissionHelper()
[all …]
/frameworks/base/core/java/android/app/
DPropertyInvalidatedCache.java228 protected abstract Result recompute(Query query); in recompute() argument
242 protected Result refresh(Result oldResult, Query query) { in refresh() argument
278 public Result query(Query query) { in query() method in PropertyInvalidatedCache
287 query)); in query()
289 return recompute(query); in query()
294 cachedResult = mCache.get(query); in query()
313 final Result refreshedResult = refresh(cachedResult, query); in query()
316 Log.d(TAG, "cache refresh for " + query); in query()
332 mCache.remove(query); in query()
334 mCache.put(query, refreshedResult); in query()
[all …]
DSearchManager.java740 public void triggerSearch(String query, in triggerSearch() argument
743 if (query == null || TextUtils.getTrimmedLength(query) == 0) { in triggerSearch()
747 startSearch(query, false, launchActivity, appSearchData, false); in triggerSearch()
877 public Cursor getSuggestions(SearchableInfo searchable, String query) { in getSuggestions() argument
878 return getSuggestions(searchable, query, -1); in getSuggestions()
893 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument
906 .query("") // TODO: Remove, workaround for a bug in Uri.writeToParcel() in getSuggestions()
923 selArgs = new String[] { query }; in getSuggestions()
925 uriBuilder.appendPath(query); in getSuggestions()
935 return mContext.getContentResolver().query(uri, null, selection, selArgs, null); in getSuggestions()
DSearchDialog.java552 String query = mSearchAutoComplete.getText().toString(); in launchQuerySearch() local
554 Intent intent = createIntent(action, null, null, query, actionKey, actionMsg); in launchQuerySearch()
602 private Intent createIntent(String action, Uri data, String extraData, String query, in createIntent() argument
614 if (query != null) { in createIntent()
615 intent.putExtra(SearchManager.QUERY, query); in createIntent()
693 public boolean onQueryTextSubmit(String query) {
719 private void setUserQuery(String query) { in setUserQuery() argument
720 if (query == null) { in setUserQuery()
721 query = ""; in setUserQuery()
723 mUserQuery = query; in setUserQuery()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDirectCursorDriver.java45 public Cursor query(CursorFactory factory, String[] selectionArgs) { in query() method in SQLiteDirectCursorDriver
46 final SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, mCancellationSignal); in query() local
49 query.bindAllArgsAsStrings(selectionArgs); in query()
52 cursor = new SQLiteCursor(this, mEditTable, query); in query()
54 cursor = factory.newCursor(mDatabase, this, mEditTable, query); in query()
57 query.close(); in query()
61 mQuery = query; in query()
DSQLiteQueryBuilder.java393 StringBuilder query = new StringBuilder(120); in buildQueryString() local
395 query.append("SELECT "); in buildQueryString()
397 query.append("DISTINCT "); in buildQueryString()
400 appendColumns(query, columns); in buildQueryString()
402 query.append("* "); in buildQueryString()
404 query.append("FROM "); in buildQueryString()
405 query.append(tables); in buildQueryString()
406 appendClause(query, " WHERE ", where); in buildQueryString()
407 appendClause(query, " GROUP BY ", groupBy); in buildQueryString()
408 appendClause(query, " HAVING ", having); in buildQueryString()
[all …]
DSQLiteCursor.java87 String editTable, SQLiteQuery query) { in SQLiteCursor() argument
88 this(driver, editTable, query); in SQLiteCursor()
101 public SQLiteCursor(SQLiteCursorDriver driver, String editTable, SQLiteQuery query) { in SQLiteCursor() argument
102 if (query == null) { in SQLiteCursor()
113 mQuery = query; in SQLiteCursor()
115 mColumns = query.getColumnNames(); in SQLiteCursor()
/frameworks/ex/common/java/com/android/common/
DSearch.java64 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/
DUri.java659 private Part query; field in Uri.StringUri
662 return query == null in getQueryPart()
663 ? query = Part.fromEncoded(parseQuery()) : query; in getQueryPart()
818 .query(getQueryPart()) in buildUpon()
1184 private final Part query; field in Uri.HierarchicalUri
1188 Part query, Part fragment) { in HierarchicalUri() argument
1192 this.query = Part.nonNull(query); in HierarchicalUri()
1215 query.writeTo(parcel); in writeToParcel()
1267 if (!query.isEmpty()) { in appendSspTo()
1268 builder.append('?').append(query.getEncoded()); in appendSspTo()
[all …]
/frameworks/native/libs/nativewindow/
DANativeWindow.cpp30 static int32_t query(ANativeWindow* window, int what) { in query() function
32 int res = window->query(window, what, &value); in query()
72 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth()
76 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight()
80 return query(window, NATIVE_WINDOW_FORMAT); in ANativeWindow_getFormat()
120 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_setBuffersTransform()
136 if (!window || !query(window, NATIVE_WINDOW_IS_VALID) || in ANativeWindow_setBuffersDataSpace()
145 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_getBuffersDataSpace()
147 return query(window, NATIVE_WINDOW_DATASPACE); in ANativeWindow_getBuffersDataSpace()
203 return window->query(window, int(what), value); in ANativeWindow_query()
/frameworks/native/libs/vr/libbufferhubqueue/tests/
Dbuffer_hub_queue_producer-test.cpp189 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_WIDTH, &value)); in TEST_F()
192 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_HEIGHT, &value)); in TEST_F()
195 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_FORMAT, &value)); in TEST_F()
198 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &value)); in TEST_F()
203 mProducer->query(NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value)); in TEST_F()
206 EXPECT_EQ(OK, mProducer->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &value)); in TEST_F()
219 EXPECT_EQ(BAD_VALUE, mProducer->query(/*what*/ -1, &value)); in TEST_F()
220 EXPECT_EQ(BAD_VALUE, mProducer->query(/*what*/ 0xDEADBEEF, &value)); in TEST_F()
222 mProducer->query(NATIVE_WINDOW_QUERY_LAST_OFF_BY_ONE, &value)); in TEST_F()
226 mProducer->query(NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, &value)); in TEST_F()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerDataHelper.java108 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/base/services/core/java/com/android/server/pm/
DPreferredComponent.java202 public boolean sameSet(List<ResolveInfo> query, boolean excludeSetupWizardPackage) { in sameSet() argument
204 return query == null; in sameSet()
206 if (query == null) { in sameSet()
209 final int NQ = query.size(); in sameSet()
213 ResolveInfo ri = query.get(i); in sameSet()
257 public boolean isSuperset(List<ResolveInfo> query, boolean excludeSetupWizardPackage) { in isSuperset() argument
259 return query == null; in isSuperset()
261 if (query == null) { in isSuperset()
264 final int NQ = query.size(); in isSuperset()
270 ResolveInfo ri = query.get(i); in isSuperset()
[all …]
/frameworks/av/media/codec2/hidl/1.0/utils/
DConfigurable.cpp58 Return<void> CachedConfigurable::query( in query() function in android::hardware::media::c2::V1_0::utils::CachedConfigurable
67 c2_status_t c2res = mIntf->query( in query()
160 for (const FieldSupportedValuesQuery &query : inFields) { in querySupportedValues() local
162 query.field.index, in querySupportedValues()
163 query.field.fieldId.offset, in querySupportedValues()
164 query.field.fieldId.size), in querySupportedValues()
165 query.type == FieldSupportedValuesQuery::Type::POSSIBLE ? in querySupportedValues()
/frameworks/native/libs/gui/tests/
DIGraphicBufferProducer_test.cpp320 EXPECT_OK(mProducer->query(NATIVE_WINDOW_WIDTH, &value)); in TEST_P()
323 EXPECT_OK(mProducer->query(NATIVE_WINDOW_HEIGHT, &value)); in TEST_P()
326 EXPECT_OK(mProducer->query(NATIVE_WINDOW_FORMAT, &value)); in TEST_P()
329 EXPECT_OK(mProducer->query(NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &value)); in TEST_P()
333 EXPECT_OK(mProducer->query(NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND, &value)); in TEST_P()
336 EXPECT_OK(mProducer->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &value)); in TEST_P()
349 EXPECT_EQ(BAD_VALUE, mProducer->query(/*what*/-1, &value)); in TEST_P()
350 EXPECT_EQ(BAD_VALUE, mProducer->query(/*what*/0xDEADBEEF, &value)); in TEST_P()
351 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_QUERY_LAST_OFF_BY_ONE, &value)); in TEST_P()
354 EXPECT_EQ(BAD_VALUE, mProducer->query(NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, &value)); in TEST_P()
[all …]
/frameworks/base/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/
DBandwidthEnforcementTestService.java165 final byte[] query = buildDnsQuery("www", "android", "com"); in testDns()
167 query, query.length, InetAddress.parseNumericAddress("8.8.8.8"), 53); in testDns()
170 final byte[] reply = new byte[query.length]; in testDns()
190 private static byte[] buildDnsQuery(String... query) throws IOException { in buildDnsQuery() argument
204 for (String phrase : query) { in buildDnsQuery()
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java99 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/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDatabase.java119 final Cursor deviceCursor = mDatabase.query( in queryRoots()
138 final Cursor storageCursor = builder.query( in queryRoots()
151 try (final Cursor deviceRoot = builder.query( in queryRoots()
221 return mDatabase.query( in queryRootDocuments()
238 return mDatabase.query( in queryChildDocuments()
260 try (final Cursor cursor = mDatabase.query( in getStorageDocumentIds()
288 return mDatabase.query( in queryDocument()
300 final Cursor cursor = mDatabase.query( in getDocumentIdForDevice()
327 final Cursor cursor = mDatabase.query( in getParentIdentifier()
348 try (final Cursor cursor = mDatabase.query( in getDeviceDocumentId()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseStatementTest.java85 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()
DNewDatabasePerformanceTests.java259 .query("t1", COLUMNS, mWhere[i % DATASET_SIZE], null, null, null, null)); in testRun()
293 .query("t1", COLUMNS, mWhere[i % DATASET_SIZE], null, null, null, null)); in testRun()
330 .query("t1", COLUMNS, mWhere[i % TABLE_SIZE], null, null, null, null)); in testRun()
363 checkCursor(mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null, in testRun()
400 checkCursor(mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null, in testRun()
437 .query("t1 INNER JOIN t2 ON t1.c = t2.c", COLUMNS, null, null, null, null, in testRun()
484 .query("t1", COLUMNS, mWhere[i % DATASET_SIZE], null, null, null, null)); in testRun()
518 .query("t1", COLUMNS, mWhere[i % DATASET_SIZE], null, null, null, null)); in testRun()
545 checkCursor(mDatabase.query("t1", COLUMNS, null, null, null, null, null)); in testRun()
572 mDatabase.query("t1", COLUMNS, null, null, null, null, null); in testRun()
[all …]
/frameworks/base/core/java/android/provider/
DFontRequest.java48 @NonNull String query) { in FontRequest() argument
50 mQuery = Preconditions.checkNotNull(query); in FontRequest()
69 @NonNull String query, @NonNull List<List<byte[]>> certificates) { in FontRequest() argument
72 mQuery = Preconditions.checkNotNull(query); in FontRequest()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientAlternatesAdapter.java98 Queries.Query query; in getMatchingRecipients() local
100 query = Queries.EMAIL; in getMatchingRecipients()
102 query = Queries.PHONE; in getMatchingRecipients()
128 c = context.getContentResolver().query( in getMatchingRecipients()
129 query.getContentUri(), in getMatchingRecipients()
130 query.getProjection(), in getMatchingRecipients()
131 query.getProjection()[Queries.Query.DESTINATION] + " IN (" in getMatchingRecipients()
145 addresses, account, matchesNotFound, query, callback, permissionsCheckListener); in getMatchingRecipients()
162 Account account, Set<String> matchesNotFound, Queries.Query query, in getMatchingRecipientsFromDirectoryQueries() argument
182 directoryCursor = context.getContentResolver().query( in getMatchingRecipientsFromDirectoryQueries()
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java428 String path, String query, String fragment) { in testHierarchical() argument
437 if (query != null) { in testHierarchical()
438 sb.append('?').append(query); in testHierarchical()
456 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
458 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
465 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
467 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
477 .encodedQuery(query) in testHierarchical()
482 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical()
484 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical()
[all …]

12345678910>>...14