/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
H A D | AtPhonebook.java | 70 public Cursor cursor; // result set of last query field in class:AtPhonebook.PhonebookResult 122 Cursor cursor = mContentResolver.query(Calls.CONTENT_URI, projection, 125 if (cursor == null) return null; 127 if (cursor.getCount() < 1) { 128 cursor.close(); 131 cursor.moveToNext(); 132 int column = cursor.getColumnIndexOrThrow(Calls.NUMBER); 133 String number = cursor.getString(column); 134 cursor.close(); 219 int size = pbr.cursor [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppService.java | 426 Cursor cursor = getContentResolver().query(BluetoothShare.CONTENT_URI, null, null, 429 if (cursor == null) { 433 cursor.moveToFirst(); 438 boolean isAfterLast = cursor.isAfterLast(); 440 int idColumn = cursor.getColumnIndexOrThrow(BluetoothShare._ID); 442 * Walk the cursor and the local array to keep them in sync. The 444 * both in the cursor and in the array, so that they can be 449 * array contains an entry that's not in the cursor, remove the 451 * contains an entry that's in the cursor, nothing to do, move 452 * to next cursor ro 545 insertShare(Cursor cursor, int arrayPos) argument 674 updateShare(Cursor cursor, int arrayPos, boolean userAccepted) argument 795 stringFromCursor(String old, Cursor cursor, String column) argument 880 scanFile(Cursor cursor, int arrayPos) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetService.java | 414 Context context, Cursor cursor, String timeZone) { 416 model.buildFromCursor(cursor, timeZone); 476 public void onLoadComplete(Loader<Cursor> loader, Cursor cursor) { argument 477 if (cursor == null) { 483 if (cursor.isClosed()) { 484 Log.wtf(TAG, "Got a closed cursor from onLoadComplete"); 495 // Copy it to a local static cursor. 496 MatrixCursor matrixCursor = Utils.matrixCursorFromCursor(cursor); 504 if (cursor != null) { 505 cursor 413 buildAppWidgetModel( Context context, Cursor cursor, String timeZone) argument [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
H A D | AsyncQueryServiceTest.java | 495 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 504 * CursorWrapperInner. assertEquals the two cursor will always fail. 507 assertEquals(((Cursor) mWork[mIndex].result).getCount(), cursor.getCount());
|
/packages/apps/Camera2/src/com/android/camera/crop/ |
H A D | SaveImage.java | 57 void onCursorResult(Cursor cursor); argument 169 public void onCursorResult(Cursor cursor) { 170 fullPath[0] = cursor.getString(0); 357 Cursor cursor = null; 359 cursor = contentResolver.query(sourceUri, projection, null, null, 361 if ((cursor != null) && cursor.moveToNext()) { 362 callback.onCursorResult(cursor); 367 if (cursor != null) { 368 cursor [all...] |
H A D | Utils.java | 210 public static void closeSilently(Cursor cursor) { argument 212 if (cursor != null) cursor.close();
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | AggregationSuggestionEngine.java | 302 Cursor cursor = contentResolver.query(uri, new String[]{Contacts._ID}, null, null, null); 309 boolean changed = updateSuggestedContactIds(cursor); 329 cursor.close(); 333 private boolean updateSuggestedContactIds(Cursor cursor) { argument 334 int count = cursor.getCount(); 337 while (cursor.moveToNext()) { 338 long contactId = cursor.getLong(0); 348 cursor.moveToPosition(-1); 350 cursor.moveToNext(); 351 mSuggestedContactIds[i] = cursor [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | RawContactModifier.java | 268 public static EditType getCurrentType(Cursor cursor, DataKind kind) { argument 270 final int index = cursor.getColumnIndex(kind.typeColumn); 272 final int rawValue = cursor.getInt(index); 629 Cursor cursor = context.getContentResolver().query(uri, 639 if (cursor.moveToFirst()) { 640 child.put(StructuredName.PREFIX, cursor.getString(0)); 641 child.put(StructuredName.GIVEN_NAME, cursor.getString(1)); 642 child.put(StructuredName.MIDDLE_NAME, cursor.getString(2)); 643 child.put(StructuredName.FAMILY_NAME, cursor.getString(3)); 644 child.put(StructuredName.SUFFIX, cursor [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | CallLogFragment.java | 144 public void onCallsFetched(Cursor cursor) { argument 149 mAdapter.changeCursor(cursor); 361 final Cursor cursor = (Cursor)mAdapter.getItem(position); 362 if (cursor != null) { 363 String number = cursor.getString(CallLogQuery.NUMBER); 364 int numberPresentation = cursor.getInt(CallLogQuery.NUMBER_PRESENTATION); 377 int callType = cursor.getInt(CallLogQuery.CALL_TYPE); 382 String countryIso = cursor.getString(CallLogQuery.COUNTRY_ISO);
|
/packages/apps/Dialer/src/com/android/dialer/interactions/ |
H A D | PhoneNumberInteraction.java | 382 public void onLoadComplete(Loader<Cursor> loader, Cursor cursor) { argument 383 if (cursor == null || !isSafeToCommitTransactions()) { 390 while (cursor.moveToNext()) { 392 mContactId = cursor.getLong(CONTACT_ID); 395 if (mUseDefault && cursor.getInt(IS_SUPER_PRIMARY) != 0) { 397 primaryPhone = cursor.getString(NUMBER); 401 item.id = cursor.getLong(_ID); 402 item.phoneNumber = cursor.getString(NUMBER); 403 item.accountType = cursor.getString(ACCOUNT_TYPE); 404 item.dataSet = cursor [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
H A D | HostAuth.java | 173 public void restore(Cursor cursor) { argument 175 mId = cursor.getLong(CONTENT_ID_COLUMN); 176 mProtocol = cursor.getString(CONTENT_PROTOCOL_COLUMN); 177 mAddress = cursor.getString(CONTENT_ADDRESS_COLUMN); 178 mPort = cursor.getInt(CONTENT_PORT_COLUMN); 179 mFlags = cursor.getInt(CONTENT_FLAGS_COLUMN); 180 mLogin = cursor.getString(CONTENT_LOGIN_COLUMN); 181 mPassword = cursor.getString(CONTENT_PASSWORD_COLUMN); 182 mDomain = cursor.getString(CONTENT_DOMAIN_COLUMN); 183 mClientCertAlias = cursor [all...] |
/packages/apps/Exchange/src/com/android/exchange/provider/ |
H A D | ExchangeDirectoryProvider.java | 155 static void addEmailAddress(MatrixCursor cursor, GalProjection galProjection, argument 163 cursor.addRow(r.getRow()); 167 static void addPhoneRow(MatrixCursor cursor, GalProjection projection, long contactId, argument 175 cursor.addRow(r.getRow()); 179 public static void addNameRow(MatrixCursor cursor, GalProjection galProjection, argument 188 cursor.addRow(r.getRow()); 215 final MatrixCursor cursor; 225 cursor = new MatrixCursor(projection); 266 cursor.addRow(row); 269 return cursor; [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Utils.java | 210 public static void closeSilently(Cursor cursor) { argument 212 if (cursor != null) cursor.close();
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
H A D | SaveImage.java | 71 void onCursorResult(Cursor cursor); argument 183 public void onCursorResult(Cursor cursor) { 184 fullPath[0] = cursor.getString(0); 562 Cursor cursor = null; 564 cursor = contentResolver.query(sourceUri, projection, null, null, 566 if ((cursor != null) && cursor.moveToNext()) { 567 callback.onCursorResult(cursor); 572 if (cursor != null) { 573 cursor [all...] |
/packages/apps/Launcher3/src/com/android/gallery3d/common/ |
H A D | Utils.java | 210 public static void closeSilently(Cursor cursor) { argument 212 if (cursor != null) cursor.close();
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | MessageItem.java | 111 MessageItem(Context context, String type, final Cursor cursor, argument 114 mMsgId = cursor.getLong(columnsMap.mColumnMsgId); 117 mCursor = cursor; 123 long status = cursor.getLong(columnsMap.mColumnSmsStatus); 140 mBoxId = cursor.getInt(columnsMap.mColumnSmsType); 141 mAddress = cursor.getString(columnsMap.mColumnSmsAddress); 151 mBody = cursor.getString(columnsMap.mColumnSmsBody); 156 long date = cursor.getLong(columnsMap.mColumnSmsDate); 160 mLocked = cursor.getInt(columnsMap.mColumnSmsLocked) != 0; 161 mErrorCode = cursor [all...] |
/packages/apps/Music/src/com/android/music/ |
H A D | PlaylistBrowserActivity.java | 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) { 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 D | QueryBrowserActivity.java | 113 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 D | ConversationPagerAdapter.java | 58 * In singleton mode, this adapter ignores the cursor contents and size, and acts as if the 140 * Returns true if singleton mode or detached mode have been enabled, or if the current cursor 142 * @param cursor the current conversation cursor (obtained through {@link #getCursor()}. 145 public boolean isPagingDisabled(Cursor cursor) { argument 146 return mSingletonMode || mDetachedMode || cursor == null; 151 // In detached mode, the pager is decoupled from the cursor. Nothing should rely on the 152 // cursor at this point. 170 final ConversationCursor cursor = getCursor(); 172 if (isPagingDisabled(cursor)) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | Account.java | 374 public Account(Cursor cursor) { argument 375 name = cursor.getString(cursor.getColumnIndex(UIProvider.AccountColumns.NAME)); 376 type = cursor.getString(cursor.getColumnIndex(UIProvider.AccountColumns.TYPE)); 377 accountManagerName = cursor.getString( 378 cursor.getColumnIndex(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME)); 379 accountFromAddresses = cursor.getString( 380 cursor.getColumnIndex(UIProvider.AccountColumns.ACCOUNT_FROM_ADDRESSES)); 383 cursor 448 getAllAccounts(ObjectCursor<Account> cursor) argument [all...] |
H A D | Attachment.java | 192 public Attachment(Cursor cursor) { argument 193 if (cursor == null) { 197 name = cursor.getString(cursor.getColumnIndex(AttachmentColumns.NAME)); 198 size = cursor.getInt(cursor.getColumnIndex(AttachmentColumns.SIZE)); 199 uri = Uri.parse(cursor.getString(cursor.getColumnIndex(AttachmentColumns.URI))); 200 contentType = cursor.getString(cursor [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ConversationSyncDisabledTipView.java | 179 public void onUpdate(Folder folder, ConversationCursor cursor) { argument
|
H A D | MailboxSelectionActivity.java | 193 Cursor cursor = null; 195 cursor = resolver.query(MailAppProvider.getAccountsUri(), 197 completeSetupWithAccounts(cursor); 199 if (cursor != null) { 200 cursor.close(); 366 public void onLoadFinished(Loader<Cursor> cursor, Cursor data) { argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
H A D | WidgetService.java | 281 // We also want this cursor to receive notifications on all changes. Any change that 325 // The Loader should close the cursor, so just unset the reference 345 // We are not using this as signal to requery the cursor. The query will be started 351 // for updates from the existing cursor. If one is seen, the loader will load a new 352 // cursor in the background. 402 LogUtils.e(LOG_TAG, "Failed to move to position %d in the cursor.", position); 590 // We want to cache the new cursor 614 * Returns a boolean indicating whether this cursor has valid data. 615 * Note: This seeks to the first position in the cursor 617 private static boolean isDataValid(Cursor cursor) { argument [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | ContactsSource.java | 324 public CharSequence inflateUsing(Context context, Cursor cursor); argument
|