/frameworks/base/core/tests/systemproperties/src/android/os/ |
D | PropertyInvalidatedCacheTest.java | 59 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/ |
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/common/android/telephony/ |
D | LocationAccessPolicy.java | 171 private static void logError(Context context, LocationPermissionQuery query, String errorMsg) { in logError() argument 172 if (query.logAsInfo) { in logError() 209 LocationPermissionQuery query, String permissionToCheck) { in checkAppLocationPermissionHelper() argument 215 boolean hasManifestPermission = checkManifestPermission(context, query.callingPid, in checkAppLocationPermissionHelper() 216 query.callingUid, permissionToCheck); in checkAppLocationPermissionHelper() 221 .noteOpNoThrow(getAppOpsString(permissionToCheck), query.callingUid, in checkAppLocationPermissionHelper() 222 query.callingPackage, query.callingFeatureId, null); in checkAppLocationPermissionHelper() 230 Log.i(TAG, query.callingPackage + " is aware of " + locationTypeForLog + " but the" in checkAppLocationPermissionHelper() 237 ? query.minSdkVersionForFine : query.minSdkVersionForCoarse; in checkAppLocationPermissionHelper() 241 String errorMsg = "Allowing " + query.callingPackage + " " + locationTypeForLog in checkAppLocationPermissionHelper() [all …]
|
/frameworks/base/core/java/android/app/compat/ |
D | ChangeIdStateCache.java | 65 protected Boolean recompute(ChangeIdStateQuery query) { in recompute() argument 70 if (query.type == ChangeIdStateQuery.QUERY_BY_PACKAGE_NAME) { in recompute() 71 return platformCompat.isChangeEnabledByPackageName(query.changeId, in recompute() 72 query.packageName, in recompute() 73 query.userId); in recompute() 74 } else if (query.type == ChangeIdStateQuery.QUERY_BY_UID) { in recompute() 75 return platformCompat.isChangeEnabledByUid(query.changeId, query.uid); in recompute() 77 throw new IllegalArgumentException("Invalid query type: " + query.type); in recompute()
|
/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 | 381 StringBuilder query = new StringBuilder(120); in buildQueryString() local 383 query.append("SELECT "); in buildQueryString() 385 query.append("DISTINCT "); in buildQueryString() 388 appendColumns(query, columns); in buildQueryString() 390 query.append("* "); in buildQueryString() 392 query.append("FROM "); in buildQueryString() 393 query.append(tables); in buildQueryString() 394 appendClause(query, " WHERE ", where); in buildQueryString() 395 appendClause(query, " GROUP BY ", groupBy); in buildQueryString() 396 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/base/core/java/android/app/ |
D | PropertyInvalidatedCache.java | 300 protected abstract Result recompute(Query query); in recompute() argument 326 protected Result refresh(Result oldResult, Query query) { in refresh() argument 362 public Result query(Query query) { in query() method in PropertyInvalidatedCache 372 queryToString(query))); in query() 374 return recompute(query); in query() 379 cachedResult = mCache.get(query); in query() 401 final Result refreshedResult = refresh(cachedResult, query); in query() 404 Log.d(TAG, "cache refresh for " + cacheName() + " " + queryToString(query)); in query() 412 queryToString(query))); in query() 422 mCache.remove(query); in query() [all …]
|
D | SearchManager.java | 742 public void triggerSearch(String query, in triggerSearch() argument 745 if (query == null || TextUtils.getTrimmedLength(query) == 0) { in triggerSearch() 749 startSearch(query, false, launchActivity, appSearchData, false); in triggerSearch() 879 public Cursor getSuggestions(SearchableInfo searchable, String query) { in getSuggestions() argument 880 return getSuggestions(searchable, query, -1); in getSuggestions() 895 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument 908 .query("") // TODO: Remove, workaround for a bug in Uri.writeToParcel() in getSuggestions() 925 selArgs = new String[] { query }; in getSuggestions() 927 uriBuilder.appendPath(query); in getSuggestions() 937 return mContext.getContentResolver().query(uri, null, selection, selArgs, null); in getSuggestions()
|
/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/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/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() 78 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth() 82 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight() 86 return query(window, NATIVE_WINDOW_FORMAT); in ANativeWindow_getFormat() 126 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_setBuffersTransform() 147 if (!window || !query(window, NATIVE_WINDOW_IS_VALID) || in ANativeWindow_setBuffersDataSpace() 156 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_getBuffersDataSpace() 158 return query(window, NATIVE_WINDOW_DATASPACE); in ANativeWindow_getBuffersDataSpace() 162 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) { in ANativeWindow_setFrameRate() [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/base/core/java/android/content/pm/ |
D | ShortcutQueryWrapper.java | 37 public ShortcutQueryWrapper(LauncherApps.ShortcutQuery query) { in ShortcutQueryWrapper() argument 39 mChangedSince = query.mChangedSince; in ShortcutQueryWrapper() 40 mPackage = query.mPackage; in ShortcutQueryWrapper() 41 mLocusIds = query.mLocusIds; in ShortcutQueryWrapper() 42 mShortcutIds = query.mShortcutIds; in ShortcutQueryWrapper() 43 mActivity = query.mActivity; in ShortcutQueryWrapper() 44 mQueryFlags = query.mQueryFlags; in ShortcutQueryWrapper()
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | Configurable.cpp | 59 Return<void> CachedConfigurable::query( in query() function in android::hardware::media::c2::V1_0::utils::CachedConfigurable 68 c2_status_t c2res = mIntf->query( in query() 161 for (const FieldSupportedValuesQuery &query : inFields) { in querySupportedValues() local 163 query.field.index, in querySupportedValues() 164 query.field.fieldId.offset, in querySupportedValues() 165 query.field.fieldId.size), in querySupportedValues() 166 query.type == FieldSupportedValuesQuery::Type::POSSIBLE ? in querySupportedValues()
|
/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/services/tests/servicestests/src/com/android/server/people/data/ |
D | ContactsQueryHelperTest.java | 98 assertTrue(mHelper.query(contactUri.toString())); in testQueryWithUri() 111 assertTrue(mHelper.query(contactUri.toString())); in testQueryWithUriNotStarredNoPhoneNumber() 121 assertFalse(mHelper.query(contactUri.toString())); in testQueryWithUriNotFound() 130 assertTrue(mHelper.query(contactUri)); in testQueryWithPhoneNumber() 141 assertTrue(mHelper.query(contactUri)); in testQueryWithEmail() 165 assertFalse(mHelper.query(contactUri)); in testQueryWithUnsupportedScheme() 173 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in ContactsQueryHelperTest.ContactsContentProvider
|
/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/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/startop/scripts/trace_analyzer/lib/ |
D | trace2db_test.py | 140 first_row = session.query(MmFilemapAddToPageCache).order_by(MmFilemapAddToPageCache.id).first() 146 …second_to_last_row = session.query(MmFilemapAddToPageCache).filter(MmFilemapAddToPageCache.page.in… 181 first_row = session.query(MmFilemapAddToPageCache).order_by(MmFilemapAddToPageCache.id).first() 187 …second_to_last_row = session.query(MmFilemapAddToPageCache).filter(MmFilemapAddToPageCache.page.in… 205 results = session.query(MmFilemapAddToPageCache).join(
|
/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()
|
/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/startop/scripts/trace_analyzer/test_fixtures/ |
D | common_systrace | 57 <...>-2738 (-----) [005] ...1 14594.221369: tracing_mark_write: B|2007|query 63 <...>-656 (-----) [005] ...1 14594.221460: tracing_mark_write: B|625|query 65 <...>-2738 (-----) [007] ...1 14594.221552: tracing_mark_write: B|2007|query 69 <...>-656 (-----) [007] ...1 14594.221628: tracing_mark_write: B|625|query 78 <...>-2738 (-----) [007] ...1 14594.221824: tracing_mark_write: B|2007|query 79 <...>-2738 (-----) [007] ...1 14594.221830: tracing_mark_write: B|2007|query 80 <...>-2738 (-----) [007] ...1 14594.221834: tracing_mark_write: B|2007|query 81 <...>-2738 (-----) [007] ...1 14594.221841: tracing_mark_write: B|2007|query 82 <...>-2738 (-----) [007] ...1 14594.221843: tracing_mark_write: B|2007|query 83 <...>-2738 (-----) [007] ...1 14594.221846: tracing_mark_write: B|2007|query [all …]
|