code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
// Copyright 2010 Google Inc. All Rights Reseved.
//
// 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 ... | Java |
// Copyright 2010 Google Inc. All Rights Reseved.
//
// 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 ... | Java |
// Copyright 2010 Google Inc. All Rights Reseved.
//
// 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 ... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agre... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// 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 agre... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
// Copyright 2007 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); You may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by
// applicable law or agree... | Java |
package org.oryxeditor.buildapps.sscompress;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URLEncoder;
import java.util.re... | Java |
package org.oryxeditor.buildapps;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.... | Java |
package com.example.Sorteando;
import java.util.Collections;
import java.util.List;
public class Embaralhar {
public List <String> embra(List<String> lists){
Collections.shuffle(lists);
return lists;
}
}
| Java |
package com.example.Sorteando;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ProgressBar;
public class LoadingTask extends AsyncTask<String, Integer, Integer> {
public interface LoadingTaskFinishedListener {
void onTaskFinished(); // If you want to pass something ... | Java |
package com.example.Sorteando;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.ProgressBar;
import com.example.Sorteando.LoadingTask.LoadingTaskFinishedListener;
public class inicoactivity extends Activity implements Lo... | Java |
package foundation.data;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import com.mysport.ui.R;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.j256.ormlite.android... | Java |
package foundation.data;
import java.sql.SQLException;
import java.util.List;
import com.j256.ormlite.stmt.DeleteBuilder;
import com.j256.ormlite.stmt.PreparedDelete;
import com.j256.ormlite.stmt.PreparedQuery;
import com.j256.ormlite.stmt.QueryBuilder;
/**
*
* @author 福建师范大学软件学院 陈贝、刘大刚
*
*/
publ... | Java |
package foundation.data;
import java.sql.SQLException;
import java.util.List;
import android.database.sqlite.SQLiteDatabase;
import app.MyApplication;
import com.j256.ormlite.dao.Dao;
import com.j256.ormlite.dao.DaoManager;
import com.j256.ormlite.dao.GenericRawResults;
import com.j256.ormlite.stmt.Delete... | Java |
package foundation.webservice;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ks... | Java |
package foundation.webservice;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public ... | Java |
package tool.data;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import android.os.Bundle;
import domain.businessEntity.gps.ClimbData;
public class ClimbDataUtil {
/**
* @param args
*/
private static final String startAltitude = null;
pr... | Java |
package tool.data;
import java.io.File;
import java.io.FileFilter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.Set;
import android.os.Environment;
import com.... | Java |
package tool.SunriseSunset;
/******************************************************************************
*
* SunriseSunset.java
*
*******************************************************************************
*
* Java Class: SunriseSunset
*
* This Java class is part of a collection of classes dev... | Java |
package app;
import ui.viewModel.ViewModel;
import foundation.data.DataHelper;
import android.app.Application;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
/**
*
* @author 福建师范大学软件学院 倪友聪、赵康... | Java |
package app;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.widget.RadioGroup;
import android.widget.RadioGroup.OnCheckedChangeListener;
import android.widget.TabHost;
import android.widget.TabHost.OnTabChangeListener;
import com.... | Java |
/**
* Copyright (c) 2013 Baidu.com, Inc. All Rights Reserved
*/
package socialShare.wxapi;
import android.os.Bundle;
import com.baidu.sharesdk.weixin.WXEventHandlerActivity;
/**
* 处理微信回调
* @author chenhetong(chenhetong@baidu.com)
*
*/
public class WXEntryActivity extends WXEventHandlerActivity{
@Override... | Java |
package socialShare;
public class SocialShareConfig {
public final static String mbApiKey = "OYt9Ios9cy7vM09e64AIIjFE"; // online
// env
public static final String SINA_SSO_APP_KEY = "319137445";
public static final String QQ_SSO_APP_KEY = "100358052";
public static final String... | Java |
package domain.businessService.gps;
import java.util.List;
import domain.businessEntity.gps.ClimbData;
public interface IClimbDataService {
//添加登山记录
public boolean addClimbData(ClimbData data);
//删除登山记录
public boolean deleteCilmbDataByID(int climbId);
//删除全部记录
public boolean deleteAll();
... | Java |
package domain.businessService.gps;
import java.util.Date;
import java.util.List;
import domain.businessEntity.gps.LatLngData;
public interface ILatLngDataService {
public boolean addLatLngData(LatLngData data);
public boolean deleteAll();
public boolean deleteByDate(String time);
public List<LatLngDa... | Java |
package domain.businessService.gps;
import java.util.List;
import domain.businessEntity.gps.AltitudeData;
public interface IAltitudeDataService {
public boolean addAltitudeData(AltitudeData data);
public boolean deleteAltitudeData(String time);
public List<AltitudeData> getAltitudeData(String time)... | Java |
package domain.businessService.gps;
import java.sql.SQLException;
import java.util.List;
import ui.viewModel.gps.RecDetailViewModel;
import com.j256.ormlite.stmt.QueryBuilder;
import android.util.Log;
import domain.businessEntity.gps.ClimbData;
import foundation.data.DataContext;
import foundation.d... | Java |
package domain.businessService.gps;
import java.sql.SQLException;
import java.util.List;
import android.util.Log;
import com.j256.ormlite.stmt.DeleteBuilder;
import com.j256.ormlite.stmt.QueryBuilder;
import domain.businessEntity.gps.AltitudeData;
import domain.businessEntity.gps.LatLngData;
import foun... | Java |
package domain.businessService.gps;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import com.j256.ormlite.stmt.DeleteBuilder;
import com.j256.ormlite.stmt.QueryBuilder;
import android.util.Log;
import domain.businessEntity.gps.LatLngData;
import foundation.data.DataContext;... | Java |
package domain.businessEntity.gps;
import java.util.Date;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "T_ClimbData")
public class ClimbData {
public ClimbData(){}
//ID号 设置主键
@DatabaseField(generatedId = true)
private int clim... | Java |
package domain.businessEntity.gps;
import java.util.Date;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "T_LatLngData")
public class LatLngData {
public LatLngData(){}
//设置ID为主键
@DatabaseField(generatedId = true)
private int dataI... | Java |
package domain.businessEntity.gps;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "T_AltitudeData")
public class AltitudeData {
@DatabaseField(generatedId = true)
private int dataID;
@DatabaseField(canBeNull = false)
private int... | Java |
package ui.activity.gps;
import java.io.ByteArrayOutputStream;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Random;
import org.achartengine.ChartFactory;
import org.achartengine.GraphicalView;... | Java |
package ui.activity.gps;
import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ui.activity.ActivityOfAF4Ad;
import ui.viewModel.ModelErrorInfo;
import ui.viewModel.ViewModel;
import android.content.Inte... | Java |
package ui.activity.gps;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import ui.activity.ActivityOfAF4Ad;
import ui.viewModel.ModelErrorInfo;
import ui.viewModel.ViewModel;
import android.app.AlertDialog;
import android.app.AlertDialog.Bui... | Java |
package ui.activity.GoogleMap;
/**
* @author DreamTeam 郑运春
*/
import static com.google.android.gms.maps.GoogleMap.MAP_TYPE_SATELLITE;
import static com.google.android.gms.maps.GoogleMap.MAP_TYPE_HYBRID;
import static com.google.android.gms.maps.GoogleMap.MAP_TYPE_NORMAL;
import static com.google.androi... | Java |
package ui.activity.GoogleMap;
import java.util.List;
import android.content.Context;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.BaseAdapter;
import android.widget.Gri... | Java |
package ui.activity.GoogleMap;
/**
* @author DreamTeam 郑运春
*/
import java.util.List;
import ui.activity.GoogleMap.GMapActivity.ItemClickEventGmap;
import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widge... | Java |
package ui.activity.GoogleMap;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
public class StatusReceiver extends BroadcastReceiver {
private static boolean status;
@Override
public void onReceive(Context context, Inte... | Java |
package ui.activity.GoogleMap;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.List;
import java.util.Locale;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.a... | Java |
package ui.activity.GoogleMap;
import java.util.List;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.Im... | Java |
package ui.activity;
import java.util.List;
import ui.viewModel.IOnViewModelUpated;
import ui.viewModel.ModelErrorInfo;
import ui.viewModel.ViewModel;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.util.Log;
impor... | Java |
package ui.activity.weather;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.ksoap2.serialization.SoapObject;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.GestureDetector;
import android.view.Menu;
import android.view.GestureDetect... | Java |
package ui.activity.weather;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class LatLngReceiver extends BroadcastReceiver {
private static double lat;
private static double lng;
@Override
public void onReceive(Context context, Intent i... | Java |
package ui.activity.app;
import com.mysport.ui.R;
import com.mysport.ui.R.layout;
import com.mysport.ui.R.menu;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
//该Activity为测试用,可刪去
public class DefaultActivity extends Activity {
@Override
protected void onCreate(Bundl... | Java |
package ui.viewModel;
import java.util.List;
/**
*
* @author 福建师范大学软件学院 倪友聪、赵康
*
*/
public interface IOnViewModelUpated {
//视图模型更新后的回调方法
public void onUpdated(ViewModel vm);
//发现视图模型错误时的回调方法
public void onViewModelInError(List<ModelErrorInfo> errsOfVM);
}
| Java |
package ui.viewModel.gps;
import java.util.Date;
import java.util.List;
import ui.viewModel.ModelErrorInfo;
import ui.viewModel.ViewModel;
public class RecordViewModel extends ViewModel {
private String ClimbName;
private Date starTime;
public String getClimbName() {
return ClimbName;
}
publi... | Java |
package ui.viewModel.gps;
import java.util.Date;
import java.util.List;
import domain.businessEntity.gps.ClimbData;
import ui.viewModel.ModelErrorInfo;
import ui.viewModel.ViewModel;
public class RecDetailViewModel extends ViewModel {
private String ClimbName;
private int startAltitude;
private int ... | Java |
package ui.viewModel.attributeReflection;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author 福建师范大学软件学院 倪友聪、赵康
*
*/
public class AttributeReflection {
/**
* Android平台下可以直接打... | Java |
package ui.viewModel.attributeReflection;
import java.util.List;
import android.os.Parcel;
import android.os.Parcelable;
/**
*
* @author 福建师范大学软件学院 倪友聪、赵康
*
*/
public class AttInfo implements Parcelable {
// 属性名
private String attName;
// 属性的类型名
private String typeName;
// 属性值,如属性是An... | Java |
package ui.viewModel;
import java.util.ArrayList;
import java.util.List;
import ui.viewModel.attributeReflection.AttInfo;
import ui.viewModel.attributeReflection.AttributeReflection;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.Log;
/**
*
* @author 福建师范大学软件学院 倪友聪、赵康
... | Java |
package ui.viewModel;
/**
*
* @author 福建师范大学软件学院 倪友聪、赵康
*
*/
public class ModelErrorInfo {
//错误属性名称
private String errAttName;
//错误消息
private String errMsg;
//获取属性名称
public String getAttName() {
return this.errAttName;
}
//设置属性名称
public void setErrAttName(String aErrAt... | Java |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sv;
import java.io.IOException;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.security.MessageDigest;
... | Java |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mahoamd5;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmExce... | Java |
package org.esgl3d.spatial;
import java.util.ArrayList;
import org.esgl3d.rendering.RenderQueue;
import org.esgl3d.scene.CameraNode;
import org.esgl3d.scene.Scene;
import org.esgl3d.scene.SceneNode;
public class NoneSpatialStructure implements SpatialStructure {
private final Scene attachedScene;
public NoneSp... | Java |
package org.esgl3d.spatial;
import org.esgl3d.rendering.RenderQueue;
import org.esgl3d.scene.CameraNode;
import org.esgl3d.scene.SceneNode;
/**
* Basic interface for any kind of spartial tree.
* @author michael
*
*/
public interface SpatialStructure {
/**
* Performs a full rebuild of the internal structure
*... | Java |
package org.esgl3d.rendering;
import java.util.ArrayList;
import org.esgl3d.scene.SceneNode;
public class RenderQueue {
public enum RenderBucket {
Solid,
Transparent,
}
private ArrayList<SceneNode> nodesToRender = new ArrayList<SceneNode>();
public void reset() {
nodesToRender.clear();
}
public vo... | Java |
package org.esgl3d.rendering;
/**
* @author michael
* This class represents options which specify how a vertex container is created.
*/
public class VertexContainerOptions {
private final boolean forceVertexArray;
public boolean isVertexArrayForced() {
return forceVertexArray;
}
public VertexContainerOptio... | Java |
package org.esgl3d.rendering;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
class VertexBuffer extends VertexContainer {
private static Logger logger = Logger.getLogger(VertexBuffer.class.getName());... | Java |
package org.esgl3d.rendering;
import java.nio.IntBuffer;
import javax.microedition.khronos.opengles.GL10;
import android.graphics.Bitmap;
import android.opengl.GLUtils;
public class TextureManager {
private GL10 gl;
public void setGl(GL10 value) {
gl = value;
}
public Texture addImage(Bitmap bitmap, boole... | Java |
package org.esgl3d.rendering;
import java.nio.FloatBuffer;
import org.esgl3d.rendering.VertexContainer.BufferStructure;
/**
* Acts as a wrapper for legacy opengl commands. Handles internal state
* of color and texture coordinates.
*
* @author michael
*
*/
public class LegacyGLWrapper {
FloatBuffer buffer;
... | Java |
package org.esgl3d.rendering;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
import android.R.integer;
public abstract class VertexContainer {
public enum PrimitiveType {
Tri... | Java |
package org.esgl3d.rendering;
import android.R.integer;
public class VertexFormat {
static final int COLOR = 0;
static final int NORMAL = 1;
static final int TEXTURE = 2;
static final int POSITION = 3;
final int[] components = new int[4];
final int[] offsets = new int[4];
final int totalFloats;
final bo... | Java |
package org.esgl3d.rendering;
import javax.microedition.khronos.opengles.GL10;
import android.graphics.Bitmap;
import android.opengl.GLUtils;
public class Texture {
private final int textureId;
private final int width;
private final int height;
public int getHeight() {
return height;
}
public int getWidt... | Java |
package org.esgl3d.rendering;
import java.lang.ref.Reference;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
import org.esgl... | Java |
package org.esgl3d.rendering;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.microedition.khronos.opengles.GL10;
/**
* @author michael
*
*/
public class RenderCaps {
private static Logger log = Logger.getLogger(RenderCaps.class.getName());
private boolean isSoftwareRenderer = fa... | Java |
package org.esgl3d.rendering;
public class Layer {
}
| Java |
package org.esgl3d.rendering;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
class VertexArray extends VertexContainer {
private final GL10 gl;
public VertexArray(int sizeInBytes, VertexFormat type, GL10 gl) {
super(sizeInBytes,type);
this.gl = gl;
}
@O... | Java |
package org.esgl3d.util;
public class HighPerformanceCounter {
private long firstStart = 0;
private long start = 0;
private long lastElapsed = 0;
private boolean isRunning = false;
private long totalElapsed = 0;
private long totalStops = 0;
private final String name;
public HighPerformanceCounter(String na... | Java |
package org.esgl3d.util;
public class FpsCounter {
private int lastFps = 0;
private int currentFps;
private int lastDelta = 0;
private long lastMillis = System.currentTimeMillis();
private long lastNextMillis = System.currentTimeMillis();
private String lastFpsString = "";
public int getLastFps() {
return... | Java |
package org.esgl3d.scene;
import java.util.logging.Level;
import java.util.logging.Logger;
public class LightNode extends SceneNode {
private static final Logger logger = Logger.getLogger(LightNode.class.getName());
@Override
protected void onSceneSwitch(Scene from, Scene to) {
if (from != null) {
if (log... | Java |
package org.esgl3d.scene;
import java.util.ArrayList;
import org.esgl3d.Mesh;
import org.esgl3d.math.Matrix;
import org.esgl3d.primitives.Pyramid;
import org.esgl3d.rendering.Renderer;
import com.sun.org.apache.xpath.internal.axes.ChildIterator;
/**
* SceneNode represents a single node of a scene graph. SceneNode ... | Java |
package org.esgl3d.scene;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.esgl3d.rendering.RenderQueue;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.rendering.Renderer.MatrixType;
import org.esgl3d.rendering.VertexContainer.PrimitiveType;
import org.e... | Java |
package org.esgl3d.scene;
import org.esgl3d.Mesh;
import org.esgl3d.rendering.Texture;
public class MeshNode extends SceneNode {
private Mesh geometry;
public Mesh getGeometry() {
return geometry;
}
public void setGeometry(Mesh value) {
geometry = value;
}
}
| Java |
package org.esgl3d.scene;
public class CameraNode extends SceneNode {
}
| Java |
package org.esgl3d.math;
public class Vector3d {
private static final Vector3d ORIGIN = new Vector3d(0f, 0f, 0f);
public float x;
public float y;
public float z;
public Vector3d(final Vector3d other) {
x = other.x;
y = other.y;
z = other.z;
}
public Vector3d(float... | Java |
package org.esgl3d.math;
import java.nio.FloatBuffer;
import android.R.integer;
/**
* This class is straight from android sources with some modifications
*/
/**
* Matrix math utilities. These methods operate on OpenGL ES format
* matrices and vectors stored in float arrays.
*
* Matrices are 4 x 4 column-vector... | Java |
package org.esgl3d;
import org.esgl3d.rendering.Texture;
import org.esgl3d.rendering.VertexContainer;
public class Mesh {
public enum Format {
Triangle,
TriangleStrip,
}
private VertexContainer vertices;
private int numberOfVertices;
private Format meshFormat;
private Texture texture = null;
public int g... | Java |
package org.esgl3d.loader;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.ReadOnlyBufferException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.StringTokenizer;
import java.util.logging.Level;
import jav... | Java |
package org.esgl3d.primitives;
import org.esgl3d.Mesh;
import org.esgl3d.Mesh.Format;
import org.esgl3d.rendering.LegacyGLWrapper;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.rendering.VertexContainer;
import org.esgl3d.rendering.VertexFormat;
public class Box {
float box[] = new float[] {
// FRONT
... | Java |
package org.esgl3d.primitives;
import java.util.logging.Logger;
import org.esgl3d.Mesh;
import org.esgl3d.Mesh.Format;
import org.esgl3d.rendering.LegacyGLWrapper;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.rendering.VertexContainer;
import org.esgl3d.rendering.VertexFormat;
import org.esgl3d.rendering.V... | Java |
package org.esgl3d.core;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
import android.content.res.AssetManager;
import android.content.res.Resources;
public class AndroidResourceResolver implements ResourceResolver {
private final static Log... | Java |
package org.esgl3d.core;
import java.io.InputStream;
public interface ResourceResolver {
/**
* Gets a resource stream for the given filename.
* @param filename of the resource
* @return null if not found otherwise a input stream
*/
InputStream getResourceStream(String filename);
}
| Java |
package org.esgl3d.ui;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import javax.microedition.khronos.opengles.GL10;
import javax.microedition.khronos.opengles.GL11;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.rendering.VertexContainer;
import org.esgl3d.rendering.V... | Java |
package org.esgl3d.ui;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import javax.microedition.khronos.opengles.GL10;
import org.esgl3d.rendering.Texture;
import org.esgl3d.rendering.VertexContainer;
import org.omg.CORBA.PRIVATE_MEMBER;
import android... | Java |
package org.esgl3d;
import java.util.ArrayList;
import java.util.List;
import org.esgl3d.core.AndroidResourceResolver;
import org.esgl3d.loader.ObjLoader;
import org.esgl3d.primitives.Pyramid;
import org.esgl3d.rendering.RenderActivity;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.scene.MeshNode;
import or... | Java |
package org.esgl3d;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.LogManager;
import android.app.Activity;
import android.os.Bundle;
import android.app.ListActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.util.Linkify;
... | Java |
package org.esgl3d;
import java.util.Date;
import org.esgl3d.core.AndroidResourceResolver;
import org.esgl3d.primitives.Box;
import org.esgl3d.rendering.RenderActivity;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.rendering.TextureManager;
import org.esgl3d.scene.MeshNode;
import org.esgl3d.scene.Scene;
im... | Java |
package org.esgl3d;
import org.esgl3d.primitives.Pyramid;
import org.esgl3d.rendering.RenderActivity;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.scene.MeshNode;
import org.esgl3d.scene.Scene;
import org.esgl3d.scene.SceneNode;
import android.app.Activity;
import android.os.Bundle;
public class ExMinimal... | Java |
package org.esgl3d;
import org.esgl3d.core.AndroidResourceResolver;
import org.esgl3d.primitives.Box;
import org.esgl3d.primitives.Pyramid;
import org.esgl3d.rendering.RenderActivity;
import org.esgl3d.rendering.Renderer;
import org.esgl3d.scene.MeshNode;
import org.esgl3d.scene.Scene;
import org.esgl3d.ui.BitmapFont;... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.