text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.japo.java.basics.samples;
import java.awt.EventQueue;
/**
*
* @author Toshiba
*/
public class VentanaCentrada {
/**
* @param args the command line arguments
*/
public ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.japo.java.basics.samples;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
/**
*
* @author Javier Evelio Sáez García
*/
class GEV extends WindowA... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.japo.java.basics.samples;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.util.Set;
import java.util.Iterator;
import java.lang.StringBuffer;
import java.io.PrintStream;
import java.util.StringTokenizer;
public cla... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.io.PrintStream;
import java.util.StringTokenizer;
public class EchoCommandImpl implements ShellCommand
{
private ShellContext context = n... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
interface ShellConstantes {
final static String PROMPT="PROMPT";
final static String BANNER="BANNER";
}
|
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.util.Set;
public interface ShellContext {
public ShellCommand[] getCommands();
public Object getVar(String key);
public Object unsetVar(St... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.io.*;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Iterator;
import java.io.PrintStream;
public /... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.io.PrintStream;
import java.util.StringTokenizer;
public class SimpleQuitCommandImpl implements ShellCommand {
private ShellContext _context ... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.io.PrintStream;
import java.util.StringTokenizer;
public class HelpCommandImpl implements ShellCommand
{
private ShellContext _context = nul... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.io.*;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Iterator;
import java.io.PrintStream;
class Sh... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package shell;
import java.io.PrintStream;
public interface ShellCommand {
public String getName();
public String getUsage();
public String getShortDescript... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package ecom.shell;
import java.io.PrintStream;
import java.util.StringTokenizer;
import shell.ShellCommand;
import shell.ShellContext;
public class OutputCommandImpl... |
/**
* eCommerce Application Sample for J2EE Training
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - november 2002
*/
package ecom.shell;
import shell.Shell;
import shell.ShellContext;
public class EcomShell extends Shell implements EcomShellConstantes {
public static void main(Stri... |
/**
* eCommerce Application Sample for J2EE Training
* global constants
* @author Fabienne Boyer - july 2000
* @author Didier Donsez - october 2002
*/
package ecom.shell;
interface EcomShellConstantes {
final static String OUTPUT_MIME_FORMAT="OUTPUT_MIME_FORMAT";
final static String TEXT_MIMETYPE=... |
/*-----------------------------------------------------------------------------*/
/* ExternAdmin.java */
/* external administrator for ecom application */
/* Fabienne Boyer - Didier Donsez may 2006 ... |
/*-----------------------------------------------------------------------------*/
/* Tx.java */
/* ecom application */
/* Fabienne Boyer - july 2000 ... |
/*-----------------------------------------------------------------------------*/
/* InitDataBase.java */
/* Program that initializes the ecom databaseby creating beans */
/* Fabienne Boyer - Didier Donsez may 2006 */
/... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.client;
import ecom.beans.address.*;
import ecom.beans.account.*;
import ecom.beans.cart.*;
import ecom.beans.customer.*;
import ecom.beans.dish.*;
import ecom.beans.customer.*;
import ecom.bean... |
package ecom.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http... |
/**
* CustomerServlet
* Servlet for an Ecom customer.
* @author Fabienne Boyer - Didier Donsez - may 2006
*/
package ecom.servlets;
import ecom.beans.account.AccountEntity;
import ecom.beans.account.AccountEntityFacadeRemote;
import ecom.beans.address.AddressEntity;
import ecom.beans.address.Addre... |
package ecom.servlets;
//
import ecom.beans.*;
import ecom.beans.account.AccountEntityFacadeRemote;
import ecom.beans.address.AddressEntityFacadeRemote;
import ecom.beans.cart.CartSessionRemote;
import ecom.beans.customer.CustomerEntity;
import ecom.beans.customer.CustomerEntityFacadeRemote;
import ecom.beans.d... |
/**
* ProductStoreServlet
* Servlet for accessing & manipulating ecom product stores.
* @author Fabienne Boyer - Didier Donsez - may 2006
*/
package ecom.servlets;
import ecom.beans.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.naming.Context;
import javax.naming.Initial... |
/**
* eCommerce Application Sample for J2EE Training
* definition
*
*@author Fabienne Boyer - Didier Donsez - may 2006
*/
package ecom.servlets;
import java.util.*;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
public class TraceFilter implements javax.servl... |
/**
* ProductServlet
* Servlet for accessing & manipulating ecom products.
* @author Fabienne Boyer - Didier Donsez - may 2006
*/
package ecom.servlets;
import ecom.beans.*;
import java.io.IOException;
import java.io.PrintWriter;
import javax.naming.Context;
import javax.naming.InitialContext;
... |
package ecom.servlets;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServle... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.address;
import ecom.beans.customer.*;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
im... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.address;
import java.util.List;
import javax.ejb.Remote;
/**
*
* @author alina
*/
@Remote
public interface AddressEntityFacadeRemote {
public AddressEntity addAddress(... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.address;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author alina
*/
@Stateles... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.customer;
import ecom.beans.account.*;
import ecom.beans.address.*;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.Q... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.customer;
import java.util.List;
import javax.ejb.Remote;
import ecom.beans.address.*;
import ecom.beans.account.*;
/**
*
* @author Tian
*/
@Remote
public interface CustomerE... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.customer;
import ecom.beans.account.*;
import ecom.beans.address.*;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.pe... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.dish;
import ecom.beans.store.*;
import java.util.List;
import javax.ejb.Remote;
/**
*
* @author Tian
*/
@Remote
public interface DishEntityFacadeRemote {
public List<D... |
/**
* eCommerce Application
* Implementation of DishBean
* @author Franck Chaix
*/
package ecom.beans.dish;
import ecom.beans.store.StoreEntity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.dish;
import ecom.beans.store.*;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.per... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.store;
import ecom.beans.account.*;
import ecom.beans.address.*;
import ecom.beans.dish.*;
import java.io.Serializable;
//import javax.naming.Context;
//import javax.naming.InitialCon... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.store;
import ecom.beans.account.*;
import ecom.beans.address.*;
import java.io.Serializable;
import java.util.List;
import javax.ejb.Remote;
/**
*
* @author Tian
*/
@Remote
p... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.store;
import ecom.beans.account.*;
import ecom.beans.address.*;
import java.io.Serializable;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.menuorder;
import java.util.*;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author alina
*/
@Stateless
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.menuorder;
import java.util.*;
import javax.ejb.Remote;
/**
*
* @author alina
*/
@Remote
public interface MenuOrderEntityFacadeRemote {
public MenuOrderEntity registerOrder(i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.menuorder;
import ecom.beans.customer.*;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
imp... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.menuorder;
/**
*
* @author alina
*/
/*
* Copyright 2007 Sun Microsystems, Inc.
* All rights reserved. You may not modify, use,
* reproduce, or distribute this software except in
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.account;
import java.util.List;
import javax.ejb.Remote;
/**
*
* @author Tian
*/
@Remote
public interface AccountEntityFacadeRemote {
public List<AccountEntity> getAllAccounts... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.account;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
impor... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.account;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
/**
*
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.cart;
import ecom.beans.customer.*;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistenc... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.cart;
import ecom.beans.account.*;
import ecom.beans.dish.*;
import java.util.List;
import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.Persistence... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.cart;
import ecom.beans.account.*;
import java.util.List;
import javax.ejb.Remote;
/**
*
* @author Tian
*/
@Remote
public interface CartSessionRemote {
public int i... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ecom.beans.cart;
import ecom.beans.dish.*;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import ... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WA... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WA... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
/* NFCard 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
(at your option) any later version.
NFCard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY... |
class LinkedListNode {
public int data;
public LinkedListNode link;
}
public class JavaApplication1 {
public static void main(String[] args) {
/*
exercise
head -> 45 -> 65 -> 50 -> 34 -> 76
exercise 1: insert 15 between 34 and 76
... |
import javax.swing.JOptionPane;
public class HelloWorld {
public static void main(String[] args) {
String firstNumber;
int number;
firstNumber = JOptionPane.showInputDialog(null, "Enter a Number: ");
number = Integer.parseInt(firstNumber);
if ( number%2 == 0 );
{
JOptionPane.showMes... |
import javax.swing.*;
public class OddEven
{
public static void main(String[] args)
{
int number;
number = Integer.parseInt(JOptionPane.showInputDialog( null, "Please enter a number: " ));
OddNumber ( number );
EvenNumber ( number );
}
... |
import javax.swing.*;
public class HelloWorld
{
public static void main(String[] args)
{
JOptionPane.showMessageDialog( null, "Hello World!" );
}
}
|
import javax.swing.*;
public class UserInput
{
public static void main(String[] args)
{
String num = "";
num = JOptionPane.showInputDialog(null, "Please enter your name:" );
JOptionPane.showMessageDialog(null, "Hi " + num + "!");
}
}
|
class Calclib{
public void addNumber(){
int x = 5;
int y = 10;
int z;
z = x + y;
System.out.println(z);
}
}
public class calculator {
public static void main(){
Calclib calc = new Calclib()
}
}
|
class Calculator{
int x;
int y;
int z;
public Calculator(int num1, int num2){
x = num1;
y = num2;
}
public int addNUmbers() {
z = x+y;
return z;
}
public int subtractNumbers() {
z = x-y;
return z;
}
}
public class javaapplication {
public static void main(String[] arg... |
import java.util.Random;
class sortArray
{
private int[] myArray;
public sortArray()
{
System.out.println("Default Order:");
Random digit = new Random();
myArray = new int [10];
for ( int counter = 0 ; counter < 10 ; counter++ )
{
myArray[counter] = 1 + digit.nextInt(10);
}
printEleme... |
class myArrayList {
private int[] myArray;
private int size;
public myArrayList( int value, int seed, int increment ) {
myArray = new int [value];
size = value;
for ( int counter = 0 ; counter < size ; counter++ ) {
... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
package com.google.android.apps.mytracks.services.sensors;
import com.google.android.apps.mytracks.Constants;
import com.google.android.apps.mytracks.services.sensors.ant.AntDirectSensorManager;
import com.google.android.apps.mytracks.services.sensors.ant.AntSrmBridgeSensorManager;
import com.google.android.maps.mytra... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
package com.google.android.apps.mytracks.services.sensors;
import java.util.Arrays;
import com.google.android.apps.mytracks.content.Sensor;
import junit.framework.TestCase;
public class PolarMessageParserTest extends TestCase {
PolarMessageParser parser = new PolarMessageParser();
// A complete and valid Polar... |
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[] smallBuf = n... |
// Copyright 2012 Google Inc. All Rights Reserved.
package com.google.android.apps.mytracks.services;
import android.app.Notification;
import android.app.Service;
import android.test.ServiceTestCase;
import android.util.Log;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
*... |
/*
* 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 i... |
/*
* 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... |
/*
* 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... |
/*
* 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 i... |
/*
* 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 i... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.