text
stringlengths
3
1.18M
package models; public class Log { public Log() { } public void print(String mes) { System.out.println(mes); } }
/** * */ package controllers; import java.util.*; import com.fasterxml.jackson.databind.node.ObjectNode; import models.Table; import play.*; import play.libs.Json; import play.mvc.*; import views.html.*; import models.Table; import models.Client; /** * @author Administrator * */ @Suppress...
/** * */ package controllers; import java.util.*; import com.fasterxml.jackson.databind.node.ObjectNode; import models.Table; import play.*; import play.libs.Json; import play.mvc.*; import views.html.*; import models.Table; import models.Client; /** * @author Administrator * */ @Suppre...
package controllers; import java.util.*; import models.Table; import models.Client; import play.*; import play.libs.*; import play.libs.F.*; import play.mvc.*; import views.html.*; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.*; @SuppressWarnings("unused") public class...
package testy; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import poker.PokerException; import poker.Card; public class CardTest { @Before public void setUp() throws Exception { } @After public void tearDown() throws Exception { ...
/** * */ package testy; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import poker.*; /** * @author Administrator * */ public class BotTest { static Table testTable; static ShittyBot testPlayer1; ...
/** * */ package testy; import poker.*; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; /** * @author Administrator * */ public class EvaluateTest { static Table testTable; static Human testPlayer1, t...
/** * */ package testy; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import poker.*; /** * @author Administrator * */ public class TableTest { static Table testTable; static Human testPlayer1, te...
package poker; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public abstract class Evaluate { public final static int HN_STRAIGHT_FLUSH = 8; public final static int HN_FOUR = 7; public final static int HN_FULL = 6; public final s...
package poker; public class HandScore implements Comparable<HandScore> { public final static int HN_STRAIGHT_FLUSH = 8; public final static int HN_FOUR = 7; public final static int HN_FULL = 6; public final static int HN_FLUSH = 5; public final static int HN_STRAIGHT = 4; public final...
package SokobanModel; import java.util.ArrayList; /** * @ Project : SokobanAndroidApp * @ File Name : Game.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Game { private GridMap map; private int currentLevel; private FileHandler fileManager; public Game(FileHan...
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Position.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Position extends Dimension { /** * Build a position (0,0) */ public Position() { super(); } /** * Build a position (x,y) ...
package SokobanModel; public enum Direction { UP, DOWN, RIGHT, LEFT }
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Character.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Character extends MovableCells { public Character(Position pos) { super(pos); } }
package SokobanModel; public class Dimension { private int x; private int y; /** * Build a dimension (0,0) */ public Dimension() { this.x = 0; this.y = 0; } /** * Build a dimension (x,y) * @param x * @param y */ public Dimension(int x, int y) { this.x = x; th...
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : MovableCells.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public abstract class MovableCells extends Cell { public MovableCells(Position pos) { super(pos); } }
package SokobanModel; public enum TypeCell { WALL, OBJECTIVE, BOXE, CHARACTER }
package SokobanModel; public class SokobanModelException extends Exception { private static final long serialVersionUID = 1L; /** * Constructor of sokobanException * @param error */ public SokobanModelException(String error) { super(error); } }
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Boxe.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Boxe extends MovableCells { public Boxe(Position pos) { super(pos); } }
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Wall.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Wall extends FixedCells { public Wall(Position pos) { super(pos); } }
package SokobanModel; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import javax.swing.text.html.parser.DocumentParser; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfig...
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Cell.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public abstract class Cell { private String name; private Position pos; /** * Constructor * @param pos */ public Cell(Position pos) { //Get th...
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Editor.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Editor { private GridMap map; private FileHandler fileManager; public Editor(FileHandler fm) { this.fileManager = fm; } /...
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : Objective.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public class Objective extends FixedCells { public Objective(Position pos) { super(pos); } }
package SokobanModel; /** * @ Project : SokobanAndroidApp * @ File Name : FixedCells.java * @ Date : 15/02/2012 * @ Author : Mark THEBAULT **/ public abstract class FixedCells extends Cell { public FixedCells(Position pos) { super(pos); } }
import java.util.Scanner; import SokobanModel.*; public class Main { /** * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Bonjour\n"); TestGame test = new TestGame(); while(!test.quit()) { test.run(); ...
import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.Scanner; import SokobanModel.*; public class TestGame { private boolean quit; private Game game; private FileHandler fh; public TestGame() { this.quit = false; fh = new FileHandler("Data/gameConf.xml")...
/* * 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...
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...
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...
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....
/* * 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); }
/* * 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...
/* * 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); }
/* * 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'), ...
/* * 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"), ...
/* * 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...
/* * 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), ...
/* * 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(); }
/* * 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...
/* * 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; /**...
/* * 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 */ ...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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;...
/* * 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...
/* * 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...
/* * 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...
/* * 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; ...
/* * 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...
/* * 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() ...
/* * 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() { ...
/* * 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"); } ...
/* * 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 { /...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
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); } /** ...
/* * 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() {...
/* * 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...
/* * 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: ...
/* * 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...
/* * 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...
/* * 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 ...
/* * 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...
/* * 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 ...
/* * 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...
/** * */ package nguyen.hoan.sharelocation.exception; /** * @author Hoan Apr 5, 2014 3:30:47 PM * */ public class MyNullPointerException extends Exception { /** * */ private static final long serialVersionUID = -1723830425409834636L; }
/** * */ package nguyen.hoan.sharelocation.service; import nguyen.hoan.sharelocation.exception.MyNullPointerException; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import com.google.android.gms.maps.CameraU...
package nguyen.hoan.sharelocation; import android.support.v7.app.ActionBarActivity; import android.app.Activity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.support.v4.app.ActionBarDrawerToggle; import android.support.v4.view.GravityCompat; import android.support.v4....
package nguyen.hoan.sharelocation; import nguyen.hoan.sharelocation.service.MyGoogleMapService; import android.annotation.SuppressLint; import android.app.Activity; import android.location.LocationManager; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentM...
/** * Date Modified: $Date: 2009-08-28 10:39:55 +1000 (Fri, 28 Aug 2009) $ * Version: $Revision: 129 $ * * Copyright 2008 The Australian National University (ANU) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Y...
/** * Date Modified: $Date: 2009-08-28 10:39:55 +1000 (Fri, 28 Aug 2009) $ * Version: $Revision: 129 $ * * Copyright 2008 The Australian National University (ANU) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
/** * Date Modified: $Date: 2009-08-28 10:39:55 +1000 (Fri, 28 Aug 2009) $ * Version: $Revision: 129 $ * * Copyright 2008 The Australian National University (ANU) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
/** * Date Modified: $Date: 2009-08-28 10:39:55 +1000 (Fri, 28 Aug 2009) $ * Version: $Revision: 129 $ * * Copyright 2008 The Australian National University (ANU) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
/** * Date Modified: $Date: 2009-08-28 10:39:55 +1000 (Fri, 28 Aug 2009) $ * Version: $Revision: 129 $ * * Copyright 2008 The Australian National University (ANU) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You...
/** Name: Parse.java * * @author: Sunny Toor * * Description: This * * Last modified: 9th September 2011 * */ import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.util.Hashtable; import org.w3c.dom.*; import org.xml.sax.*; import javax.xml.parsers.*;...
/** * */ import java.io.*; import java.util.Enumeration; import java.util.Hashtable; import org.w3c.dom.Document; /** * <b>Description:</b><br/> It reads the saved mapping either from the file or from the * 'elementMap' data-structure and stores it in the 'crosswalk' hashtable. It provides the * ...
/** Name:ConvertInstance.java * * @author: Sunny Toor * */ import org.w3c.dom.*; import javax.xml.parsers.*; import java.io.*; import javax.xml.parsers.*; import org.ands.rifcs.base.*; import org.xml.sax.SAXException; import java.util.Date; import java.util.Hashtable; import java.util.Array...
/** * */ import java.io.*; import java.util.Enumeration; import java.util.Hashtable; /** * <b>Description:</b><br/> This class receives the user input and subsequently constructs * a crosswalk from it i.e. user enters a RIF-CS element for every corresponding * XML element. This mapping is stored i...
package com.example.android.service; import java.util.Timer; import java.util.TimerTask; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.widget.Toast; public class KitchenTimerService extends Service { class KitchenTimerBin...
package com.example.android.service; import java.io.IOException; import java.util.Random; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.cont...
package net.htjs.mobile.nyoa; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.List; import net.htjs.mobile.nyoa.util.L; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.methods.HttpPost; import org.apac...
package net.htjs.mobile.nyoa; import net.htjs.mobile.nyoa.gw.ListGwWebView; import net.htjs.mobile.nyoa.util.L; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.Window; import android.widget.ImageView; import android.widget...
package net.htjs.mobile.nyoa.gw; import net.htjs.mobile.nyoa.R; import android.app.TabActivity; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Window; import android.widget.TabHost; public class GwViewActivity extends TabActivity { public ...
package net.htjs.mobile.nyoa.gw; import android.R.color; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.widget.Button; import android.widget.LinearLayout; imp...
package net.htjs.mobile.nyoa.gw; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URL; import java.net.URLConnection; import net.htjs.mobile.nyoa.LoginActivity; import net.htjs.mobile.nyoa.R; import net.htjs.mobile.nyoa.subview.FileDownLoad; impo...
package net.htjs.mobile.nyoa.gw; import net.htjs.mobile.nyoa.R; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.content.SharedPreferences; import android.media.RingtoneManager;...
package net.htjs.mobile.nyoa.gw; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import net.htjs.mobile.nyoa.R; import net.htjs.mobile.nyoa.util.L; import org.apache.http.HttpResponse; import o...
package net.htjs.mobile.nyoa.gw; import net.htjs.mobile.nyoa.R; import android.app.Activity; import android.content.SharedPreferences; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import and...
package net.htjs.mobile.nyoa.util; import java.io.File; import android.content.Intent; import android.net.Uri; //自定义android Intent类, //可用于获取打开以下文件的intent //PDF,PPT,WORD,EXCEL,CHM,HTML,TEXT,AUDIO,VIDEO //这个不行,可能是因为PDF.apk程序没有权限访问其它APK里的asset资源文件,又或者是路径写错? //Intent it = getPdfFileIntent("file:///android_a...