Lines Matching refs:data

104     protected void openCursor(ImageData data) {
108 String selection = PICASA_ALBUM_ID + " = '" + data.albumId + "'";
114 data.cursor = mResolver.query(picasaUriBuilder.build(),
119 protected void findPosition(ImageData data) {
120 if (data.position == UNINITIALIZED) {
121 if (data.cursor == null) {
122 openCursor(data);
124 if (data.cursor != null) {
125 int idIndex = data.cursor.getColumnIndex(PICASA_ID);
126 data.cursor.moveToPosition(-1);
127 while (data.position == -1 && data.cursor.moveToNext()) {
128 String id = data.cursor.getString(idIndex);
129 if (id != null && id.equals(data.id)) {
130 data.position = data.cursor.getPosition();
133 if (data.position == -1) {
135 data.position = INVALID;
142 protected ImageData unpackImageData(Cursor cursor, ImageData data) {
143 if (data == null) {
144 data = new ImageData();
150 data.id = cursor.getString(idIndex);
152 data.albumId = cursor.getString(bucketIndex);
155 data.url = cursor.getString(urlIndex);
157 data.position = UNINITIALIZED;
158 data.cursor = null;
159 return data;
235 ImageData data = unpackImageData(cursor, null);
236 foundImages.offer(data);
384 AlbumData data = foundAlbums.get(id);
385 if (data == null) {
386 data = new AlbumData();
387 data.id = id;
388 data.account = account;
391 data.title = mPostsAlbumName;
393 data.title = cursor.getString(titleIndex);
395 data.title = mUnknownAlbumName;
398 log(TAG, "found " + data.title + "(" + data.id + ")" +
400 foundAlbums.put(id, data);
411 data.updated = (long) Math.max(data.updated, updated);
413 if (data.thumbnailUrl == null || data.updated == updated) {
414 data.thumbnailUrl = thumbnailUrl;
433 protected InputStream getStream(ImageData data, int longSide) {
440 .appendPath(data.id);
447 if (data.url != null) {
448 photoUriBuilder.appendQueryParameter(PICASA_URL_KEY, data.url);
457 mRecycleBin.offer(data);