code
stringlengths
3
1.18M
language
stringclasses
1 value
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
Java
/* This work was derived from Chris Evan's opensurf project and re-licensed as the 3 clause BSD license with permission of the original author. Thank you Chris! Copyright (c) 2010, Andrew Stromberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
Java
package com.stromberglabs.jopensurf; public interface InterestPoint { public double getDistance(InterestPoint point); public float[] getLocation(); }
Java
package home; import java.io.IOException; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import ajaxmethods.SessionMethod; import server.Initialize; ...
Java
package home; import java.io.IOException; import java.text.NumberFormat; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; import...
Java
package feeds; import html.HTMLElem; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnecti...
Java
package feeds; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; public class FeedHelper { public static String getServiceResult(String url) { URL serviceURL; t...
Java
package user; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; import ajaxmethods.SessionMethod; public class Login extends SessionMethod { @Override public void p...
Java
package user; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json...
Java
package user; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json...
Java
package user; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import ajaxmethods.SessionMethod; public class RequestService extends SessionMethod { @Override public void perform(HttpServletRequest request, HttpServletResponse response) { super.perform(re...
Java
package user; import java.io.IOException; import global.Global; import home.Home; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; import ajaxmethods.AjaxMethod; public class SignOut implements ...
Java
package user; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json...
Java
package html.field.inputs; import java.util.Map; import html.field.Field; public class Select implements Field { private StringBuffer style = new StringBuffer(); private String name; private Map<String,String> valDispMap; @Override public Field css(String attr, String val) { if(style.toString(...
Java
package html.field.inputs; import html.field.Field; public class TextArea implements Field { private StringBuffer style = new StringBuffer(); private String name; @Override public Field css(String attr, String val) { if(style.toString().length()>0) style.append(";"); style.append(attr+":"+va...
Java
package html.field.inputs; import html.field.Field; public class Text implements Field { private StringBuffer style = new StringBuffer(); private String name; @Override public Field css(String attr, String val) { if(style.toString().length()>0) style.append(";"); style.append(attr+":"+val); ...
Java
package html.field; public interface Field { public Field css(String attr, String val); public String out(); }
Java
package html; import fj.F; import fj.F2; import fj.data.List; public class HTMLFunctions { public static F2<String,HTMLElem,HTMLElem> wrapElemInHTML = new F2<String,HTMLElem,HTMLElem>() { @Override public HTMLElem f(String tagname, HTMLElem innerHTML) { HTMLElem elem = new HTMLElem(tagname)...
Java
package html; import java.util.HashMap; import java.util.Map; import fj.F; import fj.Unit; import fj.data.List; import fj.data.Option; public class HTMLElem { public Map<String,Option<String>> attrMap = new HashMap<String,Option<String>>(); public Option<String> innerHTML = Option.some(""); private...
Java
package global; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.net.URLDecoder; import java.net.URLEncoder; import java.util.List; import java.util.Map; import javax.servlet.ServletConfig; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; ...
Java
package utils; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Singleton; @Singleton public abstract class ClassRegistry { private static Injector injector; public static synchronized void initialize() { injector = Guice.createInjector(); } publi...
Java
package json; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.Iterator; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import fj.F; import fj.F2; import fj.data.List; import fj.data.Option; public class JSONHelpers { ...
Java
package save; import java.util.List; import java.util.Map; import fj.data.Option; import global.Global; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import server.Initialize; import server.db.StmtHelper; import ajaxmethods.SessionMethod; public class...
Java
package save; import fj.F; import fj.data.Option; import global.Global; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import server.Initialize; import server.db.DatabaseFunctor; import server.db.StmtHelper; import server.objects.User; import ajaxmethods.S...
Java
package save; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONObject; import server.db.StmtHelper; import ajaxmethods.SessionMethod; public class UpdateForm extends SessionMethod { @Override public void perform(HttpServletRequest req...
Java
package ajaxmethods; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public interface AjaxMethod { public void perform(HttpServletRequest request, HttpServletResponse response); }
Java
package ajaxmethods; import global.Global; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; public class SessionMethod implements AjaxMethod { protected JSONObject data = new JSONObject(); prot...
Java
package reports; import java.io.IOException; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import server.db.StmtHelper; import server.json.Function...
Java
package reports; import java.text.NumberFormat; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import fj.F; import server.db.DatabaseFunctor; import server.db.StmtHelper; import server....
Java
package reports; import java.io.IOException; import java.text.NumberFormat; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; imp...
Java
package search; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import ajaxmethods.SessionMethod; public class MapSearchPage extends SessionMethod { @Override public void perform(HttpServletRe...
Java
package search.users; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import server.Initialize; import server.db.StmtHelper; import server.jso...
Java
package search.users; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import ajaxmethods.SessionMethod; import search.users.GetAgents; import server.Initialize; public class SearchAgents extends Ses...
Java
package search.users; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import server.Initialize; import server.db.StmtHelper; import server.jso...
Java
package search.users; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import server.Initialize; import ajaxmethods.SessionMethod; public class SearchSPs extends SessionMethod { @Override publ...
Java
package search.users; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; import server.Initialize; import server.db.StmtHelper; import server.json.FunctionalJSON; import aj...
Java
package search.users; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; import server.Initialize; import server.db.StmtHelper; import server.json.FunctionalJSON; import aj...
Java
package search; import global.Global; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import user.CreateAccount; import user.CreateAcct; import user.Login; import ajaxmethods.SessionMethod; pu...
Java
package search; import java.text.NumberFormat; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONObject; import fj.F; import global.Global; ...
Java
package search; import fj.F; import global.Global; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import...
Java
package server.jobs; import static server.db.StmtHelper.db; import it.sauronsoftware.cron4j.Scheduler; import it.sauronsoftware.cron4j.TaskCollector; import java.io.IOException; import java.io.StringReader; import java.util.Arrays; import java.util.List; import javax.xml.parsers.DocumentBuilder; import j...
Java
package server.jobs; import static server.db.StmtHelper.db; import it.sauronsoftware.cron4j.Scheduler; import java.io.IOException; import java.io.StringReader; import java.util.List; import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import ...
Java
package server.jobs; import java.io.IOException; import java.io.StringReader; import java.util.List; import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParserFacto...
Java
package server.json; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import fj.F; public class FunctionalJSON { public static F<List<Map<String,String>>,JSONArray> mapToJSONArray = new F<List<Map<String,String>>,JSONAr...
Java
package server.objects; import server.Initialize; public class Photo { public static String getNoPhotoURL() { return Initialize.appURL()+"/images/nophotoavail.jpg"; } }
Java
package server.objects; import org.json.JSONException; import org.json.JSONObject; public class User { public User() { } public String firstname; public String lastname; public String email; public String usertype; public Integer id; public JSONObject toJson() { try { return new JSON...
Java
package server; public class AppServerInit { public String getLogPath() { return "C:\\Users\\Daniel\\"; } public volatile static AppServerInit thisInstance = new AppServerInit(); public static AppServerInit getAppServerInitInstance() { return thisInstance; } }
Java
package server; import global.Global; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import server.jobs.*; import utils.ClassRegistry; public class Initialize extends HttpServlet { public Initialize() { super(); } private vo...
Java
package profiles; import java.text.NumberFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONObject; import reports.DetailReport; import server.Initialize; import server.db.StmtHelper; import server.json.Fun...
Java
package profiles; import global.Global; import java.io.IOException; import java.text.NumberFormat; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import reports.DetailRe...
Java
package tables; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONObject; import server.Initialize; import server.db.StmtHelper; import ajaxmethods.SessionMethod; public class DeleteForm extends SessionMethod { public static String url(...
Java
package tables; import java.util.HashMap; import java.util.Map; import fj.F; import fj.data.Option; import global.Global; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import server.Initialize; import server.db.DatabaseFunctor; import server.db.StmtHe...
Java
package tables; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONObject; import server.Initialize; import server.db.StmtHelper; import ajaxmethods.SessionMethod; public class UpdateForm extends SessionMethod { public static String u...
Java
package tables; import java.io.IOException; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import fj.data.Option; import server.Initialize; import server.db.StmtHelper; import ut...
Java
package util.mailer; import java.util.ArrayList; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import javax.mail.i...
Java
package util; import java.util.StringTokenizer; import javax.mail.internet.InternetAddress; import javax.mail.internet.AddressException; public class Validation { public static boolean isValidEmailAddress(String emailAddress) { // a null string is invalid if ( emailAddress == null ) ...
Java
package propmanager; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONException; import org.json.JSONObject; import ajaxmethods.AjaxMethod; public class PropertyManagerPage implements AjaxMethod { @Override ...
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 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 2008 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 i...
Java
/* * Copyright 2008 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. * * 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 2008 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 2008 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 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...
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 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 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 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 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 2010 Google Inc. All Rights Reserved. package com.google.android.apps.mytracks.testing; import com.google.android.apps.mytracks.content.MyTracksProviderUtils; import com.google.android.apps.mytracks.content.MyTracksProviderUtils.Factory; import android.content.Context; /** * A fake factory for {@link ...
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
/* * 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 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 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 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 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
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...
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[] smallBuf = n...
Java
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...
Java
// 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; /** *...
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