/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapContentTest.java | 33 import android.database.MatrixCursor; 232 MatrixCursor cursor = in setAttachment_withTypeMms() 233 new MatrixCursor(new String[] {"MmsColTextOnly", "MmsColAttachmentSize"}); in setAttachment_withTypeMms() 249 MatrixCursor cursor = in setAttachment_withTypeEmail() 250 new MatrixCursor(new String[] {"MessageColAttachment", "MessageColAttachmentSize"}); in setAttachment_withTypeEmail() 268 MatrixCursor cursor = in setAttachment_withTypeIm() 269 new MatrixCursor( in setAttachment_withTypeIm() 326 MatrixCursor cursor = new MatrixCursor(new String[] {"SmsColDate"}); in setDateTime_withTypeSms() 340 MatrixCursor cursor = new MatrixCursor(new String[] {"MmsColDate"}); in setDateTime_withTypeMms() 354 MatrixCursor cursor = new MatrixCursor(new String[] {"MessageColDate"}); in setDateTime_withTypeIM() [all …]
|
D | FilterInfoTest.java | 21 import android.database.MatrixCursor; 47 MatrixCursor cursor = in setMessageColumns() 48 new MatrixCursor( in setMessageColumns() 88 MatrixCursor cursor = in setEmailMessageColumns() 89 new MatrixCursor( in setEmailMessageColumns() 105 MatrixCursor cursor = in setImMessageColumns() 106 new MatrixCursor( in setImMessageColumns() 122 MatrixCursor cursor = in setEmailImConvoColumns() 123 new MatrixCursor( in setEmailImConvoColumns() 145 MatrixCursor cursor = in setEmailImConvoContactColumns() [all …]
|
D | SmsMmsContactsTest.java | 25 import android.database.MatrixCursor; 71 MatrixCursor cursor = new MatrixCursor(new String[] {"COL_ARRR_ID", "COL_ADDR_ADDR"}); in getPhoneNumberUncached_withNonEmptyCursor() 83 MatrixCursor cursor = new MatrixCursor(new String[] {}); in getPhoneNumberUncached_withEmptyCursor() 93 MatrixCursor cursor = new MatrixCursor(new String[] {"COL_ADDR_ID", "COL_ADDR_ADDR"}); in fillPhoneCache() 106 MatrixCursor cursor = new MatrixCursor(new String[] {"COL_ADDR_ID", "COL_ADDR_ADDR"}); in fillPhoneCache_withNonNullPhoneNumbers() 124 MatrixCursor cursor = new MatrixCursor(new String[] {"COL_ADDR_ID", "COL_ADDR_ADDR"}); in clearCache() 145 MatrixCursor cursor = new MatrixCursor(new String[] {"COL_CONTACT_ID", "COL_CONTACT_NAME"}); in getContactNameFromPhone_withNonNullCursor()
|
D | BluetoothMapContentObserverTest.java | 28 import android.database.MatrixCursor; 440 MatrixCursor cursor = new MatrixCursor(new String[] {Mms.THREAD_ID}); in testDeleteMessageMms_withNonDeletedThreadId() 463 MatrixCursor cursor = new MatrixCursor(new String[] {Mms.THREAD_ID}); in testDeleteMessageMms_withDeletedThreadId() 486 MatrixCursor cursor = new MatrixCursor(new String[] {Mms.THREAD_ID}); in testDeleteMessageSms_withNonDeletedThreadId() 509 MatrixCursor cursor = new MatrixCursor(new String[] {Mms.THREAD_ID}); in testDeleteMessageSms_withDeletedThreadId() 533 MatrixCursor cursor = in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxInbox() 534 new MatrixCursor( in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxInbox() 569 MatrixCursor cursor = in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxSent() 570 new MatrixCursor( in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxSent() 605 MatrixCursor cursor = in testUnDeleteMessageMms_withoutDeletedThreadId() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | TestRootProvider.java | 19 import android.database.MatrixCursor; 20 import android.database.MatrixCursor.RowBuilder; 68 MatrixCursor c = new MatrixCursor( in queryRoots() 79 protected void addFile(MatrixCursor c, String id) { in addFile() 83 protected void addFile(MatrixCursor c, String id, int flags) { in addFile() 93 protected void addFolder(MatrixCursor c, String id) { in addFolder() 97 protected void addFolder(MatrixCursor c, String id, int flags) { in addFolder() 107 protected MatrixCursor createDocCursor(String[] projection) { in createDocCursor() 108 MatrixCursor c = new MatrixCursor( in createDocCursor()
|
D | InspectorProvider.java | 24 import android.database.MatrixCursor; 25 import android.database.MatrixCursor.RowBuilder; 72 MatrixCursor c = createDocCursor(projection); in queryDocument() 77 MatrixCursor c = createDocCursor(projection); in queryDocument() 98 MatrixCursor c = createDocCursor(projection); in queryChildDocuments() 106 MatrixCursor c = createDocCursor(projection); in queryChildDocuments() 114 MatrixCursor c = createDocCursor(projection); in queryChildDocuments() 121 MatrixCursor c = createDocCursor(projection); in queryChildDocuments() 134 private void addFileWithSize(MatrixCursor c, String id, long size) { in addFileWithSize()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ModelTest.java | 23 import android.database.MatrixCursor; 82 MatrixCursor c = new MatrixCursor(COLUMNS); in setUp() 84 MatrixCursor.RowBuilder row = c.newRow(); in setUp() 114 MatrixCursor cIn1 = new MatrixCursor(COLUMNS); in testModelIdIsUnique() 115 MatrixCursor cIn2 = new MatrixCursor(COLUMNS); in testModelIdIsUnique() 122 MatrixCursor.RowBuilder row0 = cIn1.newRow(); in testModelIdIsUnique() 126 MatrixCursor.RowBuilder row1 = cIn2.newRow(); in testModelIdIsUnique()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactDirectoryManagerTest.java | 30 import android.database.MatrixCursor; 83 private MatrixCursor mResponse; 90 public MatrixCursor createResponseCursor() { in createResponseCursor() 91 mResponse = new MatrixCursor( in createResponseCursor() 109 MatrixCursor cursor = new MatrixCursor( in query() 123 return new MatrixCursor(projection); in query() 189 MatrixCursor response1 = provider1.createResponseCursor(); in testScanAllProviders() 200 MatrixCursor response2 = provider2.createResponseCursor(); in testScanAllProviders() 285 MatrixCursor response1 = provider1.createResponseCursor(); in testPackageInstalled() 302 MatrixCursor response2 = provider2.createResponseCursor(); in testPackageInstalled() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapUtilsTest.java | 33 import android.database.MatrixCursor; 192 MatrixCursor cursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize() 219 MatrixCursor cursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize() 264 MatrixCursor contactCursor = in updateSecondaryVersionCounter_whenContactsAreAdded() 265 new MatrixCursor( in updateSecondaryVersionCounter_whenContactsAreAdded() 275 MatrixCursor dataCursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in updateSecondaryVersionCounter_whenContactsAreAdded() 299 MatrixCursor contactCursor = in updateSecondaryVersionCounter_whenContactsAreDeleted() 300 new MatrixCursor( in updateSecondaryVersionCounter_whenContactsAreDeleted() 306 MatrixCursor dataCursor = new MatrixCursor(new String[] {CONTACT_ID, MIMETYPE, DATA1}); in updateSecondaryVersionCounter_whenContactsAreDeleted() 330 MatrixCursor contactCursor = in updateSecondaryVersionCounter_whenContactsAreUpdated() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/ |
D | SortingCursorWrapperTest.java | 26 import android.database.MatrixCursor; 116 MatrixCursor c = new MatrixCursor(COLUMNS); in setUp() 118 MatrixCursor.RowBuilder row = c.newRow(); in setUp() 229 MatrixCursor c = new MatrixCursor(COLUMNS); in testSort_sizesWithBucketing_ascending() 232 MatrixCursor.RowBuilder row = c.newRow(); in testSort_sizesWithBucketing_ascending() 281 MatrixCursor c = new MatrixCursor(COLUMNS); in testSort_sizesWithBucketing_descending() 284 MatrixCursor.RowBuilder row = c.newRow(); in testSort_sizesWithBucketing_descending() 332 MatrixCursor c = new MatrixCursor(COLUMNS); in testSort_time_ascending() 337 MatrixCursor.RowBuilder row = c.newRow(); in testSort_time_ascending() 344 MatrixCursor.RowBuilder row = c.newRow(); in testSort_time_ascending() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/ |
D | SearchContactsCursorLoader.java | 22 import android.database.MatrixCursor; 110 return new SmartDialCursor(new Cursor[] {new MatrixCursor(Projections.CP2_PROJECTION)}); in newInstance() 113 MatrixCursor headerCursor = new MatrixCursor(HEADER_PROJECTION); in newInstance() 138 private static MatrixCursor convertSmartDialCursorToSearchCursor(Cursor smartDialCursor) { in convertSmartDialCursorToSearchCursor() 139 MatrixCursor cursor = new MatrixCursor(Projections.CP2_PROJECTION); in convertSmartDialCursorToSearchCursor() 181 return new RegularSearchCursor(new Cursor[] {new MatrixCursor(Projections.CP2_PROJECTION)}); in newInstance() 184 MatrixCursor headerCursor = new MatrixCursor(HEADER_PROJECTION); in newInstance()
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/ |
D | ResourcesProvider.java | 21 import android.database.MatrixCursor; 22 import android.database.MatrixCursor.RowBuilder; 79 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryRoots() 92 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryDocument() 116 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryChildDocuments() 134 void includeDocument(MatrixCursor result, String documentId) throws FileNotFoundException { in includeDocument()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | AlbumSetLoader.java | 3 import android.database.MatrixCursor; 28 public static final MatrixCursor MOCK = createRandomCursor(30); 30 private static MatrixCursor createRandomCursor(int count) { in createRandomCursor() 31 MatrixCursor c = new MatrixCursor(PROJECTION, count); in createRandomCursor()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhoneLookupWithStarPrefix.java | 22 import android.database.MatrixCursor; 69 final MatrixCursor matrixCursor = new MatrixCursor(cursor.getColumnNames()); in removeNonStarMatchesFromCursor() 84 final MatrixCursor.RowBuilder b = matrixCursor.newRow(); in removeNonStarMatchesFromCursor() 168 final MatrixCursor matrixCursor = new MatrixCursor(cursor.getColumnNames()); in removeNoMatchPhoneNumber() 175 final MatrixCursor.RowBuilder b = matrixCursor.newRow(); in removeNoMatchPhoneNumber()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherSearchIndexablesProvider.java | 25 import android.database.MatrixCursor; 51 MatrixCursor cursor = new MatrixCursor(INDEXABLES_XML_RES_COLUMNS); in queryXmlResources() 65 return new MatrixCursor(INDEXABLES_RAW_COLUMNS); in queryRawData() 70 MatrixCursor cursor = new MatrixCursor(NON_INDEXABLES_KEYS_COLUMNS); in queryNonIndexableKeys()
|
/packages/apps/DocumentsUI/perf-tests/src/com/android/documentsui/ |
D | StressProvider.java | 23 import android.database.MatrixCursor.RowBuilder; 24 import android.database.MatrixCursor; 133 final MatrixCursor result = new MatrixCursor(DEFAULT_ROOT_PROJECTION); in queryRoots() 143 final MatrixCursor result = new MatrixCursor(DEFAULT_DOCUMENT_PROJECTION); in queryDocument() 153 final MatrixCursor result = new MatrixCursor(DEFAULT_DOCUMENT_PROJECTION); in queryChildDocuments() 178 private void includeRoot(MatrixCursor result, StubRoot root) { in includeRoot() 186 private void includeDocument(MatrixCursor result, StubDocument document) { in includeDocument()
|
/packages/apps/Traceur/src/com/android/traceur/ |
D | SearchProvider.java | 32 import android.database.MatrixCursor; 50 MatrixCursor cursor = new MatrixCursor(INDEXABLES_RAW_COLUMNS); in queryRawData() 69 MatrixCursor cursor = new MatrixCursor(NON_INDEXABLES_KEYS_COLUMNS); in queryNonIndexableKeys()
|
D | StorageProvider.java | 20 import android.database.MatrixCursor; 74 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots() 80 final MatrixCursor.RowBuilder row = result.newRow(); in queryRoots() 94 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument() 95 final MatrixCursor.RowBuilder row = result.newRow(); in queryDocument()
|
/packages/apps/Car/Settings/src/com/android/car/settings/search/ |
D | CarSettingsSearchIndexablesProvider.java | 45 import android.database.MatrixCursor; 67 MatrixCursor cursor = new MatrixCursor(INDEXABLES_XML_RES_COLUMNS); in queryXmlResources() 92 MatrixCursor cursor = new MatrixCursor(INDEXABLES_RAW_COLUMNS); in queryRawData() 128 MatrixCursor cursor = new MatrixCursor(NON_INDEXABLES_KEYS_COLUMNS); in queryNonIndexableKeys()
|
/packages/modules/HealthFitness/tests/integrationtests/utils/HealthConnectDocumentProviderTestUtils/src/android/healthconnect/tests/documentprovider/utils/ |
D | FakeDocumentProviderRoots.java | 19 import android.database.MatrixCursor; 45 public MatrixCursor getCursor() { in getCursor() 51 final MatrixCursor cursor = new MatrixCursor(PROJECTION); in getCursor()
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | SettingsSearchIndexablesProvider.java | 51 import android.database.MatrixCursor; 117 final MatrixCursor cursor = new MatrixCursor(INDEXABLES_XML_RES_COLUMNS); in queryXmlResources() 140 final MatrixCursor cursor = new MatrixCursor(INDEXABLES_RAW_COLUMNS); in queryRawData() 156 final MatrixCursor cursor = new MatrixCursor(NON_INDEXABLES_KEYS_COLUMNS); in queryNonIndexableKeys() 190 final MatrixCursor cursor = new MatrixCursor(INDEXABLES_RAW_COLUMNS); in queryDynamicRawData() 200 final MatrixCursor cursor = new MatrixCursor(SITE_MAP_COLUMNS); in querySiteMapPairs() 247 final MatrixCursor cursor = new MatrixCursor(SLICE_URI_PAIRS_COLUMNS); in querySliceUriPairs()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | DatabaseUtilsTest.java | 40 import android.database.MatrixCursor; 266 final MatrixCursor cursor = in getAppUsageStartTimestampOfUser_emptyCursorContent_returnEarliestTimestamp() 267 new MatrixCursor(new String[] {AppUsageEventEntity.KEY_TIMESTAMP}); in getAppUsageStartTimestampOfUser_emptyCursorContent_returnEarliestTimestamp() 290 final MatrixCursor cursor = in getAppUsageStartTimestampOfUser_returnExpectedResult() 291 new MatrixCursor(new String[] {AppUsageEventEntity.KEY_TIMESTAMP}); in getAppUsageStartTimestampOfUser_returnExpectedResult() 310 final MatrixCursor cursor = in getAppUsageEventForUsers_emptyCursorContent_returnEmptyMap() 311 new MatrixCursor( in getAppUsageEventForUsers_emptyCursorContent_returnEmptyMap() 346 final MatrixCursor cursor = in getAppUsageEventForUsers_returnExpectedMap() 347 new MatrixCursor( in getAppUsageEventForUsers_returnExpectedMap() 375 final MatrixCursor cursor = in getHistoryMap_emptyCursorContent_returnEmptyMap() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | CursorReadSizeTest.kt | 19 import android.database.MatrixCursor 31 val cursor = MatrixCursor(arrayOf("column")).apply { addRow(arrayOf("abc")) } in missingSizeColumns() 40 MatrixCursor(arrayOf(WIDTH, HEIGHT)).apply { in <lambda>() 60 MatrixCursor(arrayOf(HEIGHT, WIDTH)).apply { in <lambda>()
|
/packages/modules/StatsD/framework/java/android/app/ |
D | StatsCursor.java | 23 import android.database.MatrixCursor; 32 private final MatrixCursor mMatrixCursor; 44 mMatrixCursor = new MatrixCursor(columnNames); in StatsCursor() 46 MatrixCursor.RowBuilder builder = mMatrixCursor.newRow(); in StatsCursor()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/ |
D | GalleryGridAdapter.java | 21 import android.database.MatrixCursor; 110 MatrixCursor extraRow = new MatrixCursor(GalleryGridItemData.IMAGE_PROJECTION); in insertEntries() 122 MatrixCursor extraRow = new MatrixCursor(GalleryGridItemData.IMAGE_PROJECTION); in insertEntry()
|