code
stringlengths
3
1.18M
language
stringclasses
1 value
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
package com.map_project; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class MySQLiteHelper extends SQLiteOpenHelper { public static final String TABLE_GEOPOINTS = "comments"; public static...
Java
package com.map_project; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; public class Show_data extends Activity{ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent ...
Java
package com.map_project; import java.util.ArrayList; import android.app.ListActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; import android.widget.ListView; public class Yfirlit extends ListActivity{ @Override public void onCreate(B...
Java
package com.map_project; import java.util.ArrayList; import android.app.AlertDialog; import android.content.Context; import android.graphics.drawable.Drawable; import com.google.android.maps.ItemizedOverlay; import com.google.android.maps.MapView; import com.google.android.maps.OverlayItem; public cla...
Java
package com.map_project; public class MapLocationManager { }
Java
package com.map_project; import java.util.StringTokenizer; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import android.os.Bundle; import android.app.Activity; import android.app.ProgressDialog; import android.util.Log; import android.data...
Java
/*----------------------------------------------------------------------------*/ /* 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...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; public class RobotDrive { private SpeedController frontLeftDriveMotor; private SpeedController frontRightDriveMotor; private SpeedController rearRightDriveMotor; pri...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.KinectStick; public class Kinect { KinectStick leftArm; KinectStick rightArm; private final double DEAD_ZONE_LEFT = 10; private final double DEAD_ZONE_RIGHT = 10; public Kinect(int leftArm, int rightArm) { ...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Dashboard; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.SimpleRobot; import edu.wpi.first.wpilibj.Skeleton; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.cam...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; public class RobotDrive { private SpeedController frontLeftDriveMotor; private SpeedController frontRightDriveMotor; private SpeedController rearRightDriveMotor; pri...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu.wpi.first.wpilibj.image.BinaryImage; import edu.wpi.first.wpilibj.image.ColorImage; import edu.wpi.first.wpilibj.image....
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.KinectStick; public class Kinect { KinectStick leftArm; KinectStick rightArm; private final double DEAD_ZONE_LEFT = 10; private final double DEAD_ZONE_RIGHT = 10; public Kinect(int leftArm, int rightArm) { ...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.SpeedController; public class Shooter { SpeedController flyWheel; double targetSpeed; Solenoid launcher; public Shooter(int flyWheel...
Java
/*----------------------------------------------------------------------------*/ /* 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...
Java
package robot; import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.SimpleRobot; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.image.CriteriaCollection; public class RobotMain exte...
Java
package robot; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; public class RobotDrive { private SpeedController frontLeftDriveMotor; private SpeedController frontRightDriveMotor; private SpeedController rearRightDriveMotor; private SpeedControll...
Java
package robot; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu.wpi.first.wpilibj.image.BinaryImage; import edu.wpi.first.wpilibj.image.ColorImage; import edu.wpi.first.wpilibj.image.CriteriaCollection...
Java
package robot; import edu.wpi.first.wpilibj.KinectStick; public class Kinect { KinectStick leftArm; KinectStick rightArm; private final double DEAD_ZONE_LEFT = 10; private final double DEAD_ZONE_RIGHT = 10; public Kinect(int leftArm, int rightArm) { this.left...
Java
package robot; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.Timer; public class Shooter { SpeedController flyWheel; double targetSpeed; Solenoid launcher; public S...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.SimpleRobot; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.camera.AxisCamera; public class RobotMain extends SimpleRobot { ...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.SpeedController; public class RobotDrive { private SpeedController frontLeftDriveMotor; private SpeedController frontRightDriveMotor; private SpeedController rearRightDriveMotor; ...
Java
package edu.wpi.first.wpilibj.templates; import com.sun.squawk.util.MathUtils; import edu.wpi.first.wpilibj.DriverStationLCD; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu.wpi.first.wpilibj.image.BinaryIm...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.KinectStick; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class Kinect { KinectStick leftArm; KinectStick rightArm; private final double DEAD_ZONE_LEFT = 10; private final double DEAD_ZONE_RI...
Java
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.Solenoid; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.Timer; public class Shooter { SpeedController flyWheel; double targetSpeed; Solenoid lau...
Java
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2011. 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...
Java
package databasetest; import java.awt.SystemColor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.swing.JButton; import javax.swing.JInternalFrame; import javax.swing.JLabel; im...
Java
package databasetest; import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMet...
Java
package databasetest; import java.awt.EventQueue; import javax.swing.JInternalFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JButton; import java.awt.SystemColor; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sq...
Java
package databasetest; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JMenuBar; import javax.swing.JMenu; import javax.swing.JMenuItem; import java.awt.event.ActionListener; import ...
Java
package databasetest; import java.awt.EventQueue; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.naming.spi.DirStateFactory.Result; import javax.swing.JInternalFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JButton...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase BurglarCreditos muestra los créditos del juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.30) */ public class BurglarCreditos extends World { private FlechaAtras flecha; private Greenfo...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Handcuffs es un enemigo que aparece en el nivel 1, y es tocada por el jugador * se tendrán que quitar puntos. * * @author (Cerda Varela Ignacio) * @version (2014.11.16) */ public class Handcuffs extends Enem...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Quinientos es un billete que tiene un valor de 500 puntos para el jugador. * * @author (Cerda Varela Ignacio) * @version (2014.11.7) */ public class Quinientos extends Money { private int valor; /**...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase BurglarAyuda muestra la ayuda que necesita de saber el usuario para el juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.26) */ public class BurglarAyuda extends World { private FlechaAtras f...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Uno es una subclase de Money, que va a permitir al jugador acumular puntos cuando recoga * una de moneda con valor de 1 de esta clase. * * @author (Cerda Varela Ignacio) * @version (2014.11.22) */ public cla...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La BurglarRecords muestra la información que se tiene de los jugadores y su puntuación. * * @author (Cerda Varela Ignacio) * @version (2014.11.26) */ public class BurglarRecords extends World { private FlechaAt...
Java
/** * A simple timer class that allows you to keep track of how much time * has passed between events. * * You use this class by creating a timer as a member field in your actor (or whatever): * <pre> * * private SimpleTimer timer = new SimpleTimer(); * </pre> * * Then when you want to start the timer (for...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.util.List; /** * An actor class that can display a scoreboard, using Greenfoot's * UserInfo class. * * You typically use this by including some code into the world for when your game ends: * * <...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Lines permite dibujar el laberinto del juego con ayuda de una barra. * * @author (Cerda Varela Ignacio) * @version (2014.11.15) */ public class Lines extends Actor { private GreenfootImage imagen; ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *La clase BurglarMenu contiene al menu principal del juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.26) */ public class BurglarMenu extends World { private GreenfootImage fondo; private BotonPla...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Play dibuja un botón que se dirigira al juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.24) */ public class Play extends Actor { private GreenfootImage botonPlay; /** * constructor...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Bomb aparece como enemigo en el tercer nivel y le quita una vida al jugador * en case de que llegue a tocarla. * * @author (Cerda Varela Ignacio) * @version (2014.11.16) */ public class Bomb extends Enemy {...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import greenfoot.UserInfo; /** * La clase Records va a guardar la puntuación del juegador y mostrará los récords del menú las * puntuaciones más altas. * * @author (Cerda Varela Ignacio) * @version (2014.11.26) */ public...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *La clase Cinco va a permitir al jugador acumular puntos cuando recoga esta moneda *con valor de 5. * * @author (Cerda Varela Ignacio) * @version (2014.11.22) */ public class Cinco extends Money { private int val...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Alarm aparece como enemigo en el tercer nivel y se activa cuando el ladron haya recogido * todo el dinero, y si no llega a la salida en un determinado tiempo perderá todo el dinero. * * @author (Cerda Varela Ignac...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Policeman es un enemigo del juego que va a tener movimiento en el escenario, tratando de atrapar al ladron. * * @author (Cerda Varela Ignacio) * @version (2014.11.22) */ public class Policeman extends Enemy {...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Burglar contiene al personaje principal del juego, un ladrón. En esta clase se crea una * imagen del personaje que va a tener vidas y puntos , asi como movimiento del ladrón en el escenario, * para esto es necesar...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Diez permitirá al jugador acumular puntos cuando recoga esta moneda con valor de 10. * * @author (Cerda Varela Ignacio) * @version (2014.11.22) */ public class Diez extends Money { private int valor; ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Font; import java.awt.Color; /** * La clase Letrero va a permitir mostrar un mensaje cuando el juego termina, dicho mensaje * dirá que el juego ha terminado o cuando se ha ganado. * * @author (Cerda Varela Igna...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Money permite crear los billetes de diferentes valores para que despues el ladron acumule puntos al recogerlos. * * @author (Cerda Varela Ignacio) * @version (2014.11.7) */ public class Money extends Actor { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase PepperGas es un enemigo del segundo nivel, que si llega ser tocado por el ladron se le quita * una vida al jugador. * * @author (Cerda Varela Ignacio) * @version (2014.11.16) */ public class PepperGas extend...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Enemy contiene a los enemigos del ladron, que le quitaran puntos o vidas. * * @author (Cerda Varela Ignacio) * @version (2014.11.19) */ public class Enemy extends Actor { /**Constante entera que represen...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; /** * A Counter class that allows you to display a numerical value on screen. * * The Counter is an actor, so you will need to create it, and then add it to * the world in Greenfoot. If you keep a reference to ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Patrol es un enemigo del juego que andará tratanto de atrapar al ladron. * * @author (Cerda Varela Ignacio) * @version (2014.11.22) */ public class Patrol extends Enemy { private GreenfootImage patrulla;...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Veinte es una subclase de Money, tendrá que ser recogido por el jugador para acumular 20 puntos. * * @author (Cerda Varela Ignacio) * @version (2014.11.18) */ public class Veinte extends Money { private ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase BurglarWorld va a contener el escenario del juego y también donde se controlarán los niveles. * Esto incluye creación de personajes u objetos y su movimiento(si es que lo tiene). * También incluye los métodos de acce...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** *La clase Cincuenta es un billete que tiene un valor de cincuenta puntos para el ladron. * * @author (Cerda Varela Ignacio) * @version (2014.11.7) */ public class Cincuenta extends Money { private int valor; /...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Cien es una subclase de Money y tendrá que ser recogido por el jugador para acumular 100 puntos * * @author (Cerda Varela Ignacio) * @version (2014.11.18) */ public class Cien extends Money { private in...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Doscientos es un objeto que hereda de Money. Esta clase tiene un valor de tipo entero que igual a 200. * * @author (Cerda Varela Ignacio) * @version (2014.11.7) */ public class Doscientos extends Money { ...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Ground aparece en el último nivel y cuando el jugador llegue a la meta * despues de recoger el dinerohabrá ganado el juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.20) */ public class Ground e...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase Play dibuja un botón que se dirigira al juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.24) */ public class BotonPlay extends Actor { private GreenfootImage botonPlay; /** * constr...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase BotonAyuda va a dibujar un botón que nos dirigira a BurglarAyuda para mostrar * la información necesaria del juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.25) */ public class BotonAyuda exten...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase BotonRecords dibuja un botón, que al ser presionado mostrará los records de los jugadores. * * @author (Cerda Varela Ignacio) * @version (2014.11.30) */ public class BotonRecords extends Actor { private G...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La flecha FlechaAtras va a permitir regresar al menú del juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.26) */ public class FlechaAtras extends Actor { private GreenfootImage flecha; private G...
Java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * La clase BotonCreditos dibuha un botón que al ser presionado mostrará los créditos del juego. * * @author (Cerda Varela Ignacio) * @version (2014.11.30) */ public class BotonCreditos extends Actor { private Gree...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
package com.google.android.apps.mytracks.services.sensors; import com.google.android.apps.mytracks.Constants; import com.google.android.maps.mytracks.R; import android.content.SharedPreferences; import android.test.AndroidTestCase; import android.test.suitebuilder.annotation.SmallTest; public class SensorManagerFact...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
package com.google.android.apps.mytracks.services.sensors; import com.google.android.apps.mytracks.content.Sensor; import junit.framework.TestCase; public class ZephyrMessageParserTest extends TestCase { ZephyrMessageParser parser = new ZephyrMessageParser(); public void testIsValid() { byte[] buf = new by...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
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 in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
// Copyright 2009 Google Inc. All Rights Reserved. package com.google.android.apps.mytracks.stats; import com.google.android.apps.mytracks.Constants; import android.location.Location; import junit.framework.TestCase; /** * Test the the function of the TripStatisticsBuilder class. * * @author Sandor Dornbush */...
Java
/* * Copyright 2009 Google Inc. All Rights Reserved. */ package com.google.android.apps.mytracks.stats; import junit.framework.TestCase; /** * Test for the DoubleBuffer class. * * @author Sandor Dornbush */ public class DoubleBufferTest extends TestCase { /** * Tests that the constructor leaves the buffe...
Java
/** * Copyright 2009 Google Inc. All Rights Reserved. */ package com.google.android.apps.mytracks.stats; import junit.framework.TestCase; import java.util.Random; /** * This class test the ExtremityMonitor class. * * @author Sandor Dornbush */ public class ExtremityMonitorTest extends TestCase { public Extre...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
// Copyright 2010 Google Inc. All Rights Reserved. package com.google.android.apps.mytracks.testing; import com.google.android.apps.mytracks.content.MyTracksProviderUtils; import com.google.android.apps.mytracks.content.MyTracksProviderUtils.Factory; import android.content.Context; /** * A fake factory for {@link ...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
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
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java