| /packages/apps/Contacts/src/com/android/contacts/editor/ |
| BaseRawContactEditorView.java | 20 import android.database.Cursor; 92 public void setGroupMetaData(Cursor groupMetaData) {
|
| /packages/apps/ContactsCommon/src/com/android/contacts/common/ |
| ContactsUtils.java | 21 import android.database.Cursor; 156 final Cursor c = context.getContentResolver().query( 242 * personal and work contact are mixed into one cursor. no directory id. contact_id indicates if
|
| /packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
| DefaultContactListAdapter.java | 22 import android.database.Cursor; 43 * A cursor adapter for the {@link ContactsContract.Contacts#CONTENT_TYPE} content type. 223 protected void bindView(View itemView, int partition, Cursor cursor, int position) { 224 super.bindView(itemView, partition, cursor, position); 230 view.setActivated(isSelectedContact(partition, cursor)); 233 bindSectionHeaderAndDivider(view, position, cursor); 236 bindQuickContact(view, partition, cursor, ContactQuery.CONTACT_PHOTO_ID, 241 bindPhoto(view, partition, cursor); 245 bindNameAndViewId(view, cursor); [all...] |
| /packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
| AccountWithDataSet.java | 21 import android.database.Cursor; 130 final Cursor c = context.getContentResolver().query(RAW_CONTACTS_URI_LIMIT_1,
|
| /packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
| ExportVCardActivity.java | 28 import android.database.Cursor; 225 final Cursor cursor = context.getContentResolver().query(uri, null, null, null, null); 227 if (cursor != null && cursor.moveToFirst()) { 228 return cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME)); 231 if (cursor != null) { 232 cursor.close();
|
| /packages/apps/Dialer/src/com/android/dialer/list/ |
| DialerPhoneNumberListAdapter.java | 5 import android.database.Cursor; 115 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 116 final ContactListItemView view = super.newView(context, partition, cursor, position, 139 throw new IllegalArgumentException("Invalid position - greater than cursor count "
|
| /packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
| Credential.java | 5 import android.database.Cursor; 87 public void restore(Cursor cursor) { 89 mId = cursor.getLong(CredentialQuery.ID_COLUMN_INDEX); 90 mProviderId = cursor.getString(CredentialQuery.PROVIDER_COLUMN_INDEX); 91 mAccessToken = cursor.getString(CredentialQuery.ACCESS_TOKEN_COLUMN_INDEX); 92 mRefreshToken = cursor.getString(CredentialQuery.REFRESH_TOKEN_COLUMN_INDEX); 93 mExpiration = cursor.getInt(CredentialQuery.EXPIRATION_COLUMN_INDEX);
|
| MessageStateChange.java | 5 import android.database.Cursor; 115 final Cursor c = getCursor(cr, CONTENT_URI, ProjectionChangeQuery.PROJECTION, accountId);
|
| /packages/apps/Email/provider_src/com/android/email/ |
| AttachmentInfo.java | 29 import android.database.Cursor; 42 // Projection which can be used with the constructor taking a Cursor argument 96 public AttachmentInfo(Context context, Cursor c) {
|
| /packages/apps/Email/provider_src/com/android/email/provider/ |
| Utilities.java | 23 import android.database.Cursor; 60 Cursor c = null;
|
| /packages/apps/Gallery/src/com/android/camera/ |
| PhotoAppWidgetProvider.java | 25 import android.database.Cursor; 165 Cursor c = null;
|
| /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
| Utils.java | 22 import android.database.Cursor; 210 public static void closeSilently(Cursor cursor) { 212 if (cursor != null) cursor.close();
|
| /packages/apps/Gallery2/src/com/android/gallery3d/app/ |
| MovieActivity.java | 26 import android.database.Cursor; 148 Cursor cursor) { 150 if ((cursor != null) && cursor.moveToFirst()) { 151 String displayName = cursor.getString(0); 159 Utils.closeSilently(cursor);
|
| /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
| VideoCaptureIntentTest.java | 26 import android.database.Cursor; 68 Cursor cursor = null; local 70 cursor = resolver.query(query, projection, null, null, null); 71 if (cursor != null && cursor.moveToFirst()) { 72 new File(cursor.getString(0)).delete(); 75 if (cursor != null) cursor.close();
|
| /packages/apps/Messaging/src/com/android/messaging/sms/ |
| DatabaseMessages.java | 23 import android.database.Cursor; 153 * Load from a cursor of a query that returns the SMS to import 155 * @param cursor 157 private void load(final Cursor cursor) { 158 mRowId = cursor.getLong(INDEX_ID); 159 mAddress = cursor.getString(INDEX_ADDRESS); 160 mBody = cursor.getString(INDEX_BODY); 161 mTimestampInMillis = cursor.getLong(INDEX_DATE); 163 mTimestampSentInMillis = cursor.getLong(INDEX_DATE_SENT) [all...] |
| /packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
| ContactListItemView.java | 19 import android.database.Cursor; 77 * Fills in the data associated with this view by binding to a contact cursor provided by 79 * @param cursor the contact cursor. 85 public void bind(final Cursor cursor, final HostInterface hostInterface, 87 mData.bind(cursor, headerLabel);
|
| ContactRecipientAutoCompleteView.java | 19 import android.database.Cursor; 159 final Cursor lookupResult = ContactUtil.lookupDestination(getContext(),
|
| /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
| ParticipantRefreshTest.java | 21 import android.database.Cursor; 106 final Cursor cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE, local 109 if (cursor == null || cursor.getCount() != 1) { 114 cursor.moveToFirst(); 115 final int currentContactId = cursor.getInt(ParticipantsQuery.INDEX_CONTACT_ID); 116 final String currentName = cursor.getString(ParticipantsQuery.INDEX_FULL_NAME); 118 cursor.getString(ParticipantsQuery.INDEX_PROFILE_PHOTO_URI);
|
| /packages/apps/Music/tests/src/com/android/music/functional/ |
| TestPlaylist.java | 29 import android.database.Cursor; 128 Cursor mCursor;
|
| /packages/apps/Settings/src/com/android/settings/inputmethod/ |
| UserDictionaryAddWordContents.java | 22 import android.database.Cursor; 177 final Cursor cursor; local 181 cursor = context.getContentResolver().query(UserDictionary.Words.CONTENT_URI, 185 cursor = context.getContentResolver().query(UserDictionary.Words.CONTENT_URI, 190 if (null == cursor) return false; 191 return cursor.getCount() > 0; 193 if (null != cursor) cursor.close();
|
| UserDictionaryList.java | 22 import android.database.Cursor; 82 final Cursor cursor = context.getContentResolver().query( local 86 if (null == cursor) { 91 if (cursor.moveToFirst()) { 92 final int columnIndex = cursor.getColumnIndex(UserDictionary.Words.LOCALE); 94 final String locale = cursor.getString(columnIndex); 96 } while (cursor.moveToNext()); 99 cursor.close();
|
| /packages/apps/Settings/src/com/android/settings/search/ |
| IndexDatabaseHelper.java | 20 import android.database.Cursor; 205 Cursor cursor = null; local 207 cursor = db.rawQuery(SELECT_BUILD_VERSION, null); 208 if (cursor.moveToFirst()) { 209 version = cursor.getString(0); 214 if (cursor != null) { 215 cursor.close();
|
| /packages/apps/TV/usbtuner/src/com/android/usbtuner/ |
| UsbTunerPreferences.java | 23 import android.database.Cursor; 138 try (Cursor cursor = resolver.query(UsbTunerPreferenceProvider.buildPreferenceUri(key), 140 if (cursor != null && cursor.moveToFirst()) { 141 return cursor.getString(0);
|
| /packages/apps/UnifiedEmail/src/com/android/mail/ |
| SenderInfoLoader.java | 25 import android.database.Cursor; 119 Cursor cursor = null; local 143 cursor = resolver.query(Data.CONTENT_URI, DATA_COLS, 147 if (cursor == null) { 154 while (cursor.moveToPosition(++i)) { 155 String email = cursor.getString(DATA_EMAIL_COLUMN); 156 long contactId = cursor.getLong(DATA_CONTACT_ID_COLUMN); 161 if (!cursor.isNull(DATA_PHOTO_ID_COLUMN)) { 162 long photoId = cursor.getLong(DATA_PHOTO_ID_COLUMN) [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
| AbstractConversationWebViewClient.java | 28 import android.database.Cursor; 106 final Cursor c = cr.query(queryUri, UIProvider.ATTACHMENT_PROJECTION, null, null, null); 111 // create the attachment from the cursor, if one was found
|