text stringlengths 3 1.18M |
|---|
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 {
/*
* размер кеша (для каждого... |
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;
/**
* Предоставляет возм... |
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 ... |
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 =... |
/*
* 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... |
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;
... |
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 ... |
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... |
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... |
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... |
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... |
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 {
/**
* Цве... |
package tyt.android.bigplanettracks.maps.ui;
/**
* Обработчик для кнопок в диалоговом окне
* @author hudvin
*
*/
public abstract class OnDialogClickListener {
public abstract void onOkClick(Object obj);
public abstract void onCancelClick();
}
|
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... |
package tyt.android.bigplanettracks.maps.ui;
public abstract class OnMapLongClickListener {
public abstract void onMapLongClick(int x, int y);
}
|
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... |
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... |
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... |
package tyt.android.bigplanettracks.maps.ui;
import android.graphics.Point;
import android.view.MotionEvent;
/**
* Предназначен для обработки двойного клика
*
* @author hudvin
*
*/
public class DoubleClickDetector {
/**
* Минимальный временной промежуток между двумя отдельными касаниями, при
* котором он... |
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... |
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... |
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);
}
}
|
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;
... |
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... |
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... |
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... |
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... |
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,... |
package tyt.android.bigplanettracks.maps;
public abstract class AbstractCommand {
public void execute(){};
public void execute(Object obj){};
}
|
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... |
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... |
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... |
/*
* 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... |
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... |
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... |
/*
* 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... |
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... |
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... |
/*
* 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... |
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... |
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... |
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... |
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... |
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;
... |
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... |
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... |
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... |
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... |
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 *... |
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... |
/*
* 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 ... |
/*
* 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 ... |
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... |
/*
* 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 ... |
package com.hexad.bluezime;
import java.util.Hashtable;
import android.content.Context;
import android.util.Log;
import android.view.KeyEvent;
public class iCadeReader extends HIDReaderBase {
private static final boolean D = false;
private static final boolean SHOW_RAW = false;
public static final String DRIVE... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/*
* Copyright (C) 2006 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... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
package com.hexad.bluezime;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
public class BluezForegroundService extends Service {
priv... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
package com.hexad.bluezime;
import java.util.Hashtable;
import android.content.Context;
import android.util.Log;
import android.view.KeyEvent;
public class HIDKeyboard extends HIDReaderBase {
private static final boolean D = false;
private static final boolean SHOW_RAW = false;
public static final String DRIVE... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
package com.hexad.bluezime;
import java.lang.reflect.InvocationTargetException;
import java.util.UUID;
import android.content.Context;
import android.util.Log;
import android.view.KeyEvent;
public class GameStopReader extends RfcommReader {
private static final boolean D = false;
public static final String DRI... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
package com.hexad.bluezime;
import java.util.Hashtable;
import android.content.Context;
import android.util.Log;
import android.view.KeyEvent;
public class HIDipega extends HIDReaderBase {
private static final boolean D = false;
private static final boolean SHOW_RAW = false;
public static final String DRIVER_N... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
/* Copyright (C) 2011, Kenneth Skovhede
* http://www.hexad.dk, opensource@hexad.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (... |
package com.hexad.bluezime.testapp;
import java.util.ArrayList;
import java.util.HashMap;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
... |
package com.food;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import android.util.Log;
public class DBConnection
{
private static String driver = "net.sourceforge.jtds.jdbc.Driver";
private static fin... |
package com.food;
public class Restaurant
{
public int tlfnr;
public float longitude;
public float latitude;
public byte[] ImagePic;
private Float leveringspris;
public Restaurant()
{
}
public int getTlfnr() {
return tlfnr;
}
public void setTlfnr(int tlfnr) {
this.tlfnr = tlfn... |
package com.food;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import com.food.zoom.TouchImageView;
import android.R.string;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.gr... |
package com.food.zoom;
import com.food.DBConnection;
import android.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.util.Attrib... |
/*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.food.zoom;
import com.food.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class OverviewActivity extends Activity implements View.OnClickListener {
@Override
public void onCreate(Bundle savedInstanceState) {
s... |
package com.food;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.location.LocationProvider;
import android.os.Bundle;
import android.util.Log... |
package innreservations;
//import com.sun.xml.internal.ws.api.pipe.NextAction;
import java.sql.*;
import java.util.*;
import java.io.*;
import java.lang.*;
/**
*
* @author Ethan Frame, Grant Frame, Timothy Phan
*/
public class InnReservations {
/**
* @param args the command line arguments
*/
publ... |
package innreservations;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import java.sql.*;
impo... |
package innreservations;
/**
*
* @author Ethan
*/
public class PlaceReservation extends javax.swing.JFrame {
private String start_date;
private String end_date;
private String room_name;
private String rate;
private boolean violate_max_occupancy = false;
/**
* Creates new for... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package innreservations;
/**
*
* @author werttybob
*/
public class InnReservations {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code ap... |
package com.first.fhsemit.recycle;
import java.util.ArrayList;
import edu.wpi.first.wpilibj.AnalogInput;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.Relay.Value;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDa... |
package com.first.fhsemit.recycle;
import edu.wpi.first.wpilibj.AnalogInput;
public class RangeFinder {
AnalogInput finder;
final double inRange = 0.29;
public RangeFinder(AnalogInput finder) {
this.finder = finder;
}
public boolean isInRange(){
return finder.getVoltage() <= inRange; //TOD... |
package com.first.fhsemit.recycle;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.Timer;
public class TeleopDrive {
private Timer strafeTimer;
private boolean isStrafing;
double slowStrafeSpeed;
double strafeSpeed;
double turnSpeed;
... |
package com.first.fhsemit.recycle;
import java.util.function.Predicate;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.CANTalon.ControlMode;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public... |
package com.first.fhsemit.recycle;
import edu.wpi.first.wpilibj.AnalogInput;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Gyro;
import edu.wpi.first.wpilibj.I2C;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
import... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory... |
package org.sandrob.bouncycastle.jce.interfaces;
import java.math.BigInteger;
import java.security.PublicKey;
public interface ElGamalPublicKey
extends ElGamalKey, PublicKey
{
public BigInteger getY();
}
|
package org.sandrob.bouncycastle.jce.interfaces;
import java.math.BigInteger;
import java.security.PrivateKey;
/**
* interface for Elliptic Curve Private keys.
*/
public interface ECPrivateKey
extends ECKey, PrivateKey
{
/**
* return the private value D.
*/
public BigInteger getD();
}
|
package org.sandrob.bouncycastle.jce.interfaces;
/**
* Implemented by the BC provider. This allows setting of hidden parameters,
* such as the ImplicitCA parameters from X.962, if used.
*/
public interface ConfigurableProvider
{
static final String THREAD_LOCAL_EC_IMPLICITLY_CA = "threadLocalEcImplicitlyCa... |
package org.sandrob.bouncycastle.jce.interfaces;
import java.math.BigInteger;
import java.security.PrivateKey;
public interface ElGamalPrivateKey
extends ElGamalKey, PrivateKey
{
public BigInteger getX();
}
|
package org.sandrob.bouncycastle.jce.interfaces;
import java.util.Enumeration;
import org.sandrob.bouncycastle.asn1.DEREncodable;
import org.sandrob.bouncycastle.asn1.DERObjectIdentifier;
/**
* allow us to set attributes on objects that can go into a PKCS12 store.
*/
public interface PKCS12BagAttributeCarrier
{
... |
package org.sandrob.bouncycastle.jce.interfaces;
import org.sandrob.bouncycastle.jce.spec.ECParameterSpec;
/**
* generic interface for an Elliptic Curve Key.
*/
public interface ECKey
{
/**
* return a parameter specification representing the EC domain parameters
* for the key.
*/
public ECPar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.