text
stringlengths
3
1.18M
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 pojo; import java.io.Serializable; import java.util.ArrayList; import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; import javax.faces.bean.SessionScoped; import dao.util.ProduitsDAO; /** * @author IBD JMDSD * */ @ManagedBean @SessionScoped public cl...
package jdbc; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; /** * * @author IBD, JMDSD * */ public class ConnectionJavaDB { /** * */ private static DataSource datasource; /** * @return */ publ...
package dao; import java.util.List; import javax.sql.DataSource; import jdbc.ConnectionJavaDB; /** * @author IBD, JMDSD * * @param <T> */ public abstract class DAO<T> { /** * */ public DataSource datasource = ConnectionJavaDB.getInstance(); /** * @param obj * @return */ publ...
/** * */ package dao; import dao.DAO; import dao.util.ProduitsDAO; import pojo.Produit; /** * @author IBD, JMDSD * */ public class DAOFactory { /** * @return */ public static DAO<Produit> getDAOProduits(){ return new ProduitsDAO(); } }
package traitement; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Hashtable; import javax.servlet.Servlet; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.ht...
package traitement; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Servlet implementation class GestionPa...
package dao; import dao.DAO; import dao.util.ProduitsDAO; import pojo.Produit; /** * @author IBD, JMDSD * */ public class DAOFactory { /** * @return une instance de ProduitsDAO */ public static DAO<Produit> getDAOProduits(){ return new ProduitsDAO(); } }
package traitement; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Hashtable; import javax.servlet.Servlet; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.ht...
package jdbc; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.sql.DataSource; /** * * @author IBD, JMDSD * */ public class ConnectionJavaDB { /** * */ private static DataSource datasource; /** * @return */ publ...
package dao; import java.util.List; import javax.sql.DataSource; import jdbc.ConnectionJavaDB; /** * @author IBD JMDSD * * @param <T> */ public abstract class DAO<T> { /** * */ public DataSource datasource = ConnectionJavaDB.getInstance(); /** * @param obj * @return */ publi...
/** * */ package dao; import dao.DAO; import dao.util.ProduitsDAO; import pojo.Produits; /** * @author IBD, JMDSD * */ public class DAOFactory { /** * @return */ public static DAO<Produits> getDAOProduits(){ return new ProduitsDAO(); } }
package com.example.audiotest; import android.util.Log; public class AppLog { private static final String APP_TAG = "AudioRecorder"; public static int logString(String message){ return Log.i(APP_TAG,message); } }
package com.example.audiotest; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import android.app.Activity; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaRecorder; import android.os.Bundle; import android.os.En...
package com.icekirin.android.shanzhaidaily; import android.app.Activity; import android.os.Bundle; public class Main extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2012 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
package net.majorkernelpanic.spydroid; /** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999. * * This program is free software; you can redistribute it and/or modify * it under the terms of the latest version of the GNU Lesser General * Public License as published by the Fr...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2012 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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; eit...
/* * Copyright (C) 2011 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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; eit...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2012 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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; eit...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * With the help of Havlena Petr, havlenapetr@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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; eit...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
package net.majorkernelpanic.streaming.audio; import java.io.IOException; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostException; import net.majorkernelpanic.streaming.Stream; import android.net.rtp.AudioCodec; import android.net.rtp.AudioGroup; import android.net.rtp.Audio...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
/* * Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com * * This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/) * * Spydroid 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...
package database; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.NumberFormat; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import jav...
package database; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.SQLException; import java.text.NumberFormat; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; ...
package database; import java.sql.*; import java.util.ArrayList; //import com.sun.xml.internal.ws.org.objectweb.asm.Type; public class Database { private Connection con = null; /* * connect to database */ public void connectJDBC(String username, String password) throws SQLException { // load jdbc driver ...
package com.example.helloandroid; import android.app.Activity; import android.os.Bundle; public class MyActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte...
/** Automatically generated file. DO NOT MODIFY */ package com.example.helloandroid; public final class BuildConfig { public final static boolean DEBUG = true; }
/* * Copyright (C) 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 ...
/* * Copyright (C) 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 agree...
/** Automatically generated file. DO NOT MODIFY */ package com.android.demo.notepad1; public final class BuildConfig { public final static boolean DEBUG = true; }
/* * Copyright (C) 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 ...
/* * Copyright (C) 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 agree...
package fortytwo.yabe.client; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The async counterpart of <code>GreetingService</code>. */ public interface GreetingServiceAsync { void greetServer(String input, AsyncCallback<String> callback) throws IllegalArgumentException; }
package fortytwo.yabe.client; import fortytwo.yabe.shared.FieldVerifier; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; ...
package fortytwo.yabe.client; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath("greet") public interface GreetingService extends RemoteService { String greetS...
package fortytwo.yabe.shared; /** * <p> * FieldVerifier validates that the name the user enters is valid. * </p> * <p> * This class is in the <code>shared</code> package because we use it in both * the client code and on the server. On the client, we verify that the name is * valid before sending an RP...
package fortytwo.yabe.server; import fortytwo.yabe.client.GreetingService; import fortytwo.yabe.shared.FieldVerifier; import com.google.gwt.user.server.rpc.RemoteServiceServlet; /** * The server side implementation of the RPC service. */ @SuppressWarnings("serial") public class GreetingServiceImpl extends...
// LA3486 陈锋 import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Stack; import java.util.StringTokenizer; public class Main { static Reader stdin = new Read...
// UVa11294 Wedding // 陈锋 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Stack; import java.util.StringTokenizer; public class Main { pri...
/* * TODO put header */ package eu.lighthouselabs.obd.reader.activity; import java.util.ArrayList; import java.util.Set; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.SharedPreferences; import android.os.Bundle; import androi...
/* * TODO put header */ package eu.lighthouselabs.obd.reader.activity; import java.util.List; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.bluetooth.BluetoothAdapter; import android.content.Context; import android.content.Intent; import android.content.Share...
/* * TODO put header */ package eu.lighthouselabs.obd.reader.io; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This class represents a job that ObdGatewayService will have to execute and * maintain until the job is finished. It is, thereby, the application * representation of an ObdCommand instance plu...
/* * TODO put header */ package eu.lighthouselabs.obd.reader.io; import java.io.IOException; import java.util.ArrayList; import java.util.UUID; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.atomic.AtomicBoolean; import android.app.Notificatio...
/* * TODO put header */ package eu.lighthouselabs.obd.reader.io; import android.content.ComponentName; import android.content.ServiceConnection; import android.os.IBinder; import android.util.Log; import eu.lighthouselabs.obd.reader.IPostListener; import eu.lighthouselabs.obd.reader.IPostMonitor; /** * Service con...
package eu.lighthouselabs.obd.reader.drawable; import eu.lighthouselabs.obd.reader.R; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Typeface; import android.graphics.drawable.D...