/frameworks/base/core/tests/coretests/src/android/app/ |
D | PropertyInvalidatedCacheTests.java | 58 boolean query(int x) { in query() method in PropertyInvalidatedCacheTests.ServerProxy 85 return mServer.query(x); in apply() 118 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 120 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 123 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 125 assertEquals(tester.value(5), testCache.query(5)); in testBasicCache() 127 assertEquals(tester.value(5), testCache.query(5)); in testBasicCache() 129 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 134 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 138 assertEquals(tester.value(12), testCache.query(12)); in testBasicCache() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | IpcDataCacheTest.java | 56 boolean query(int x) { in query() method in IpcDataCacheTest.ServerProxy 62 boolean query(int x, boolean y) throws RemoteException { in query() method in IpcDataCacheTest.ServerProxy 66 return query(x); in query() 91 return mServer.query(x); in apply() 124 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 126 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 129 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 131 assertEquals(tester.value(5), testCache.query(5)); in testBasicCache() 133 assertEquals(tester.value(5), testCache.query(5)); in testBasicCache() 135 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() [all …]
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 217 private static void logError(Context context, LocationPermissionQuery query, String errorMsg) { in logError() argument 218 if (query.logAsInfo) { in logError() 255 LocationPermissionQuery query, String permissionToCheck) { in checkAppLocationPermissionHelper() argument 261 boolean hasManifestPermission = checkManifestPermission(context, query.callingPid, in checkAppLocationPermissionHelper() 262 query.callingUid, permissionToCheck); in checkAppLocationPermissionHelper() 267 .noteOpNoThrow(getAppOpsString(permissionToCheck), query.callingUid, in checkAppLocationPermissionHelper() 268 query.callingPackage, query.callingFeatureId, null); in checkAppLocationPermissionHelper() 276 Log.i(TAG, query.callingPackage + " is aware of " + locationTypeForLog + " but the" in checkAppLocationPermissionHelper() 283 ? query.minSdkVersionForFine : query.minSdkVersionForCoarse; in checkAppLocationPermissionHelper() 287 String errorMsg = "Allowing " + query.callingPackage + " " + locationTypeForLog in checkAppLocationPermissionHelper() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/usage/ |
D | UsageEventsQueryTest.java | 52 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration() local 64 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration() local 76 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration() local 87 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration() local 89 assertEquals(query.getBeginTimeMillis(), query.getEndTimeMillis()); in testQueryDuration() 99 UsageEventsQuery query = new UsageEventsQuery.Builder(beginTimeMillis, endTimeMillis) in testQueryDuration() local 101 assertEquals(query.getBeginTimeMillis(), 2001); in testQueryDuration() 102 assertEquals(query.getEndTimeMillis(), 3001); in testQueryDuration() 136 UsageEventsQuery query = queryBuilder.setEventTypes(eventType, eventType, eventType) in testQueryEventTypes() local 138 final int[] eventTypesArray = query.getEventTypes(); in testQueryEventTypes() [all …]
|
/frameworks/base/core/java/android/app/compat/ |
D | ChangeIdStateCache.java | 87 public Boolean recompute(ChangeIdStateQuery query) { in recompute() argument 90 if (query.type == ChangeIdStateQuery.QUERY_BY_PACKAGE_NAME) { in recompute() 91 return getPlatformCompatService().isChangeEnabledByPackageName(query.changeId, in recompute() 92 query.packageName, in recompute() 93 query.userId); in recompute() 94 } else if (query.type == ChangeIdStateQuery.QUERY_BY_UID) { in recompute() 95 return getPlatformCompatService().isChangeEnabledByUid(query.changeId, query.uid); in recompute() 97 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 | 390 StringBuilder query = new StringBuilder(120); in buildQueryString() local 392 query.append("SELECT "); in buildQueryString() 394 query.append("DISTINCT "); in buildQueryString() 397 appendColumns(query, columns); in buildQueryString() 399 query.append("* "); in buildQueryString() 401 query.append("FROM "); in buildQueryString() 402 query.append(tables); in buildQueryString() 403 appendClause(query, " WHERE ", where); in buildQueryString() 404 appendClause(query, " GROUP BY ", groupBy); in buildQueryString() 405 appendClause(query, " HAVING ", having); in buildQueryString() [all …]
|
/frameworks/proto_logging/stats/enums/appsearch/ |
D | enums.proto | 25 * The enum class of AppSearch query correction type compared with the previous query. 27 * It is used to tag the transition type between adjacent query pairs in the search intent sequence 33 * AppSearch will analyze each pair and tag the query correction type. 40 // Indicates that the current query is the 1st query and there is no previous 41 // query. 44 // Indicates that the current query is refined (slightly adjustment, e.g. adding new 45 // characters, fixing typo) from the previous query. 48 // Indicates that the previous query is considered abandoned and the user 49 // starts over the search with a different query. 52 // Indicates that the user ends the search session with this search query.
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BatteryUsageStatsProvider.java | 135 BatteryUsageStatsQuery query = queries.get(i); in shouldUpdateStats() local 136 allowableStatsAge = Math.min(allowableStatsAge, query.getMaxStatsAge()); in shouldUpdateStats() 163 BatteryUsageStatsQuery query) { in getBatteryUsageStats() argument 164 return getBatteryUsageStats(stats, query, mClock.currentTimeMillis()); in getBatteryUsageStats() 168 BatteryUsageStatsQuery query, long currentTimeMs) { in getBatteryUsageStats() argument 169 if (query.getToTimestamp() == 0) { in getBatteryUsageStats() 170 return getCurrentBatteryUsageStats(stats, query, currentTimeMs); in getBatteryUsageStats() 172 return getAggregatedBatteryUsageStats(stats, query); in getBatteryUsageStats() 177 BatteryUsageStatsQuery query, long currentTimeMs) { in getCurrentBatteryUsageStats() argument 181 final boolean includePowerModels = (query.getFlags() in getCurrentBatteryUsageStats() [all …]
|
D | PowerCalculator.java | 54 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 59 calculateApp(app, app.getBatteryStatsUid(), rawRealtimeUs, rawUptimeUs, query); in calculate() 72 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument 82 long consumedEnergyUC, @NonNull BatteryUsageStatsQuery query) { in getPowerModel() argument 84 && !query.shouldForceUsePowerProfileModel()) { in getPowerModel()
|
D | CameraPowerCalculator.java | 48 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculate() argument 49 super.calculate(builder, batteryStats, rawRealtimeUs, rawUptimeUs, query); in calculate() 52 int powerModel = getPowerModel(consumptionUc, query); in calculate() 75 long rawRealtimeUs, long rawUptimeUs, BatteryUsageStatsQuery query) { in calculateApp() argument 77 int powerModel = getPowerModel(consumptionUc, query); in calculateApp()
|
/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 | 668 private Part query; field in Uri.StringUri 671 return query == null in getQueryPart() 672 ? query = Part.fromEncoded(parseQuery()) : query; in getQueryPart() 827 .query(getQueryPart()) in buildUpon() 1192 private final Part query; field in Uri.HierarchicalUri 1196 Part query, Part fragment) { in HierarchicalUri() argument 1200 this.query = Part.nonNull(query); in HierarchicalUri() 1277 if (!query.isEmpty()) { in appendSspTo() 1278 builder.append('?').append(query.getEncoded()); in appendSspTo() 1299 return this.query.getDecoded(); in getQuery() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
D | SQLiteRawStatementTest.java | 186 final String query = "SELECT i from t1"; in testMultipleTransactions() local 187 try (SQLiteRawStatement s = mDatabase.createRawStatement(query); in testMultipleTransactions() 188 SQLiteRawStatement t = mDatabase.createRawStatement(query)) { in testMultipleTransactions() 245 final String query = "SELECT COUNT(*) FROM t1"; in testInsert() local 246 try (SQLiteRawStatement s = mDatabase.createRawStatement(query)) { in testInsert() 260 final String query = "SELECT i, d, t, l FROM t1 WHERE t = 'text03value'"; in testInsert() local 261 try (SQLiteRawStatement s = mDatabase.createRawStatement(query)) { in testInsert() 292 final String query = "SELECT i, d, t, l FROM t1 WHERE i == 20"; in testInsert() local 293 try (SQLiteRawStatement s = mDatabase.createRawStatement(query)) { in testInsert() 476 final String query = "CREATE TABLE t1 (i int, b blob)"; in testBlob() local [all …]
|
/frameworks/base/core/java/android/app/ |
D | PropertyInvalidatedCache.java | 263 public abstract @Nullable R apply(@NonNull Q query); in apply() argument 269 public boolean shouldBypassCache(@NonNull Q query) { in shouldBypassCache() argument 508 public Result apply(Query query) { in apply() argument 509 return mCache.recompute(query); in apply() 774 public Result recompute(@NonNull Query query) { 775 return mComputer.apply(query); 785 public boolean bypass(@NonNull Query query) { 786 return mComputer.shouldBypassCache(query); 815 protected Result refresh(Result oldResult, Query query) { 911 public @Nullable Result query(@NonNull Query query) { [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PreferredComponentTest.java | 66 final List<ResolveInfo> query = new ArrayList<>(); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup() local 67 query.add(createResolveInfo(0, userId)); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup() 68 query.add(createResolveInfo(1, userId)); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup() 70 final ComponentName component = query.get(0).getComponentInfo().getComponentName(); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup() 92 assertTrue(pa.mPref.sameSet(query, true /* excludeSetupWizardPackage */, userId)); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup() 99 final List<ResolveInfo> query = new ArrayList<>(); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup() local 100 query.add(createResolveInfo(0, userId)); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup() 101 query.add(createResolveInfo(1, userId)); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup() 103 final ComponentName component = query.get(0).getComponentInfo().getComponentName(); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup() 125 assertFalse(pa.mPref.sameSet(query, true /* excludeSetupWizardPackage */, userId)); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup()
|
/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/libs/hostgraphics/ |
D | ANativeWindow.cpp | 19 static int32_t query(ANativeWindow* window, int what) { in query() function 21 int res = window->query(window, what, &value); in query() 68 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) { in ANativeWindow_tryAllocateBuffers() 87 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth() 91 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight() 95 return query(window, NATIVE_WINDOW_FORMAT); in ANativeWindow_getFormat()
|
/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/base/services/core/java/com/android/server/pm/ |
D | PreferredComponent.java | 199 public boolean sameSet(List<ResolveInfo> query, boolean excludeSetupWizardPackage, int userId) { in sameSet() argument 201 return query == null; in sameSet() 203 if (query == null) { in sameSet() 206 final int NQ = query.size(); in sameSet() 212 ResolveInfo ri = query.get(i); in sameSet() 300 public boolean isSuperset(List<ResolveInfo> query, boolean excludeSetupWizardPackage) { in isSuperset() argument 302 return query == null; in isSuperset() 304 if (query == null) { in isSuperset() 307 final int NQ = query.size(); in isSuperset() 315 ResolveInfo ri = query.get(i); in isSuperset() [all …]
|
/frameworks/native/libs/nativewindow/ |
D | ANativeWindow.cpp | 70 static int32_t query(ANativeWindow* window, int what) { in query() function 72 int res = window->query(window, what, &value); in query() 97 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth() 101 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight() 105 return query(window, NATIVE_WINDOW_FORMAT); in ANativeWindow_getFormat() 145 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_setBuffersTransform() 226 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) { in ANativeWindow_setBuffersDataSpace() 234 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) in ANativeWindow_getBuffersDataSpace() 236 return query(window, NATIVE_WINDOW_DATASPACE); in ANativeWindow_getBuffersDataSpace() 240 if (!window || !query(window, NATIVE_WINDOW_IS_VALID)) { in ANativeWindow_getBuffersDefaultDataSpace() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | ContactsQueryHelperTest.java | 98 assertFalse(mHelper.query(contactUri.toString())); in testQuerySQLiteException_returnsFalse() 106 assertFalse(mHelper.query(contactUri.toString())); in testQueryIllegalArgumentException_returnsFalse() 116 assertTrue(mHelper.query(contactUri.toString())); in testQueryWithUri() 129 assertTrue(mHelper.query(contactUri.toString())); in testQueryWithUriNotStarredNoPhoneNumber() 139 assertFalse(mHelper.query(contactUri.toString())); in testQueryWithUriNotFound() 148 assertTrue(mHelper.query(contactUri)); in testQueryWithPhoneNumber() 159 assertTrue(mHelper.query(contactUri)); in testQueryWithEmail() 183 assertFalse(mHelper.query(contactUri)); in testQueryWithUnsupportedScheme() 193 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in ContactsQueryHelperTest.ContactsContentProvider
|
/frameworks/base/core/java/android/os/ |
D | IpcDataCache.java | 257 public abstract @Nullable R apply(@NonNull Q query); in apply() argument 263 public boolean shouldBypassCache(@NonNull Q query) { in shouldBypassCache() argument 359 public @Nullable Result query(@NonNull Query query) { in query() argument 360 return super.query(query); in query() 558 Result apply(Query query) throws RemoteException; in apply() argument 574 public Result apply(Query query) { in apply() argument 576 return mHandler.apply(query); in apply()
|
/frameworks/av/media/codec2/hal/aidl/ |
D | Configurable.cpp | 62 ScopedAStatus CachedConfigurable::query( in query() function in aidl::android::hardware::media::c2::utils::CachedConfigurable 71 c2_status_t c2res = mIntf->query( in query() 158 for (const FieldSupportedValuesQuery &query : fields) { in querySupportedValues() local 160 (uint32_t)query.field.index, in querySupportedValues() 161 query.field.fieldId.offset, in querySupportedValues() 162 query.field.fieldId.sizeBytes), in querySupportedValues() 163 query.type == FieldSupportedValuesQuery::Type::POSSIBLE ? in querySupportedValues()
|
/frameworks/av/media/codec2/hal/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()
|