text
stringlengths
3
1.18M
package org.dodgybits.shuffle.shared; public enum PredefinedQuery { all, nextTasks, inbox }
/* * Copyright 2011 Google Inc. * * 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 applicable law or agreed to i...
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.EntityProxy; import com.google.web.bindery.requestfactory.shared.EntityProxyId; import com.google.web.bindery.requestfactory.shared.ProxyForName; import java.util.Date; import java.util.List; @ProxyForName(value = "org.dodgybit...
/* * Copyright 2011 Google Inc. * * 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 applicable law or agreed to i...
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.EntityProxy; import com.google.web.bindery.requestfactory.shared.EntityProxyId; import com.google.web.bindery.requestfactory.shared.ProxyForName; import java.util.Date; @ProxyForName(value = "org.dodgybits.shuffle.server.model....
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.Request; import com.google.web.bindery.requestfactory.shared.RequestContext; import com.google.web.bindery.requestfactory.shared.ServiceName; import java.util.List; @ServiceName(value = "org.dodgybits.shuffle.server.service.Ent...
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.EntityProxy; import com.google.web.bindery.requestfactory.shared.EntityProxyId; import com.google.web.bindery.requestfactory.shared.ProxyForName; import java.util.Date; @ProxyForName(value = "org.dodgybits.shuffle.server.model....
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.EntityProxy; import com.google.web.bindery.requestfactory.shared.ProxyForName; @ProxyForName(value = "org.dodgybits.shuffle.server.model.AppUser", locator="org.dodgybits.shuffle.server.locator.ObjectifyLocator" ) public interfa...
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.ProxyForName; import com.google.web.bindery.requestfactory.shared.ValueProxy; import java.util.List; @ProxyForName("org.dodgybits.shuffle.server.model.TaskQueryResult") public interface TaskQueryResultProxy extends ValueProxy {...
package org.dodgybits.shuffle.shared; import com.google.web.bindery.requestfactory.shared.EntityProxy; import com.google.web.bindery.requestfactory.shared.EntityProxyId; import com.google.web.bindery.requestfactory.shared.ProxyForName; import com.google.web.bindery.requestfactory.shared.ValueProxy; import java.util.D...
/* * 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.view.activity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import...
package org.dodgybits.shuffle.android.view.activity; import android.content.ContentUris; import android.content.Intent; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import android.text.format.DateUtils; import android.util.Log; import andro...
/* * Copyright 2011 The Android 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 applicab...
/* * Copyright 2011 The Android 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 applicab...
package org.dodgybits.shuffle.android.actionbarcompat; /* * Copyright (C) 2010 The Android 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.apac...
/* * Copyright 2011 The Android 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 applicab...
/* * Copyright 2011 The Android 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 applicab...
/* * Copyright 2011 The Android 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 applicab...
/* * Copyright 2011 The Android 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 applicab...
/* * Copyright 2011 The Android 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 applicab...
package org.dodgybits.shuffle.android.synchronisation.tracks.service; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.preference.model.Preferences; import org.dodgybits.shuffle.android.preference.view.Progress; import org...
package org.dodgybits.shuffle.android.synchronisation.tracks.ssl; import java.io.IOException; import java.net.Socket; import java.net.UnknownHostException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; ...
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
package org.dodgybits.shuffle.android.synchronisation.tracks; import org.apache.http.StatusLine; public class WebResult { private String mContent; private StatusLine mStatus; public WebResult(StatusLine status, String content) { mStatus = status; mContent = content; } public String getCo...
package org.dodgybits.shuffle.android.synchronisation.tracks; import android.content.Context; import android.util.Log; import android.util.Xml; import org.apache.http.HttpStatus; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.an...
package org.dodgybits.shuffle.android.synchronisation.tracks; import org.dodgybits.shuffle.android.preference.view.Progress; /** * Items that can receive updates about synchronization progress * * @author Morten Nielsen */ public interface SyncProgressListener { void progressUpdate(Progress progress); }
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.net.URI; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpHos...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.util.Map; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.synchronisation.tracks.model.TracksEntity; public class TracksEntities<E extends TracksEntity> { private Map<Id, E> mEntities; ...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.IOException; import java.io.StringWriter; import java.util.Map; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.EntityBuilder; impor...
package org.dodgybits.shuffle.android.synchronisation.tracks; import android.util.Xml; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Context.Builder; i...
package org.dodgybits.shuffle.android.synchronisation.tracks; @SuppressWarnings("serial") public class ApiException extends Exception { public ApiException(String reason) { super(reason); } public ApiException(String reason, Exception e) { super(reason, e); } }
package org.dodgybits.shuffle.android.synchronisation.tracks; import android.content.ContentResolver; import android.content.Context; import android.content.ContextWrapper; import android.os.AsyncTask; import android.util.Log; import android.widget.Toast; import org.dodgybits.android.shuffle.R; import org.dodgybits.sh...
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.apache.http.HttpStatus; import org.apache.http.StatusLine; import org.dodgybits.shuffle.android.core.model.EntityBuilder; import org.dodgybits.shuffle.android.core.mode...
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; public class ParseResult<T> { private boolean mSuccess; private T mResult; public ParseResult(T result, boolean success) { mSuccess = success; mResult = result; } public ParseResult() { mSuccess = false; mResult = null;...
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; public interface Applier { boolean apply(String value); }
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; import java.text.ParseException; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.EntityBuilder; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shu...
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; import android.text.TextUtils; import com.google.common.collect.Lists; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.EntityBuilder; import org.dodgybits.shuffle.android.cor...
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; import java.text.ParseException; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.EntityBuilder; import org.dodgybit...
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; import org.dodgybits.shuffle.android.core.model.Id; public interface IProjectLookup { Id findProjectIdByTracksId(Id tracksId); }
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; import org.dodgybits.shuffle.android.core.model.Id; public interface IContextLookup { Id findContextIdByTracksId(Id tracksId); }
package org.dodgybits.shuffle.android.synchronisation.tracks.parsing; import static org.dodgybits.shuffle.android.core.util.Constants.cFlurryTracksSyncError; import java.io.IOException; import java.io.StringReader; import java.util.HashMap; import java.util.Map; import org.dodgybits.shuffle.android.core.act...
package org.dodgybits.shuffle.android.synchronisation.tracks.model; import org.dodgybits.shuffle.android.core.model.Entity; import org.dodgybits.shuffle.android.core.model.Id; public interface TracksEntity extends Entity { Id getTracksId(); }
package org.dodgybits.shuffle.android.synchronisation.tracks.activity; import javax.annotation.Nullable; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.flurry.Analytics; import org.dodgybits.shuffle.android.core.activity.flurry.FlurryEnabledActivity; import org.dodgybits.sh...
/* * Copyright 2011 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2011 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2010 Google Inc. * * 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 applicable law or agreed to i...
/* * Copyright 2011 Google Inc. * * 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 applicable law or agreed to i...
package org.dodgybits.shuffle.android.editor.fragment; import android.database.Cursor; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import android.widget.*; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.and...
package org.dodgybits.shuffle.android.editor.fragment; import android.app.Activity; import android.content.Intent; import android.graphics.drawable.GradientDrawable; import android.os.Bundle; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.util.Log; import a...
package org.dodgybits.shuffle.android.editor.fragment; import android.app.Activity; import android.app.DatePickerDialog; import android.app.TimePickerDialog; import android.content.ContentResolver; import android.content.ContentUris; import android.content.ContentValues; import android.content.Intent; import android.d...
package org.dodgybits.shuffle.android.editor.fragment; import android.app.Activity; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; impo...
package org.dodgybits.shuffle.android.editor.activity; import android.app.Dialog; import android.os.Bundle; import com.google.inject.Inject; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.view.EntityPickerDialogHelper; import org.dodgybits.shuffle.android.editor.fragment....
/* * 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.editor.activity; import com.google.inject.Inject; import org.dodgybits.shuffle.android.editor.fragment.AbstractEditFragment; import org.dodgybits.shuffle.android.editor.fragment.EditProjectFragment; public class EditProjectActivity extends AbstractEditActivity { private stati...
package org.dodgybits.shuffle.android.editor.activity; import android.os.Bundle; import android.support.v4.app.FragmentTransaction; import android.util.Log; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.actionbarcompat.ActionBarFragmentActivity; import org.dodgybits.shuffle.android.actio...
package org.dodgybits.shuffle.android.editor.activity; import com.google.inject.Inject; import org.dodgybits.shuffle.android.editor.fragment.AbstractEditFragment; import org.dodgybits.shuffle.android.editor.fragment.EditContextFragment; public class EditContextActivity extends AbstractEditActivity { private stati...
/* * 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.view; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import org.dodgybits.android.shuffle.R; import java.util.ArrayList; import java.util.Collections; import ja...
package org.dodgybits.shuffle.android.core.view; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; public class IconNameCountListAdaptor extends ArrayAdapter<IconNameCountListAdaptor.ListItem> { private ListItem[] mListItems; public ...
package org.dodgybits.shuffle.android.core.view; import org.dodgybits.android.shuffle.R; public class ListIcons { public static final int INBOX = R.drawable.format_justify_fill; public static final int DUE_TODAY = R.drawable.office_calendar; public static final int DUE_NEXT_WEEK = R.drawable.office_calen...
/* * 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.view; import android.content.res.Resources; import android.text.TextUtils; import org.dodgybits.android.shuffle.R; public class ContextIcon { private static final String TAG = "ContextIcon"; private static final String PACKAGE = "org.dodgybits.android.shuffle"; ...
package org.dodgybits.shuffle.android.core.view; import android.view.LayoutInflater; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import org.dodgybits.android.shuffle.R; public class IconNameCountListItem extends LinearLayout { private ImageView mIcon; p...
/* * 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.view; import org.dodgybits.android.shuffle.R; import android.content.Context; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class IconArrayAdapter extends ArrayAdapter<CharSequence> { pr...
/* * 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.view; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.database.Cursor; import android.util.Log; import com.google.common.collect.Lists; import org.dodgybits.android.shuffle.R; impor...
package org.dodgybits.shuffle.android.core.configuration; import com.google.inject.AbstractModule; import com.google.inject.TypeLiteral; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Task; import ...
package org.dodgybits.shuffle.android.core.fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import org.dodgybits.android.shuffle.R; import roboguice.fragment.RoboFragment; public class HelpListFragment exte...
package org.dodgybits.shuffle.android.core.fragment; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.List...
package org.dodgybits.shuffle.android.core.fragment; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.ListView; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.activity.Launch...
package org.dodgybits.shuffle.android.core.util; import android.os.Build; import java.lang.reflect.Field; public class OSUtils { public static boolean atLeastFroyo() { return osAtLeast(Build.VERSION_CODES.FROYO); } public static boolean atLeastHoneycomb() { return osAtLeast(Build.VERSIO...
package org.dodgybits.shuffle.android.core.util; import org.dodgybits.shuffle.android.core.model.Context; import org.dodgybits.shuffle.android.core.model.Project; import org.dodgybits.shuffle.android.core.model.Task; import java.util.List; public class TaskLifecycleState { public static enum Status { ye...
package org.dodgybits.shuffle.android.core.util; import java.util.List; public class StringUtils { public static String repeat(int count, String token) { return repeat(count, token, ""); } public static String repeat(int count, String token, String delim) { StringBuilder builder = new StringBuilder(); for...
/* * 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.util; import android.content.AsyncQueryHandler; import android.net.Uri; public class CalendarUtils { // We can't use the constants from the provider since it's not a public portion of the SDK. private static final Uri CALENDAR_CONTENT_URI = Uri.parse("cont...
package org.dodgybits.shuffle.android.core.util; import java.lang.ref.SoftReference; import java.util.HashMap; import android.util.Log; /** * Generic in-memory cache based on Romain Guy's suggestion. * See http://code.google.com/events/io/2009/sessions/TurboChargeUiAndroidFast.html */ public class ItemCache<K,V> ...
package org.dodgybits.shuffle.android.core.util; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.net.Uri; import org.dodgybits.shuffle.android.core.model.Id; import org.dodgybits.shuffle.android.core.model.persistence.selector.TaskSelector; import org.d...
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; public final class Constants { private Constants() { //deny } public static final String cPackage = "org.dodgybits.android.shuffle"; public static final int cVersion = 52; public static final String cFlurryApiKey = "T7KF1PCGVU...
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.model.protocol; import java.util.HashMap; import java.util.Map; import org.dodgybits.shuffle.android.core.model.Id; public class HashEntityDirectory<Entity> implements EntityDirectory<Entity> { private Map<String,Entity> mItemsByName; private Map<Id, Entity> mItemsById; ...
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...