/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceRequest.java | 78 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/java/android/telephony/ |
D | LocationAccessPolicy.java | 158 private static void logError(Context context, LocationPermissionQuery query, String errorMsg) { in logError() argument 159 if (query.logAsInfo) { in logError() 185 LocationPermissionQuery query, String permissionToCheck) { in checkAppLocationPermissionHelper() argument 191 boolean hasManifestPermission = checkManifestPermission(context, query.callingPid, in checkAppLocationPermissionHelper() 192 query.callingUid, permissionToCheck); in checkAppLocationPermissionHelper() 198 query.callingUid, query.callingPackage); in checkAppLocationPermissionHelper() 206 Log.i(TAG, query.callingPackage + " is aware of " + locationTypeForLog + " but the" in checkAppLocationPermissionHelper() 213 ? query.minSdkVersionForFine : query.minSdkVersionForCoarse; in checkAppLocationPermissionHelper() 217 String errorMsg = "Allowing " + query.callingPackage + " " + locationTypeForLog in checkAppLocationPermissionHelper() 220 + query.method; in checkAppLocationPermissionHelper() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDirectCursorDriver.java | 45 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()
|
D | SQLiteQueryBuilder.java | 393 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 …]
|
D | SQLiteCursor.java | 87 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/ |
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 | 659 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/ |
D | ANativeWindow.cpp | 30 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/ |
D | buffer_hub_queue_producer-test.cpp | 189 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/ |
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/base/services/core/java/com/android/server/pm/ |
D | PreferredComponent.java | 202 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/ |
D | Configurable.cpp | 58 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/base/core/java/android/app/ |
D | SearchManager.java | 740 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()
|
D | SearchDialog.java | 552 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 …]
|
D | DownloadManager.java | 1012 return resolver.query(uri, projection, selection, selectionArgs, orderBy); in runQuery() 1121 public Cursor query(Query query) { 1122 return query(query, UNDERLYING_COLUMNS); 1126 public Cursor query(Query query, String[] projection) { 1127 Cursor underlyingCursor = query.runQuery(mResolver, projection, mBaseUri); 1154 Query query = new Query().setFilterById(id); 1157 cursor = query(query); 1185 Query query = new Query().setFilterById(id); 1188 cursor = query(query); 1212 Cursor cursor = query(new Query().setFilterById(ids)); [all …]
|
/frameworks/native/libs/gui/tests/ |
D | IGraphicBufferProducer_test.cpp | 320 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/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/tests/BandwidthTests/src/com/android/tests/bandwidthenforcement/ |
D | BandwidthEnforcementTestService.java | 165 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/android/provider/ |
D | FontRequest.java | 48 @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/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpDatabase.java | 119 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/ |
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 | 259 .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/tests/coretests/src/android/net/ |
D | UriTest.java | 425 String path, String query, String fragment) { in testHierarchical() argument 434 if (query != null) { in testHierarchical() 435 sb.append('?').append(query); in testHierarchical() 453 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 455 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 462 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 464 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 474 .encodedQuery(query) in testHierarchical() 479 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical() 481 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical() [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | RecipientAlternatesAdapter.java | 98 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/packages/StatementService/src/com/android/statementservice/retriever/ |
D | AbstractAssetMatcher.java | 46 public static AbstractAssetMatcher createMatcher(String query) in createMatcher() argument 48 return AssetMatcherFactory.create(query); in createMatcher()
|