text
stringlengths
3
1.18M
/* 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...
/* 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...
/* 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...
/* 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...
/* 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...
/* 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...
package com.stromberglabs.jopensurf; public interface InterestPoint { public double getDistance(InterestPoint point); public float[] getLocation(); }
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; ...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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(...
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...
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); ...
package html.field; public interface Field { public Field css(String attr, String val); public String out(); }
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)...
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...
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; ...
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...
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 { ...
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...
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...
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...
package ajaxmethods; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public interface AjaxMethod { public void perform(HttpServletRequest request, HttpServletResponse response); }
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...
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...
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....
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...
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...
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...
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...
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...
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...
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...
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...
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...
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; ...
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...
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...
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 ...
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...
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...
package server.objects; import server.Initialize; public class Photo { public static String getNoPhotoURL() { return Initialize.appURL()+"/images/nophotoavail.jpg"; } }
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...
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; } }
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...
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...
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...
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(...
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...
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...
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...
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...
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 ) ...
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 ...
/* * 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...
/* * 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 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...
/* * 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...
/* * 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...
/* * 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 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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...
/* * 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 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...
/* * 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 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 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 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 ...
/* * 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 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...
/* * 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 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...
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...
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...
// 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 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 in w...