text
stringlengths
3
1.18M
package org.dodgybits.shuffle.android.core.util; import java.util.Collection; public class CollectionUtils { public static long[] toPrimitiveLongArray(Collection<Long> collection) { // Need to do this manually because we're converting to a primitive long array, not // a Long array. final ...
package org.dodgybits.shuffle.android.core.util; import android.os.Bundle; import com.google.common.collect.Lists; import org.dodgybits.shuffle.android.core.model.Id; import java.util.List; public class BundleUtils { public static Id getId(Bundle icicle, String key) { Id result = Id.NONE; if (ic...
package org.dodgybits.shuffle.android.core.util; import android.app.Activity; import android.content.Context; import android.os.Handler; import android.view.View; import android.view.ViewParent; import android.widget.ListView; import org.dodgybits.android.shuffle.R; public class UiUtilities { private UiUtilities(...
package org.dodgybits.shuffle.android.core.util; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; public class PackageUtils { /** * @return Application's version code from the {@code PackageManager}. */ public static int getAppVersion(...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Id; public interface MutableEntityDirectory<Entity> extends EntityDirectory<Entity> { void addItem(Id id, String name, Entity item); }
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Id; import java.util.HashMap; import java.util.Map; public class HashEntityDirectory<Entity> implements MutableEntityDirectory<Entity> { private Map<String,Entity> mItemsByName; private Map<Id, Entity> mItem...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.dto.ShuffleProtos.Project.Builder; public class ProjectProtocolT...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Id; /** * A lookup service for entities. Useful when matching up entities from different * sources that may have conflicting ids (e.g. backup or remote synching). */ public interface EntityDirectory<Entity> {...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.dto.ShuffleProtos.Context.Builder; public class ContextProtocolTranslator implements EntityProtocolTranslator<Context , ...
package org.dodgybits.shuffle.android.core.model.protocol; import org.dodgybits.shuffle.dto.ShuffleProtos.Date; public final class ProtocolUtil { private ProtocolUtil() { // deny } public static Date toDate(long millis) { return Date.newBuilder() .setMillis(millis) ...
package org.dodgybits.shuffle.android.core.model.protocol; import com.google.protobuf.MessageLite; public interface EntityProtocolTranslator<E,M extends MessageLite> { E fromMessage(M message); M toMessage(E entity); }
package org.dodgybits.shuffle.android.core.model.protocol; import com.google.common.collect.Lists; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Task; ...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; public interface EntityEncoder<Entity> { void save(Bundle icicle, Entity e); Entity restore(Bundle icicle); }
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; import com.google.inject.Singleton; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Context.Builder; import org.dodgybits.shuffle.android.core.util.BundleUtils; import static a...
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; import com.google.inject.Singleton; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Project.Builder; import org.dodgybits.shuffle.android.core.util.BundleUtils; import static a...
package org.dodgybits.shuffle.android.core.model.encoding; import android.os.Bundle; import com.google.inject.Singleton; import org.dodgybits.shuffle.android.core.model.Task; import org.dodgybits.shuffle.android.core.model.Task.Builder; import org.dodgybits.shuffle.android.core.util.BundleUtils; import static android...
package org.dodgybits.shuffle.android.core.model; public interface EntityBuilder<E> { EntityBuilder<E> mergeFrom(E e); EntityBuilder<E> setLocalId(Id id); EntityBuilder<E> setModifiedDate(long ms); EntityBuilder<E> setActive(boolean value); EntityBuilder<E> setDeleted(boolean value); E build()...
package org.dodgybits.shuffle.android.core.model; public final class Id { private final long mId; public static final Id NONE = new Id(0L); private Id(long id) { mId = id; } public long getId() { return mId; } public boolean isInitialised() { ret...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.model.persistence; import android.database.Cursor; import android.net.Uri; import org.dodgybits.shuffle.android.core.model.Entity; import org.dodgybits.shuffle.android.core.model.Id; import java.util.Collection; public interface EntityPersister<E extends Entity> { Uri ...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.model.persistence; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Context.Builder; import o...
package org.dodgybits.shuffle.android.core.model.persistence; import android.util.Log; import com.google.common.collect.Lists; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Entity; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.util.Item...
package org.dodgybits.shuffle.android.core.model.persistence.selector; public enum Flag { yes, no, ignored }
package org.dodgybits.shuffle.android.core.model.persistence.selector; import android.net.Uri; import android.os.Parcel; import android.os.Parcelable; import android.text.format.DateUtils; import android.util.Log; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.list.model.ListQ...
package org.dodgybits.shuffle.android.core.model.persistence.selector; import android.content.Context; import android.net.Uri; import org.dodgybits.shuffle.android.preference.model.ListSettings; public interface EntitySelector<E extends EntitySelector<E>> { Uri getContentUri(); Flag getActive(); Flag ge...
package org.dodgybits.shuffle.android.core.model.persistence.selector; import android.net.Uri; import org.dodgybits.shuffle.android.persistence.provider.AbstractCollectionProvider; import org.dodgybits.shuffle.android.persistence.provider.ContextProvider; import java.util.List; public class ContextSelector extends A...
package org.dodgybits.shuffle.android.core.model.persistence.selector; import android.net.Uri; import org.dodgybits.shuffle.android.persistence.provider.AbstractCollectionProvider; import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider; import java.util.List; public class ProjectSelector extends A...
package org.dodgybits.shuffle.android.core.model.persistence.selector; import android.util.Log; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.util.StringUtils; import org.dodgybits.shuffle.android.preference.model.ListSettings; import java.util.ArrayList; import java.ut...
package org.dodgybits.shuffle.android.core.model.persistence; import android.content.ContentUris; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.provider.BaseColumns; import android.text.TextUtils; import android.text.format.Time; import android.util.Log; i...
package org.dodgybits.shuffle.android.core.model.persistence; import android.content.ContentResolver; import android.content.ContentUris; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import android.provider.BaseColumns; import org.dodgybits.shuffle.android.core.model.En...
package org.dodgybits.shuffle.android.core.model.persistence; import android.content.ContentValues; import android.database.Cursor; import android.net.Uri; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Project.Builder; import o...
package org.dodgybits.shuffle.android.core.model.persistence; import org.dodgybits.shuffle.android.core.model.Entity; import org.dodgybits.shuffle.android.core.model.Id; import java.util.List; public interface EntityCache<E extends Entity> { E findById(Id localId); /** * Any ids that don't match are igno...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.model; public interface Entity { /** * @return primary key for entity in local sqlite DB. */ Id getLocalId(); /** * @return primary key for entity in google app engine datastore. */ Id getGaeId(); /** * @return ms since epoch e...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.core.activity; import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentTransaction; import com.google.inject.Inject; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle....
package org.dodgybits.shuffle.android.core.activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.suppor...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.list.listener; import android.app.Activity; import android.text.TextUtils; import android.util.Log; import android.widget.Toast; import com.google.common.collect.Lists; import com.google.inject.Inject; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.co...
package org.dodgybits.shuffle.android.list.listener; import android.app.Activity; import android.content.ContentUris; import android.content.Intent; import android.net.Uri; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.activity.HelpActivity; import org.dodgybits.shuffle.android.core.util.I...
package org.dodgybits.shuffle.android.list.content; import android.content.Context; import android.database.Cursor; import android.support.v4.content.CursorLoader; import org.dodgybits.shuffle.android.core.model.persistence.selector.ProjectSelector; import org.dodgybits.shuffle.android.list.model.ListQuery; import org...
package org.dodgybits.shuffle.android.list.content; import android.content.Context; import android.database.Cursor; import android.support.v4.content.CursorLoader; import org.dodgybits.shuffle.android.core.model.persistence.selector.ContextSelector; import org.dodgybits.shuffle.android.list.model.ListQuery; import org...
package org.dodgybits.shuffle.android.list.view; import android.text.SpannableString; import android.text.SpannableStringBuilder; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.model.Context; ...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.list.view; import android.app.Activity; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.EditorInfo; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; import com.go...
package org.dodgybits.shuffle.android.list.view.project; import android.util.SparseIntArray; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.google.inject.Inject; import org.dodgybits.andr...
package org.dodgybits.shuffle.android.list.view.project; import android.content.Context; import android.database.Cursor; import android.support.v4.widget.CursorAdapter; import android.util.SparseIntArray; import android.view.View; import android.view.ViewGroup; import com.google.inject.Inject; import org.dodgybits.shu...
package org.dodgybits.shuffle.android.list.view.project; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.os.Parcelable; import android.support.v4.app.LoaderManager; import android.support.v4.content.CursorLoader; import android.sup...
package org.dodgybits.shuffle.android.list.view.task; import android.content.Context; import android.os.Parcel; import android.os.Parcelable; import android.support.v7.app.ActionBar; import android.support.v7.app.ActionBarActivity; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.mode...
package org.dodgybits.shuffle.android.list.view.task; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.*; import android.graphics.drawable.Drawable; import android.text.*; import android.text.format.DateUtils; import android.text.style.ForegroundColorSpan; import ...
package org.dodgybits.shuffle.android.list.view.task; import android.app.Activity; import android.content.ContentUris; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.os.Parcelable; import android.support.v4.app.LoaderManager; import andro...
package org.dodgybits.shuffle.android.list.view.task; import android.content.Context; import android.util.SparseArray; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.androi...
package org.dodgybits.shuffle.android.list.view.task; import android.content.Context; import android.database.Cursor; import android.os.Bundle; import android.support.v4.content.CursorLoader; import android.support.v4.content.Loader; import android.support.v4.widget.CursorAdapter; import android.util.Log; import andro...
package org.dodgybits.shuffle.android.list.view.task; import android.os.Parcel; import com.google.common.base.Function; import com.google.common.collect.Lists; import org.dodgybits.shuffle.android.core.model.persistence.selector.TaskSelector; import org.dodgybits.shuffle.android.list.model.ListQuery; import org.dodgyb...
package org.dodgybits.shuffle.android.list.view.task; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.util.Log; import android.widget.ArrayAdapter; import android.widget.SpinnerAdapter; import com.google.common.base.Function; import com.google.common.co...
package org.dodgybits.shuffle.android.list.view.context; import android.annotation.TargetApi; import android.graphics.drawable.GradientDrawable; import android.os.Build; import android.util.AttributeSet; import android.util.SparseIntArray; import android.view.LayoutInflater; import android.view.View; import android.vi...
package org.dodgybits.shuffle.android.list.view.context; import android.content.Context; import android.database.Cursor; import android.support.v4.widget.CursorAdapter; import android.util.SparseIntArray; import android.view.View; import android.view.ViewGroup; import com.google.inject.Inject; import org.dodgybits.shu...
package org.dodgybits.shuffle.android.list.view.context; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.os.Parcelable; import android.support.v4.app.LoaderManager; import android.support.v4.content.CursorLoader; import android.sup...
/* * Copyright (C) 2009 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class EditProjectEvent { private Id mProjectId; public EditProjectEvent(Id projectId) { this.mProjectId = projectId; } public Id getProjectId() { return mProjectId; } }
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class EditContextEvent { private Id mContextId; public EditContextEvent(Id contextId) { mContextId = contextId; } public Id getContextId() { return mContextId; } }
package org.dodgybits.shuffle.android.list.event; import com.google.common.collect.Sets; import java.util.Set; public class UpdateTasksCompletedEvent { private Set<Long> mTaskIds; private boolean mCompleted; public UpdateTasksCompletedEvent(Set<Long> taskIds, boolean completed) { mTaskIds = task...
package org.dodgybits.shuffle.android.list.event; public class EditNewProjectEvent { }
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class UpdateProjectDeletedEvent { private Id mProjectId; private Boolean mDeleted; public UpdateProjectDeletedEvent(Id projectId) { mProjectId = projectId; } public UpdateProjectD...
package org.dodgybits.shuffle.android.list.event; public class QuickAddEvent { private String mValue; public QuickAddEvent(String value) { mValue = value; } public String getValue() { return mValue; } }
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class ViewContextEvent { private Id mContextId; private int mPosition; public ViewContextEvent(Id contextId) { this(contextId, -1); } public ViewContextEvent(Id contextId, int pos...
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class EditNewTaskEvent { private Id mContextId; private Id mProjectId; private String mDescription; public EditNewTaskEvent(Id contextId, Id projectId, String description) { this(...
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class UpdateContextDeletedEvent { private Id mContextId; private Boolean mDeleted = null; public UpdateContextDeletedEvent(Id contextId) { mContextId = contextId; } public UpdateC...
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class ViewProjectEvent { private Id mProjectId; private int mPosition; public ViewProjectEvent(Id projectId) { this(projectId, -1); } public ViewProjectEvent(Id projectId, int pos...
package org.dodgybits.shuffle.android.list.event; import android.support.v4.app.Fragment; import org.dodgybits.shuffle.android.list.model.ListQuery; public class EditListSettingsEvent { private ListQuery mListQuery; private final Fragment mFragment; private int mRequestCode; public EditListSettingsEv...
package org.dodgybits.shuffle.android.list.event; public class NewProjectEvent { private String mName; public NewProjectEvent(String name) { mName = name; } public String getName() { return mName; } }
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.list.model.ListQuery; public class ViewHelpEvent { private ListQuery mListQuery; public ViewHelpEvent() { } public ViewHelpEvent(ListQuery query) { mListQuery = query; } public ListQuery getListQ...
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class EditTaskEvent { private Id mTaskId; public EditTaskEvent(Id taskId) { mTaskId = taskId; } public Id getTaskId() { return mTaskId; } }
package org.dodgybits.shuffle.android.list.event; public class NewContextEvent { private String mName; public NewContextEvent(String name) { mName = name; } public String getName() { return mName; } }
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.core.model.Id; public class NewTaskEvent { private Id mContextId = Id.NONE; private Id mProjectId = Id.NONE; private String mDescription; public NewTaskEvent(String description, Id contextId, Id projectId) { ...
package org.dodgybits.shuffle.android.list.event; import android.database.Cursor; import com.google.common.collect.Sets; import java.util.Set; public class MoveTasksEvent { private Set<Long> mTaskIds; private boolean mMoveUp; private Cursor mCursor; public MoveTasksEvent(Set<Long> taskIds, boole...
package org.dodgybits.shuffle.android.list.event; import org.dodgybits.shuffle.android.list.model.ListQuery; public class ListSettingsUpdatedEvent { private ListQuery mListQuery; public ListSettingsUpdatedEvent(ListQuery listQuery) { mListQuery = listQuery; } public ListQuery getListQuery() ...
package org.dodgybits.shuffle.android.list.event; public class EditNewContextEvent { }
package org.dodgybits.shuffle.android.list.event; public class ViewPreferencesEvent { public ViewPreferencesEvent() { } }
package org.dodgybits.shuffle.android.list.event; import com.google.common.collect.Sets; import java.util.Set; public class UpdateTasksDeletedEvent { private Set<Long> mTaskIds; private boolean mDeleted; public UpdateTasksDeletedEvent(Set<Long> taskIds, boolean deleted) { mTaskIds = taskIds; ...
package org.dodgybits.shuffle.android.list.model; import android.content.Context; import android.content.Intent; import org.dodgybits.shuffle.android.core.model.persistence.selector.Flag; import org.dodgybits.shuffle.android.list.activity.ListSettingsEditorActivity; import org.dodgybits.shuffle.android.preference.mode...
package org.dodgybits.shuffle.android.list.model; public enum ListQuery { all, inbox, nextTasks, dueToday, dueNextWeek, dueNextMonth, tickler, context, project, custom }
package org.dodgybits.shuffle.android.list.model; import org.dodgybits.android.shuffle.R; import java.util.HashMap; public class ListTitles { private static final HashMap<ListQuery,Integer> TITLE_ID_MAP = new HashMap<ListQuery,Integer>(); static { TITLE_ID_MAP.put(ListQuery.all, R.strin...
package org.dodgybits.shuffle.android.list.activity; import android.annotation.SuppressLint; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.preference.CheckBoxPreference; import android.preference.ListPreference; import android.preference.Preference; import andr...
package org.dodgybits.shuffle.android.list.activity; import android.content.ContentUris; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app....
package org.dodgybits.shuffle.android.list.activity; import android.content.ContentUris; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app....
package org.dodgybits.shuffle.android.server.sync.listener; import android.content.Context; import android.util.Log; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.persistence.ContextPersister; import org.dodgybits.shuffle.android.core.model.persistence.ProjectPersister; import org.do...
package org.dodgybits.shuffle.android.server.sync; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.support.v4.content.WakefulBroadcastReceiver; import android.util.Log; import static org.dodgybits.shuffle.android.server.sync.SyncSchedulingService...
/* * Copyright (C) 2013 Android Shuffle Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
package org.dodgybits.shuffle.android.server.sync; import android.util.Log; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.protocol.EntityDirectory; import org.dodgybits.s...
package org.dodgybits.shuffle.android.server.sync; import android.content.Intent; import android.util.Log; import com.google.inject.Inject; import com.google.protobuf.InvalidProtocolBufferException; import com.textuality.aerc.AppEngineClient; import com.textuality.aerc.Response; import org.dodgybits.shuffle.android....
package org.dodgybits.shuffle.android.server.sync; import android.accounts.Account; import android.accounts.AccountManager; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.util.Log; import android.widget.Toast; import com.google.i...
package org.dodgybits.shuffle.android.server.sync; import android.database.Cursor; import android.util.Log; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.persistence.Cont...
package org.dodgybits.shuffle.android.server.sync; import android.content.Context; import org.dodgybits.shuffle.android.preference.model.Preferences; public class SyncUtils { public static boolean isSyncOn(Context context) { return Preferences.isSyncEnabled(context) && Preferences.getSyncAccount(contex...
package org.dodgybits.shuffle.android.server.sync.processor; import android.database.Cursor; import android.util.Log; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.persistence...
package org.dodgybits.shuffle.android.server.sync.processor; import android.database.Cursor; import android.util.Log; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.Project; im...
package org.dodgybits.shuffle.android.server.sync.processor; import android.util.Log; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.andro...