code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/AuthManagerFactory.java | Java | asf20 | 1,793 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/SendToFusionTables.java | Java | asf20 | 25,579 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/ModernAuthManager.java | Java | asf20 | 7,885 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/KmlTrackWriter.java | Java | asf20 | 7,575 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/SendToMyMaps.java | Java | asf20 | 16,131 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/SendToDocs.java | Java | asf20 | 10,536 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/TempFileCleaner.java | Java | asf20 | 1,906 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/android/apps/mytracks/io/GpxTrackWriter.java | Java | asf20 | 5,648 |
/*
* Copyright 2007 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... | 115hhj-111 | MyTracks/src/com/google/wireless/gdata/docs/SpreadsheetsClient.java | Java | asf20 | 9,897 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/wireless/gdata/docs/DocumentsClient.java | Java | asf20 | 1,576 |
/*
* 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... | 115hhj-111 | MyTracks/src/com/google/wireless/gdata/docs/XmlDocsGDataParserFactory.java | Java | asf20 | 2,341 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Tracks Welcome</title>
</head>
<body>
<div>
<img src="file:///android_asset/welcome.png" />
<p>
<b>What is... | 115hhj-111 | MyTracks/assets/welcome.html | HTML | asf20 | 8,486 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/services/ITrackRecordingService.aidl | AIDL | asf20 | 2,554 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/WaypointCreationRequest.java | Java | asf20 | 2,886 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/Track.java | Java | asf20 | 4,768 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksLocation.java | Java | asf20 | 1,546 |
package com.google.android.apps.mytracks.content;
parcelable WaypointCreationRequest; | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/WaypointCreationRequest.aidl | AIDL | asf20 | 85 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/WaypointsColumns.java | Java | asf20 | 2,815 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/TrackPointsColumns.java | Java | asf20 | 1,754 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksProviderUtilsImpl.java | Java | asf20 | 36,403 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/TracksColumns.java | Java | asf20 | 2,606 |
package com.google.android.apps.mytracks.content;
parcelable Waypoint; | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/Waypoint.aidl | AIDL | asf20 | 70 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/MyTracksProviderUtils.java | Java | asf20 | 13,315 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/DescriptionGenerator.java | Java | asf20 | 1,233 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/content/Waypoint.java | Java | asf20 | 5,336 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/stats/ExtremityMonitor.java | Java | asf20 | 2,451 |
package com.google.android.apps.mytracks.stats;
parcelable TripStatistics; | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/stats/TripStatistics.aidl | AIDL | asf20 | 74 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/stats/TripStatistics.java | Java | asf20 | 15,895 |
/*
* 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... | 115hhj-111 | MyTracksLib/src/com/google/android/apps/mytracks/lib/MyTracksLibConstants.java | Java | asf20 | 925 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthListenerEclair.java | Java | asf20 | 5,217 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthConstants.java | Java | asf20 | 1,200 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthService.java | Java | asf20 | 7,851 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/RecordingStateReceiver.java | Java | asf20 | 2,484 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthListenerCupcake.java | Java | asf20 | 5,066 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthListenerFactory.java | Java | asf20 | 1,650 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthPreferences.java | Java | asf20 | 2,044 |
/*
* 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... | 115hhj-111 | SignalStrengthSampler/src/com/google/android/apps/mytracks/signalstrength/SignalStrengthListener.java | Java | asf20 | 1,157 |
package com.spatialite.activities;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import jsqlite.Stmt;
import com.spatialite.R;
import com.spatialite.utilities.ActivityHelper;
import android.app.ListActivity;
import android.content.Context;
import android.os.Bundle;
import ... | 1059045-test | spatialite-android/src/com/spatialite/activities/TableListActivity.java | Java | lgpl | 3,052 |
package com.spatialite.activities;
import jsqlite.Exception;
import jsqlite.Stmt;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.Point;
import android.util.Log;
import android.widget.TextView;
import com.google.andro... | 1059045-test | spatialite-android/src/com/spatialite/activities/MapSelectionOverlay.java | Java | lgpl | 3,887 |
package com.spatialite.activities;
import java.io.FileNotFoundException;
import java.util.List;
import jsqlite.Exception;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapActivity;
import com.google.android.... | 1059045-test | spatialite-android/src/com/spatialite/activities/MappingActivity.java | Java | lgpl | 1,607 |
package com.spatialite.activities;
import java.io.FileNotFoundException;
import java.util.Arrays;
import com.spatialite.R;
import com.spatialite.utilities.ActivityHelper;
import jsqlite.Callback;
import jsqlite.Stmt;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view... | 1059045-test | spatialite-android/src/com/spatialite/activities/TestActivity.java | Java | lgpl | 2,845 |
package com.spatialite.activities;
import java.io.IOException;
import com.spatialite.R;
import com.spatialite.utilities.ActivityHelper;
import com.spatialite.utilities.AssetHelper;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View... | 1059045-test | spatialite-android/src/com/spatialite/activities/MainActivity.java | Java | lgpl | 1,681 |
package com.spatialite.utilities;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import android.content.Context;
import android.content.res.AssetManager;
import android.util.Log;
public class AssetHelper {
private static fin... | 1059045-test | spatialite-android/src/com/spatialite/utilities/AssetHelper.java | Java | lgpl | 1,249 |
package com.spatialite.utilities;
import java.io.File;
import java.io.FileNotFoundException;
import com.spatialite.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.util.Log;
public class ActivityHelper {
private static final String TAG = "Act... | 1059045-test | spatialite-android/src/com/spatialite/utilities/ActivityHelper.java | Java | lgpl | 1,546 |
package jsqlite;
/**
* Callback interface for SQLite's trace function.
*/
public interface Trace {
/**
* Callback to trace (ie log) one SQL statement.
*
* @param stmt SQL statement string
*/
public void trace(String stmt);
}
| 1059045-test | spatialite-android-library/src/jsqlite/Trace.java | Java | lgpl | 260 |
package jsqlite;
/**
* Class for SQLite related exceptions.
*/
public class Exception extends java.lang.Exception {
/**
* Construct a new SQLite exception.
*
* @param string error message
*/
public Exception(String string) {
super(string);
}
}
| 1059045-test | spatialite-android-library/src/jsqlite/Exception.java | Java | lgpl | 283 |
package jsqlite;
/**
* Callback interface for SQLite's user defined functions.
* Each callback method receives a
* <A HREF="FunctionContext.html">FunctionContext</A> object
* which is used to set the function result or error code.
* <BR><BR>
* Example:<BR>
*
* <PRE>
* class SinFunc implements SQLite.Functio... | 1059045-test | spatialite-android-library/src/jsqlite/Function.java | Java | lgpl | 1,497 |
package jsqlite;
/**
* Class wrapping an SQLite backup object.
*/
public class Backup {
/**
* Internal handle for the native SQLite API.
*/
protected long handle = 0;
/**
* Finish a backup.
*/
protected void finish() throws jsqlite.Exception {
synchronized(this) {
_fina... | 1059045-test | spatialite-android-library/src/jsqlite/Backup.java | Java | lgpl | 1,711 |
package jsqlite;
import java.util.Vector;
/**
* Class representing an SQLite result set as
* returned by the
* <A HREF="Database.html#get_table(java.lang.String)">Database.get_table</A>
* convenience method.
* <BR><BR>
* Example:<BR>
*
* <PRE>
* ...
* SQLite.Database db = new SQLite.Database();
* db.... | 1059045-test | spatialite-android-library/src/jsqlite/TableResult.java | Java | lgpl | 2,837 |
package jsqlite;
/**
* Class to represent compiled SQLite3 statement.
*
* Note, that all native methods of this class are
* not synchronized, i.e. it is up to the caller
* to ensure that only one thread is in these
* methods at any one time.
*/
public class Stmt {
/**
* Internal handle for the SQLite... | 1059045-test | spatialite-android-library/src/jsqlite/Stmt.java | Java | lgpl | 8,155 |
package jsqlite;
/**
* Callback interface for SQLite's authorizer function.
*/
public interface Authorizer {
/**
* Callback to authorize access.
*
* @param what integer indicating type of access
* @param arg1 first argument (table, view, index, or trigger name)
* @param arg2 second arg... | 1059045-test | spatialite-android-library/src/jsqlite/Authorizer.java | Java | lgpl | 752 |
package jsqlite.JDBC2z;
import java.sql.*;
import java.util.*;
public class JDBCStatement implements java.sql.Statement {
protected JDBCConnection conn;
protected JDBCResultSet rs;
protected int updcnt;
protected int maxrows = 0;
private ArrayList<String> batch;
public JDBCStatement(JDBCConn... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/JDBCStatement.java | Java | lgpl | 8,159 |
package jsqlite.JDBC2z;
import java.sql.*;
public class JDBCResultSetMetaData implements java.sql.ResultSetMetaData {
private JDBCResultSet r;
public JDBCResultSetMetaData(JDBCResultSet r) {
this.r = r;
}
public String getCatalogName(int column) throws java.sql.SQLException {
return null;
}... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/JDBCResultSetMetaData.java | Java | lgpl | 5,552 |
package jsqlite.JDBC2z;
import java.sql.*;
import java.util.*;
public class JDBCConnection
implements java.sql.Connection, jsqlite.BusyHandler {
/**
* Open database.
*/
protected DatabaseX db;
/**
* Database URL.
*/
protected String url;
/**
* Character encoding.
... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/JDBCConnection.java | Java | lgpl | 13,994 |
package jsqlite.JDBC2z;
import java.sql.Types;
import java.util.Vector;
public class TableResultX extends jsqlite.TableResult {
public int sql_type[];
public TableResultX() {
super();
sql_type = new int[this.ncolumns];
for (int i = 0; i < this.ncolumns; i++) {
sql_type[i] = Types.VARCHAR;
}
}
... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/TableResultX.java | Java | lgpl | 1,032 |
package jsqlite.JDBC2z;
import java.sql.*;
import java.math.BigDecimal;
import java.util.*;
class BatchArg {
String arg;
boolean blob;
BatchArg(String arg, boolean blob) {
if (arg == null) {
this.arg = null;
} else {
this.arg = new String(arg);
}
this.blob = blob;
}
}
public class JDBC... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/JDBCPreparedStatement.java | Java | lgpl | 26,746 |
package jsqlite.JDBC2z;
import java.sql.*;
import java.util.Hashtable;
public class JDBCDatabaseMetaData implements DatabaseMetaData {
private JDBCConnection conn;
public JDBCDatabaseMetaData(JDBCConnection conn) {
this.conn = conn;
}
public boolean allProceduresAreCallable() throws SQLException {... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/JDBCDatabaseMetaData.java | Java | lgpl | 45,176 |
package jsqlite.JDBC2z;
import java.sql.*;
import java.math.BigDecimal;
public class JDBCResultSet implements java.sql.ResultSet {
/**
* Current row to be retrieved.
*/
private int row;
/**
* Table returned by Database.get_table()
*/
protected jsqlite.TableResult tr;
/**
... | 1059045-test | spatialite-android-library/src/jsqlite/JDBC2z/JDBCResultSet.java | Java | lgpl | 42,086 |
package jsqlite;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
/**
* SQLite command line shell. This is a partial reimplementation
* of sqlite/src/shell.c and can be invoked by:<P... | 1059045-test | spatialite-android-library/src/jsqlite/Shell.java | Java | lgpl | 16,351 |
package jsqlite;
import java.io.BufferedReader;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
* SQLite SQL restore utility.
*/
public class SQLRestore {
BufferedReader is;
Database db;
public SQLRestore(InputStream is, Databa... | 1059045-test | spatialite-android-library/src/jsqlite/SQLRestore.java | Java | lgpl | 979 |
package jsqlite;
import java.io.PrintStream;
import java.io.PrintWriter;
/**
* SQLite SQL dump utility.
*/
public class SQLDump implements Callback {
PrintWriter pw;
PrintWriter err;
Database db;
Shell s;
public SQLDump(PrintWriter pw, Database db) {
this.pw = pw;
this.err = this.pw;
this.d... | 1059045-test | spatialite-android-library/src/jsqlite/SQLDump.java | Java | lgpl | 2,200 |
package jsqlite;
/**
* Class to represent compiled SQLite VM.
*/
public class Vm {
/**
* Internal handle for the compiled SQLite VM.
*/
private long handle = 0;
/**
* Internal last error code for compile()/step() methods.
*/
protected int error_code = 0;
/**
* Perfo... | 1059045-test | spatialite-android-library/src/jsqlite/Vm.java | Java | lgpl | 1,631 |
package jsqlite;
/**
* Callback interface for SQLite's user defined progress handler.
*/
public interface ProgressHandler {
/**
* Invoked for N SQLite VM opcodes.
* The method should return true to continue the
* current query, or false in order
* to abandon the action.<BR><BR>
*/
... | 1059045-test | spatialite-android-library/src/jsqlite/ProgressHandler.java | Java | lgpl | 350 |
package jsqlite;
/**
* Callback interface for SQLite's profile function.
*/
public interface Profile {
/**
* Callback to profile (ie log) one SQL statement
* with its estimated execution time.
*
* @param stmt SQL statement string
* @param est estimated execution time in milliseconds.
... | 1059045-test | spatialite-android-library/src/jsqlite/Profile.java | Java | lgpl | 380 |
/*
* This is a sample implementation of the
* Transaction Processing Performance Council
* Benchmark B coded in Java/JDBC and ANSI SQL2.
*
* This version is using one connection per
* thread to parallellize server operations.
*/
package jsqlite;
import java.sql.Connection;
import java.sql.PreparedStatemen... | 1059045-test | spatialite-android-library/src/jsqlite/Benchmark.java | Java | lgpl | 19,948 |
package jsqlite;
/**
* Main class wrapping an SQLite database.
*/
public class Database {
/**
* Internal handle for the native SQLite API.
*/
protected long handle = 0;
/**
* Internal last error code for exec() methods.
*/
protected int error_code = 0;
/**
* Open an... | 1059045-test | spatialite-android-library/src/jsqlite/Database.java | Java | lgpl | 23,569 |
package jsqlite;
/**
* Callback interface for SQLite's user defined busy handler.
*/
public interface BusyHandler {
/**
* Invoked when a table is locked by another process
* or thread. The method should return true for waiting
* until the table becomes unlocked, or false in order
* to aband... | 1059045-test | spatialite-android-library/src/jsqlite/BusyHandler.java | Java | lgpl | 517 |
package jsqlite;
import java.sql.*;
import java.util.Properties;
public class JDBCDriver implements java.sql.Driver {
public static final int MAJORVERSION = 1;
public static boolean sharedCache = false;
public static String vfs = null;
private static java.lang.reflect.Constructor makeConn = null;
... | 1059045-test | spatialite-android-library/src/jsqlite/JDBCDriver.java | Java | lgpl | 3,872 |
package jsqlite;
/**
* String encoder/decoder for SQLite.
*
* This module was kindly donated by Eric van der Maarel of Nedap N.V.
*
* This encoder was implemented based on an original idea from an anonymous
* author in the source code of the SQLite distribution.
* I feel obliged to provide a quote from the orig... | 1059045-test | spatialite-android-library/src/jsqlite/StringEncoder.java | Java | lgpl | 6,816 |
package jsqlite;
/**
* Callback interface for SQLite's query results.
* <BR><BR>
* Example:<BR>
*
* <PRE>
* class TableFmt implements SQLite.Callback {
* public void columns(String cols[]) {
* System.out.println("<TH><TR>");
* for (int i = 0; i < cols.length; i++) {
* ... | 1059045-test | spatialite-android-library/src/jsqlite/Callback.java | Java | lgpl | 1,942 |
package jsqlite;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Internal class implementing java.io.InputStream on
* SQLite 3.4.0 incremental blob I/O interface.
*/
class BlobR extends InputStream {
/**
* Blob instance
*/
private Blob blob;
/**
... | 1059045-test | spatialite-android-library/src/jsqlite/Blob.java | Java | lgpl | 5,974 |
package jsqlite;
/**
* Context for execution of SQLite's user defined functions.
* A reference to an instance of this class is passed to
* user defined functions.
*/
public class FunctionContext {
/**
* Internal handle for the native SQLite API.
*/
private long handle = 0;
/**
* Set ... | 1059045-test | spatialite-android-library/src/jsqlite/FunctionContext.java | Java | lgpl | 1,526 |
include $(CLEAR_VARS)
# ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
# find $(GEOS_PATH)/ -name "*.cpp" | grep -Ev "tests|doc" | sort | awk '{ print "\t"$1" \\" }'
LOCAL_MODULE := geos
LOCAL_C_INCLUDES := \
$(GEOS_PATH)/src \
$(GEOS_PATH)/include
LOCAL_CFLAGS := \
$(LOCAL_C_INCLUDES:%=-I%) \
-D... | 1059045-test | spatialite-android-library/jni/geos-3.3.4.mk | Makefile | lgpl | 14,752 |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#if HAVE_SQLITE2
#include "sqlite.h"
#endif
#if HAVE_SQLITE3
#include "sqlite3.h"
#undef HAVE_SQLITE_COMPILE
#define HAVE_SQLITE_COMPILE 1
#undef HAVE_SQLITE_PROGRESS_HANDLER
#define HAVE_SQLITE_PROGRESS_HANDLER 1
#undef HAVE_SQLITE_TRACE
#define HAVE_SQLI... | 1059045-test | spatialite-android-library/jni/javasqlite-20120209/native/sqlite_jni.c | C | lgpl | 115,533 |
include $(CLEAR_VARS)
# ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
# find $(GEOS_PATH)/ -name "*.cpp" | grep -Ev "tests|doc" | sort | awk '{ print "\t"$1" \\" }'
LOCAL_MODULE := geos
LOCAL_C_INCLUDES := $(GEOS_PATH)/source/headers
LOCAL_CFLAGS := \
$(LOCAL_C_INCLUDES:%=-I%) \
-DHAVE_LONG_LONG_INT_6... | 1059045-test | spatialite-android-library/jni/geos-3.2.2.mk | Makefile | lgpl | 16,797 |
include $(CLEAR_VARS)
LOCAL_MODULE := jsqlite
LOCAL_CFLAGS := \
-D__ANDROID__ \
-DHAVE_SQLITE2=0 \
-DHAVE_SQLITE3=1 \
-DHAVE_SQLITE3_MALLOC=1 \
-DHAVE_SQLITE3_OPEN_V2=1 \
-DHAVE_SQLITE3_PREPARE_V2=1 \
-DHAVE_SQLITE3_PREPARE16_V2=1 \
-DHAVE_SQLITE3_CLEAR_BINDINGS=1 \
-DHAVE_SQLITE3_BIND_PARAMETER_COUNT=1 \
... | 1059045-test | spatialite-android-library/jni/jsqlite.mk | Makefile | lgpl | 1,044 |
include $(CLEAR_VARS)
# ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
# find $(GEOS_PATH)/ -name "*.cpp" | grep -Ev "tests|doc" | sort | awk '{ print "\t"$1" \\" }'
LOCAL_MODULE := geos
LOCAL_C_INCLUDES := $(GEOS_PATH)/source/headers
LOCAL_CFLAGS := \
$(LOCAL_C_INCLUDES:%=-I%) \
-DHAVE_LONG_LONG_INT_6... | 1059045-test | spatialite-android-library/jni/geos.mk | Makefile | lgpl | 16,797 |
/*
spatialite.h -- Gaia spatial support for SQLite
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Versi... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite.h | C | lgpl | 12,480 |
/*
spatialite.h -- Gaia support for SQLite extensions
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Ver... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/spatialite.h | C | lgpl | 2,130 |
/*
** alias MACROs to avoid any potential collision
** for linker symbols declared into the sqlite3 code
** internally embedded into SpatiaLite
*/
#define sqlite3_version SPLite3_version
#define sqlite3_libversion SPLite3_libversion
#define sqlite3_sourceid SPLite3_sourceid
#define sqlite3_libversion_number SPLite3_lib... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3ext.h | C | lgpl | 35,960 |
/*
gg_dynamic.h -- Gaia common support for geometries: DynamicLine functions
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozi... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_dynamic.h | C | lgpl | 13,153 |
/*
gaiaaux.h -- Gaia common utility functions
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gaiaaux.h | C | lgpl | 7,161 |
/*
gaiaexif.h -- Gaia common EXIF Metadata reading functions
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public Lice... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gaiaexif.h | C | lgpl | 19,164 |
/*
gg_mbr.h -- Gaia common support for geometries: MBR functions
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public L... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_mbr.h | C | lgpl | 14,520 |
/*
** alias MACROs to avoid any potential collision
** for linker symbols declared into the sqlite3 code
** internally embedded into SpatiaLite
*/
#define sqlite3_version SPLite3_version
#define sqlite3_libversion SPLite3_libversion
#define sqlite3_sourceid SPLite3_sourceid
#define sqlite3_libversion_number SPLite3_lib... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/sqlite3.h | C | lgpl | 336,561 |
/*
gg_structs.h -- Gaia common support for geometries: structures
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public ... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_structs.h | C | lgpl | 18,433 |
/*
gaiageo.h -- Gaia common support for geometries
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gaiageo.h | C | lgpl | 2,326 |
/*
gg_const.h -- Gaia common support for geometries: constants
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public Lic... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_const.h | C | lgpl | 15,950 |
/*
gg_core.h -- Gaia common support for geometries: core functions
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_core.h | C | lgpl | 53,704 |
/*
gg_advanced.h -- Gaia common support for geometries: advanced
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public L... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_advanced.h | C | lgpl | 29,854 |
/*
gg_formats.h -- Gaia common support for geometries: formats
version 3.0, 2011 July 20
Author: Sandro Furieri a.furieri@lqt.it
------------------------------------------------------------------------------
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public Lic... | 1059045-test | spatialite-android-library/jni/libspatialite-amalgamation-3.0.1/headers/spatialite/gg_formats.h | C | lgpl | 45,461 |
include $(CLEAR_VARS)
# ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
LOCAL_MODULE := iconv
LOCAL_CFLAGS := \
-Wno-multichar \
-D_ANDROID \
-DBUILDING_LIBICONV \
-DIN_LIBRARY \
-DLIBDIR="\"~/android-libs/usr/local/lib\""
LOCAL_C_INCLUDES := \
$(ICONV_PATH... | 1059045-test | spatialite-android-library/jni/iconv.mk | Makefile | lgpl | 607 |
APP_STL := gnustl_static
APP_CPPFLAGS += -frtti
APP_CPPFLAGS += -fexceptions
APP_ABI := armeabi armeabi-v7a x86 | 1059045-test | spatialite-android-library/jni/Application.mk | Makefile | lgpl | 111 |
include $(CLEAR_VARS)
# ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
# find $(PROJ4_PATH)/ -name "*.c" | grep -Ev "tests|doc" | sort | awk '{ print "\t"$1" \\" }'
LOCAL_MODULE := proj
LOCAL_C_INCLUDES := $(PROJ4_PATH)/src
LOCAL_LDLIBS := -lm
LOCAL_SRC_FILES := \
$(PROJ4_PATH)/src/aasincos.c \
$(PR... | 1059045-test | spatialite-android-library/jni/proj4.mk | Makefile | lgpl | 5,137 |
include $(CLEAR_VARS)
# ./configure --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
LOCAL_MODULE := spatialite
# SQLite flags copied from ASOP
common_sqlite_flags := \
-DHAVE_USLEEP=1 \
-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576 \
-DSQLITE_THREADSAFE=1 \
-DNDEBUG=1 \
-DSQL... | 1059045-test | spatialite-android-library/jni/spatialite.mk | Makefile | lgpl | 1,143 |
LOCAL_PATH := $(call my-dir)
JSQLITE_PATH := javasqlite-20120209
SPATIALITE_PATH := libspatialite-amalgamation-3.0.1
GEOS_PATH := geos-3.3.4
PROJ4_PATH := proj-4.7.0
include $(LOCAL_PATH)/proj4.mk
include $(LOCAL_PATH)/geos-3.3.4.mk
include $(LOCAL_PATH)/spatialite.mk
include $(LOCAL_PATH)/jsqlite.mk
| 1059045-test | spatialite-android-library/jni/Android.mk | Makefile | lgpl | 304 |
package com.spatialite.test.utilities;
import java.io.File;
import java.io.IOException;
import com.spatialite.utilities.ActivityHelper;
import com.spatialite.utilities.AssetHelper;
import jsqlite.Exception;
import android.test.AndroidTestCase;
public abstract class DatabaseTestCase extends AndroidTestCase {
// Sp... | 1059045-test | spatialite-android-test/src/com/spatialite/test/utilities/DatabaseTestCase.java | Java | lgpl | 1,509 |
package com.spatialite.test.spatialite;
import com.spatialite.test.utilities.DatabaseTestCase;
import jsqlite.Callback;
import jsqlite.Stmt;
import android.util.Log;
public class RTreeTest2 extends DatabaseTestCase {
private static final String TAG = "RTreeTest2";
@Override
protected void setUp() throws Exceptio... | 1059045-test | spatialite-android-test/src/com/spatialite/test/spatialite/RTreeTest2.java | Java | lgpl | 3,142 |
package NetworkManager;
import java.io.*;
import java.net.*;
import java.util.Observable;
import MiddleLayer.OtherClass.*;
import java.util.Observer;
import java.util.logging.Level;
import java.util.logging.Logger;
public class MultiThreadChatServer implements Observer{
MyObservable _observable = new My... | 0712476java | trunk/HeartGame/src/NetworkManager/MultiThreadChatServer.java | Java | asf20 | 12,252 |
package NetworkManager;
import MiddleLayer.OtherClass.CommandStruct;
import MiddleLayer.OtherClass.MyObservable;
import java.io.*;
import java.net.*;
import java.util.Observer;
import java.util.logging.Level;
import java.util.logging.Logger;
public class MultiThreadChatClient extends Thread implements Runnable{
... | 0712476java | trunk/HeartGame/src/NetworkManager/MultiThreadChatClient.java | Java | asf20 | 4,991 |