Searched refs:query (Results 1 - 25 of 371) sorted by relevance

1234567891011>>

/frameworks/support/content/tests/java/android/support/content/
H A DTestQueryRunner.java28 // if false, we'll skip calling through to the mCallback when query is called
36 public void query(Query query, Callback callback) { argument
38 callback.onQueryFinished(query, callback.runQueryInBackground(query));
40 mRunning.add(query);
45 public boolean isRunning(Query query) { argument
46 return mRunning.contains(query);
50 public void cancel(Query query) { argument
51 mRunning.remove(query);
[all...]
H A DContentPagerTest.java79 // NOTE: Paging on Android O is accompolished by way of ContentResolver#query that
85 Query query = mPager.query(
93 mCallback.assertPageLoaded(query);
94 Cursor cursor = mCallback.getCursor(query);
97 assertExpectedRecords(cursor, query.getOffset());
128 // NOTE: Paging on Android O is accompolished by way of ContentResolver#query that
135 Query query = mPager.query(
143 mCallback.assertPageLoaded(query);
413 onCursorReady(Query query, Cursor cursor) argument
418 assertPageLoaded(Query query) argument
427 getCursor(Query query) argument
[all...]
H A DLoaderQueryRunnerTest.java74 public void onCursorReady(Query query, Cursor cursor) {
78 Query query = new Query(
86 mRunner.query(query, mCallback);
89 mCallback.assertQueried(query.getId());
90 mCallback.assertReceivedContent(UNPAGED_URI, query.getId());
/frameworks/support/content/src/android/support/content/
H A DLoaderQueryRunner.java50 public void query(final @NonNull Query query, @NonNull final Callback callback) { argument
51 if (DEBUG) Log.d(TAG, "Handling query: " + query);
56 if (DEBUG) Log.i(TAG, "Loading results for query: " + query);
57 checkArgument(id == query.getId(), "Id doesn't match query id.");
62 return callback.runQueryInBackground(query);
69 if (DEBUG) Log.i(TAG, "Finished loading: " + query);
84 isRunning(@onNull Query query) argument
92 cancel(@onNull Query query) argument
[all...]
H A DContentPager.java110 * {@link ContentResolver#query(Uri, String[], String, String[], String)}. If the underlying
141 * <p>Note that projection is ignored when determining the identity of a query. When
221 * query argument creates a new Uri.
223 * @param queryRunner The query running to use. This provides a means of executing
241 public @Nullable Cursor runQueryInBackground(Query query) {
242 return loadContentInBackground(query);
247 public void onQueryFinished(Query query, Cursor cursor) {
248 ContentPager.this.onCursorReady(query, cursor);
258 * {@link ContentResolver#query(Uri, String[], Bundle, CancellationSignal)}.
264 * @param queryArgs A Bundle containing any arguments to the query
273 public @NonNull Query query( method in class:ContentPager
319 loadContentInBackground(Query query) argument
360 createPagedCursor(Query query) argument
396 processProviderPagedCursor(Query query, Cursor cursor) argument
449 onCursorReady(Query query, Cursor cursor) argument
543 onCursorReady(@onNull Query query, @Nullable Cursor cursor) argument
616 query(@onNull Query query, @NonNull Callback callback) argument
622 isRunning(@onNull Query query) argument
628 cancel(@onNull Query query) argument
639 runQueryInBackground(@onNull Query query) argument
646 onQueryFinished(@onNull Query query, @Nullable Cursor cursor) argument
[all...]
/frameworks/support/room/runtime/src/test/java/android/arch/persistence/room/
H A DRoomSQLiteQueryTest.java46 RoomSQLiteQuery query = RoomSQLiteQuery.acquire("abc", 3);
47 assertThat(query.getSql(), is("abc"));
48 assertThat(query.mArgCount, is(3));
49 assertThat(query.mBlobBindings.length, is(4));
50 assertThat(query.mLongBindings.length, is(4));
51 assertThat(query.mStringBindings.length, is(4));
52 assertThat(query.mDoubleBindings.length, is(4));
57 RoomSQLiteQuery query = RoomSQLiteQuery.acquire("abc", 3);
58 query.release();
59 assertThat(RoomSQLiteQuery.acquire("blah", 3), sameInstance(query));
[all...]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DAbstractAssetMatcher.java22 * An asset matcher that can match asset with the given query.
40 * <p> For web namespace, {@code query} will match assets that have the same 'site' field.
42 * <p> For Android namespace, {@code query} will match assets that have the same
46 public static AbstractAssetMatcher createMatcher(String query) argument
48 return AssetMatcherFactory.create(query);
H A DWebAssetMatcher.java26 public WebAssetMatcher(WebAsset query) { argument
27 mQuery = query;
H A DAndroidAppAssetMatcher.java30 public AndroidAppAssetMatcher(AndroidAppAsset query) { argument
31 mQuery = query;
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceRequest.java50 * query data field.
61 * The hex dump string of query data for the requested service information.
72 * @param query The part of service specific query.
75 protected WifiP2pServiceRequest(int protocolType, String query) { argument
76 validateQuery(query);
79 mQuery = query;
80 if (query != null) {
81 mLength = query.length()/2 + 2;
93 * @param query Th
95 WifiP2pServiceRequest(int serviceType, int length, int transId, String query) argument
156 validateQuery(String query) argument
[all...]
H A DWifiP2pUpnpServiceRequest.java36 * @param query The part of service specific query.
39 protected WifiP2pUpnpServiceRequest(String query) { argument
40 super(WifiP2pServiceInfo.SERVICE_TYPE_UPNP, query);
/frameworks/support/persistence/db/src/main/java/android/arch/persistence/db/
H A DSupportSQLiteQueryBuilder.java22 * A simple query builder to create SQL SELECT queries.
40 * Creates a query for the given table name.
42 * @param tableName The table name(s) to query.
44 * @return A builder to create a query.
55 * Adds DISTINCT keyword to the query.
144 * {@link SupportSQLiteDatabase#query(SupportSQLiteQuery)}.
146 * @return a new query
153 StringBuilder query = new StringBuilder(120);
155 query.append("SELECT ");
157 query
[all...]
H A DSupportSQLiteDatabase.java43 * @param sql The sql query.
258 * Runs the given query on the database. If you would like to have typed bind arguments,
259 * use {@link #query(SupportSQLiteQuery)}.
261 * @param query The SQL query that includes the query and can bind into a given compiled
265 * @see #query(SupportSQLiteQuery)
267 Cursor query(String query); argument
270 * Runs the given query o
280 query(String query, Object[] bindArgs) argument
293 query(SupportSQLiteQuery query) argument
309 query(SupportSQLiteQuery query, CancellationSignal cancellationSignal) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDirectCursorDriver.java25 * A cursor driver that uses the given query directly.
45 public Cursor query(CursorFactory factory, String[] selectionArgs) { method in class:SQLiteDirectCursorDriver
46 final SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, mCancellationSignal);
49 query.bindAllArgsAsStrings(selectionArgs);
52 cursor = new SQLiteCursor(this, mEditTable, query);
54 cursor = factory.newCursor(mDatabase, this, mEditTable, query);
57 query.close();
61 mQuery = query;
H A DSQLiteQueryBuilder.java56 * Mark the query as DISTINCT.
58 * @param distinct if true the query is DISTINCT, otherwise it isn't
74 * Sets the list of tables to query. Multiple tables can be specified to perform a join.
79 * @param inTables the list of tables to query on
86 * Append a chunk to the WHERE clause of the query. All chunks appended are surrounded
87 * by parenthesis and ANDed with the selection passed to {@link #query}. The final
90 * WHERE (&lt;append chunk 1>&lt;append chunk2>) AND (&lt;query() selection parameter>)
105 * Append a chunk to the WHERE clause of the query. All chunks appended are surrounded
106 * by parenthesis and ANDed with the selection passed to {@link #query}. The final
109 * WHERE (&lt;append chunk 1>&lt;append chunk2>) AND (&lt;query() selectio
291 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder
330 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder
372 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder
[all...]
H A DSQLiteCursorDriver.java28 * Executes the query returning a Cursor over the result set.
34 Cursor query(CursorFactory factory, String[] bindArgs); method in interface:SQLiteCursorDriver
/frameworks/ex/common/java/com/android/common/
H A DSearch.java61 * @param query The search text entered (so far).
62 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
64 public static Cursor getSuggestions(Context context, SearchableInfo searchable, String query) { argument
65 return getSuggestions(context, searchable, query, -1);
72 * @param query The search text entered (so far).
73 * @param limit The query limit to pass to the suggestion provider. This is advisory,
75 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed.
78 String query, int limit) {
91 .query("") // TODO: Remove, workaround for a bug in Uri.writeToParcel()
100 // append standard suggestion query pat
77 getSuggestions(Context context, SearchableInfo searchable, String query, int limit) argument
[all...]
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/solver/
H A DQueryResultBinderProvider.kt20 import android.arch.persistence.room.solver.query.result.QueryResultBinder
24 fun provide(declared : DeclaredType, query: ParsedQuery) : QueryResultBinder
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/solver/binderprovider/
H A DInstantQueryResultBinderProvider.kt22 import android.arch.persistence.room.solver.query.result.InstantQueryResultBinder
23 import android.arch.persistence.room.solver.query.result.QueryResultBinder
27 override fun provide(declared: DeclaredType, query: ParsedQuery): QueryResultBinder {
29 context.typeAdapterStore.findQueryResultAdapter(declared, query))
H A DLivePagedListQueryResultBinderProvider.kt23 import android.arch.persistence.room.solver.query.result.TiledDataSourceQueryResultBinder
24 import android.arch.persistence.room.solver.query.result.ListQueryResultAdapter
25 import android.arch.persistence.room.solver.query.result.LivePagedListQueryResultBinder
26 import android.arch.persistence.room.solver.query.result.QueryResultBinder
36 override fun provide(declared: DeclaredType, query: ParsedQuery): QueryResultBinder {
38 val listAdapter = context.typeAdapterStore.findRowAdapter(typeArg, query)?.let {
42 query.tables.map { it.name })
H A DCursorQueryResultBinderProvider.kt23 import android.arch.persistence.room.solver.query.result.CursorQueryResultBinder
24 import android.arch.persistence.room.solver.query.result.QueryResultBinder
29 override fun provide(declared: DeclaredType, query: ParsedQuery): QueryResultBinder {
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DSearchActivity.java35 // Get the intent, verify the action and get the query
38 String query = intent.getStringExtra(SearchManager.QUERY);
41 suggestions.saveRecentQuery(query, null);
/frameworks/support/persistence/db-framework/src/main/java/android/arch/persistence/db/framework/
H A DFrameworkSQLiteDatabase.java147 public Cursor query(String query) { argument
148 return query(new SimpleSQLiteQuery(query));
152 public Cursor query(String query, Object[] bindArgs) { argument
153 return query(new SimpleSQLiteQuery(query, bindArgs));
158 public Cursor query(final SupportSQLiteQuery supportQuery) { method in class:FrameworkSQLiteDatabase
162 String editTable, SQLiteQuery query) {
171 public Cursor query(final SupportSQLiteQuery supportQuery, method in class:FrameworkSQLiteDatabase
[all...]
/frameworks/support/room/compiler/src/main/kotlin/android/arch/persistence/room/processor/
H A DQueryMethodProcessor.kt25 import android.arch.persistence.room.solver.query.result.LiveDataQueryResultBinder
53 val query = if (annotation != null) {
54 val query = SqlParser.parse(
56 context.checker.check(query.errors.isEmpty(), executableElement,
57 query.errors.joinToString("\n"))
59 query.resultInfo = dbVerifier?.analyze(query.original)
61 if (query.resultInfo?.error != null) {
63 DatabaseVerificaitonErrors.cannotVerifyQuery(query.resultInfo!!.error!!))
69 query
[all...]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DSearchActivity.java35 // Get the intent, verify the action and get the query
38 String query = intent.getStringExtra(SearchManager.QUERY);
41 suggestions.saveRecentQuery(query, null);

Completed in 417 milliseconds

1234567891011>>