/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 | 39 struct Query { struct 52 QueryFuture(Query query, std::future<Result> result) in QueryFuture() argument 54 Query query; 71 std::vector<Query> getAll(); 88 QueryPromise(Query query) : query(query) {} in QueryPromise() 89 Query query;
|
D | DnsTlsQueryMap.cpp | 43 Query q = {.newId = static_cast<uint16_t>(newId), .query = std::move(tmp)}; in recordQuery() 105 std::vector<DnsTlsQueryMap::Query> DnsTlsQueryMap::getAll() { in getAll() 107 std::vector<DnsTlsQueryMap::Query> queries; in getAll()
|
/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/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/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/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/storage/ |
D | AssociatedDeviceDao.java | 23 import androidx.room.Query; 34 @Query("SELECT * FROM associated_devices WHERE id LIKE :deviceId LIMIT 1") 38 @Query("SELECT * FROM associated_devices WHERE userId LIKE :userId") 53 @Query("SELECT * FROM associated_device_keys WHERE id LIKE :deviceId LIMIT 1")
|
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/trust/storage/ |
D | TrustedDeviceDao.java | 23 import androidx.room.Query; 32 @Query("SELECT * FROM trusted_devices WHERE id LIKE :deviceId LIMIT 1") 36 @Query("SELECT * FROM trusted_devices WHERE userId LIKE :userId")
|
/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/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 | 111 ? GroupMembersFragment.Query.EMAIL_SELECTION in getSendToDataForIds() 113 : GroupMembersFragment.Query.PHONE_SELECTION in getSendToDataForIds() 118 ? GroupMembersFragment.Query.EMAIL_PROJECTION in getSendToDataForIds() 119 : GroupMembersFragment.Query.PHONE_PROJECTION, in getSendToDataForIds() 129 final String data = cursor.getString(GroupMembersFragment.Query.DATA1); in getSendToDataForIds()
|
/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/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; 171 Query q = new Query(); in createDownloadReceiver()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 28 import android.app.DownloadManager.Query; 289 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId))); in queryDocument() 341 new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true)); in queryChildDocuments() 344 new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true) in queryChildDocuments() 396 cursor = mDm.query(new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true) in queryRecentDocuments() 447 cursor = mDm.query(new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true) in querySearchDocuments() 565 cursor = mDm.query(new Query().setFilterById(Long.parseLong(docId))); in getFileForDocId()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/ |
D | VideoStore.java | 31 import com.android.pump.provider.Query; 153 Query query = Query.parse(Uri.fromFile(file)); in load()
|
/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/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/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; 198 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()
|