code
stringlengths
3
1.18M
language
stringclasses
1 value
package com.google.android.DemoKit; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.View; public class Jo...
Java
/* * Copyright (C) 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 app...
Java
package com.google.android.DemoKit; import android.graphics.Color; import android.text.SpannableStringBuilder; import android.text.style.RelativeSizeSpan; import android.text.style.SubscriptSpan; import android.view.ViewGroup; import android.widget.TextView; public class ColorWheelLEDController implements ColorWheel....
Java
package com.google.android.DemoKit; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Display; public class DemoKitLaunch extends Activity { static final String TAG = "DemoKitLaunch"; ...
Java
package com.google.android.DemoKit; import android.graphics.drawable.Drawable; public class Utilities { static void centerAround(int x, int y, Drawable d) { int w = d.getIntrinsicWidth(); int h = d.getIntrinsicHeight(); int left = x - w / 2; int top = y - h / 2; int right = left + w; int bottom = top + h...
Java
package com.parp; import java.util.ArrayList; import java.util.List; import java.util.Random; import com.utils.Circle; import com.utils.SoundLine; import android.content.Context; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics...
Java
package com.parp.visuals; import android.graphics.Canvas; public interface Visual { public void enable(boolean enable); public void motionUpdate(int pointerId, float x, float y, long time, int height); public void drawVisual(int pointerId, Canvas canvas, float x, float y, long time); public void up(); } ...
Java
package com.parp.visuals; import java.util.Random; import android.graphics.Canvas; import android.graphics.Paint; import android.media.audiofx.Visualizer; import android.os.Build; import android.util.Log; public class ScopeVisual implements Visual{ private boolean enable = false; private final Pai...
Java
package com.parp.visuals; import java.util.ArrayList; import java.util.List; import com.utils.Circle; import com.utils.Utils; import android.graphics.Canvas; import android.graphics.Paint; public class CircleVisual implements Visual{ private final List<Circle> circles = new ArrayList<Circle>(); privat...
Java
package com.parp.visuals; import java.util.ArrayList; import java.util.List; import com.utils.TraceLine; import android.graphics.Canvas; import android.graphics.Paint; public class LineVisual implements Visual{ //Lists of current and old lines private final List<TraceLine> lines = new ArrayList<TraceLine...
Java
package com.parp; import com.parp.menus.AboutScreen; import com.parp.menus.HelpScreen; import com.parp.menus.SettingsMenu; import android.app.Activity; import android.content.Intent; import android.graphics.Color; import android.graphics.Typeface; import android.media.AudioManager; import android.os.Bundle; import an...
Java
package com.parp; import android.content.Context; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.util.AttributeSet; import android.util.Log; import android.view.Display; import android.view.View; import android.widget.ImageView; public class Background extends ImageVi...
Java
package com.parp; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.graphics.Canvas; import android.os.SystemClock; import android.preference.PreferenceManager; import android.util.AttributeSet; i...
Java
package com.parp.menus; import com.parp.R; import android.app.Activity; import android.os.Bundle; public class AboutScreen extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about_layout); } }
Java
package com.parp.menus; import com.parp.R; import android.app.Activity; import android.os.Bundle; public class HelpScreen extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.help_layout); } }
Java
package com.parp.menus; import com.parp.R; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.widget.TabHost; public class SettingsMenu extends TabActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSta...
Java
package com.parp.menus; import com.parp.R; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceActivity; public class Preferences extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(s...
Java
package com.utils; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; import android.util.Log; public class Sound implements Runnable { public static final int STOPPED = -1000, PAUSED = -2000; public SoundPool pool; Context context; public int start...
Java
package com.utils; public class Utils { public static int getRand(int rangeMax) { return (int)(Math.random() * rangeMax); } public static byte getRand(byte rangeMax) { return (byte)(Math.random() * rangeMax); } }
Java
package com.utils; public class SoundLine { private int position; private int halfLength; public SoundLine(int x, int halfLength) { this.setPosition(x); this.setHalfLength(halfLength); } public void setPosition(int x) { this.position = x; } public int getPosition() { return position...
Java
package com.utils; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.util.AttributeSet; import android.widget.TextView; public class VerticalTextView extends TextView { //The below two constructors appear to be required public VerticalTex...
Java
package com.utils; public class Circle { //The x-coordinate where this circle is to be displayed private final int x; //The x-coordinate where this circle is to be displayed private final int y; //The radius of the circle private int r; public Circle(int x, int y, int r) { this.x = x; this.y = ...
Java
package com.utils.preferences; import android.content.Context; import android.content.SharedPreferences; import android.content.res.TypedArray; import android.graphics.Typeface; import android.preference.Preference; import android.util.AttributeSet; import android.view.Gravity; import android.view.View; impo...
Java
package com.utils.preferences; import com.parp.R; import android.content.Context; import android.preference.Preference; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class AdmobPreference extends Preference { p...
Java
package com.utils; import java.util.HashMap; import java.util.Iterator; import android.content.Context; import android.media.AudioManager; import android.media.SoundPool; public class SoundManager { private SoundPool soundPool; private HashMap<Integer, Integer> soundIds; private HashMap<Integer, In...
Java
package com.utils; import android.graphics.Color; public class TraceLine { private final float startX; private final float startY; private final float endX; private final float endY; private byte red; private byte green; private byte blue; private byte alpha; private byte alphaDec = 1; private...
Java
package com.utils; public class Pair<T, U> { private final T first; private final U second; private transient final int hash; public Pair(T f, U s) { this.first = f; this.second = s; hash = (first == null ? 0 : first.hashCode() * 31) + (second == null ? 0 : second.hashCode()); } public T get...
Java
package ru.spb.awk.onec.dbi; import static org.junit.Assert.*; import java.io.File; import java.io.IOException; import java.util.Map; import org.junit.Before; import org.junit.Test; import ru.spb.awk.onec.core.DBManager; import ru.spb.awk.onec.core.tables.IndexHashMap; public class DBManagerTest { private File ...
Java
package ru.spb.awk.onec.dbi; import java.nio.ByteBuffer; public interface Field { boolean isVersionField(); boolean isNullable(); int getSize(); String getName(); Object getValue(ByteBuffer pRecord); int getLenght(); int getPrecision(); boolean isIgnoreCase(); }
Java
package ru.spb.awk.onec.dbi; public interface BlobAddr { public abstract int getIndx(); public abstract int getLen(); }
Java
package ru.spb.awk.onec.dbi; import java.nio.ByteBuffer; import java.util.Map; public interface Records extends Iterable<Map<String, Object>> { public abstract String getText(BlobAddr pAddr); public abstract ByteBuffer getBlob(BlobAddr pAddr); public abstract Map<String, Object> getRecord(int pIndex); }
Java
package ru.spb.awk.onec.dbi; import java.util.Collection; public interface Table extends Iterable<Field> { int getRecordPage(); boolean haveVersionField(); boolean haveRecordLock(); int getRecordLenght(); String getName(); int getIndexPage(); int getBlobPage(); Collection<Index> indexes(); Index ge...
Java
package ru.spb.awk.onec.dbi; public interface Index extends Iterable<Field> { String getName(); int getPosition(); }
Java
package ru.spb.awk.onec.dbi; public interface DB extends Iterable<Table> { void close(); Table getTable(String pString); Records getTableScaner(Table pT); Records getTableScaner(Table pT, Index pI); }
Java
package ru.spb.awk.onec.dbi; import java.nio.ByteBuffer; public interface FieldStrategy { int getSize(Field pF); Object getValue(ByteBuffer pRecord, Field pF); }
Java
package ru.spb.awk.onec.core; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; import ru.spb.awk.onec.dbi.DB; public class DBManager { private Map<String, DB> bases = new HashMap<>(); public DB open(File f) throws IOException { String path = f.getCanonicalPath();...
Java
package ru.spb.awk.onec.core; public class Version { private int mV; private int mV2; private int mV3; private int mV4; public Version(int pV, int pV2, int pV3, int pV4) { mV = pV; mV2 = pV2; mV3 = pV3; mV4 = pV4; } @Override public String toString() { return "" + mV + "." + mV2 ...
Java
package ru.spb.awk.onec.core; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.nio.ByteBuffer; import java.util.LinkedHashMap; import java.util.Map; import ru.spb.awk.onec.core.head.Head; import r...
Java
package ru.spb.awk.onec.core.head; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Iterator; import ru.spb.awk.onec.core.PageManager; class DataScanner implements Iterator<ByteBuffer> { class ArrayScaner implements Iterator<ByteBuffer> { priva...
Java
package ru.spb.awk.onec.core.head; import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import ru.spb.awk.onec.core.PageManager; import ru.spb.awk.onec.core.Versio...
Java
package ru.spb.awk.onec.core.head; import java.nio.ByteBuffer; import ru.spb.awk.onec.core.Version; public interface Head extends Iterable<ByteBuffer> { public abstract long getPages(); public abstract void setPages(long pPages); public abstract long getVer(); public abstract void setVer(long pVer); public...
Java
package ru.spb.awk.onec.core.head; import java.nio.ByteBuffer; import java.util.Iterator; import ru.spb.awk.onec.core.PageManager; import ru.spb.awk.onec.core.Version; public class FirstPage implements Head { String mSign; Version mVerDB; long mRecordsLength; long mVer; PageManager mManager; ...
Java
package ru.spb.awk.onec.core; import java.nio.ByteBuffer; import ru.spb.awk.onec.core.head.Head; import ru.spb.awk.onec.core.head.HeadImpl; public class FreePageManager { //private long mSize; private Head mHead; public FreePageManager(PageManager pPageManager, ByteBuffer pBuf) { mHead = HeadIm...
Java
package ru.spb.awk.onec.core.scanners; import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Iterator; import ru.spb.awk.onec.core.PageManager; import ru.spb.awk.onec.core.head.Head; import ru.spb.awk.onec.core.head.HeadImpl; import r...
Java
package ru.spb.awk.onec.core.scanners; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Arrays; import ru.spb.awk.onec.core.head.Head; public class IndexTree { public static class Record { private int len; private ByteBuffer record; private int numrec; private int left; private in...
Java
package ru.spb.awk.onec.core.scanners; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Iterator; import ru.spb.awk.onec.core.PageManager; import ru.spb.awk.onec.core.head.Head; import ru.spb.awk.onec.core.head.HeadImpl; import ru.spb.awk....
Java
package ru.spb.awk.onec.core.tables; import java.util.Iterator; import java.util.Map; import ru.spb.awk.onec.core.PageManager; import ru.spb.awk.onec.core.scanners.IndexScanner; import ru.spb.awk.onec.core.scanners.IndexTree.Record; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.Index; import ru.spb.awk...
Java
package ru.spb.awk.onec.core.tables; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; public class FieldImpl implements Field { private String mName; private FieldType mType; private boolean mNullable; private int mLenght; private int mPrec; private boolean mIgnoreCase; private boo...
Java
package ru.spb.awk.onec.core.tables; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.Index; public class IndexImpl implements Index { private static class KeyValue { private Field field; private int length; public Ke...
Java
package ru.spb.awk.onec.core.tables; import java.io.FileNotFoundException; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.M...
Java
package ru.spb.awk.onec.core.tables; import java.util.HashMap; public class IndexHashMap<K, V> extends HashMap<K, V> { private int indx; public void setIndex(int index) { indx = index; } public int getIndex() { return indx; } }
Java
package ru.spb.awk.onec.core.tables; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import com.sun.org.apache.bcel.internal.generic.NEWARRAY; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec....
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class BooleanStrategy implements FieldStrategy { @Override public int getSize(Field pF) { if(pF.isNullable()) { return 2; } return 1; } @Override...
Java
package ru.spb.awk.onec.core.tables.strategy; import ru.spb.awk.onec.dbi.BlobAddr; public class AddrImpl implements BlobAddr { int indx; /* (non-Javadoc) * @see ru.spb.awk.onec.core.tables.strategy.BlobAddr#getIndx() */ @Override public int getIndx() { return indx; } /* (non-Javadoc) * @see ru.spb.awk.o...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import java.nio.ByteOrder; import ru.spb.awk.onec.dbi.BlobAddr; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class TextStrategy implements FieldStrategy { @Override public int getSize(Field pF) { i...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.BlobAddr; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class BLOBStrategy implements FieldStrategy { @Override public int getSize(Field pF) { if(pF.isNullable()) return 9; ...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class DateTimeStrategy implements FieldStrategy { SimpleDateFormat f...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class CharStrategy implements FieldStrategy { @Override public int getSize(Field pF) { int pr = pF.isNullable() ? 1 : 0; pr += pF.getLenght() * 2; retu...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class BinaryStrategy implements FieldStrategy { @Override public int getSize(Field pF) { if(pF.isNullable()) { return 1 + pF.getLenght(); } return p...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class VersionStrategy implements FieldStrategy { @Override public int getSize(Field pF) { if(pF.isNullable()) return 17; return 16; } @Override publi...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class DateStrategy implements FieldStrategy { SimpleDateFormat form...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class NumericStrategy implements FieldStrategy { @Override public int getSize(Field pF) { int pLenght = pF.getLenght(); int len = (pLenght + 1) / 2 + (pL...
Java
package ru.spb.awk.onec.core.tables.strategy; import java.nio.ByteBuffer; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.dbi.FieldStrategy; public class VarCharStrategy implements FieldStrategy { @Override public int getSize(Field pF) { int pr = pF.isNullable() ? 1 : 0; pr += pF.getLenght() * 2 + 2;...
Java
package ru.spb.awk.onec.core.tables; import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import com.sun.org.apache.bcel.internal.classfile.PMGClass; import ru.spb.awk.onec.core.PageManager; import ru.s...
Java
package ru.spb.awk.onec.core.tables; import java.nio.ByteBuffer; import java.util.HashMap; import java.util.Map; import ru.spb.awk.onec.core.tables.strategy.BLOBStrategy; import ru.spb.awk.onec.core.tables.strategy.BinaryStrategy; import ru.spb.awk.onec.core.tables.strategy.BooleanStrategy; import ru.spb.awk.onec.core...
Java
package ru.spb.awk.onec.core.tables; import ru.spb.awk.onec.dbi.Field; import ru.spb.awk.onec.text.OneCHandler; public class TableParser implements OneCHandler { public class IndexHandler implements OneCHandler { int state = 0; int count = 0; int pos = 0; private IndexImpl index; private Field field; ...
Java
package ru.spb.awk.onec.core.tables; import java.io.FileNotFoundException; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import ru.spb.awk.onec.core.PageManager; import ru.spb.awk.onec.core.head.Head; import ru.spb.awk.onec.core.head.HeadImpl; import ru.spb.awk.onec.dbi.BlobAddr; ...
Java
package ru.spb.awk.onec.core; import static org.junit.Assert.*; import java.io.File; import org.junit.Before; import org.junit.Test; public class PageManagerTest { PageManager mPageManager; @Before public void setUp() throws Exception { mPageManager = new PageManager(new File("resourse\\1cv8ddb.1CD")); } @...
Java
package ru.spb.awk.onec.core; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Iterator; import ru.spb.awk.onec.core.tables.RecordIndexManagerImpl; import ru.spb.awk.onec.core.tables.RecordManagerImpl; import ru.spb.awk.onec.dbi.DB; import ru.spb.awk.onec.dbi.Ind...
Java
package ru.spb.awk.onec.text; import java.io.IOException; import java.io.Reader; public class OneCParser { private Reader r; private OneCHandler p; private int first; private int next; public OneCParser(Reader r, OneCHandler p) { this.r = r; this.p = p; } public void read() throws IOExce...
Java
package ru.spb.awk.onec.text; public interface OneCHandler { void start(); void end(); void br(); void value(String s); }
Java
/* * 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...
Java
package org.dodgybits.shuffle.shared; public enum Flag { yes, no, ignored }
Java
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.Glo...
Java
package org.dodgybits.shuffle.shared; public enum PredefinedQuery { all, nextTasks, inbox }
Java
/* * 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...
Java
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...
Java
/* * 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...
Java
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....
Java
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...
Java
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....
Java
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...
Java
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 {...
Java
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...
Java
/* * 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...
Java
package org.dodgybits.shuffle.android.view.activity; import android.app.ActionBar; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.Build; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; imp...
Java
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.Build; import android.os.Bundle; import android.text.TextUtils; import android.text.format.DateUtils; import andro...
Java
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...
Java
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; ...
Java
/* * ==================================================================== * 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 ...
Java
/* * ==================================================================== * 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 ...
Java
/* * ==================================================================== * 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 ...
Java
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...
Java
package org.dodgybits.shuffle.android.synchronisation.tracks; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import java.util.LinkedList; import java.util.Map; import org.apache.http.HttpStatus; import org.dodgybits.android.shuffle.R; import org.dodgybits.shuffle.android.core.ac...
Java
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); }
Java
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...
Java
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; ...
Java
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...
Java
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.Context; import org....
Java
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); } }
Java