Home
last modified time | relevance | path

Searched refs:queryResult (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java89 private List<String> queryResult; field in DbTestUtils.FakeCursor
92 FakeCursor(List<String> queryResult) { in FakeCursor() argument
93 this.queryResult = queryResult; in FakeCursor()
98 return queryResult.size(); in getCount()
109 if (queryResult.size() > 0 && mCurrentPosition < queryResult.size()) { in moveToNext()
124 return queryResult.get(columnIndex); in getString()
134 private ArrayList<String> queryResult = null; field in DbTestUtils.FakeContentProvider
155 this.queryResult = result; in setQueryResult()
161 ArrayList<String> result = (queryResult == null) ? in query()
162 new ArrayList<String>() : queryResult; in query()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DCp2DeviceLocalAccountLocatorTests.java62 final DeviceLocalAccountLocator sut = createWithQueryResult(queryResult( in test_getDeviceLocalAccounts_returnsEmptyListWhenNoRawContactsHaveDeviceType()
70 final DeviceLocalAccountLocator sut = createWithQueryResult(queryResult( in test_getDeviceLocalAccounts_returnsListWithItemForNullAccount()
83 final DeviceLocalAccountLocator sut = createLocator(queryResult( in test_getDeviceLocalAccounts_containsItemForEachDeviceAccount()
118 .withQueryResult(ContactsContract.Settings.CONTENT_URI, queryResult( in test_getDeviceLocalAccounts_includesAccountsFromSettings()
131 .withQueryResult(ContactsContract.Groups.CONTENT_URI, queryResult( in test_getDeviceLocalAccounts_includesAccountsFromGroups()
174 private Cursor queryResult(String... nameTypePairs) { in queryResult() method in Cp2DeviceLocalAccountLocatorTests
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java86 final Cursor row = queryResult( in test_createShortcutFromRow_hasCorrectResult()
349 private Cursor queryResult(Object... values) {
350 return queryResult(DynamicShortcuts.PROJECTION, values);
362 private Cursor queryResult(String[] columns, Object... values) {
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java2889 Cursor queryResult = resolver.query(uri, null, whereClause, null, null); in moveMmsToFolder() local
2891 if (queryResult != null) { in moveMmsToFolder()
2892 if (queryResult.getCount() > 0) { in moveMmsToFolder()
2893 queryResult.moveToFirst(); in moveMmsToFolder()
2906 if (queryResult != null) { in moveMmsToFolder()
2907 queryResult.close(); in moveMmsToFolder()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp1237 const std::vector<std::string> queryResult; in TEST_F() member
1276 EXPECT_THAT(ToStrings(result), testing::UnorderedElementsAreArray(config.queryResult)); in TEST_F()