/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 44 public static class Query { class in MockContentProvider 62 private Query() { in Query() method in MockContentProvider.Query 66 private Query(UriMatcher matcher) { in Query() method in MockContentProvider.Query 71 public Query(Uri uri) { in Query() method in MockContentProvider.Query 80 public Query withProjection(String... projection) { in withProjection() 85 public Query withDefaultProjection(String... projection) { in withDefaultProjection() 90 public Query withAnyProjection() { in withAnyProjection() 95 public Query withSelection(String selection, String... selectionArgs) { in withSelection() 101 public Query withAnySelection() { in withAnySelection() 106 public Query withSortOrder(String sortOrder) { in withSortOrder() [all …]
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/ |
D | Query.java | 31 public final class Query { class 32 private static final String TAG = Clog.tag(Query.class); 46 private Query(String name) { in Query() method in Query 54 private Query(String name, int year) { in Query() method in Query 62 private Query(String name, int season, int episode) { in Query() method in Query 70 private Query(String name, int year, int season, int episode) { in Query() method in Query 106 public static @NonNull Query parse(@NonNull Uri uri) { in parse() 109 Query query; in parse() 115 query = new Query(uri.getLastPathSegment()); in parse() 120 private static Query parseEpisode(String filePath) { in parseEpisode() [all …]
|
D | Wikidata.java | 45 public static void search(@NonNull Query query) throws IOException { in search() 49 public static void search(@NonNull Query query, int maxResults) throws IOException { in search() 54 private static String getQueryString(Query query) { in getQueryString()
|
/packages/modules/DnsResolver/ |
D | DnsTlsQueryMap.h | 41 struct Query { struct 54 QueryFuture(Query query, std::future<Result> result) in QueryFuture() argument 56 Query query; 73 std::vector<Query> getAll(); 91 QueryPromise(Query query) : query(query) {} in QueryPromise() 92 Query query;
|
D | DnsTlsQueryMap.cpp | 50 Query q = {.newId = static_cast<uint16_t>(newId), .query = std::move(tmp)}; in recordQuery() 112 std::vector<DnsTlsQueryMap::Query> DnsTlsQueryMap::getAll() { in getAll() 114 std::vector<DnsTlsQueryMap::Query> queries; in getAll()
|
D | DnsTlsTransport.h | 89 bool sendQuery(const DnsTlsQueryMap::Query& q) REQUIRES(mLock);
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | DynamicShortcutsTests.java | 277 provider.expect(MockContentProvider.Query.forAnyUri()) 285 private MockContentProvider.Query queryFor(Uri uri, Object... rows) { 286 final MockContentProvider.Query query = MockContentProvider.Query 296 private MockContentProvider.Query queryForSingleRow(Uri uri, Object... row) { 297 return new MockContentProvider.Query(uri) 304 private ContentResolver resolverWithExpectedQueries(MockContentProvider.Query... queries) { 306 for (MockContentProvider.Query query : queries) { 338 private void populateQueryRows(MockContentProvider.Query query, int numColumns,
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | MetadataDao.java | 22 import androidx.room.Query; 31 @Query("SELECT * FROM metadata ORDER BY last_active_time DESC") 43 @Query("DELETE FROM metadata WHERE address = :address") 49 @Query("DELETE FROM metadata")
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | PublicApiFunctionalTest.java | 265 Cursor cursor = mManager.query(new DownloadManager.Query()); in testFiltering() 268 cursor = mManager.query(new DownloadManager.Query().setFilterById(download2.mId)); in testFiltering() 271 cursor = mManager.query(new DownloadManager.Query() in testFiltering() 275 cursor = mManager.query(new DownloadManager.Query() in testFiltering() 280 cursor = mManager.query(new DownloadManager.Query() in testFiltering() 286 cursor = mManager.query(new DownloadManager.Query()); in testFiltering() 288 … cursor = mManager.query(new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true)); in testFiltering() 309 Cursor cursor = mManager.query(new DownloadManager.Query()); in testOrdering() 312 cursor = mManager.query(new DownloadManager.Query() in testOrdering() 314 DownloadManager.Query.ORDER_ASCENDING)); in testOrdering() [all …]
|
D | AbstractPublicApiTest.java | 63 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStatusIfExists() 79 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStringField() 90 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getLongField() 179 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in runUntilProgress()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/ |
D | FavoriteNumberDao.java | 23 import androidx.room.Query; 40 @Query("SELECT * FROM favorite_number_entity") 58 @Query("DELETE FROM favorite_number_entity WHERE mAccountName IS NOT NULL"
|
/packages/apps/Car/Radio/src/com/android/car/radio/storage/ |
D | RadioDatabase.java | 30 import androidx.room.Query; 51 @Query("SELECT * FROM Favorite ORDER BY primaryId_type, primaryId_value") 57 @Query("DELETE FROM Favorite WHERE "
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupMembersFragment.java | 304 public static abstract class Query { class in GroupMembersFragment 373 ? Query.EMAIL_SELECTION in sendToGroup() 374 : Query.PHONE_SELECTION) in sendToGroup() 379 ? Query.EMAIL_PROJECTION in sendToGroup() 380 : Query.PHONE_PROJECTION, in sendToGroup() 390 final String contactId = cursor.getString(Query.CONTACT_ID); in sendToGroup() 391 final String itemId = cursor.getString(Query.ITEM_ID); in sendToGroup() 392 final boolean isPrimary = cursor.getInt(Query.PRIMARY) != 0; in sendToGroup() 393 final String data = cursor.getString(Query.DATA1); in sendToGroup()
|
D | GroupUtil.java | 109 ? GroupMembersFragment.Query.EMAIL_SELECTION in getSendToDataForIds() 111 : GroupMembersFragment.Query.PHONE_SELECTION in getSendToDataForIds() 116 ? GroupMembersFragment.Query.EMAIL_PROJECTION in getSendToDataForIds() 117 : GroupMembersFragment.Query.PHONE_PROJECTION, in getSendToDataForIds() 127 final String data = cursor.getString(GroupMembersFragment.Query.DATA1); in getSendToDataForIds()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionaryDownloadProgressBar.java | 20 import android.app.DownloadManager.Query; 120 final Query query = new Query().setFilterById(mId); in run()
|
D | DownloadManagerWrapper.java | 20 import android.app.DownloadManager.Query; 84 public Cursor query(final Query query) { in query()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | DownloadPackageTask.java | 24 import android.app.DownloadManager.Query; 167 Query q = new Query(); in createDownloadReceiver()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/ |
D | VideoStore.java | 32 import com.android.pump.provider.Query; 154 Query query = Query.parse(Uri.fromFile(file)); in load()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 28 import android.app.DownloadManager.Query; 292 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId))); in queryDocument() 344 new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true)); in queryChildDocuments() 347 new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true) in queryChildDocuments() 399 cursor = mDm.query(new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true) in queryRecentDocuments() 451 cursor = mDm.query(new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true) in querySearchDocuments() 569 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId))); in getFileForDocId()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | SystemBroadcastReceiver.java | 118 final DownloadManager.Query q = new DownloadManager.Query(); in removeOldDownloads()
|
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
D | ContactDeletionInteractionTest.java | 36 import com.android.contacts.test.mocks.MockContentProvider.Query; 133 private Query expectQuery() { in expectQuery()
|
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 37 import android.app.DownloadManager.Query; 1218 assertEquals(1, getTotalNumberDownloads(dm, new Query())); in testDownloadWithDownloadManagerDisallowed() 1219 assertEquals(1, getTotalNumberDownloads(dm, new Query().setFilterById(id))); in testDownloadWithDownloadManagerDisallowed() 1224 new Query().setFilterByStatus(DownloadManager.STATUS_SUCCESSFUL))); in testDownloadWithDownloadManagerDisallowed() 1228 assertEquals(0, getTotalNumberDownloads(dm, new Query())); in testDownloadWithDownloadManagerDisallowed() 1234 private static int getTotalNumberDownloads(final DownloadManager dm, final Query query) { in getTotalNumberDownloads()
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
D | PeopleActivityTest.java | 40 import com.android.contacts.test.mocks.MockContentProvider.Query; 131 Query query = mContactsProvider in expectContactListQuery()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | DownloadPackageTaskTest.java | 34 import android.app.DownloadManager.Query; 200 when(mDownloadManager.query(any(Query.class))).thenReturn(cursor); in mockSuccessfulDownload()
|
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/ |
D | TrampolineActivity.java | 24 import android.app.DownloadManager.Query; 90 final Cursor cursor = dm.query(new Query().setFilterById(id)); in onCreate()
|