text stringlengths 3 1.18M |
|---|
package ca.etsmtl.log430.lab2;
import java.util.Observable;
import ca.etsmtl.log430.common.Displays;
/**
* Upon notification, lists the projects that were read into the vector stored in
* the CommonData class.
*
* @author A.J. Lattanze, CMU
* @version 1.4, 2013-Oct-06
*/
/*
* Modification Log... |
package ca.etsmtl.log430.lab2;
import java.util.Observable;
import ca.etsmtl.log430.common.Displays;
import ca.etsmtl.log430.common.Menus;
import ca.etsmtl.log430.common.Resource;
/**
* Upon notification, first lists the resources and asks the user to pick one by
* specifying its ID. If the resource's ID... |
package ca.etsmtl.log430.lab2;
import java.util.Observable;
import java.util.Observer;
/**
* Provides the basis of the implicit invocation communications mechanisms.
*
* @author A.J. Lattanze, CMU
* @version 1.2, 2011-Feb-24
*/
/*
* Modification Log ***********************************************... |
package ca.etsmtl.log430.lab2;
import ca.etsmtl.log430.common.List;
/**
* Provides a data structure (Vector) to store the system components.
*
* @author A.J. Lattanze, CMU
* @version 1.2, 2011-Feb-24
*/
/*
* Modification Log **********************************************************
*
* v1.2,... |
package ca.etsmtl.log430.lab2.tests;
import ca.etsmtl.log430.common.Displays;
import ca.etsmtl.log430.common.Project;
import ca.etsmtl.log430.common.ProjectReader;
import ca.etsmtl.log430.common.Resource;
import ca.etsmtl.log430.common.ResourceChecker;
import ca.etsmtl.log430.common.ResourceReader;
import ca.etsmtl.lo... |
/**
* Assignment 2, ETS course LOG430 - Architecture logicielle. The purpose of
* this assignment is to introduce the implicit invocation architectural
* style.<br><br>
*
* The application is a contrived route management system. It is a menu
* driven system that allows the following options:
*
* <pre>... |
package ca.etsmtl.log430.lab2;
import ca.etsmtl.log430.common.Menus;
/**
* Acts as the system executive. It provides the primary user interface.
*
* Pseudo Code:
*
* <pre>
* add components that I want to receive my signals to the receiver list.
* while !done
* Present Menu
* if user c... |
package ca.etsmtl.log430.lab2;
import ca.etsmtl.log430.common.ProjectReader;
import ca.etsmtl.log430.common.ResourceReader;
/**
* Contains data that is used (directly or indirectly) by all
* classes.
*
* @author A.J. Lattanze, CMU
* @version 1.4, 2013-Oct-06
*/
/*
* Modification Log ***********... |
package ca.etsmtl.log430.lab2;
import java.util.Observable;
import ca.etsmtl.log430.common.Displays;
import ca.etsmtl.log430.common.Menus;
import ca.etsmtl.log430.common.Project;
/**
* Upon notification, the user is prompted to enter a project ID.
* Resources assigned to the project are then listed.
* ... |
package ca.etsmtl.log430.lab2;
/**
* Initializes the system. First each component is instantiated. This is where
* the component name and an ID is assigned. Then, the executive component is
* started.
*
* @author A.J. Lattanze, CMU
* @version 1.5, 2013-Oct-06
*/
/*
* Modification Log ************... |
package ca.etsmtl.log430.lab2;
import java.util.Observable;
import ca.etsmtl.log430.common.Displays;
/**
* Upon notification, lists the resources that were read into the vector stored
* in the CommonData class.
*
* @author A.J. Lattanze, CMU
* @version 1.5, 2013-Oct-06
*/
/*
* Modification Lo... |
package ca.etsmtl.log430.lab2;
import java.util.Observable;
import ca.etsmtl.log430.common.Displays;
import ca.etsmtl.log430.common.Menus;
import ca.etsmtl.log430.common.Project;
public class ListRolesAssignedtoProject extends Communication {
public ListRolesAssignedtoProject(Integer registrationNumb... |
package ca.etsmtl.log430.common;
/**
* This class defines the Resource object for the system. Besides the basic
* attributes, there are two lists maintained. alreadyAssignedProjectList is a
* ProjectList object that maintains a list of projects that the resource was
* already assigned to prior to this exec... |
package ca.etsmtl.log430.common;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
/**
* Provides the methods that allow the caller to open an existing file and read
* one line of input (to end-of-line) from the file.
*
* @author A.J.... |
package ca.etsmtl.log430.common;
/** This class defines the Project object for the system.
*
* @author A.J. Lattanze, CMU
* @version 1.7, 2013-Oct-06
*/
/*
* Modification Log **********************************************************
* v1.7, R. Champagne, 2013-Oct-06 - Various refactorings for new lab.
... |
package ca.etsmtl.log430.common;
/**
* This class presents the user with menus, accepts their choice, ensures their
* choice is valid, and returns their choice to the caller. The menu is
* presented as follows:
* <pre>
* 1) List resources
* 2) List projects
* 3) List projects currently assig... |
package ca.etsmtl.log430.common;
/**
* This class will read from the InputFile and instantiate the Project objects
* in the system. It is assumed that the InputFile is in the local directory,
* contains the various projects and each line of input is read and expected
* in the following format.
* <pre>
... |
package ca.etsmtl.log430.common;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Allow callers to perform various terminal related operations.
*
* @author A.J. Lattanze, CMU
* @version 1.2, 2011-Feb-24
*/
/*
* Modification Log ******************... |
package ca.etsmtl.log430.common;
import ca.etsmtl.log430.common.Resource;
/**
* This class is used by various other classes that need to keep a list of
* resources on hand. It extends the List class which provides the basic
* functionality for storage and retrieval of the Resource Object from the list.
* ... |
package ca.etsmtl.log430.common;
import java.util.Vector;
/**
* Provides the methods that allow the caller to open an existing file and read
* one line of input (to end-of-line) from the file.
*
* @author A.J. Lattanze, CMU
* @version 1.2, 2011-Feb-24
*/
/*
* Modification Log *******************... |
package ca.etsmtl.log430.common;
/**
* This class is used by various other classes that need to keep a list of
* projects. It extends the List class which provides the basic functionality for
* storage and retrieval of the Project object from the list.
*
* @author A.J. Lattanze, CMU
* @version 1.6, 20... |
package ca.etsmtl.log430.common;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
public class ResourceChecker {
static int PRIORITY_H = 100;
static int PRIORITY_M = 50;
static int PRIORITY_L = 25;
public ResourceC... |
package ca.etsmtl.log430.common;
import ca.etsmtl.log430.common.Resource;
import ca.etsmtl.log430.common.ResourceList;
/**
* Reads from the InputFile and instantiates the Resource objects in the system.
* It is assumed that the InputFile is in the local directory, contains the
* active resources, and each ... |
package ca.etsmtl.log430.common;
import ca.etsmtl.log430.common.Termio;
/**
* This class displays various types of information on projects and resources
* (individually and as lists) to the screen.
*
* @author A.J. Lattanze, CMU
* @version 1.6, 2013-Sep-13
*/
/*
* Modification Log
* ********... |
package ca.etsmtl.log430.lab3;
import java.io.*;
/**
* This class is intended to be a filter that will send the information on an output pipe
* specific to each project type. In other terms, this filter splits the data by project type.
* <br><br>
*
* <pre>
* Pseudo Code:
*
* connect to input ... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
/**
* This class is intended to be a filter that will collect the streams from
* two input pipes and merge them into one output pipe.<br><br>
*
* Pseudo Code:
* <pre>
* connect to input pipe 1
* connect to inpu... |
package ca.etsmtl.log430.lab3;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PipedReader;
import java.io.PipedWriter;
import java.io.File;
/**************************************************************************
* This class is intended to be a filt... |
package ca.etsmtl.log430.lab3;
public class Project implements Comparable<Project>{
public String lineOfText;
public Project(String lineOfText){
this.lineOfText = lineOfText;
}
@Override
public int compareTo(Project o) {
String[] partsThis = lineOfText.split(" ");
String[] partsOther = o.lineOfText.s... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
/**
* System B.1
*/
public class REGProgressFilter extends Thread {
// Declarations
boolean done;
PipedReader inputPipe = new PipedReader();
PipedWriter outputPipe = new PipedWriter();
public REGProgre... |
/**
* Assignment 3, ETS course LOG430 - Architecture logicielle. The purpose of
* this assignment is to introduce the Pipe & Filter architectural
* style.<br><br>
*
* See the {@link ca.etsmtl.log430.lab3.SystemInitialize SystemInitialize} class header
* for more details on how the application actually work... |
package ca.etsmtl.log430.lab3;
import java.io.PipedWriter;
/**
* This class contains the main method for assignment 3. The program
* consists of these files:<br><br>
*
* 1) SystemInitialize: instantiates all filters and pipes, starts all filters.<br>
* 2) FileReaderFilter: reads input file and sends ea... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
/**
* This class is intended to be a filter that will key on a particular state
* provided at instantiation. Note that the stream has to be buffered so that
* it can be checked to see if the specified severity appears o... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
/**
* System B.1
*/
public class CRIProgressFilter extends Thread {
// Declarations
boolean done;
PipedReader inputPipe = new PipedReader();
PipedWriter outputPipe = new PipedWriter();
public CRIProgre... |
package ca.etsmtl.log430.lab3;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.PipedWriter;
/**
* This class reads the input file and sends its content downstream via its
* output pipe.<br><br>
*
* Pseudo Code:
* <p... |
package ca.etsmtl.log430.lab3;
import java.io.PipedWriter;
/**
* This class contains the main method for assignment 3. The program
* consists of these files:<br><br>
*
* 1) SystemInitialize: instantiates all filters and pipes, starts all filters.<br>
* 2) FileReaderFilter: reads input file and sends ea... |
package ca.etsmtl.log430.lab3;
import java.io.PipedWriter;
/**
* This class contains the main method for assignment 3. The program
* consists of these files:<br><br>
*
* 1) SystemInitialize: instantiates all filters and pipes, starts all filters.<br>
* 2) FileReaderFilter: reads input file and sends ea... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
*
*/
public class SortByStateFilter extends Thread {
// Declarations
boolean done;
PipedReader inputPipe = new PipedRe... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
/**
*
*/
public class RemoveFieldsFilter extends Thread {
// Declarations
boolean done;
PipedReader inputPipe = new PipedReader();
PipedWriter outputPipe = new PipedWriter();
public RemoveFieldsFilter... |
package ca.etsmtl.log430.lab3;
import java.io.PipedReader;
import java.io.PipedWriter;
/**
* This class is intended to be a filter that will key on a particular state
* provided at instantiation. Note that the stream has to be buffered so that
* it can be checked to see if the specified severity appears o... |
package ca.etsmtl.log430.lab1;
/**
* Main class for assignment 1 for LOG430, Architecture logicielle.
*
* <pre>
* <b>Pseudo Code:</b>
*
* Instantiate lists
* do until done
* Present Menu
* if user choice = 1 then list resources
* if user choice = 2 then list projects
* if ... |
package ca.etsmtl.log430.lab1;
/**
* This class defines the Resource object for the system. Besides the basic
* attributes, there are two lists maintained. alreadyAssignedProjectList is a
* ProjectList object that maintains a list of projects that the resource was
* already assigned to prior to this executio... |
package ca.etsmtl.log430.lab1;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
/**
* This class provides the methods that allow the caller to open an existing
* file and read one line of input (to end-of-line) from the file.
*
* @aut... |
package ca.etsmtl.log430.lab1;
/** This class defines the Project object for the system.
*
* @author A.J. Lattanze, CMU
* @version 1.7, 2013-Sep-13
*/
/*
* Modification Log **********************************************************
* v1.7, R. Champagne, 2013-Sep-13 - Various refactorings for new lab.
*
... |
package ca.etsmtl.log430.lab1.tests;
import ca.etsmtl.log430.lab1.Displays;
import ca.etsmtl.log430.lab1.Project;
import ca.etsmtl.log430.lab1.ProjectReader;
import ca.etsmtl.log430.lab1.Resource;
import ca.etsmtl.log430.lab1.ResourceChecker;
import ca.etsmtl.log430.lab1.ResourceReader;
import ca.etsmtl.log430.lab1.Te... |
/**
* Assignment 1, ETS course LOG430 - Architecture logicielle. The purpose of
* this assignment is to introduce object-oriented implementations in the
* context of layered architectures.<br><br>
*
* The application is a contrived project management system. It is a menu
* driven system that allows the fol... |
package ca.etsmtl.log430.lab1;
/**
* This class presents the user with menus, accepts their choice, ensures their
* choice is valid, and returns their choice to the caller. The menu is
* presented as follows:
* <pre>
* 1) List resources
* 2) List projects
* 3) List projects currently assigned ... |
package ca.etsmtl.log430.lab1;
/**
* This class will read from the InputFile and instantiate the Project objects
* in the system. It is assumed that the InputFile is in the local directory,
* contains the various projects and each line of input is read and expected
* in the following format.
* <pre>
* P... |
package ca.etsmtl.log430.lab1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* This utility class contains methods that allow callers to perform various
* I/O operations at the command line.
*
* @author A.J. Lattanze
* @version 1.3, 2012-Feb-02
*/
... |
package ca.etsmtl.log430.lab1;
/**
* This class is used by various other classes that need to keep a list of
* resources on hand. It extends the List class which provides the basic
* functionality for storage and retrieval of the Resource Object from the list.
*
* @author A.J. Lattanze, CMU
* @version 1... |
package ca.etsmtl.log430.lab1;
import java.util.Vector;
/**
* This is the base class that is used to construct the various list objects
* used in this application. The storage mechanism used is the Java Vector
* found in the java.util package.
*
* A vector object is declared and several generic operati... |
package ca.etsmtl.log430.lab1;
/**
* This class is used by various other classes that need to keep a list of
* projects. It extends the List class which provides the basic functionality for
* storage and retrieval of the Project object from the list.
*
* @author A.J. Lattanze, CMU
* @version 1.6, 2013-S... |
package ca.etsmtl.log430.lab1;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
public class ResourceChecker {
static int PRIORITY_H = 100;
static int PRIORITY_M = 50;
static int PRIORITY_L = 25;
public ResourceChe... |
package ca.etsmtl.log430.lab1;
/**
* Reads from the InputFile and instantiates the Resource objects in the system.
* It is assumed that the InputFile is in the local directory, contains the
* active resources, and each line of input is read and expected in the following
* format: a field oriented and space-s... |
package ca.etsmtl.log430.lab1;
/**
* This class displays various types of information on projects and resources
* (individually and as lists) to the screen.
*
* @author A.J. Lattanze, CMU
* @version 1.6, 2013-Sep-13
*/
/*
* Modification Log
* ******************************************************... |
public class Driver {
public static void main(String[] args) {
}
}
|
import java.util.ArrayList;
import java.util.List;
/**
* Contains the main method and creates the Banker and Clients. Starts all the
* Clients and waits for them to finish.
*
* @author Kyle Storck
* @author Chris Rosen
*/
public class Driver {
// Number of total resources for Banker
private final static int ... |
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.ArrayList;
public class Banker {
private final int totalUnits; // Maximum number of resources
private volatile int unitsOnHand; // The resources that the banker currently has on hand.
// A map with key of the thread id (... |
import java.util.Random;
/**
* A Client that contend for a pool of resources by calling
* methods in Banker. Extends Thread.
*
* @author Kyle Storck
* @author Chris Rosen
*/
public class Client extends Thread {
private Banker banker;
private int nUnits;
private int nRequests;
private long minSleepMillis;
... |
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.ArrayList;
/**
* Passive class for handling multiple client threads. Holds the total number of
* resources left in the bank, and the claimed, allocated, and remaining
* resources for each client. Has methods for setting the ... |
/*************************************************************************************
NOTE: ORIGINAL PROGRAM WRITTEN BY Quinn Taylor
ORIGINAL DOCUMENTATION: http://cocoaheads.byu.edu/wiki/stripping-comments-source-code
This program has been translated to Java from C++/Python
-------------------------------------------... |
package concord;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.uti... |
package concord;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.uti... |
package concord;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.uti... |
/*
* Copyright 2010 Emmanuel Astier & Kevin Gaudin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright 2010 Emmanuel Astier & Kevin Gaudin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/* Copyright 2010 Emmanuel Astier & Kevin Gaudin
*
* 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 applic... |
/*
* Copyright 2010 Emmanuel Astier & Kevin Gaudin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright 2010 Emmanuel Astier & Kevin Gaudin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright 2010 Emmanuel Astier & Kevin Gaudin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.tim.apps.mockgps.constants;
import android.location.LocationManager;
public class Constants {
/** Name of the shared preferences */
public static final String PREFS = "testgpsprefs";
public static final String GPS_LABEL = LocationManager.GPS_PROVIDER;
public static final String NETWORK_LABEL = Locat... |
package com.tim.apps.mockgps;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Set;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.... |
package com.tim.apps.mockgps;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Point;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
i... |
package com.tim.apps.mockgps.service;
import java.net.URLEncoder;
import org.json.JSONObject;
import android.app.AlarmManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import andr... |
package com.tim.apps.mockgps.service;
import com.apsalar.sdk.Apsalar;
import com.tim.apps.mockgps.TestGPSActivity;
import com.tim.apps.mockgps.constants.Constants;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public c... |
package com.tim.apps.mockgps.service;
import com.tim.apps.mockgps.constants.Constants;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.location.LocationManager;
import android.os.IBinder;
import android.util.Log;
public class... |
package com.tim.apps.mockgps.service;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.apsalar.sdk.Apsalar;
import com.tim.apps.mockgps.TestGPSActivity;
import com.tim.apps.mockgps.constants.Constants;
public c... |
package com.tim.apps.mockgps.service;
import java.io.Serializable;
/**
* DTO class containing latest application info received from update server.
* @author robert
*
*/
public class LatestApplicationVersionInfo implements Serializable {
private String url;
private String version;
private String mes... |
package com.tim.apps.mockgps;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
public class MyNotification {
public NotificationManager mNotificationManager;
pu... |
package com.tim.apps.mockgps;
import java.util.ArrayList;
import android.app.AlertDialog;
import android.content.Context;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnCl... |
package com.tim.apps.mockgps.utils;
import android.content.Context;
import android.content.Intent;
import android.location.LocationManager;
import android.location.LocationProvider;
import com.tim.apps.mockgps.MyNotification;
import com.tim.apps.mockgps.R;
import com.tim.apps.mockgps.constants.Constants;
import com.t... |
package com.tim.apps.mockgps.utils;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.zip.GZIPInputStream;
import org.apache.http.Header;
import org.ap... |
package com.tim.apps.mockgps.utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.Charset;
import java.text.SimpleDateFormat;
import java.util.Calen... |
package com.tim.apps.mockgps.utils;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.tim.apps.mockgps.constants.Constants;
public class DialogClick extends DialogClickLisener {
private Context ctx;
public DialogClick(Context ctx) {
this.ctx = ctx;
}
@Override... |
package com.tim.apps.mockgps.utils;
public class DialogClickLisener {
public void onClick(){};
}
|
package com.tim.apps.mockgps;
import org.acra.CrashReportingApplication;
import android.content.ContentResolver;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import com.lmmob.ad.sdk.LmMobEngine;
import com.tim.apps.mockgps.constants.Constants;
import com.t... |
package com.tim.apps.mockgps.model;
import com.google.android.maps.GeoPoint;
public class DataModel {
public String id = "";
public String name = "";
public String lat = "";
public String lng = "";
public String type = "";
public DataModel(){
}
public DataModel(String name, GeoPoint gp){
this.name = nam... |
package com.tim.apps.mockgps.model;
/**
* Created by IntelliJ IDEA.
* User: johnmay
* Date: Nov 25, 2009
* Time: 9:24:08 AM
* To change this template use File | Settings | File Templates.
*/
import java.util.ArrayList;
import com.tim.apps.mockgps.constants.Constants;
import android.content.ContentValues;
impor... |
package com.tim.apps.mockgps.model;
import com.tim.apps.mockgps.constants.Constants;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
public class Preferences {
private static SharedPreferences prefs;
public static final String PREF_LAST_ZOOM_LEVEL = "pref... |
package com.tim.apps.mockgps;
import java.util.ArrayList;
import com.tim.apps.mockgps.model.DataModel;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
public class ViewAdap... |
package com.tim.apps.mockgps;
import java.util.ArrayList;
import java.util.HashMap;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.