/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ReorderingCursorWrapper.java | 26 private final Cursor mCursor; field in ReorderingCursorWrapper 41 mCursor = cursor; in ReorderingCursorWrapper() 48 mCursor.close(); in close() 53 return mCursor.moveToPosition(mPositionMap[newPosition]); in onMove() 58 return mCursor.getColumnNames(); in getColumnNames() 63 return mCursor.getCount(); in getCount() 68 return mCursor.getDouble(column); in getDouble() 73 return mCursor.getFloat(column); in getFloat() 78 return mCursor.getInt(column); in getInt() 83 return mCursor.getLong(column); in getLong() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserBookmarksAdapter.java | 50 private Cursor mCursor; field in BrowserBookmarksAdapter 98 mCursor = b.managedQuery(Browser.BOOKMARKS_URI, in BrowserBookmarksAdapter() 100 mCursor.registerContentObserver(new ChangeObserver()); in BrowserBookmarksAdapter() 101 mCursor.registerDataSetObserver(new MyDataSetObserver()); in BrowserBookmarksAdapter() 106 mCount = mCursor.getCount() + mExtraOffset; in BrowserBookmarksAdapter() 127 mCursor.moveToPosition(position- mExtraOffset); in getRow() 128 String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX); in getRow() 130 mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX)); in getRow() 132 byte[] data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX); in getRow() 137 map.putInt("id", mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX)); in getRow() [all …]
|
D | DownloadTouchIcon.java | 41 private final Cursor mCursor; field in DownloadTouchIcon 51 mCursor = c; in DownloadTouchIcon() 61 mCursor = c; in DownloadTouchIcon() 104 if (mCursor != null) { in onCancelled() 105 mCursor.close(); in onCancelled() 117 if (icon == null || mCursor == null || isCancelled()) { in onPostExecute() 127 if (mCursor.moveToFirst()) { in onPostExecute() 130 Browser.BOOKMARKS_URI, mCursor.getInt(0)), in onPostExecute() 132 } while (mCursor.moveToNext()); in onPostExecute() 134 mCursor.close(); in onPostExecute()
|
D | MostVisitedActivity.java | 96 private Cursor mCursor; field in MostVisitedActivity.MyAdapter 112 mCursor = managedQuery(Browser.BOOKMARKS_URI, projection, in MyAdapter() 114 mCursor.registerContentObserver(new ChangeObserver()); in MyAdapter() 134 mCursor.requery(); in refreshData() 147 mCursor.moveToPosition(position); in getView() 148 item.setName(mCursor.getString(mTitleIndex)); in getView() 149 String url = mCursor.getString(mUrlIndex); in getView() 151 byte[] data = mCursor.getBlob(mFaviconIndex); in getView() 159 item.setIsBookmark(1 == mCursor.getInt(mBookmarkIndex)); in getView() 172 return mCursor.getCount(); in getCount()
|
D | BrowserHistoryPage.java | 312 private Cursor mCursor; field in BrowserHistoryPage.HistoryAdapter 327 mCursor = managedQuery( in HistoryAdapter() 333 mCursor.registerContentObserver(new ChangeObserver()); in HistoryAdapter() 337 if (mCursor.isClosed()) { in refreshData() 340 mCursor.requery(); in refreshData() 357 if (mCursor.moveToFirst() && mCursor.getCount() > 0) { in buildMap() 358 while (!mCursor.isAfterLast()) { in buildMap() 359 long date = mCursor.getLong(Browser.HISTORY_PROJECTION_DATE_INDEX); in buildMap() 366 array[index] = mCursor.getCount() in buildMap() 367 - mCursor.getPosition(); in buildMap() [all …]
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DeleteEventHelper.java | 60 private Cursor mCursor; field in DeleteEventHelper 109 long id = mCursor.getInt(mEventIndexId); 202 mCursor = cursor; in delete() 203 mEventIndexId = mCursor.getColumnIndexOrThrow(Events._ID); in delete() 204 mEventIndexRrule = mCursor.getColumnIndexOrThrow(Events.RRULE); in delete() 205 int eventIndexSyncId = mCursor.getColumnIndexOrThrow(Events._SYNC_ID); in delete() 206 mSyncId = mCursor.getString(eventIndexSyncId); in delete() 211 String rRule = mCursor.getString(mEventIndexRrule); in delete() 247 int indexDtstart = mCursor.getColumnIndexOrThrow(Events.DTSTART); in deleteRepeatingEvent() 248 int indexAllDay = mCursor.getColumnIndexOrThrow(Events.ALL_DAY); in deleteRepeatingEvent() [all …]
|
D | AlertActivity.java | 94 private Cursor mCursor; field in AlertActivity 125 mCursor = cursor; in onQueryComplete() 247 if (mCursor == null) { in onResume() 253 mCursor.requery(); in onResume() 262 if (mCursor != null) { in onStop() 263 mCursor.deactivate(); in onStop() 270 if (mCursor != null) { in onDestroy() 271 mCursor.close(); in onDestroy() 282 mCursor.moveToPosition(-1); 283 while (mCursor.moveToNext()) { [all …]
|
D | MonthView.java | 97 private DayOfMonthCursor mCursor; field in MonthView 240 mCursor = new DayOfMonthCursor(mViewCalendar.year, mViewCalendar.month, in init() 334 mCursor.setSelectedRowColumn(row, col); in init() 537 int columnDay1 = mCursor.getColumnOf(1); in doDraw() 586 DayOfMonthCursor c = mCursor; in getSelectedMillisFor() 675 drawSelection = mCursor.isSelected(row, column); in drawBox() 678 boolean withinCurrentMonth = mCursor.isWithinCurrentMonth(row, column); in drawBox() 680 int dayOfBox = mCursor.getDayAt(row, column); in drawBox() 681 if (dayOfBox == mToday.monthDay && mCursor.getYear() == mToday.year in drawBox() 682 && mCursor.getMonth() == mToday.month) { in drawBox() [all …]
|
D | SelectCalendarsActivity.java | 49 private Cursor mCursor = null; field in SelectCalendarsActivity 70 mCursor = managedQuery(Calendars.CONTENT_URI, PROJECTION, in onCreate() 75 mAdapter = new SelectCalendarsAdapter(context, mCursor); in onCreate() 95 mCursor.requery(); 199 mCursor.requery(); in onClick()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | ComposingText.java | 63 protected int[] mCursor; field in ComposingText 70 mCursor = new int[MAX_LAYER]; in ComposingText() 73 mCursor[i] = 0; in ComposingText() 83 Log.d("OpenWnn", " cur = " + mCursor[i]); in debugout() 266 int cursor = mCursor[layer]; in insertStrSegment() 280 mStringLayer[layer1].add(mCursor[layer1], str); in insertStrSegment() 281 mCursor[layer1]++; in insertStrSegment() 284 int pos = mCursor[i-1] - 1; in insertStrSegment() 287 strLayer.add(mCursor[i], tmp); in insertStrSegment() 288 mCursor[i]++; in insertStrSegment() [all …]
|
/packages/apps/Camera/src/com/android/camera/gallery/ |
D | BaseImageList.java | 44 protected Cursor mCursor; field in BaseImageList 55 mCursor = createCursor(); in BaseImageList() 57 if (mCursor == null) { in BaseImageList() 75 if (mCursor != null) { in close() 76 mCursor.close(); in close() 77 mCursor = null; in close() 110 if (mCursor == null) return null; in getCursor() 112 mCursor.requery(); in getCursor() 115 return mCursor; in getCursor() 158 if (mCursor == null) return; in invalidateCursor() [all …]
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | BaseImageList.java | 44 protected Cursor mCursor; field in BaseImageList 55 mCursor = createCursor(); in BaseImageList() 57 if (mCursor == null) { in BaseImageList() 75 if (mCursor != null) { in close() 76 mCursor.close(); in close() 77 mCursor = null; in close() 110 if (mCursor == null) return null; in getCursor() 112 mCursor.requery(); in getCursor() 115 return mCursor; in getCursor() 158 if (mCursor == null) return; in invalidateCursor() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | VideoBrowserActivity.java | 56 if (mCursor == null) { in init() 61 if (mCursor.getCount() > 0) { in init() 71 mCursor, in init() 82 mCursor.moveToPosition(position); in onListItemClick() 83 … String type = mCursor.getString(mCursor.getColumnIndexOrThrow(MediaStore.Video.Media.MIME_TYPE)); in onListItemClick() 103 mCursor = resolver.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, in MakeCursor() 108 private Cursor mCursor; field in VideoBrowserActivity
|
D | MediaPickerActivity.java | 71 if (mCursor != null) { in onDestroy() 72 mCursor.close(); in onDestroy() 81 if (null == mCursor || 0 == mCursor.getCount()) { in init() 88 mCursor, in init() 98 mCursor.moveToPosition(position); in onListItemClick() 99 String type = mCursor.getString(mCursor.getColumnIndexOrThrow( in onListItemClick() 109 mediaId = mCursor.getLong(mCursor.getColumnIndexOrThrow( in onListItemClick() 113 mediaId = mCursor.getLong(mCursor.getColumnIndexOrThrow( in onListItemClick() 168 mCursor = null; in MakeCursor() 210 mCursor = null; in MakeCursor() [all …]
|
D | MediaPlaybackService.java | 115 private Cursor mCursor; field in MediaPlaybackService 316 if (mCursor != null) { in onDestroy() 317 mCursor.close(); in onDestroy() 318 mCursor = null; in onDestroy() 906 if (mCursor != null) { in openCurrent() 907 mCursor.close(); in openCurrent() 908 mCursor = null; in openCurrent() 917 mCursor = getContentResolver().query( in openCurrent() 920 if (mCursor != null) { in openCurrent() 921 mCursor.moveToFirst(); in openCurrent() [all …]
|
/packages/apps/Music/tests/src/com/android/music/functional/ |
D | TestSongs.java | 120 Cursor mCursor; in testAddPlaylist() local 132 mCursor = resolver.query(MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI, in testAddPlaylist() 136 mCursor.moveToFirst(); in testAddPlaylist() 139 …ls("New sorted Playlist title:", MusicPlayerNames.expectedPlaylistTitle[j], mCursor.getString(0)); in testAddPlaylist() 140 mCursor.moveToNext(); in testAddPlaylist() 153 Cursor mCursor; in testSetRingtone() local 162 mCursor = resolver.query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, in testSetRingtone() 165 mCursor.moveToFirst(); in testSetRingtone() 166 int isRingtoneSet = mCursor.getCount(); in testSetRingtone() 179 Cursor mCursor; in testDeleteSong() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | RecentCallsListActivityTests.java | 76 private MatrixCursor mCursor; field in RecentCallsListActivityTests 104 mCursor = new MatrixCursor(CALL_LOG_PROJECTION); in setUp() 120 mCursor.moveToFirst(); in testCallViewIsNotVisibleForPrivateAndUnknownNumbers() 122 int startOfSecondBatch = mCursor.getPosition(); in testCallViewIsNotVisibleForPrivateAndUnknownNumbers() 132 mCursor.move(startOfSecondBatch); in testCallViewIsNotVisibleForPrivateAndUnknownNumbers() 224 mCursor.moveToLast(); in buildViewListFromDb() 225 while(!mCursor.isBeforeFirst()) { in buildViewListFromDb() 227 mList[i] = mAdapter.newView(mActivity, mCursor, mParentView); in buildViewListFromDb() 229 mAdapter.bindView(mList[i], mActivity, mCursor); in buildViewListFromDb() 230 mCursor.moveToPrevious(); in buildViewListFromDb() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | ApnEditor.java | 75 private Cursor mCursor; field in ApnEditor 179 mCursor = managedQuery(mUri, sProjection, null, null); in onCreate() 180 mCursor.moveToFirst(); in onCreate() 203 mName.setText(mCursor.getString(NAME_INDEX)); in fillUi() 204 mApn.setText(mCursor.getString(APN_INDEX)); in fillUi() 205 mProxy.setText(mCursor.getString(PROXY_INDEX)); in fillUi() 206 mPort.setText(mCursor.getString(PORT_INDEX)); in fillUi() 207 mUser.setText(mCursor.getString(USER_INDEX)); in fillUi() 208 mServer.setText(mCursor.getString(SERVER_INDEX)); in fillUi() 209 mPassword.setText(mCursor.getString(PASSWORD_INDEX)); in fillUi() [all …]
|
D | UserDictionarySettings.java | 73 private Cursor mCursor; field in UserDictionarySettings 84 mCursor = createCursor(); in onCreate() 133 android.R.layout.simple_list_item_1, mCursor, in createAdapter() 195 mCursor.moveToPosition(position); in getWord() 196 return mCursor.getString( in getWord() 197 mCursor.getColumnIndexOrThrow(UserDictionary.Words.WORD)); in getWord() 250 mCursor.requery(); in onAddOrEditFinished()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ManageSimMessages.java | 69 private Cursor mCursor = null; field in ManageSimMessages 126 mCursor = cursor; in onQueryComplete() 127 if (mCursor != null) { in onQueryComplete() 128 if (!mCursor.moveToFirst()) { in onQueryComplete() 133 mParent, mCursor, mSimList, false, null, true); in onQueryComplete() 138 mListAdapter.changeCursor(mCursor); in onQueryComplete() 141 startManagingCursor(mCursor); in onQueryComplete() 160 if (mCursor != null) { in refreshMessageList() 161 stopManagingCursor(mCursor); in refreshMessageList() 162 mCursor.close(); in refreshMessageList() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | FdnList.java | 121 if (mCursor.moveToPosition(position)) { in editSelected() 122 String name = mCursor.getString(NAME_COLUMN); in editSelected() 123 String number = mCursor.getString(NUMBER_COLUMN); in editSelected() 134 if (mCursor.moveToPosition(getSelectedItemPosition())) { in deleteSelected() 135 String name = mCursor.getString(NAME_COLUMN); in deleteSelected() 136 String number = mCursor.getString(NUMBER_COLUMN); in deleteSelected()
|
D | ADNList.java | 66 protected Cursor mCursor = null; field in ADNList 90 if (mCursor != null) { in onStop() 91 mCursor.deactivate(); in onStop() 146 mCursorAdapter.changeCursor(mCursor); in setAdapter() 159 mCursor, COLUMN_NAMES, VIEW_NAMES); in newAdapter() 178 mCursor = c; in onQueryComplete()
|
D | SimContacts.java | 108 mCursor.moveToPosition(-1); in run() 109 while (!mCanceled && mCursor.moveToNext()) { in run() 110 actuallyImportOneSimContact(mCursor, resolver, mAccount); in run() 226 if (mCursor.moveToPosition(position)) { in importOneSimContact() 227 actuallyImportOneSimContact(mCursor, resolver, mAccount); in importOneSimContact() 253 return new SimpleCursorAdapter(this, R.layout.sim_import_list_entry, mCursor, in newAdapter() 291 mProgressDialog.setMax(mCursor.getCount()); in onOptionsItemSelected() 338 if (mCursor != null && mCursor.moveToPosition(getSelectedItemPosition())) { in onKeyDown() 339 String phoneNumber = mCursor.getString(NUMBER_COLUMN); in onKeyDown()
|
/packages/apps/GlobalSearch/benchmarks/src/com/android/globalsearch/benchmarks/ |
D | SourceLatency.java | 227 private Cursor mCursor; field in SourceLatency.LiveSourceCheck.ChangeObserver 231 mCursor = cursor; in ChangeObserver() 241 mCursor.requery(); in onChange() 247 private Cursor mCursor; field in SourceLatency.LiveSourceCheck.MyDataSetObserver 253 mCursor = cursor; in MyDataSetObserver() 261 Log.d(TAG, mSrc + ", update " + mUpdateCount + ": " + mCursor.getCount() in onChanged()
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | ComposingView.java | 92 private Drawable mCursor; field in ComposingView 114 mCursor = r.getDrawable(R.drawable.composing_area_cursor); in ComposingView() 235 mCursor.setBounds((int) x, mPaddingTop, (int) x in drawCursor() 236 + mCursor.getIntrinsicWidth(), getHeight() - mPaddingBottom); in drawCursor() 237 mCursor.draw(canvas); in drawCursor()
|