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.java85 private List<String> queryResult; field in DbTestUtils.FakeCursor
88 FakeCursor(List<String> queryResult) { in FakeCursor() argument
89 this.queryResult = queryResult; in FakeCursor()
94 return queryResult.size(); in getCount()
105 if (queryResult.size() > 0 && mCurrentPosition < queryResult.size()) { in moveToNext()
120 return queryResult.get(columnIndex); in getString()
130 private ArrayList<String> queryResult = null; field in DbTestUtils.FakeContentProvider
151 this.queryResult = result; in setQueryResult()
157 ArrayList<String> result = (queryResult == null) ? in query()
158 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.java85 final Cursor row = queryResult( in test_createShortcutFromRow_hasCorrectResult()
348 private Cursor queryResult(Object... values) {
349 return queryResult(DynamicShortcuts.PROJECTION, values);
361 private Cursor queryResult(String[] columns, Object... values) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockUiProvider.java427 for (Map<String, Object> queryResult : queryResults) { in query()
431 rowBuilder.add(queryResult.get(key)); in query()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContentObserver.java2707 Cursor queryResult = resolver.query(uri, null, whereClause, null, null); in moveMmsToFolder() local
2709 if (queryResult != null) { in moveMmsToFolder()
2710 if (queryResult.getCount() > 0) { in moveMmsToFolder()
2711 queryResult.moveToFirst(); in moveMmsToFolder()
2722 if (queryResult != null) queryResult.close(); in moveMmsToFolder()