Searched defs:cursor (Results 51 - 75 of 274) sorted by relevance

1234567891011

/packages/apps/Gallery/src/com/android/camera/gallery/
H A DVideoList.java53 protected long getImageId(Cursor cursor) { argument
54 return cursor.getLong(INDEX_ID);
58 protected BaseImage loadImageFromCursor(Cursor cursor) { argument
59 long id = cursor.getLong(INDEX_ID);
60 String dataPath = cursor.getString(INDEX_DATA_PATH);
61 long dateTaken = cursor.getLong(INDEX_DATE_TAKEN);
63 dateTaken = cursor.getLong(INDEX_DATE_MODIFIED) * 1000;
65 long miniThumbMagic = cursor.getLong(INDEX_MIMI_THUMB_MAGIC);
66 String title = cursor.getString(INDEX_TITLE);
67 String mimeType = cursor
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
H A DBlockedParticipantsData.java39 public void onBlockedParticipantsCursorUpdated(final Cursor cursor); argument
68 public void onLoadFinished(final Loader<Cursor> loader, final Cursor cursor) { argument
72 mListener.onBlockedParticipantsCursorUpdated(cursor);
100 public ParticipantListItemData createParticipantListItemData(Cursor cursor) { argument
101 return new ParticipantListItemData(ParticipantData.getFromCursor(cursor));
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DBlockedParticipantsFragment.java80 public BlockedParticipantListAdapter(final Context context, final Cursor cursor) { argument
81 super(context, cursor, 0);
85 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
91 public void bindView(View view, Context context, Cursor cursor) { argument
94 mBinding.getData().createParticipantListItemData(cursor));
99 public void onBlockedParticipantsCursorUpdated(Cursor cursor) { argument
100 mAdapter.swapCursor(cursor);
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DContactListAdapter.java35 public ContactListAdapter(final Context context, final Cursor cursor, argument
38 super(context, cursor, 0);
41 mSectionIndexer = new ContactSectionIndexer(cursor);
45 public void bindView(final View view, final Context context, final Cursor cursor) { argument
50 final int position = cursor.getPosition();
57 contactListItemView.bind(cursor, mClivHostInterface, mNeedAlphabetHeader, alphabetHeader);
61 public View newView(final Context context, final Cursor cursor, final ViewGroup parent) { argument
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DShareIntentAdapter.java48 public ShareIntentAdapter(final Context context, final Cursor cursor, argument
50 super(context, cursor, 0);
57 final Cursor cursor) {
58 holder.bind(cursor);
123 public void bind(Cursor cursor) { argument
124 mData.bind(cursor);
56 bindViewHolder(final ShareIntentViewHolder holder, final Context context, final Cursor cursor) argument
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
H A DPeopleOptionsItemView.java68 public void bind(final Cursor cursor, final int columnIndex, ParticipantData otherParticipant, argument
71 mData.bind(cursor, otherParticipant, columnIndex);
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
H A DContactPickerFragmentTest.java104 * Bind the datamodel with all contacts cursor to populate the all contacts list in the
107 private ContactPickerFragmentTest loadWithAllContactsCursor(final Cursor cursor) { argument
114 getFragment().onAllContactsCursorUpdated(cursor);
122 * Bind the datamodel with frequent contacts cursor to populate the contacts list in the
125 private ContactPickerFragmentTest loadWithFrequentContactsCursor(final Cursor cursor) { argument
131 getFragment().onFrequentContactsCursorUpdated(cursor);
153 * Verifies that list view gets correctly populated given a cursor.
156 final Cursor cursor = TestDataFactory.getAllContactListCursor();
158 .loadWithAllContactsCursor(cursor);
161 assertEquals(cursor
[all...]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
H A DConversationListItemViewTest.java75 final ConversationListItemView view, final FakeCursor cursor, final int index) {
78 final String name = (String) cursor.getAt(conversationQueryColumnsName, index);
82 final String snippet = (String) cursor.getAt(conversationQueryColumnsSnippetText, index);
87 (Long) cursor.getAt(conversationQueryColumnsSortTimestamp, index)).toString();
89 final boolean unread = !isRead(cursor, index);
133 protected boolean isRead(final FakeCursor cursor, final int index) { argument
134 return 1 == ((Integer) cursor.getAt("read", index)).intValue();
74 verifyContent( final ConversationListItemView view, final FakeCursor cursor, final int index) argument
/packages/apps/Messaging/tests/src/com/android/messaging/util/
H A DContactUtilTest.java293 * Utility method to check whether cursor contains a particular contact.
295 private void verifyCursorContains(final Cursor cursor, final String nameToVerify) { argument
296 if (cursor.moveToFirst()) {
298 final String name = cursor.getString(ContactUtil.INDEX_DISPLAY_NAME);
302 } while (cursor.moveToNext());
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionsProviderImpl.java100 public boolean consume(SourceResult cursor) { argument
102 Log.d(TAG, "SuggestionCursorReceiver.consume(" + cursor + ") corpus=" +
103 cursor.getSource() + " count = " + cursor.getCount());
107 mSuggestions.addResults(cursor);
108 if (cursor != null && mLogger != null) {
109 mLogger.logLatency(cursor);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationListFooterView.java76 public boolean updateStatus(final ConversationCursor cursor) { argument
77 if (cursor == null) {
83 final Bundle extras = cursor.getExtras();
88 if (cursor.getCount() != 0) {
99 } else if (mLoadMoreUri != null && cursor.getCount() < totalCount) {
H A DConversationMessage.java41 * {@link ConversationController} intermediate is used to obtain the currently opened cursor.
52 private ConversationMessage(Cursor cursor) { argument
53 super(cursor);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationPositionTracker.java42 /** Did we recalculate positions after updating the cursor? */
56 /** Move cursor to a specific position and return the conversation there */
58 final ConversationCursor cursor = mCallbacks.getConversationListCursor();
59 cursor.moveToPosition(position);
60 final Conversation conv = cursor.getConversation();
69 final ConversationCursor cursor = mCallbacks.getConversationListCursor();
70 if (isDataLoaded(cursor)) {
71 return cursor.getCount();
123 * the positions in the tracker. We need a valid cursor before we can bless the position as
134 /** @return whether or not we have a valid cursor t
135 isDataLoaded(ConversationCursor cursor) argument
[all...]
H A DConversationSpecialItemView.java34 * @param cursor The {@link ConversationCursor}. May be <code>null</code>
36 void onUpdate(Folder folder, ConversationCursor cursor); argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
H A DDataStatus.java44 public DataStatus(Cursor cursor) { argument
45 // When creating from cursor row, fill normally
46 fromCursor(cursor);
53 public void possibleUpdate(Cursor cursor) { argument
54 final boolean hasStatus = !isNull(cursor, Data.STATUS);
55 final boolean hasTimestamp = !isNull(cursor, Data.STATUS_TIMESTAMP);
64 final long newTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1);
70 // Fill in remaining details from cursor
71 fromCursor(cursor);
74 private void fromCursor(Cursor cursor) { argument
138 getString(Cursor cursor, String columnName) argument
142 getInt(Cursor cursor, String columnName) argument
146 getInt(Cursor cursor, String columnName, int missingValue) argument
151 getLong(Cursor cursor, String columnName, long missingValue) argument
156 isNull(Cursor cursor, String columnName) argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DReorderingCursorWrapper.java32 * @param cursor wrapped cursor
33 * @param positionMap maps wrapper cursor positions to wrapped cursor positions
36 public ReorderingCursorWrapper(Cursor cursor, int[] positionMap) { argument
37 if (cursor.getCount() != positionMap.length) {
41 mCursor = cursor;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
H A DEnterpriseContactsCursorWrapper.java39 * Wrap cursor returned from work-side ContactsProvider in order to rewrite values in some colums
50 // query. Hence, we need also to restore the cursor to the origianl projection.
58 public EnterpriseContactsCursorWrapper(Cursor cursor, String[] originalColumnNames, argument
60 super(cursor);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DCommonDatabaseUtils.java40 public static String[] singleRecordToArray(Cursor cursor) { argument
43 if (cursor.moveToNext()) {
44 result = new String[cursor.getColumnCount()];
45 fillArray(cursor, result);
48 closeQuietly(cursor);
53 public static List<String[]> multiRecordToArray(Cursor cursor) { argument
56 while (cursor.moveToNext()) {
57 String[] record = new String[cursor.getColumnCount()];
58 fillArray(cursor, record);
62 closeQuietly(cursor);
67 fillArray(Cursor cursor, String[] array) argument
73 closeQuietly(Cursor cursor) argument
[all...]
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DCursorRecyclerViewAdapter.java35 public CursorRecyclerViewAdapter(Context context, Cursor cursor) { argument
37 mCursor = cursor;
65 public void onBindViewHolder(VH viewHolder, Cursor cursor) {} argument
70 throw new IllegalStateException("can't move cursor to position " + position);
76 * Change the underlying cursor to a new cursor. If there is an existing cursor it will
79 * @param cursor The new cursor to be used.
81 public void changeCursor(Cursor cursor) { argument
120 getRowIdColumnIndex(Cursor cursor) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppUtility.java71 Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);
72 if (cursor != null) {
73 if (cursor.moveToFirst()) {
74 fillRecord(context, cursor, info);
76 cursor.close();
84 public static void fillRecord(Context context, Cursor cursor, BluetoothOppTransferInfo info) { argument
86 info.mID = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID));
87 info.mStatus = cursor.getInt(cursor
[all...]
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaAdapter.java108 public void bindView(View view, Context context, Cursor cursor) { argument
130 holder.startTimeMilli = cursor.getLong(AgendaWindowAdapter.INDEX_BEGIN);
132 boolean allDay = cursor.getInt(AgendaWindowAdapter.INDEX_ALL_DAY) != 0;
134 int selfAttendeeStatus = cursor.getInt(AgendaWindowAdapter.INDEX_SELF_ATTENDEE_STATUS);
162 int canRespond = cursor.getInt(AgendaWindowAdapter.INDEX_CAN_ORGANIZER_RESPOND);
164 String owner = cursor.getString(AgendaWindowAdapter.INDEX_OWNER_ACCOUNT);
165 String organizer = cursor.getString(AgendaWindowAdapter.INDEX_ORGANIZER);
178 holder.instanceId = cursor.getLong(AgendaWindowAdapter.INDEX_INSTANCE_ID);
181 int color = Utils.getDisplayColorFromColor(cursor.getInt(AgendaWindowAdapter.INDEX_COLOR));
185 String titleString = cursor
[all...]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastDatabaseHelper.java134 Cursor cursor = db.query(TEMP_TABLE_NAME, COLUMNS_V1, null, null, null, null,
137 while (cursor.moveToNext()) {
138 upgradeMessageV1ToV2(db, cursor);
141 cursor.close();
169 private static void upgradeMessageV1ToV2(SQLiteDatabase db, Cursor cursor) { argument
170 int geographicalScope = cursor.getInt(COLUMN_V1_GEOGRAPHICAL_SCOPE);
171 int updateNumber = cursor.getInt(COLUMN_V1_SERIAL_NUMBER);
172 int messageCode = cursor.getInt(COLUMN_V1_MESSAGE_CODE);
173 int messageId = cursor.getInt(COLUMN_V1_MESSAGE_IDENTIFIER);
174 String languageCode = cursor
[all...]
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DShowOrCreateActivity.java157 public void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
158 if (cursor == null) {
169 count = cursor.getCount();
170 if (count == 1 && cursor.moveToFirst()) {
172 contactId = cursor.getLong(CONTACT_ID_INDEX);
173 lookupKey = cursor.getString(LOOKUP_KEY_INDEX);
176 cursor.close();
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DCalendarInteractionsLoader.java66 Cursor cursor = getSharedEventsCursor(/* isFuture= */ true, mMaxFutureToRetrieve);
67 List<ContactInteraction> interactions = getInteractionsFromEventsCursor(cursor);
68 cursor = getSharedEventsCursor(/* isFuture= */ false, mMaxPastToRetrieve);
69 List<ContactInteraction> interactions2 = getInteractionsFromEventsCursor(cursor);
150 private List<ContactInteraction> getInteractionsFromEventsCursor(Cursor cursor) { argument
152 if (cursor == null || cursor.getCount() == 0) {
157 while (cursor.moveToNext()) {
159 DatabaseUtils.cursorRowToContentValues(cursor, values);
169 if (cursor !
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DEmailAddressListAdapter.java37 * A cursor adapter for the {@link Email#CONTENT_TYPE} content type.
116 * Builds a {@link Data#CONTENT_URI} for the current cursor
126 Context context, int partition, Cursor cursor, int position, ViewGroup parent) {
127 ContactListItemView view = super.newView(context, partition, cursor, position, parent);
134 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
135 super.bindView(itemView, partition, cursor, position);
138 bindName(view, cursor);
139 bindViewId(view, cursor, EmailQuery.EMAIL_ID);
140 bindPhoto(view, cursor);
141 bindEmailAddress(view, cursor);
125 newView( Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
144 bindEmailAddress(ContactListItemView view, Cursor cursor) argument
167 bindName(final ContactListItemView view, Cursor cursor) argument
171 bindPhoto(final ContactListItemView view, Cursor cursor) argument
[all...]

Completed in 846 milliseconds

1234567891011