code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * 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
/** Automatically generated file. DO NOT MODIFY */ package com.google.android.gcm; public final class BuildConfig { public final static boolean DEBUG = true; }
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
/* * 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
package bean; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JLabel; import javax.swing.Timer; public class JLabelCronometro2 extends JLabel implements ActionListener{ Timer timer; private int segundos=0; private int minutos=0; ...
Java
package bean; import javax.swing.ImageIcon; public class JImageIcon { public ImageIcon crearImageIcon(String ruta) { java.net.URL imgenURL = getClass().getClassLoader().getResource(ruta); if (imgenURL != null) { return new ImageIcon(imgenURL, ""); } else { System.err.println("No se puede enc...
Java
package modelo; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; public class FraseDAO { public FraseDAO() { super(); } public void registrarFrase(Frase frase){ String tiraSQL = "INSERT INTO frase"+ "(idfrase, descripcion, nivel) "+ "VALUES("+ ...
Java
package bean; import javax.swing.ImageIcon; public class EtiquetaImagen { public ImageIcon crearImageIcon(String ruta) { java.net.URL imgenURL = getClass().getClassLoader().getResource(ruta); if (imgenURL != null) { return new ImageIcon(imgenURL, ""); } else { System.err.println("No se puede...
Java
package bean; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JLabel; import javax.swing.Timer; public class JLabelCronometro extends JLabel implements ActionListener{ /** * */ private static final long serialVersionUID = 1L; ...
Java
package vista; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Vector; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.WindowConstants; import javax.swing.SwingUtilities; import modelo.FraseDAO; /** * This code was e...
Java
package controlador; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import vista.VentanaMenu; public class ControladorVentanaMenu implements ActionListener{ private VentanaMenu ventanaMenu; public ControladorVentanaMenu() { super(); this.ventanaMenu = new VentanaMenu(...
Java
package controlador; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import modelo.Frase; import modelo.FraseDAO; import modelo.Nivel; import modelo.NivelDAO; import vista.VentanaFrase; public class ControladorVentanaFrase implements ActionListener { private VentanaFrase ve...
Java
package controlador; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Time; import java.text.SimpleDateFormat; import java.util.Enumeration; import java.util.Locale; import java.util.Vector; import modelo.FraseDAO; import modelo.JugadorDAO; import vista.VentanaJug...
Java
package controlador; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.Time; import modelo.Jugador; import modelo.JugadorDAO; import modelo.Nivel; import modelo.NivelDAO; import vista.VentanaRegistrarJugador; public class ControladorRegistrarJugador implements Act...
Java
package controlador; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.List; import java.util.Vector; import modelo.JugadorDAO; import modelo.Nivel; import modelo.NivelDAO; import vista.VentanaJugadorModeloTabla; import vista.VentanaListadoJugador; public class ...
Java
package vista; import java.awt.BorderLayout; import java.awt.Image; import java.awt.event.ActionListener; import javax.swing.ButtonGroup; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JRadioButton; imp...
Java
package vista; import java.awt.BorderLayout; import java.awt.event.ActionListener; import java.util.Vector; import javax.swing.ComboBoxModel; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScr...
Java
package vista; import java.util.ArrayList; import java.util.List; import java.util.Vector; import javax.swing.table.AbstractTableModel; public class VentanaJugadorModeloTabla extends AbstractTableModel { private static String[] titulos = {"Nombre del Jugador", "Puntaje", "Nivel"}; private List<Vector<St...
Java
package vista; import java.awt.BorderLayout; import java.awt.event.ActionListener; import javabean.JPanelImagen; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.ButtonGroup; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JRadioButton; ...
Java
package vista; import java.awt.BorderLayout; import java.awt.event.ActionListener; import java.util.Vector; import javax.swing.ComboBoxModel; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing....
Java
package modelo; import java.sql.*; public class Conexion { // La descripcion del driver de la BD private static String driver = "org.postgresql.Driver"; // La direccion URL de la BD private static String url = "jdbc:postgresql://localhost:5432/"; // El nombre de la BD priv...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.PercentageObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Read the throttle position in percentage. */ public class ThrottlePositionObdCommand extends PercentageObdCommand { /...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.PercentageObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Calculated Engine Load value. */ public class EngineLoadObdCommand ex...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Displays the current engine revolutions per minute (RPM). */ public class EngineRPMObdCommand extends ObdCommand { private int...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description * * Mass Air Flow */ public class MassAirFlowObdCommand extends ObdCommand { private float _maf = -1.0f...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.engine; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description */ public class EngineRuntimeObdCommand extends ObdCommand { /** * Default ctor. */ public EngineRunt...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Fuel systems that use conventional oxygen sensor display the commanded open * loop equivalence ratio while the system is in open...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * In order to get ECU Trouble Codes, one must first send a DtcNumberObdCommand * and by so, determining the number of error codes ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.PercentageObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description * * Timing Advance */ public class TimingAdvanceObdCommand extends PercentageObdCommand { pu...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.control; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * This command will for now read MIL (check engine light) state and number of * diagnostic trouble codes currently flagged in the ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This command will turn-off echo. */ public class EchoOffObdCommand extends ObdCommand { /** * @param command */ public EchoOffObdCommand() { super("AT E0"); } /** * @param...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import java.io.IOException; import java.io.InputStream; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This method will reset the OBD connection. */ public class ObdResetCommand extends ObdCommand { /** * @param command */ ...
Java
/* * TODO put description */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; /** * This will set the value of time in milliseconds (ms) that the OBD interface * will wait for a response from the ECU. If exceeds, the response is "NO DATA". */ public class Timeout...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.ObdProtocols; /** * Select the protocol to use. */ public class SelectProtocolObdCommand extends ObdCommand { private final ObdProtocols _protocol; /**...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.protocol; import eu.lighthouselabs.obd.commands.ObdCommand; /** * Turns off line-feed. */ public class LineFeedOffObdCommand extends ObdCommand { /** * @param command */ public LineFeedOffObdCommand() { super("AT L0"); } /** * @param oth...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Engine Coolant Temperature. */ public class EngineCoolantTemperatureObdCommand extends TemperatureObdCommand { /** * */ public EngineCoolantTemperatureObdCommand() { ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO * * put description */ public class AirIntakeTemperatureObdCommand extends TemperatureObdCommand { public AirIntakeTemperatureObdCommand() { super("01 0F"); } ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SystemOfUnits; /** * TODO * * put description */ public abstract class TemperatureObdCommand extends ObdCommand implements SystemOfUnits { priva...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.temperature; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Ambient Air Temperature. */ public class AmbientAirTemperatureObdCommand extends TemperatureObdCommand { /** * @param cmd */ public AmbientAirTemperatureObdCommand() ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.utils; /** * Misc utilities */ public final class ObdUtils { /** * @param an integer value * @return the equivalent FuelType name. */ public final static String getFuelTypeName(int value) { String name = null; switch (value) { case 1: ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Get fuel level in percentage */ public class FuelLevelObdCommand extends ObdCommand { private float fuelLevel = 0f; /** * @p...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SpeedObdCommand; import eu.lighthouselabs.obd.commands.control.CommandEqu...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.enums.AvailableCommandNames; import eu.lighthouselabs.obd.enums.FuelType; /** * TODO put description */ public class FuelEconomyWithMAFObdCommand { private int speed = 1; private double maf = 1; private float lt...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SpeedObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames;...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.FuelTrim; /** * Get Fuel Trim. * */ public class FuelTrimObdCommand extends ObdCommand { private float fuelTrimValue = 0.0f; private final FuelTrim bank; ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description */ public class FuelConsumptionObdCommand extends ObdCommand { private float fuelRate = -1.0f; public Fue...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.fuel; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.utils.ObdUtils; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * This command is intended to determine the vehicle fuel type. */ public class...
Java
package eu.lighthouselabs.obd.commands.pressure; import eu.lighthouselabs.obd.enums.AvailableCommandNames; public class FuelPressureObdCommand extends PressureObdCommand { public FuelPressureObdCommand() { super("010A"); } public FuelPressureObdCommand(FuelPressureObdCommand other) { super(other); } /** ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.pressure; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * Intake Manifold Pressure */ public class IntakeManifoldPressureObdCommand extends PressureObdCommand { /** * Default ctor. */ public IntakeManifoldPressureObdCommand() {...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands.pressure; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SystemOfUnits; /** * TODO put description */ public abstract class PressureObdCommand extends ObdCommand implements SystemOfUnits { protected int te...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; /** * This interface will define methods for converting to/from imperial units and * from/to metric units. */ public interface SystemOfUnits { float getImperialUnit(); }
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; /** * TODO put description */ public abstract class ObdCommand { protected ArrayList<Integer> buffer = null; protected String cmd = n...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; /** * TODO put description */ public class ObdMultiCommand { private ArrayList<ObdCommand> commands; /** * Default ctor. */ pu...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.commands; import eu.lighthouselabs.obd.enums.AvailableCommandNames; /** * TODO put description * * Current speed. */ public class SpeedObdCommand extends ObdCommand implements SystemOfUnits { private int metricSpeed = 0; /** * Default ctor. */ publ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; /** * TODO put description */ public enum AvailableCommandNames { AIR_INTAKE_TEMP("Air Intake Temperature"), AMBIENT_AIR_TEMP("Ambient Air Temperature"), ENGINE_COOLANT_TEMP("Engine Coolant Temperature"), BAROMETRIC_PRESSURE("Barometric Pressure"), ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; /** * All OBD protocols. */ public enum ObdProtocols { /** * Auto select protocol and save. */ AUTO('0'), /** * 41.6 kbaud */ SAE_J1850_PWM('1'), /** * 10.4 kbaud */ SAE_J1850_VPW('2'), /** * 5 baud init */ ISO_9141_2('3'), ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; /** * Select one of the Fuel Trim percentage banks to access. */ public enum FuelTrim { SHORT_TERM_BANK_1(0x06), LONG_TERM_BANK_1(0x07), SHORT_TERM_BANK_2(0x08), LONG_TERM_BANK_2(0x09); private final int value; /** * * @param value */ pr...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.enums; import eu.lighthouselabs.obd.commands.utils.ObdUtils; /** * MODE 1 PID 0x51 will return one of the following values to identify the fuel * type of the vehicle. */ public enum FuelType { GASOLINE(0x01), METHANOL(0x02), ETHANOL(0x03), DIESEL(0x04), ...
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader.config; import java.util.ArrayList; import eu.lighthouselabs.obd.commands.ObdCommand; import eu.lighthouselabs.obd.commands.SpeedObdCommand; import eu.lighthouselabs.obd.commands.control.CommandEquivRatioObdCommand; import eu.lighthouselabs.obd.commands.c...
Java
package eu.lighthouselabs.obd.reader.network; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URI; import java.net.URISyntaxException; import java.net.URLEncoder; import java.util.Iterator; import java.util.Map; import org.apache.http.client.HttpClient; import org.apache.http....
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader; import eu.lighthouselabs.obd.reader.io.ObdCommandJob; /** * TODO put description */ public interface IPostMonitor { void setListener(IPostListener callback); boolean isRunning(); void executeQueue(); void addJobToQueue(ObdCommandJob job); }
Java
/* * TODO put header */ package eu.lighthouselabs.obd.reader; import eu.lighthouselabs.obd.reader.io.ObdCommandJob; /** * TODO put description */ public interface IPostListener { void stateUpdate(ObdCommandJob job); }
Java
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...
Java
package eu.lighthouselabs.obd.reader.drawable; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; import android.util.AttributeSet; i...
Java
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...
Java
/* * 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...
Java
/* * 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...
Java
/* * 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...
Java
/* * 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...
Java
/* * 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...
Java
package client; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; import server.Command; public class Client { public static void main(String args[]){ try{ BufferedReader in = new BufferedReader( new InputStrea...
Java
package server; import server.clients.ClientList; public class OnlinePeers extends Thread { private ClientList clientList; public OnlinePeers(ClientList clientList) { this.clientList = clientList; } public void run() { while (true) { } } }
Java
package server; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.InetAddress; import java.net.Socket; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; publi...
Java
package server; public class newConnection extends Thread { private String confPort, port, aPort, aIp; public newConnection(String confPort, String port, String aPort, String aIp) throws Exception { this.confPort = confPort; this.port = port; this.aIp = aIp; this.aPort = aPort; } public v...
Java
package server; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Properties; public class Configuration { Properties configFile = new java.util.Properties(); String path; public Configuration(){ try { configFile.load(new FileInputStream("conf.txt")); }cat...
Java
package server; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.InetAddress; import java.net.Socket; import java.net.URLEncoder; import java.net.UnknownHostException; public class SendHTTPPOSTRequestWithSocke...
Java
package server; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import server.clients.ClientList; public class HttpServer { private static int port; private static ClientList clientList = new ClientList(); public static void main(String args[]) { Configuration co...
Java
package server; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; import server.clients.Client; import server.clients.ClientL...
Java
package server.clients; public class Client { private String ip; private int port; private String tasks; public Client(String ip, int port) { super(); this.ip = ip; this.port = port; } public String getTasks() { return tasks; } public void setTasks(String tasks) { this.tasks = tasks; ...
Java
package server.clients; import java.util.ArrayList; import java.util.List; public class ClientList { List<Client> clientsList = new ArrayList<Client>(); public List<Client> addClient(String ip, int port){ clientsList.add(new Client(ip, port)); return clientsList; } public void rem...
Java
/** Automatically generated file. DO NOT MODIFY */ package org.tpmkranz.notifyme; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
package org.tpmkranz.notifyme; /* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 ...
Java
package org.tpmkranz.notifyme; /* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 ...
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
/* Notify Me!, an app to enhance Android(TM)'s abilities to show notifications. Copyright (C) 2013 Tom Kranz This program 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 (a...
Java
/** * A customizable timer that allows you to keep track of in-game time. * To use in an actor, simply declare a new Timer. * * Example usage: * * public class Player extends Actor * { * private Timer timer=new Timer(); * ... * * public Player * { * ... * }...
Java