Home | History | Annotate | Download | only in picasa

Lines Matching refs:album

61         addMapping(AUTHORITY, "albums", "vnd.cooliris.picasa.album", AlbumEntry.SCHEMA);
110 // Determine if the URI refers to an album or photo.
128 // Retrieve the album from the database to get the edit URI.
129 AlbumEntry album = mAlbumInstance;
130 if (AlbumEntry.SCHEMA.queryWithId(db, id, album)) {
132 if (context.login(album.syncAccount)) {
133 if (context.api.deleteEntry(album.editUri) == PicasaApi.RESULT_OK) {
194 AlbumEntry album = new AlbumEntry();
195 if (AlbumEntry.SCHEMA.queryWithId(context.db, albumId, album)) {
196 if ((album.photosDirty || forceRefresh) && context.login(album.syncAccount)) {
197 if (isSyncEnabled(album.syncAccount, context)) {
198 syncAlbumPhotos(context, album.syncAccount, album, syncResult);
272 // Query existing album entry (id, dateEdited) sorted by ID.
294 AlbumEntry album = (AlbumEntry) entry;
295 long albumId = album.id;
299 if (metadata == null || metadata.dateEdited < album.dateEdited) {
301 Log.i(TAG, "insert / update album " + album.title);
302 album.syncAccount = user.account;
303 album.photosDirty = true;
304 albumSchema.insertOrReplace(db, album);
311 // Log.i(TAG, "up-to-date album " + album.title);
338 Log.i(TAG, "delete album " + metadata.id);
351 AlbumEntry album = new AlbumEntry();
354 if (AlbumEntry.SCHEMA.queryWithId(db, cursor.getLong(0), album)) {
355 syncAlbumPhotos(context, account, album, syncResult);
367 private void syncAlbumPhotos(SyncContext context, final String account, AlbumEntry album, final SyncResult syncResult) {
368 Log.i(TAG, "Syncing Picasa album: " + album.title);
369 // Query existing album entry (id, dateEdited) sorted by ID.
371 long albumId = album.id;
393 int result = context.api.getAlbumPhotos(accountManager, syncResult, album, new GDataParser.EntryHandler() {
444 // Mark album as no longer dirty and store the new ETag.
445 album.photosDirty = false;
446 AlbumEntry.SCHEMA.insertOrReplace(db, album);
447 // Log.i(TAG, "Clearing dirty bit on album " + albumId);
463 // Delete contained photos for each album.
482 // Delete the album.
524 // List of album IDs that were added during the sync.