code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
package uk.co.bitethebullet.android.token;
public class OtpAuthUriException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
String err;
public OtpAuthUriException()
{
super(); // call superclass constructor
err = "unknown";
}
/... | Java |
/*
* Copyright 2009 ZXing authors
*
* 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 ... | Java |
package uk.co.bitethebullet.android.token.zxing;
/**
* <p>Encapsulates the result of a barcode scan invoked through {@link IntentIntegrator}.</p>
*
* @author Sean Owen
*/
public final class IntentResult {
private final String contents;
private final String formatName;
IntentResult(String conte... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Licens... | Java |
package uk.co.bitethebullet.android.token;
public interface ITokenMeta {
public String getName();
public int getTokenType();
public String getSecretBase32();
public int getDigits();
public int getTimeStep();
public int getCounter();
}
| Java |
/*
* Copyright Mark McAvoy - www.bitethebullet.co.uk 2009
*
* This file is part of Android Token.
*
* Android Token is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
/*
* Copyright (c) 2012 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 in ... | Java |
package tyt.android.bigplanettracks;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.hardware.GeomagneticField;
import android.hardware.Sensor;
... | Java |
package tyt.android.bigplanettracks;
import java.util.List;
import tyt.android.bigplanettracks.maps.db.DAO;
import tyt.android.bigplanettracks.maps.db.GeoBookmark;
import tyt.android.bigplanettracks.maps.ui.AddBookmarkDialog;
import tyt.android.bigplanettracks.maps.ui.OnDialogClickListener;
import android.app.AlertDi... | Java |
package tyt.android.bigplanettracks.tracks;
import java.util.ArrayList;
import java.util.Collections;
import tyt.android.bigplanettracks.BigPlanet;
import android.location.Location;
import android.util.Log;
/**
* @author TYTung
* @version 0.2
*/
public class TrackAnalyzer {
public static final... | Java |
package tyt.android.bigplanettracks.tracks.db;
public class SQLConstants {
private static String table = TrackDBAdapter.TRACKS_TABLE;
public static final String SQL_UPDATE_1_1 = "DROP TABLE IF EXISTS '"+ table +"_2';";
public static final String SQL_UPDATE_1_2 = "CREATE TABLE '"+ table +"_2' AS SELECT *... | Java |
package tyt.android.bigplanettracks.tracks.db;
import java.util.ArrayList;
import tyt.android.bigplanettracks.maps.storage.SQLLocalStorage;
import tyt.android.bigplanettracks.tracks.TrackAnalyzer;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.SQLException;
im... | Java |
package tyt.android.bigplanettracks.tracks;
import java.util.ArrayList;
import java.util.List;
import tyt.android.bigplanettracks.BigPlanet;
import tyt.android.bigplanettracks.R;
import tyt.android.bigplanettracks.maps.Place;
import tyt.android.bigplanettracks.tracks.db.TrackDBAdapter;
import tyt.android.big... | Java |
package tyt.android.bigplanettracks.tracks.listview;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import tyt.android.bigplanettracks.R;
import tyt.android.bigplanettracks.tracks.MyTimeUtils;
import tyt.android.bigplanettracks.tracks.db.TrackDBAdapter;
import andr... | Java |
/*
* Copyright 2007 Steven Osborn
*
* 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 ... | Java |
/*
* Copyright 2007 Steven Osborn
*
* 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 ... | Java |
/*
* Copyright 2007 Steven Osborn
*
* 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 ... | Java |
package tyt.android.bigplanettracks.tracks.writer;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import tyt.android.bigplanettracks.maps.storage.SQLLocalS... | Java |
package tyt.android.bigplanettracks.tracks.writer;
import java.util.ArrayList;
import tyt.android.bigplanettracks.BigPlanet;
import tyt.android.bigplanettracks.maps.storage.SQLLocalStorage;
import tyt.android.bigplanettracks.tracks.TrackTabViewActivity;
import tyt.android.bigplanettracks.tracks.db.TrackDBAdapt... | Java |
package tyt.android.bigplanettracks.tracks.writer;
import java.io.IOException;
import tyt.android.bigplanettracks.tracks.db.TrackDBAdapter;
import android.location.Location;
public class GpxFile extends FileHandle {
private String gpxFooter =
"</trkseg>\n"+
"</trk>\n"+
"</gpx>";
public GpxFile(String tra... | Java |
package tyt.android.bigplanettracks.tracks.reader;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import tyt.android.bigplanettracks.maps.storage.SQLLocalStorage;
import tyt.android.bigplanettracks.tracks.listview.ExtendedCheckBox;
import android.os.Handler;
/**
* @author taiyu... | Java |
package tyt.android.bigplanettracks.tracks.reader;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import tyt.android.bigplanettracks.tracks.MyTimeUtils;
import tyt.android.bigplanettracks.tracks.db.TrackDBAdapter;
import android.location.Location;
... | Java |
package tyt.android.bigplanettracks.tracks.reader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import ja... | Java |
package tyt.android.bigplanettracks.tracks.reader;
import java.util.ArrayList;
import android.location.Location;
/**
* @author taiyuchen, TYTung
* @version 0.1
*/
public class ParsedDataSet {
private String trackName;
private String trackDescription;
private String trackStartGMTTime;
private A... | Java |
/*
* Copyright 2010 TYTung.
*
* 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 agree... | Java |
package tyt.android.bigplanettracks.tracks;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import tyt.android.bigplanettracks.maps.storage.SQLLocalStorage;
import tyt.android.bigplanettracks.tracks.db.TrackDBAdapter;
im... | Java |
/*
* Copyright 2008 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 ag... | Java |
package tyt.android.bigplanettracks;
import tyt.android.bigplanettracks.maps.NavControls;
import android.app.TabActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.PowerManager;
import android.os.Pow... | Java |
package tyt.android.bigplanettracks.maps;
import java.io.Serializable;
import android.location.Location;
public class Place implements Serializable{
private static final long serialVersionUID = -6698333998587735262L;
private String name;
private double lat;
private double lon;
private Location location;
priva... | Java |
/*
* Copyright 2009 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 tyt.android.bigplanettracks.maps.xml;
import java.util.ArrayList;
import java.util.List;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import tyt.android.bigplanettracks.maps.Place;
/**
* Парсер списка найденных мест
* @author hudvin
*/
public ... | Java |
package tyt.android.bigplanettracks.maps.tools;
import java.text.MessageFormat;
import java.util.Stack;
import java.util.Timer;
import tyt.android.bigplanettracks.R;
import tyt.android.bigplanettracks.maps.RawTile;
import tyt.android.bigplanettracks.maps.geoutils.GeoUtils;
import tyt.android.bigplanettracks.maps.prov... | Java |
package tyt.android.bigplanettracks.maps.tools;
import java.util.Stack;
import tyt.android.bigplanettracks.maps.RawTile;
import tyt.android.bigplanettracks.maps.loader.BaseLoader;
import tyt.android.bigplanettracks.maps.providers.MapStrategy;
import tyt.android.bigplanettracks.maps.storage.LocalStorageWrapper;
impor... | Java |
package tyt.android.bigplanettracks.maps.db;
import java.util.ArrayList;
import java.util.List;
import tyt.android.bigplanettracks.maps.RawTile;
import tyt.android.bigplanettracks.maps.storage.SQLLocalStorage;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
impor... | Java |
package tyt.android.bigplanettracks.maps.db;
import java.io.Serializable;
import tyt.android.bigplanettracks.maps.RawTile;
public class GeoBookmark implements Serializable {
private static final long serialVersionUID = -2198154484982426107L;
private int id = -1;
private String name;
private String desc... | Java |
package tyt.android.bigplanettracks.maps;
import tyt.android.bigplanettracks.maps.storage.SQLLocalStorage;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Point;
/**
* Предназначен для хранения настроек
*
* @author hudvin
*
*/
p... | Java |
package tyt.android.bigplanettracks.maps;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class SHA1Hash {
private static String convertToHex(byte[] data) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i <... | Java |
package tyt.android.bigplanettracks.maps.providers;
public abstract class MapStrategy {
public abstract String getURL(int x, int y, int z, int layout);
public abstract String getDescription();
}
| Java |
package tyt.android.bigplanettracks.maps.providers;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
public class OpenStreetMapStrategy extends MapStrategy {
private List<Layer> layers = new ArrayList<Layer>();
public OpenStreetMapStrategy() {
layers.add(new Layer() {
priva... | Java |
package tyt.android.bigplanettracks.maps.providers;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
public class GoogleTerrainMapStrategy extends MapStrategy {
private List<Layer> layers = new ArrayList<Layer>();
public GoogleTerrainMapStrategy() {
layers.add(new Layer() {
... | Java |
package tyt.android.bigplanettracks.maps.providers;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
public class GoogleVectorMapStrategy extends MapStrategy {
private List<Layer> layers = new ArrayList<Layer>();
public GoogleVectorMapStrategy() {
layers.add(new Layer() {
... | Java |
package tyt.android.bigplanettracks.maps.providers;
import java.util.HashMap;
import java.util.Map;
public class MapStrategyFactory {
public static final int GOOGLE_VECTOR = 0;
public static final int GOOGLE_SATELLITE = 1;
public static final int GOOGLE_TERRAIN = 2;
public static final int OPENSTREET_VECTOR ... | Java |
package tyt.android.bigplanettracks.maps.providers;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
public class GoogleSatelliteMapStrategy extends MapStrategy {
private List<Layer> layers = new ArrayList<Layer>();
public GoogleSatelliteMapStrategy() {
layers.add(new Layer() ... | Java |
package tyt.android.bigplanettracks.maps.providers;
public abstract class Layer {
public abstract int getId();
public abstract String getDescription();
public abstract String getURLPattern();
}
| Java |
package tyt.android.bigplanettracks.maps;
import android.graphics.Bitmap;
/**
* Обработчик сообщений от потока
*
* @author hudvin
*
*/
public abstract class Handler {
public void handle(Object object) {
};
public void handle(RawTile tile, byte[] data) {
}
public void handle(RawTile tile, Bitmap bmp4sca... | Java |
package tyt.android.bigplanettracks.maps;
public abstract class AbstractCommand {
public void execute(){};
public void execute(Object obj){};
}
| Java |
package tyt.android.bigplanettracks.maps;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import tyt.android.bigplanettracks.BigPlanet;
import tyt.android.bigplanettracks.R;
import tyt.android.bigplanettracks.maps.geoutils.GeoUtils;
import tyt.android.bigplanett... | Java |
package tyt.android.bigplanettracks.maps.loader;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.SocketTimeoutException;
import java.net.URL;
import tyt.android.bigplanettracks.maps.Log;
import tyt.android.bigplanettracks.maps.RawTile;
import tyt.andr... | Java |
package tyt.android.bigplanettracks.maps.loader;
import java.util.Stack;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import tyt.android.bigplanettracks.maps.Handler;
import tyt.android.bigplanettracks.maps.RawTile;
import tyt.android.bigplanettracks.maps.providers.MapStrategy;
... | Java |
package tyt.android.bigplanettracks.maps.geoutils;
import tyt.android.bigplanettracks.maps.RawTile;
public class GeoUtils {
static int TILE_SIZE = 256;
/**
* returns a Rectangle2D with x = lon, y = lat, width=lonSpan,
* height=latSpan for an x,y,zoom as used by google.
*/
public static Point getLatLong(int ... | Java |
package tyt.android.bigplanettracks.maps.geoutils;
public class Point {
public double x;
public double y;
public Point(double x, double y){
this.x = x;
this.y = y;
}
public Point(){
}
@Override
public String toString(){
return x + " ^ " + y;
}
public void set(double x, double y) {
this.x =... | Java |
package tyt.android.bigplanettracks.maps;
import tyt.android.bigplanettracks.maps.storage.BitmapCacheWrapper;
import tyt.android.bigplanettracks.maps.storage.LocalStorageWrapper;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
/**
* Предназначен для выполнения скалирования
*
* @author hudv... | Java |
package tyt.android.bigplanettracks.maps;
import tyt.android.bigplanettracks.maps.loader.TileLoader;
import tyt.android.bigplanettracks.maps.providers.MapStrategy;
import tyt.android.bigplanettracks.maps.providers.MapStrategyFactory;
import tyt.android.bigplanettracks.maps.storage.BitmapCacheWrapper;
import tyt.androi... | Java |
package tyt.android.bigplanettracks.maps;
import java.util.logging.Logger;
public class Log {
private static Logger logger = Logger.getLogger("MAIN");
static{
/*
try {
logger.setLevel(Level.ALL);
FileHandler fileHandler = new FileHandler("/sdcard/bigplanet/log.txt");
fileHandler.setFormatter(new Sim... | Java |
package tyt.android.bigplanettracks.maps;
import tyt.android.bigplanettracks.maps.geoutils.GeoUtils;
import tyt.android.bigplanettracks.maps.ui.MapControl;
import tyt.android.bigplanettracks.maps.ui.SmoothZoomEngine;
//import java.util.concurrent.Semaphore;
import android.graphics.Bitmap;
import android.graphics.Poi... | Java |
/*
* Copyright 2008 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 tyt.android.bigplanettracks.maps;
import android.app.Application;
public class BigPlanetApp extends Application {
public static boolean isDemo = false;
public BigPlanetApp() {
super();
}
@Override
public void onCreate() {
Preferences.init(this);
}
}
| Java |
package tyt.android.bigplanettracks.maps.storage;
import tyt.android.bigplanettracks.maps.Preferences;
import tyt.android.bigplanettracks.maps.RawTile;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public class SQLLocalStorage implements ILocalSt... | Java |
package tyt.android.bigplanettracks.maps.storage;
import tyt.android.bigplanettracks.maps.RawTile;
import android.graphics.Bitmap;
/**
* @author tytung
*/
public class BitmapCache {
private LRUCache<RawTile, Bitmap> cacheMap;
public BitmapCache(int size) {
cacheMap = new LRUCache<RawTile, Bitmap>(size);
}
... | Java |
package tyt.android.bigplanettracks.maps.storage;
import java.util.LinkedHashMap;
import java.util.Collection;
import java.util.Map;
import java.util.ArrayList;
/**
* An LRU cache, based on <code>LinkedHashMap</code>.<br>
* This cache has a fixed maximum number of elements (<code>cacheSize</code>).
* If the... | Java |
package tyt.android.bigplanettracks.maps.storage;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import tyt.android.bigplanettracks.maps.RawTile;
import android.graphics.Bitmap;
import android.util.Log;
/**
* Предоставляет возм... | Java |
package tyt.android.bigplanettracks.maps.storage;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import tyt.android.bigplanettracks.BigPlanet;
import tyt.android.bigplanettracks.maps.Handler;
import tyt.android.bigplanettracks.maps.RawTile;
import android.graphics.Bitmap;
import ... | Java |
package tyt.android.bigplanettracks.maps.storage;
import tyt.android.bigplanettracks.maps.RawTile;
public interface ILocalStorage {
/**
* Очистка файлового кеша
*/
public abstract void clear();
public abstract boolean isExists(RawTile tile);
/**
* Сохраняет тайл в файловый кеш
*
* @param tile
* ... | Java |
package tyt.android.bigplanettracks.maps.storage;
import tyt.android.bigplanettracks.BigPlanet;
import tyt.android.bigplanettracks.maps.RawTile;
import android.graphics.Bitmap;
/**
* Кеш скалированнных и обычных тайлов
*
* @author hudvin
*
*/
public class BitmapCacheWrapper {
/*
* размер кеша (для каждого... | Java |
package tyt.android.bigplanettracks.maps;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
public class Utils {
public static int getZoomLevel(double x) {
if(x<1) x = 1/x;
int counter = 1;
while (x > 2) {
counter++;
x = x / 2;
}
if(x<1) return counter*-1;
... | Java |
package tyt.android.bigplanettracks.maps;
import java.io.Serializable;
/**
* Представляет параметры тайла
*
* @author hudvin
*
*/
public class RawTile implements Serializable {
private static final long serialVersionUID = -3536701428388595925L;
public int x, y, z, s;
public RawTile(int x, int y, int z,... | Java |
package tyt.android.bigplanettracks.maps.ui;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Bitmap.Config;
/**
* Утилиты для работы с битмапами
*
* @author hudvin
*
*/
public class BitmapUtils {
/**
* Цве... | Java |
package tyt.android.bigplanettracks.maps.ui;
import android.content.Context;
import android.widget.RelativeLayout;
import android.widget.ZoomControls;
/**
* Панель с контролами для управления уровнем детализации
*
* @author hudvin
*
*/
public class ZoomPanel extends RelativeLayout {
private ZoomControls zoom... | Java |
package tyt.android.bigplanettracks.maps.ui;
import tyt.android.bigplanettracks.R;
import tyt.android.bigplanettracks.maps.db.GeoBookmark;
import android.app.AlertDialog;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.wi... | Java |
package tyt.android.bigplanettracks.maps.ui;
import android.graphics.Point;
import android.view.MotionEvent;
/**
* Предназначен для обработки двойного клика
*
* @author hudvin
*
*/
public class DoubleClickDetector {
/**
* Минимальный временной промежуток между двумя отдельными касаниями, при
* котором он... | Java |
package tyt.android.bigplanettracks.maps.ui;
import java.util.ArrayList;
import java.util.List;
import tyt.android.bigplanettracks.BigPlanet;
import tyt.android.bigplanettracks.R;
import tyt.android.bigplanettracks.maps.AbstractCommand;
import tyt.android.bigplanettracks.maps.MarkerManager;
import tyt.android.bigplan... | Java |
package tyt.android.bigplanettracks.maps.ui;
public abstract class OnMapLongClickListener {
public abstract void onMapLongClick(int x, int y);
}
| Java |
package tyt.android.bigplanettracks.maps.ui;
import java.util.LinkedList;
import tyt.android.bigplanettracks.maps.AbstractCommand;
import tyt.android.bigplanettracks.maps.PhysicMap;
//import java.util.concurrent.Semaphore;
public class SmoothZoomEngine {
public static SmoothZoomEngine sze;
private LinkedList<In... | Java |
package tyt.android.bigplanettracks.maps.ui;
/**
* Обработчик для кнопок в диалоговом окне
* @author hudvin
*
*/
public abstract class OnDialogClickListener {
public abstract void onOkClick(Object obj);
public abstract void onCancelClick();
}
| Java |
package tyt.android.bigplanettracks;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.SAXParser;
import javax.xml... | Java |
package tyt.android.bigplanettracks;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import tyt.android.bigplanettracks.maps.Bi... | Java |
/*
* Copyright 2013 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 in... | Java |
/*
* Copyright 2013 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 in... | Java |
/*
* Copyright (C) 2013 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 |
/*
* Copyright 2012 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 in w... | Java |
/*
* Copyright 2012 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 in w... | Java |
/*
* Copyright 2012 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 in w... | Java |
/*
* Copyright 2012 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 in w... | Java |
/*
* Copyright 2012 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 in w... | Java |
/*
* Copyright 2012 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 in w... | Java |
/*
* Copyright 2012 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 in... | Java |
/*
* Copyright 2012 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 in... | Java |
/*
* Copyright 2012 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 in... | Java |
/*
* Copyright 2012 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 in... | Java |
/*
* Copyright 2012 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 in... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.