code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package org.bulatnig.smpp.testutil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
/**
* SMSC stub implementation.
... | Java |
package org.bulatnig.smpp.testutil;
import org.bulatnig.smpp.pdu.CommandId;
import org.bulatnig.smpp.pdu.impl.BindTransceiverResp;
import org.bulatnig.smpp.pdu.impl.EnquireLinkResp;
import org.bulatnig.smpp.pdu.impl.SubmitSmResp;
import org.bulatnig.smpp.pdu.impl.UnbindResp;
import org.bulatnig.smpp.util.ByteBuffer;
i... | Java |
package org.bulatnig.smpp.testutil;
import org.bulatnig.smpp.pdu.Pdu;
import org.bulatnig.smpp.pdu.impl.DefaultPduParser;
import org.bulatnig.smpp.pdu.impl.DeliverSm;
import org.bulatnig.smpp.util.ByteBuffer;
/**
* Useful class for parsing hex dumps.
*
* @author Bulat Nigmatullin
*/
public class HexStringParser {... | Java |
package org.bulatnig.smpp.testutil;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Generate unique port for each test.
*
* @author Bulat Nigmatullin
*/
public enum UniquePortGenerator {
INSTANCE;
/**
* Values through 1 to 1024 reserved. So we are starting from 1025.
*/
private stat... | Java |
package org.bulatnig.smpp.util;
import java.io.UnsupportedEncodingException;
/**
* Converts java types to byte array according to SMPP protocol.
* Implemented, using java.nio.ByteBuffer as template.
* You should remember, that all SMPP simple numeric types are unsigned,
* but Java types are always signed.
* <p/>... | Java |
package org.bulatnig.smpp.util;
import org.junit.Test;
/**
* ByteBuffer performance comparison.
*
* @author Bulat Nigmatullin
*/
public class ByteBufferPerf {
@Test
public void test() {
for (int i = 0; i < 10; i++) {
test0();
}
}
private void test0() {
long st... | Java |
package pl.polidea.coverflow;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.Map;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.I... | Java |
/**
* Provides implementation of cover flow.
*/
package pl.polidea.coverflow; | Java |
package pl.polidea.coverflow;
import android.R.color;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.graphics.Canvas;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PorterDuff.Mode;
import android.gra... | Java |
/**
* Test activity.
*/
package pl.polidea.coverflow.testingactivity; | Java |
package pl.polidea.coverflow.testingactivity;
import pl.polidea.coverflow.CoverFlow;
import pl.polidea.coverflow.R;
import pl.polidea.coverflow.ReflectingImageAdapter;
import pl.polidea.coverflow.ResourceImageAdapter;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widge... | Java |
package pl.polidea.coverflow;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.util.Log;
/**
* This cl... | Java |
/*
* Copyright (C) 2010 Neil Davies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.utils;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.logging.Level;
import java.util.logging.Logge... | Java |
package app.controller;
import app.entity.Property;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.PropertyFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.Sessi... | Java |
package app.controller;
import app.entity.Function;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.FunctionFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.Sessi... | Java |
package app.controller;
import app.entity.Functionrole;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.FunctionroleFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.be... | Java |
package app.controller;
import app.entity.UserInformation;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.UserInformationFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.fa... | Java |
package app.controller;
import app.entity.Faq;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.FaqFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
... | Java |
package app.controller;
import app.entity.Role;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.RoleFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped... | Java |
package app.controller;
import app.entity.PropertyType;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.PropertyTypeFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.be... | Java |
package app.controller;
import app.entity.Feedback;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.session.FeedbackFacade;
import java.io.Serializable;
import java.util.ResourceBundle;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.Sessi... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.controller.util;
import app.entity.Mail;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
/**
*
* @author Song Lam
*/
public class SendMail {
public in... | Java |
package app.controller.util;
import app.entity.Role;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.model.SelectItem;
public class JsfUtil {
public stat... | Java |
package app.controller.util;
import javax.faces.model.DataModel;
public abstract class PaginationHelper {
private int pageSize;
private int page;
public PaginationHelper(int pageSize) {
this.pageSize = pageSize;
}
public abstract int getItemsCount();
public abstract DataModel creat... | Java |
package app.controller;
import app.entity.Account;
import app.controller.util.JsfUtil;
import app.controller.util.PaginationHelper;
import app.entity.Role;
import app.entity.UserInformation;
import app.session.AccountFacade;
import app.session.UserInformationFacade;
import com.sun.xml.ws.security.trust.elements.Encryp... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinCol... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
i... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
/**
*
* @author Jerry
*/
public class Mail {
String to;
String from;
String message;
String subject;
String smtpServ;
public Mail(){
}
... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
i... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.En... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import j... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.En... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import j... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinCol... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.En... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.En... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Property;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Stateless
... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Functionrole;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Statel... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Role;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Stateless
pub... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import java.util.List;
import javax.persistence.EntityManager;
/**
*
* @author RubiLam
*/
public abstract class AbstractFacade<T> {
private Class<T> entityClass;
public ... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Feedback;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Stateless
... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Faq;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Stateless
publ... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Account;
import app.entity.UserInformation;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.PropertyType;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Statel... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Account;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
/**
*
* @... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package app.session;
import app.entity.Function;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author RubiLam
*/
@Stateless
... | Java |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package controller.util;
/**
*
* @author Jerry
*/
import java.io.*;
import javax.faces.application.FacesMessage;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
im... | Java |
package Interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface WorkerInterface extends Remote {
/**
* This function does the task given.
* @param task - the task to perform
* @throws RemoteException
*/
void doTask(Task task) throws RemoteException;
}
| Java |
/**
*
*/
package Interfaces;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Set;
/**
* @author Barak & Ron
*
*/
public interface WorkerRegister extends Remote {
/**
* Through This function a worker registers in the server.
* @param name The unique name of the new worker.
* @par... | Java |
package Interfaces;
import java.io.Serializable;
import java.util.Set;
public class Task implements Serializable {
private static final long serialVersionUID = -4751120753565781651L;
Set<String> requirements;
int taskId;
public Task(int taskId, Set<String> requirements) {
this.taskId = taskId;
this.requir... | Java |
package Master;
import java.io.ObjectInputStream;
import java.io.PrintWriter;
import java.net.Socket;
import Interfaces.Task;
/**
*
* This class tries to execute the clients' task on the appropriate machine
*
* Receives via the constructor the socket by which we communicate with the
* client.
* In order ... | Java |
package Master;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.util.HashSet;
import java.util.Map;
import java.util.Map... | Java |
package Client;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.HashSet;
import java.util.Set;
import Interfaces.Task;
public class Client {
public static v... | Java |
package Worker;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.rmi.RemoteException;
import java.util.Set;
import java.util.TreeSet;
import java.util.UUID;
import Interfaces.*;
public class Worker implements WorkerInterface{
privat... | Java |
package rmiExample.client;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Compute extends Remote {
<T> T executeTask(Task<T> t) throws RemoteException;
}
| Java |
package rmiExample.client;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.math.BigDecimal;
public class ComputePi {
public static void main(String args[]) {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new SecurityManage... | Java |
package rmiExample.client;
public interface Task<T> {
T execute();
}
| Java |
package rmiExample.client;
import rmiExample.client.Task;
import java.io.Serializable;
import java.math.BigDecimal;
public class Pi implements Task<BigDecimal>, Serializable {
private static final long serialVersionUID = 227L;
/** constants used in pi computation */
private static final BigDe... | Java |
package rmiExample.server;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import rmiExample.client.Compute;
import rmiExample.client.Task;
public class ComputeEngine implements Compute {
public Co... | Java |
package groupManagement;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Timer;
import javax.jms.JMSException;
import javax.jms.TopicSubscriber;
import chat.LingvoChat;
import topicHandlers.Control;
import topicHandlers.Translate;
public class ChatGroup {
private Has... | Java |
package groupManagement;
import java.util.TimerTask;
import chat.LingvoChat;
public class AliveSender extends TimerTask{
private String userName;
private String topicName;
private String lang;
public AliveSender(String group,String userName,String lang) {
this.topicName = group+"-control";
this.userName=us... | Java |
package groupManagement;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.Timer;
public class User {
private static HashMap<String, User> users=new HashMap<String, User>();
private String lang;
private String name;
private Set<ChatGroup> groups;
private Timer timer;
... | Java |
package groupManagement;
import java.util.TimerTask;
//remove user if an I'm alive message was not received in 30 seconds.
public class UserTimer extends TimerTask {
private String userName;
public UserTimer(String userName){
this.userName=userName;
}
@Override
public void run() {
User.removeUser(userName);
... | Java |
package Logging;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;
/**
* Monitor class which allows logging server information into
* a file. This class is a singleton, the instance can be received by
* calling t... | Java |
package chat;
import groupManagement.ChatGroup;
import groupManagement.User;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import javax.jms.JMSException;
... | Java |
package topicHandlers;
import groupManagement.ChatGroup;
import groupManagement.User;
import java.util.TimerTask;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
import chat.LingvoChat;
/**
* This class is responsible for:
*... | Java |
package topicHandlers;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
//WS is the translation web service
import Logging.Monitor;
import WS.GetResponse;
import WS.Otms;
import WS.OtmsSoap;
import WS.Query;
public class Translate im... | Java |
/*
*
* Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, th... | Java |
/*
*
* Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, th... | Java |
/*
*
* Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, th... | Java |
package listeners;
import java.util.TimerTask;
import javax.jms.Message;
import javax.jms.MessageListener;
/**
* This class is responsible for:
* <ol>
* <li>adding the user to a group:
* <ol>
* <li>If we are in the margin of 30 seconds we try to add if not exists
* to personsInGroup and u... | Java |
package listeners;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
//WS is the translation web service
import WS.GetResponse;
import WS.Otms;
import WS.OtmsSoap;
import WS.Query;
// TODO get the message from onMessage and not from th... | Java |
package Logging;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Date;
import java.util.Map;
/**
* Monitor class which allows logging server information into
* a file. This class is a singleton, the instance can be received by
* calling t... | Java |
package chat;
import java.util.Timer;
public class chatUser {
private String userName; // according to the exercise the username is unique
private String lang;
private Timer removeUser;
chatUser(String name,String lang) {
userName = name;
this.lang = lang;
}
public String getName() {
... | Java |
package chat;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.Timer;
import java.util.TimerTask;
import javax.jm... | Java |
import java.io.Serializable;
//Stuff, that is common with server code
class MessagesDescription {
public final static int PLAYERS_NICKNAME = 1;
public final static int LOGIN_SUCCESSFUL = 2;
public final static int LOGIN_FAIL = 3;
public final static int PLAYER_LEFT = 4;
public final static int OUT_OF_GAME = 5;
... | Java |
public class Main {
public static void main(String[] args) {
new TInterface();
}
}
| Java |
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.awt.event.*;
import javax.swing.*;
class TPlayer{
public JLabel nickname;
public JLabel[] cards;
TPlayer(TInterface p, int pos){
nickname = new JLabel();
p.add(nickname);
nickname.setLocation(15, 40 + 110 * pos);
nickname.setSi... | Java |
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.*;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.*;
class TQuery{
public TWebMessage primary;
... | Java |
/**
* Copyright (c) 2010 David Dearing
*/
package com.dpdearing.sandbox.gpsemulator.client;
import com.dpdearing.sandbox.gpsemulator.common.LocationServiceAsync;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.ChangeEvent;
i... | Java |
/**
* Copyright (c) 2010 David Dearing
*/
package com.dpdearing.sandbox.gpsemulator.server;
import java.io.IOException;
import com.dpdearing.sandbox.gpsemulator.common.LocationService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import de.mud.telnet.TelnetWrapper;
/**
* The server ... | Java |
/**
* Copyright (c) 2010 David Dearing
*/
package com.dpdearing.sandbox.gpsemulator.common;
import java.io.IOException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
/**
* The client side stub for the RPC service.
*/
@RemoteSe... | 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 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.MyTracksSettings;
import com.google.android.maps.mytracks.R;
import android.content.SharedPreferences;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
public class SensorMana... | 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.MyTracksConstants;
import android.location.Location;
import junit.framework.TestCase;
/**
* Test the the function of the TripStatisticsBuilder class.
*
* @author Sandor Dorn... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.