/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallLogQueryHandler.java | 23 import android.database.Cursor; 267 Cursor cursor) { 268 if (cursor == null) { 273 if (updateAdapterData(cursor)) { 274 cursor = null; 277 updateVoicemailStatus(cursor); 279 updateVoicemailUnreadCount(cursor); 281 updateMissedCallsUnreadCount(cursor); 286 if (cursor != null) [all...] |
/packages/apps/Music/src/com/android/music/ |
MediaPickerActivity.java | 25 import android.database.Cursor; 156 Cursor[] cs; 158 // Cursor[]. If the length of Corsor[] larger than really used, 160 ArrayList<Cursor> cList = new ArrayList<Cursor>(); 176 // If use Cursor[] as before, the Cursor[i] could be null when there is 180 Cursor c; 214 // The size is known now, we're sure each item of Cursor[] is not null. 215 cs = new Cursor[size] [all...] |
PlaylistBrowserActivity.java | 31 import android.database.Cursor; 164 // a cursor yet (because the initial query that sets its cursor 167 // first case, simply retry the query when the cursor is null. 197 // close its cursor, which we do by assigning a null cursor to it. Doing this 198 // instead of closing the cursor directly keeps the framework from accessing 199 // the closed cursor later. 240 public void init(Cursor cursor) { 416 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, local 440 Cursor cursor = MusicUtils.query(this, MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, local [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseCursorTest.java | 21 import android.database.Cursor; 112 // use cursor to access blob 113 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 136 Cursor c = mDatabase.rawQuery("SELECT data FROM test", null); 147 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 151 // The cursor should ignore text before the last period when looking for a column. (This 211 Cursor c = mDatabase.query("test", null, "_id > 1000", null, null, null, null); 251 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 267 public TestObserver(int total_, SQLiteCursor cursor) { 268 c = cursor; 496 Cursor cursor = mDatabase.rawQuery("select * from test", null); local [all...] |
DatabaseStatementTest.java | 20 import android.database.Cursor; 85 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 139 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 161 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 184 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 206 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 231 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 266 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 315 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
PhoneNumberListAdapter.java | 21 import android.database.Cursor; 56 * A cursor adapter for the {@link Phone#CONTENT_ITEM_TYPE} and 324 return ((Cursor) getItem(position)).getString(PhoneQuery.DISPLAY_NAME); 328 final Cursor item = (Cursor)getItem(position); 333 * Builds a {@link Data#CONTENT_URI} for the given cursor position. 335 * @return Uri for the data. may be null if the cursor is not ready. 339 final Cursor item = (Cursor)getItem(position); 343 public Uri getDataUri(int partitionIndex, Cursor cursor) [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
CursorJoinerTest.java | 21 import android.database.Cursor; 61 Cursor cursor1 = getCursor(TABLE_NAME_1, null, null); 62 Cursor cursor2 = getCursor(TABLE_NAME_2, null, null); 136 Cursor cursor1 = getCursor(TABLE_NAME_1, null, columnNames); 137 Cursor cursor2 = getCursor(TABLE_NAME_2, null, columnNames); 219 private void closeCursor(Cursor cursor) { 220 if (null != cursor) { 221 cursor.close(); 222 cursor = null [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastListActivity.java | 31 import android.database.Cursor; 78 implements LoaderManager.LoaderCallbacks<Cursor> { 113 // Create a cursor adapter to display the loaded data. 144 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 151 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 152 // Swap the new cursor in. (The framework will take care of closing the 153 // old cursor once we return.) 159 public void onLoaderReset(Loader<Cursor> loader) { 160 // This is called when the last Cursor provided to onLoadFinished( 198 Cursor cursor = mAdapter.getCursor(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupBrowseListFragment.java | 27 import android.database.Cursor; 77 private Cursor mGroupListCursor; 197 private final LoaderManager.LoaderCallbacks<Cursor> mGroupLoaderListener = 198 new LoaderCallbacks<Cursor>() { 207 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 212 public void onLoaderReset(Loader<Cursor> loader) {
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
PeopleAndOptionsData.java | 22 import android.database.Cursor; 42 LoaderManager.LoaderCallbacks<Cursor> { 44 void onOptionsCursorUpdated(PeopleAndOptionsData data, Cursor cursor); 68 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { 102 public void onLoadFinished(final Loader<Cursor> loader, final Cursor data) { 130 public void onLoaderReset(final Loader<Cursor> loader) {
|
SettingsData.java | 22 import android.database.Cursor; 44 LoaderManager.LoaderCallbacks<Cursor> { 131 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { 133 Loader<Cursor> loader = null; 151 public void onLoadFinished(final Loader<Cursor> generic, final Cursor data) { 164 public void onLoaderReset(final Loader<Cursor> generic) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
MultiFoldersSelectionDialog.java | 26 import android.database.Cursor; 84 new LoaderManager.LoaderCallbacks<Cursor>() { 86 public Loader<Cursor> onCreateLoader(int id, Bundle args) { 93 public void onLoadFinished(Loader<Cursor> loader, Cursor data) { 142 Cursor c = AddableFolderSelectorAdapter.filterFolders(data, 162 public void onLoaderReset(Loader<Cursor> loader) {
|
/prebuilts/gdb/darwin-x86/lib/python2.7/sqlite3/test/ |
regression.py | 37 cur = self.con.cursor() 44 cur = self.con.cursor() 55 cursors = [con.cursor() for x in xrange(5)] 66 cur = self.con.cursor() 82 cur = con.cursor() 162 Verifies that cursor methods check wether base class __init__ was called. 164 class Cursor(sqlite.Cursor): 169 cur = Cursor(con) 188 cur = con.cursor() 201 def cursor(self): member in class:RegressionTests.CheckCursorRegistration.Connection [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/sqlite3/test/ |
regression.py | 37 cur = self.con.cursor() 44 cur = self.con.cursor() 55 cursors = [con.cursor() for x in xrange(5)] 66 cur = self.con.cursor() 82 cur = con.cursor() 162 Verifies that cursor methods check wether base class __init__ was called. 164 class Cursor(sqlite.Cursor): 169 cur = Cursor(con) 188 cur = con.cursor() 201 def cursor(self): member in class:RegressionTests.CheckCursorRegistration.Connection [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/sqlite3/test/ |
regression.py | 37 cur = self.con.cursor() 44 cur = self.con.cursor() 55 cursors = [con.cursor() for x in xrange(5)] 66 cur = self.con.cursor() 82 cur = con.cursor() 162 Verifies that cursor methods check wether base class __init__ was called. 164 class Cursor(sqlite.Cursor): 169 cur = Cursor(con) 188 cur = con.cursor() 201 def cursor(self): member in class:RegressionTests.CheckCursorRegistration.Connection [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/sqlite3/test/ |
regression.py | 37 cur = self.con.cursor() 44 cur = self.con.cursor() 55 cursors = [con.cursor() for x in xrange(5)] 66 cur = self.con.cursor() 82 cur = con.cursor() 162 Verifies that cursor methods check wether base class __init__ was called. 164 class Cursor(sqlite.Cursor): 169 cur = Cursor(con) 188 cur = con.cursor() 201 def cursor(self): member in class:RegressionTests.CheckCursorRegistration.Connection [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
DatabaseStatementTest.java | 20 import android.database.Cursor; 86 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 140 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 162 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 185 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 207 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 232 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 267 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 316 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailAsyncTaskUtil.java | 30 import android.database.Cursor; 111 try (Cursor cursor = mResolver.query(voicemailUri, 114 if (hasContent(cursor)) { 115 return cursor.getString(cursor.getColumnIndex( 228 try (Cursor cursor = getArchiveExistsCursor(voicemailUri)) { 229 if (hasContent(cursor)) { 231 .buildWithId(cursor.getInt(cursor.getColumnIndex [all...] |
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
SourceLatency.java | 25 import android.database.Cursor; 139 Cursor cursor = null; local 142 cursor = getSuggestions(searchable, query); 145 if (cursor == null) { 146 Log.d(TAG, src + ": null cursor in " + formatTime(elapsed) 149 Log.d(TAG, src + ": " + cursor.getCount() + " rows in " + formatTime(elapsed) 154 if (cursor != null) { 155 cursor.close(); 160 public Cursor getSuggestions(SearchableInfo searchable, String query) 234 Cursor cursor = null; local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactUtil.java | 22 import android.database.Cursor; 52 Cursor cursor = resolver.query(uri, projection, null, null, null); local 53 if (cursor.moveToNext()) { 65 Cursor cursor = resolver.query(uri, projection, null, null, null); local 67 if (cursor.moveToNext()) { 68 return cursor.getLong(0); 71 if (cursor != null) { 72 cursor.close() [all...] |
RawContactUtil.java | 23 import android.database.Cursor; 67 Cursor cursor = resolver.query(uri, projection, null, null, null); local 68 return CommonDatabaseUtils.singleRecordToArray(cursor); 79 Cursor cursor = resolver.query(uri, projection, null, null, null); local 80 return CommonDatabaseUtils.multiRecordToArray(cursor);
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
VideoContentProvider.java | 24 import android.database.Cursor; 70 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 86 private Cursor getSuggestions(String query) {
|
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactManager.java | 21 import android.database.Cursor; 87 Cursor cursor = getContacts(); local 91 SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.contact_entry, cursor, 99 * @return A cursor for for accessing the contact list. 101 private Cursor getContacts()
|
/development/samples/Vault/tests/src/com/example/android/vault/ |
VaultProviderTest.java | 23 import android.database.Cursor; 56 Cursor c; 91 private static void assertContains(Cursor c, String... docs) {
|
/external/clang/unittests/Format/ |
SortIncludesTest.cpp | 31 unsigned newCursor(llvm::StringRef Code, unsigned Cursor) { 33 sortIncludes(Style, Code, Ranges, "input.cpp", &Cursor); 34 return Cursor;
|