Searched defs:cursor (Results 176 - 200 of 274) sorted by relevance

1234567891011

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DSaveImage.java71 void onCursorResult(Cursor cursor); argument
183 public void onCursorResult(Cursor cursor) {
184 fullPath[0] = cursor.getString(0);
566 Cursor cursor = null;
568 cursor = contentResolver.query(sourceUri, projection, null, null,
570 if ((cursor != null) && cursor.moveToNext()) {
571 callback.onCursorResult(cursor);
576 if (cursor != null) {
577 cursor
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DSyncCursorPair.java301 * An iterator for a database cursor
305 * Move to next element in the cursor
311 * Close the cursor
354 private static LocalDatabaseMessage getLocalDatabaseMessage(final Cursor cursor) { argument
355 if (cursor == null) {
359 cursor.getLong(LocalMessageQuery.INDEX_MESSAGE_ID),
360 cursor.getInt(LocalMessageQuery.INDEX_MESSAGE_SMS_TYPE),
361 cursor.getString(LocalMessageQuery.INDEX_SMS_MESSAGE_URI),
362 cursor.getLong(LocalMessageQuery.INDEX_MESSAGE_TIMESTAMP),
363 cursor
603 getCountFromCursor(final Cursor cursor) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DConversationListFragment.java286 final Cursor cursor) {
288 final Cursor oldCursor = mAdapter.swapCursor(cursor);
289 updateEmptyListUi(cursor == null || cursor.getCount() == 0);
290 if (mListState != null && cursor != null && oldCursor == null) {
285 onConversationListCursorUpdated(final ConversationListData data, final Cursor cursor) argument
/packages/apps/Messaging/src/com/android/messaging/util/
H A DContactUtil.java223 * In that case, each phone will be returned as a separate record in the result cursor.
464 * Creates a RecipientEntry from the provided data fields (from the contacts cursor).
486 public static RecipientEntry createRecipientEntryForPhoneQuery(final Cursor cursor, argument
488 final long contactId = cursor.getLong(ContactUtil.INDEX_CONTACT_ID);
489 final String displayName = cursor.getString(
491 final String photoThumbnailUri = cursor.getString(
493 final String destination = cursor.getString(
495 final int destinationType = cursor.getInt(
497 final String destinationLabel = cursor.getString(
499 final String lookupKey = cursor
[all...]
H A DPhoneUtils.java197 * Get the subscription_id column value from a telephony provider cursor
199 * @param cursor The database query cursor
200 * @param subIdIndex The index of the subId column in the cursor
201 * @return the subscription_id column value from the cursor
203 public abstract int getSubIdFromTelephony(Cursor cursor, int subIdIndex); argument
364 public int getSubIdFromTelephony(Cursor cursor, int subIdIndex) { argument
590 public int getSubIdFromTelephony(Cursor cursor, int subIdIndex) { argument
591 return getEffectiveIncomingSubIdFromSystem(cursor.getInt(subIdIndex));
/packages/apps/Music/src/com/android/music/
H A DPlaylistBrowserActivity.java164 // 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) { argument
245 mAdapter.changeCursor(cursor);
380 shortcut.setDataAndType(Uri.EMPTY, "vnd.android.cursor
558 onQueryComplete(int token, Object cookie, Cursor cursor) argument
567 PlaylistListAdapter(Context context, PlaylistBrowserActivity currentactivity, int layout, Cursor cursor, String[] from, int[] to) argument
574 getColumnIndices(Cursor cursor) argument
590 bindView(View view, Context context, Cursor cursor) argument
616 changeCursor(Cursor cursor) argument
[all...]
H A DQueryBrowserActivity.java113 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/track");
121 i.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/album");
161 null, // cursor
204 // close its cursor, which we do by assigning a null cursor to it. Doing this
205 // instead of closing the cursor directly keeps the framework from accessing
206 // the closed cursor later.
238 // if the query results in a null cursor, onQueryComplete() will
288 intent.setDataAndType(Uri.EMPTY, "vnd.android.cursor.dir/album");
294 intent.setDataAndType(Uri.EMPTY, "vnd.android.cursor
356 onQueryComplete(int token, Object cookie, Cursor cursor) argument
361 QueryListAdapter(Context context, QueryBrowserActivity currentactivity, int layout, Cursor cursor, String[] from, int[] to) argument
377 bindView(View view, Context context, Cursor cursor) argument
457 changeCursor(Cursor cursor) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationPagerAdapter.java62 * In singleton mode, this adapter ignores the cursor contents and size, and acts as if the
171 * Returns true if singleton mode or detached mode have been enabled, or if the current cursor
173 * @param cursor the current conversation cursor (obtained through {@link #getCursor()}.
176 public boolean isPagingDisabled(Cursor cursor) { argument
177 return mSingletonMode || mDetachedMode || cursor == null;
182 // In detached mode, the pager is decoupled from the cursor. Nothing should rely on the
183 // cursor at this point.
201 final ConversationCursor cursor = getCursor();
203 if (isPagingDisabled(cursor)) {
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
H A DAttachment.java191 public Attachment(Cursor cursor) { argument
192 if (cursor == null) {
196 name = cursor.getString(cursor.getColumnIndex(AttachmentColumns.NAME));
197 size = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.SIZE));
198 uri = Uri.parse(cursor.getString(cursor.getColumnIndex(AttachmentColumns.URI)));
199 contentType = cursor.getString(cursor
[all...]
H A DSettings.java167 public Settings(Cursor cursor) { argument
169 cursor.getString(cursor.getColumnIndex(SettingsColumns.SIGNATURE)));
170 mAutoAdvance = cursor.getInt(cursor.getColumnIndex(SettingsColumns.AUTO_ADVANCE));
171 snapHeaders = cursor.getInt(cursor.getColumnIndex(SettingsColumns.SNAP_HEADERS));
172 replyBehavior = cursor.getInt(cursor.getColumnIndex(SettingsColumns.REPLY_BEHAVIOR));
173 convListIcon = cursor
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DMailboxSelectionActivity.java191 Cursor cursor = null;
193 cursor = resolver.query(MailAppProvider.getAccountsUri(),
195 completeSetupWithAccounts(cursor);
197 if (cursor != null) {
198 cursor.close();
365 public void onLoadFinished(Loader<Cursor> cursor, Cursor data) { argument
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
H A DWidgetService.java285 // We also want this cursor to receive notifications on all changes. Any change that
329 // The Loader should close the cursor, so just unset the reference
349 // We are not using this as signal to requery the cursor. The query will be started
355 // for updates from the existing cursor. If one is seen, the loader will load a new
356 // cursor in the background.
406 LogUtils.e(LOG_TAG, "Failed to move to position %d in the cursor.", position);
573 // We want to cache the new cursor
598 * Returns a boolean indicating whether this cursor has valid data.
599 * Note: This seeks to the first position in the cursor
601 private static boolean isDataValid(Cursor cursor) { argument
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DContactsSource.java324 public CharSequence inflateUsing(Context context, Cursor cursor); argument
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
H A Dndapi.c41 static NJ_INT16 check_search_cursor(NJ_CLASS *iwnn, NJ_CURSOR *cursor);
42 static NJ_INT16 search_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_UINT8 comp_flg, NJ_UINT8 *exit_flag);
44 static NJ_INT16 get_word_and_search_next_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_RESULT *result, NJ_UINT8 comp_flg);
48 static NJ_INT16 check_search_cursor(NJ_CLASS *iwnn, NJ_CURSOR *cursor) { argument
54 if (cursor->cond.ds == NULL) {
60 loctset = &(cursor->loctset[i]);
61 dicinfo = &(cursor->cond.ds->dic[i]);
84 if (cursor->cond.yomi == NULL) {
89 if (cursor->cond.ylen > NJ_MAX_LEN) {
94 if (cursor
123 search_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_UINT8 comp_flg, NJ_UINT8 *exit_flag) argument
186 get_word_and_search_next_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_RESULT *result, NJ_UINT8 comp_flg) argument
456 njd_search_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_UINT8 comp_flg, NJ_UINT8 *exit_flag) argument
469 njd_get_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_RESULT *result, NJ_UINT8 comp_flg) argument
674 njx_search_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor) argument
817 njx_get_word(NJ_CLASS *iwnn, NJ_CURSOR *cursor, NJ_RESULT *result) argument
[all...]
/packages/providers/CallLogProvider/src/com/android/calllogbackup/
H A DCallLogBackupAgent.java235 Cursor cursor = resolver.query(
237 if (cursor != null) {
239 while (cursor.moveToNext()) {
240 Call call = readCallFromCursor(cursor);
246 cursor.close();
373 private Call readCallFromCursor(Cursor cursor) { argument
375 call.id = cursor.getInt(cursor.getColumnIndex(CallLog.Calls._ID));
376 call.date = cursor.getLong(cursor
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogProvider.java547 final Cursor cursor = cr.query(
553 if (cursor == null) {
557 newestTimeStamp = copyEntriesFromCursor(cursor, lastSyncTime, sourceIsShadow);
559 cursor.close();
578 Cursor cursor = query(Calls.CONTENT_URI, MINIMAL_PROJECTION,
582 if (cursor != null) {
584 if (cursor.getCount() >= 1) {
603 cursor.close();
610 * @param cursor to copy call log entries from
613 long copyEntriesFromCursor(Cursor cursor, lon argument
[all...]
H A DSearchIndexManager.java82 void setCursor(Cursor cursor) { argument
83 this.mCursor = cursor;
360 Cursor cursor = db.query(Tables.DATA_JOIN_MIMETYPE_RAW_CONTACTS, ContactIndexQuery.COLUMNS,
362 mIndexBuilder.setCursor(cursor);
366 while (cursor.moveToNext()) {
367 long contactId = cursor.getLong(0);
376 String mimetype = cursor.getString(ContactIndexQuery.MIMETYPE);
388 cursor.close();
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DPublicApiFunctionalTest.java262 Cursor cursor = mManager.query(new DownloadManager.Query());
263 checkAndCloseCursor(cursor, download3, download2, download1);
265 cursor = mManager.query(new DownloadManager.Query().setFilterById(download2.mId));
266 checkAndCloseCursor(cursor, download2);
268 cursor = mManager.query(new DownloadManager.Query()
270 checkAndCloseCursor(cursor, download3);
272 cursor = mManager.query(new DownloadManager.Query()
275 checkAndCloseCursor(cursor, download2, download1);
277 cursor = mManager.query(new DownloadManager.Query()
279 checkAndCloseCursor(cursor);
325 checkAndCloseCursor(Cursor cursor, Download... downloads) argument
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DRingtonePickerActivity.java422 LocalizedCursor(Cursor cursor, Resources resources, String columnLabel) { argument
423 super(cursor);
/packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/
H A DPhoneBook.java303 public void onLoadComplete(Loader<Cursor> loader, Cursor cursor) { argument
304 Log.d(TAG, "onLoadComplete, cursor: " + cursor);
307 if (cursor != null && phoneBook != null) {
309 if (cursor.moveToFirst()) {
310 int id = cursor.getInt(cursor.getColumnIndex(PhoneLookup._ID));
311 String name = cursor
312 .getString(cursor.getColumnIndex(PhoneLookup.DISPLAY_NAME));
313 String label = cursor
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapVcardManager.java468 * Filter contact cursor by certain condition.
475 * @return a cursor containing contact id of {@code offset} contact.
486 * @return a cursor containing contact ids of {@code startPoint}th to {@code endPoint}th
841 * Get size of the cursor without duplicated contact id. This assumes the
842 * given cursor is sorted by CONTACT_ID.
844 private static final int getDistinctContactIdSize(Cursor cursor) { argument
845 final int contactIdColumn = cursor.getColumnIndex(Data.CONTACT_ID);
846 final int idColumn = cursor.getColumnIndex(Data._ID);
849 cursor.moveToPosition(-1);
850 while (cursor
867 appendDistinctNameIdList(ArrayList<String> resultList, String defaultName, Cursor cursor) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEditEventFragment.java161 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
162 // If the query didn't return a cursor for some reason return
163 if (cursor == null) {
167 // If the Activity is finishing, then close the cursor.
168 // Otherwise, use the new cursor in the adapter.
171 cursor.close();
177 if (cursor.getCount() == 0) {
178 // The cursor is empty. This can happen if the event
180 cursor.close();
187 EditEventHelper.setModelFromCursor(mOriginalModel, cursor);
[all...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectSyncedCalendarsMultiAccountAdapter.java148 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
149 if(cursor == null) {
154 cursor.close();
160 // Check if the new cursor has the same content as our old cursor
162 if (Utils.compareCursors(currentCursor, cursor)) {
163 cursor.close();
167 // If not then make a new matrix cursor for our Map
168 MatrixCursor newCursor = Utils.matrixCursorFromCursor(cursor);
169 cursor
318 bindChildView(View view, Context context, Cursor cursor, boolean isLastChild) argument
388 bindGroupView(View view, Context context, Cursor cursor, boolean isExpanded) argument
413 newChildView(Context context, Cursor cursor, boolean isLastChild, ViewGroup parent) argument
419 newGroupView(Context context, Cursor cursor, boolean isExpanded, ViewGroup parent) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DConfirmAddDetailActivity.java456 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
470 if (cursor != null && cursor.moveToFirst()
471 && !cursor.isNull(PhotoQuery.PHOTO)) {
472 byte[] photoData = cursor.getBlob(PhotoQuery.PHOTO);
485 if (cursor != null && cursor.moveToFirst()) {
486 // Get the cursor values
487 mDisplayName = cursor.getString(ContactQuery.DISPLAY_NAME);
488 mLookupKey = cursor
[all...]
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DAggregationSuggestionEngine.java325 Cursor cursor = contentResolver.query(uri, new String[]{Contacts._ID}, null, null, null);
326 if (cursor == null) {
335 boolean changed = updateSuggestedContactIds(cursor);
357 cursor.close();
361 private boolean updateSuggestedContactIds(final Cursor cursor) { argument
362 final int count = cursor.getCount();
365 while (cursor.moveToNext()) {
366 final long contactId = cursor.getLong(0);

Completed in 930 milliseconds

1234567891011