Home
last modified time | relevance | path

Searched refs:addRow (Results 1 – 25 of 152) sorted by relevance

1234567

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DCursorReadSizeTest.kt31 val cursor = MatrixCursor(arrayOf("column")).apply { addRow(arrayOf("abc")) } in missingSizeColumns()
41 addRow(arrayOf(null, null)) in <lambda>()
42 addRow(arrayOf("100", null)) in <lambda>()
43 addRow(arrayOf(null, "100")) in <lambda>()
44 addRow(arrayOf("-100", "100")) in <lambda>()
45 addRow(arrayOf("100", "-100")) in <lambda>()
46 addRow(arrayOf("100", "abc")) in <lambda>()
47 addRow(arrayOf("abc", "100")) in <lambda>()
61 addRow(arrayOf("100", 0)) in <lambda>()
62 addRow(arrayOf("100", "50")) in <lambda>()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java60 addRow("", "No data intent returned"); in addRowsForIntent()
62 addRow("INTENT", intent.toString()); in addRowsForIntent()
69 addRow("EXTRA", key); in addRowsForIntent()
85 addRow(label, "null"); in addRowForValue()
89 addRow(label, "INTENT"); in addRowForValue()
92 addRow(label, "DATA"); in addRowForValue()
95 addRow(label, "ARRAY"); in addRowForValue()
101 addRow(label, String.valueOf(value)); in addRowForValue()
108 addRow("", "No data for this URI"); in addRowsForQuery()
112 addRow("", "DATA"); in addRowsForQuery()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DBluetoothPbapUtilsTest.java193 cursor.addRow(new Object[] {"id1", Phone.CONTENT_ITEM_TYPE, "01234567"}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize()
194 cursor.addRow(new Object[] {"id1", Email.CONTENT_ITEM_TYPE, "android@android.com"}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize()
195 cursor.addRow(new Object[] {"id1", StructuredPostal.CONTENT_ITEM_TYPE, "01234"}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize()
196 cursor.addRow(new Object[] {"id2", StructuredName.CONTENT_ITEM_TYPE, "And Roid"}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize()
197 cursor.addRow(new Object[] {null, null, null}); in fetchAndSetContacts_whenIsLoadTrue_returnsContactsSetSize()
220 cursor.addRow(new Object[] {"id1", Phone.CONTENT_ITEM_TYPE, "01234567"}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize()
221 cursor.addRow(new Object[] {"id1", Email.CONTENT_ITEM_TYPE, "android@android.com"}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize()
222 cursor.addRow(new Object[] {"id1", StructuredPostal.CONTENT_ITEM_TYPE, "01234"}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize()
223 cursor.addRow(new Object[] {"id2", StructuredName.CONTENT_ITEM_TYPE, "And Roid"}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize()
224 cursor.addRow(new Object[] {null, null, null}); in fetchAndSetContacts_whenIsLoadFalse_returnsContactsSetSize()
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastSearchIndexableProvider.java130 cursor.addRow(ref); in queryXmlResources()
177 cursor.addRow(raw); in queryRawData()
192 cursor.addRow(ref); in queryNonIndexableKeys()
201 cursor.addRow(ref); in queryNonIndexableKeys()
209 cursor.addRow(ref); in queryNonIndexableKeys()
217 cursor.addRow(ref); in queryNonIndexableKeys()
224 cursor.addRow(ref); in queryNonIndexableKeys()
231 cursor.addRow(ref); in queryNonIndexableKeys()
241 cursor.addRow(ref); in queryNonIndexableKeys()
249 cursor.addRow(ref); in queryNonIndexableKeys()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java82 mMatrixCursor.addRow(new Object[] { 1, contactName1, 0, 0, 0 }); in testGetValidNames()
83 mMatrixCursor.addRow(new Object[] { 2, null /* null name */, 0, 0, 0 }); in testGetValidNames()
84 mMatrixCursor.addRow(new Object[] { 3, contactName2, 0, 0, 0 }); in testGetValidNames()
85 mMatrixCursor.addRow(new Object[] { 4, "floopy@example.com" /* invalid name */, 0, 0, 0 }); in testGetValidNames()
86 mMatrixCursor.addRow(new Object[] { 5, "news-group" /* invalid name */, 0, 0, 0 }); in testGetValidNames()
100 mMatrixCursor.addRow(new Object[] { i, "name" + i, i, now, 1 }); in testGetValidNamesAffinity()
118 mMatrixCursor.addRow(new Object[] { 1, "name", 1, month_ago, 1 }); in testComputeAffinity()
134 mMatrixCursor.addRow(new Object[] { 1, "firstname", 0, 0, 0 }); in testGetCount()
135 mMatrixCursor.addRow(new Object[] { 2, null /* null name */, 0, 0, 0 }); in testGetCount()
136 mMatrixCursor.addRow(new Object[] { 3, "larry", 0, 0, 0 }); in testGetCount()
[all …]
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/view/
DQCListViewTest.java64 .addRow(new QCRow.Builder().build()) in onChanged_createsRows()
65 .addRow(new QCRow.Builder().build()) in onChanged_createsRows()
76 .addRow(new QCRow.Builder().build()) in onChanged_decreasedRowCount_removesExtraRows()
77 .addRow(new QCRow.Builder().build()) in onChanged_decreasedRowCount_removesExtraRows()
82 .addRow(new QCRow.Builder().build()) in onChanged_decreasedRowCount_removesExtraRows()
91 .addRow(new QCRow.Builder().build()) in setActionListener_setsOnChildView()
92 .addRow(new QCRow.Builder().build()) in setActionListener_setsOnChildView()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentTest.java234 cursor.addRow(new Object[] {0, -1}); in setAttachment_withTypeMms()
251 cursor.addRow(new Object[] {1, 0}); in setAttachment_withTypeEmail()
275 cursor.addRow(new Object[] {1, 0, "test_mime_type"}); in setAttachment_withTypeIm()
327 cursor.addRow(new Object[] {2L}); in setDateTime_withTypeSms()
341 cursor.addRow(new Object[] {2L}); in setDateTime_withTypeMms()
355 cursor.addRow(new Object[] {2L}); in setDateTime_withTypeIM()
370 cursor.addRow(new Object[] {"test_delivery_status"}); in setDeliveryStatus()
469 cursor.addRow(new Object[] {TEST_TO_ADDRESS, TEST_CC_ADDRESS, TEST_BCC_ADDRESS}); in getRecipientNameEmail()
492 cursor.addRow(new Object[] {TEST_TO_ADDRESS, TEST_CC_ADDRESS, TEST_BCC_ADDRESS}); in getRecipientAddressingEmail()
513 cursor.addRow(new Object[] {Telephony.Sms.MESSAGE_TYPE_INBOX}); in setRecipientAddressing_withFilterMsgTypeSms_andSmsMsgTypeInbox()
[all …]
DSmsMmsContactsTest.java72 cursor.addRow(new Object[] {null, TEST_PHONE_NUMBER}); in getPhoneNumberUncached_withNonEmptyCursor()
94 cursor.addRow(new Object[] {TEST_ID, TEST_PHONE_NUMBER}); in fillPhoneCache()
107 cursor.addRow(new Object[] {TEST_ID, TEST_PHONE_NUMBER}); in fillPhoneCache_withNonNullPhoneNumbers()
125 cursor.addRow(new Object[] {TEST_ID, TEST_PHONE_NUMBER}); in clearCache()
146 cursor.addRow(new Object[] {TEST_ID, TEST_NAME}); in getContactNameFromPhone_withNonNullCursor()
DBluetoothMapContentObserverTest.java441 cursor.addRow(new Object[] {TEST_THREAD_ID}); in testDeleteMessageMms_withNonDeletedThreadId()
464 cursor.addRow(new Object[] {BluetoothMapContentObserver.DELETED_THREAD_ID}); in testDeleteMessageMms_withDeletedThreadId()
487 cursor.addRow(new Object[] {TEST_THREAD_ID}); in testDeleteMessageSms_withNonDeletedThreadId()
510 cursor.addRow(new Object[] {BluetoothMapContentObserver.DELETED_THREAD_ID}); in testDeleteMessageSms_withDeletedThreadId()
536 cursor.addRow( in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxInbox()
572 cursor.addRow( in testUnDeleteMessageMms_withDeletedThreadId_andMessageBoxSent()
610 cursor.addRow(new Object[] {TEST_THREAD_ID, 1L, Mms.MESSAGE_BOX_SENT, TEST_ADDRESS}); in testUnDeleteMessageMms_withoutDeletedThreadId()
636 cursor.addRow(new Object[] {BluetoothMapContentObserver.DELETED_THREAD_ID, TEST_ADDRESS}); in testUnDeleteMessageSms_withDeletedThreadId()
664 cursor.addRow(new Object[] {TEST_THREAD_ID, TEST_ADDRESS}); in testUnDeleteMessageSms_withoutDeletedThreadId()
917 cursor.addRow( in initMsgList_withMsgSms()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DUserDictionaryCursorLoaderTest.java69 cursor.addRow(new Object[]{1, "word1", "shortcut1"}); in query()
70 cursor.addRow(new Object[]{2, "word2", "shortcut2"}); in query()
71 cursor.addRow(new Object[]{3, "word3", "shortcut3"}); in query()
72 cursor.addRow(new Object[]{4, "word3", "shortcut3"}); // dupe of 3 in query()
73 cursor.addRow(new Object[]{5, "word5", null}); // no shortcut in query()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DProviderModelSliceTest.java179 verify(mListBuilder, never()).addRow(any()); in getSlice_isGuestUser_shouldNotAddRow()
192 verify(mListBuilder, times(1)).addRow(mMockCarrierRowBuild); in getSlice_noWifiAndHasCarrierNoData_oneCarrier()
206 verify(mListBuilder, times(1)).addRow(mMockCarrierRowBuild); in getSlice_noWifiAndNoCarrier_oneCarrier()
220 verify(mListBuilder, times(1)).addRow(any(ListBuilder.RowBuilder.class)); in getSlice_airplaneModeIsOn_oneWifiToggle()
243 verify(mListBuilder, times(1)).addRow(mMockCarrierRowBuild); in getSlice_haveTwoWifiAndOneCarrier_getFiveRow()
244 verify(mListBuilder, times(5)).addRow(any(ListBuilder.RowBuilder.class)); in getSlice_haveTwoWifiAndOneCarrier_getFiveRow()
267 verify(mListBuilder, times(5)).addRow(any(ListBuilder.RowBuilder.class)); in getSlice_haveOneConnectedWifiAndTwoDisconnectedWifiAndNoCarrier_getFiveRow()
287 verify(mListBuilder, times(4)).addRow(any(ListBuilder.RowBuilder.class)); in getSlice_haveTwoDisconnectedWifiAndNoCarrier_getFourRow()
310 verify(mListBuilder, times(1)).addRow(mMockCarrierRowBuild); in getSlice_haveEthernetAndCarrierAndTwoDisconnectedWifi_getSixRow()
311 verify(mListBuilder, times(6)).addRow(any(ListBuilder.RowBuilder.class)); in getSlice_haveEthernetAndCarrierAndTwoDisconnectedWifi_getSixRow()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/cursor/
DPayloadToggleCursorResolverTest.kt46 addRow(arrayOf(uri.toString())) in <lambda>()
47 addRow( in <lambda>()
52 addRow(arrayOf(null)) in <lambda>()
82 addRow(arrayOf(uri.toString(), "100", "50")) in <lambda>()
112 addRow(arrayOf(createUri(i).toString())) in <lambda>()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DLogUtilsTest.java72 .addRow(new ContentValues()) in testWriteQuery()
110 .addRow(new ContentValues()) in testWriteEventForExistingQuery()
111 .addRow(new ContentValues()) in testWriteEventForExistingQuery()
164 .addRow(new ContentValues()) in testWriteEventWithNewQuery()
165 .addRow(new ContentValues()) in testWriteEventWithNewQuery()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEnterpriseContactsCursorWrapperTest.java62 c.addRow(new Object[] { in testWrappedResults()
85 c.addRow(new Object[] { in testWrappedResults()
108 c.addRow(new Object[] { in testWrappedResults()
131 c.addRow(new Object[] { in testWrappedResults()
154 c.addRow(new Object[] { in testWrappedResults()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/test/
DTestPersonalizationHandler.java90 .setRequestLogRecord(new RequestLogRecord.Builder().addRow(logData).build()) in onExecute()
97 .addRow(logData) in onExecute()
98 .addRow(logData) in onExecute()
199 .addRow(logData) in onWebTrigger()
200 .addRow(logData) in onWebTrigger()
/packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/
DCrashingSuggestionProvider.java69 cursor.addRow(new Object[]{ in query()
82 cursor.addRow(new Object[]{ in query()
93 cursor.addRow(new Object[]{ in query()
DHangingSuggestionProvider.java61 cursor.addRow(new Object[]{ in query()
74 cursor.addRow(new Object[]{ in query()
85 cursor.addRow(new Object[]{ in query()
/packages/apps/Contacts/src/com/android/contacts/sdn/
DSdnProvider.kt125 addRow( in <lambda>()
156 cursor.addRow( in <lambda>()
193 cursor.addRow( in <lambda>()
214 cursor.addRow( in <lambda>()
245 cursor.addRow( in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDatabaseUtilsTest.java293 cursor.addRow(new Object[] {returnedTimestamp}); in getAppUsageStartTimestampOfUser_returnExpectedResult()
354 cursor.addRow(new Object[] {101L, "app name1", timestamp1}); in getAppUsageEventForUsers_returnExpectedMap()
355 cursor.addRow(new Object[] {101L, "app name2", timestamp2}); in getAppUsageEventForUsers_returnExpectedMap()
356 cursor.addRow(new Object[] {101L, "app name3", timestamp2}); in getAppUsageEventForUsers_returnExpectedMap()
357 cursor.addRow(new Object[] {101L, "app name4", timestamp2}); in getAppUsageEventForUsers_returnExpectedMap()
399 cursor.addRow( in getHistoryMap_returnExpectedMap()
403 cursor.addRow( in getHistoryMap_returnExpectedMap()
407 cursor.addRow( in getHistoryMap_returnExpectedMap()
411 cursor.addRow( in getHistoryMap_returnExpectedMap()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppNotificationTest.java152 cursor.addRow( in updateActiveNotification()
165 cursor.addRow( in updateActiveNotification()
231 cursor.addRow( in updateCompletedNotification_withOutBoundShare_showsNoti()
244 cursor.addRow( in updateCompletedNotification_withOutBoundShare_showsNoti()
311 cursor.addRow( in updateCompletedNotification_withInBoundShare_showsNoti()
324 cursor.addRow( in updateCompletedNotification_withInBoundShare_showsNoti()
391 cursor.addRow( in updateIncomingFileConfirmationNotification()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/serviceflow/
DWebViewFlowTest.java98 1L, new RequestLogRecord.Builder().addRow(new ContentValues()).build(), in testNullPayload()
115 1L, new RequestLogRecord.Builder().addRow(new ContentValues()).build(), in testValidPayload()
132 1L, new RequestLogRecord.Builder().addRow(new ContentValues()).build(), in testDedupMultiplePayloads()
141 1L, new RequestLogRecord.Builder().addRow(new ContentValues()).build(), in testDedupMultiplePayloads()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DLogReaderTest.java177 .addRow(values) in onRequest()
181 .addRow(values) in onRequest()
193 .addRow(values) in onRequest()
203 .addRow(values) in onRequest()
/packages/apps/Settings/src/com/android/settings/network/
DProviderModelSlice.java124 listBuilder.addRow(createEthernetRow()); in getSlice()
134 listBuilder.addRow( in getSlice()
143 listBuilder.addRow(createWifiToggleRow(mContext, isWifiEnabled)); in getSlice()
159 listBuilder.addRow(getWifiSliceItemRow(connectedWifiItem)); in getSlice()
170 listBuilder.addRow(getWifiSliceItemRow(item)); in getSlice()
175 listBuilder.addRow(getSeeAllRow()); in getSlice()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/qc/
DProfileSwitcher.java144 listBuilder.addRow(createOrganizationOwnedDeviceRow()); in getQCItem()
155 listBuilder.addRow(createUserProfileRow(currentUser)); in getQCItem()
157 listBuilder.addRow(createLogOutRow()); in getQCItem()
164 listBuilder.addRow(createUserProfileRow(profile)); in getQCItem()
166 listBuilder.addRow(createGuestProfileRow()); in getQCItem()
168 listBuilder.addRow(createAddProfileRow()); in getQCItem()
172 listBuilder.addRow(createLogOutRow()); in getQCItem()
/packages/apps/Contacts/src/com/android/contacts/list/
DDirectoryListLoader.java181 result.addRow(new Object[]{directoryId, directoryType, displayName, photoSupport}); in loadInBackground()
197 mDefaultDirectoryList.addRow(new Object[] { in getDefaultDirectories()
203 mDefaultDirectoryList.addRow(new Object[] { in getDefaultDirectories()

1234567