code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * */ public class ModeloPedido { int ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; /** * */ public class CrearConexion { private ConexionBuilder conexionBuilder; public void setConexionBuilder(ConexionBuilder conexionBuilder) { this.conexionBuilder = conexionBuilder...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; /** * */ public class BridgeAbstraccion { private BridgeImplementador implementor; public void setImplementor( BridgeImplementador implementor ){ this.implementor = implementor; } public Br...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; /** * */ import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.Vector; import javax.swing.J...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; /** * */ abstract class ConexionBuilder { protected conexionBd conexion; public conexionBd getConexion() { return conexion; } public void crearNuevaConexion() { co...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * */ public class ModeloProducto { in...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; import java.sql.ResultSet; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; /** * */ public class ModeloIngredientes { ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Modelo; /** * */ public class ConexionPostgres extends ConexionBuilder { @Override public void buildDriver() { conexion.setDriver("org.postgresql.Driver"); } @Override public voi...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
Java
/* * Copyright 2010 Tyler Coles * * 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 o...
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 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
// 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 net.appositedesigns.fileexplorer.activity; import net.appositedesigns.fileexplorer.util.BookmarksHelper; import net.appositedesigns.fileexplorer.util.PreferenceHelper; import android.app.ListActivity; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceCha...
Java
package net.appositedesigns.fileexplorer.activity; import android.app.ActionBar; import android.app.ActionBar.OnNavigationListener; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.DialogInterface; import android.content.Intent; import android....
Java
package net.appositedesigns.fileexplorer.activity; import android.content.Intent; import android.os.Bundle; import android.preference.Preference; import android.preference.Preference.OnPreferenceClickListener; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import an...
Java
package net.appositedesigns.fileexplorer.activity; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.R.string; import net.appositedesigns.fileexplorer.util.PreferenceHelper; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.DialogInte...
Java
package net.appositedesigns.fileexplorer.activity; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import net.appositedesigns.fileexplorer.FileExplorerApp; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.adapters...
Java
package net.appositedesigns.fileexplorer.model; import java.util.List; public class FileListing { private List<FileListEntry> children; private boolean isExcludeFromMedia = false; public List<FileListEntry> getChildren() { return children; } public void setChildren(List<FileListEntry> children) ...
Java
package net.appositedesigns.fileexplorer.adapters; import java.util.List; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.activity.BookmarkListActivity; import net.appositedesigns.fileexplorer.model.FileListEntry; import net.appositedesigns.fileexplorer.util.Util; import and...
Java
package net.appositedesigns.fileexplorer.adapters; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import net.appositedesigns.fileexplorer.R; import net.appositede...
Java
package net.appositedesigns.fileexplorer.callbacks; public interface CancellationCallback { void onCancel(); }
Java
package net.appositedesigns.fileexplorer.callbacks; public interface OperationCallback<T> { T onSuccess(); void onFailure(Throwable e); }
Java
package net.appositedesigns.fileexplorer.callbacks; import android.content.Intent; import android.net.Uri; import android.view.ActionMode; import android.view.ActionMode.Callback; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.webkit.MimeTypeMap; impo...
Java
package net.appositedesigns.fileexplorer.util; public class AbortionFlag { private boolean aborted = false; public synchronized void abort() { aborted = true; } public synchronized boolean isAborted() { return aborted; } }
Java
package net.appositedesigns.fileexplorer.util; import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; import android.graphics.drawable.Drawable; import android.net.Uri; import android.os.Environment; import android.os.StatFs; import android.text.InputTy...
Java
package net.appositedesigns.fileexplorer.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; /** * The class provides the utility method to zip files or folders uses * java.util.zip package underne...
Java
package net.appositedesigns.fileexplorer.util; import android.app.Activity; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.app.Instrumentation.ActivityResult; import android.app.Notification; import android.app.NotificationManager; import android.content.Context; import...
Java
package net.appositedesigns.fileexplorer.util; import java.util.Comparator; import net.appositedesigns.fileexplorer.activity.BaseFileListActivity; import net.appositedesigns.fileexplorer.activity.FileListActivity; import net.appositedesigns.fileexplorer.model.FileListEntry; import net.appositedesigns.fileexplo...
Java
package net.appositedesigns.fileexplorer.util; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.os.AsyncTask; import net.appositedesigns.fileexplorer.activity.BookmarkListActivity; import net.appositedesigns.fileexplorer.model.FileListEntry;...
Java
package net.appositedesigns.fileexplorer.util; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; import net.appositedesigns.fileexplorer.FileExplorerApp; import net.appositedesigns.fileexplorer.exception.Location...
Java
package net.appositedesigns.fileexplorer.workers; import java.io.File; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.activity.FileListActivity; import net.appositedesigns.fileexplorer.exception.LocationInvalidException; import net.appositedesigns.fileexplorer.util.AbortionF...
Java
package net.appositedesigns.fileexplorer.workers; import java.io.File; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.activity.FileListActivity; import net.appositedesigns.fileexplorer.util.AbortionFlag; import net.appositedesigns.fileexplorer.util.Util; import android.app....
Java
package net.appositedesigns.fileexplorer.workers; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.activity.FileListActivity; ...
Java
package net.appositedesigns.fileexplorer.workers; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.List; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.activity.BookmarkListActivity; import net.appositedesigns.fileexplorer.mod...
Java
package net.appositedesigns.fileexplorer.workers; import java.io.File; import net.appositedesigns.fileexplorer.R; import net.appositedesigns.fileexplorer.activity.FileListActivity; import net.appositedesigns.fileexplorer.callbacks.OperationCallback; import net.appositedesigns.fileexplorer.util.Util; import an...
Java
package net.appositedesigns.fileexplorer.workers; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Enumeration; import java.util.List; import java.util.zip.Zi...
Java
package net.appositedesigns.fileexplorer.exception; public class LocationInvalidException extends Exception { private static final long serialVersionUID = -4046926680600982016L; private String location; public LocationInvalidException(String location) { super(); this.location = location; } p...
Java
package net.appositedesigns.fileexplorer; import android.app.Application; import android.content.Intent; public class FileExplorerApp extends Application { public static final int THEME_BLACK = R.style.Theme_FileExplorer; public static final int THEME_WHITE = R.style.Theme_FileExplorer_Light; public stat...
Java
package com.stg.analytics.client; import java.net.Inet4Address; import java.net.URI; import java.util.Date; public class Event { public interface FullSession extends Session { public Inet4Address getIP(); public Date getTime(); } public interface MultiPartURL { public URI getHost(); public String getPa...
Java
package com.stg.analytics.client; import java.io.IOException; import java.io.PrintWriter; import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Times...
Java
package com.stg.analytics.client; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.net.URISyntaxException; import java.net.URLDecoder; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Time...
Java
package org.anddev.andengine.extension.ui.livewallpaper; import net.rbgrn.opengl.GLWallpaperService; import org.anddev.andengine.engine.options.EngineOptions; import org.anddev.andengine.entity.scene.Scene; import org.anddev.andengine.opengl.view.GLSurfaceView.Renderer; import org.anddev.andengine.opengl.view....
Java
package net.rbgrn.opengl; import net.rbgrn.opengl.BaseConfigChooser.ComponentSizeChooser; import net.rbgrn.opengl.BaseConfigChooser.SimpleEGLConfigChooser; import org.anddev.andengine.opengl.view.GLSurfaceView.Renderer; import android.opengl.GLSurfaceView.EGLConfigChooser; import android.opengl.GLSurfaceView...
Java
package net.rbgrn.opengl; import javax.microedition.khronos.egl.EGL10; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.egl.EGLDisplay; import javax.microedition.khronos.egl.EGLSurface; import android.opengl.GLSurfaceView.EGLWindowSurfaceFactory; class DefaultWindowSurfaceF...
Java
package net.rbgrn.opengl; import javax.microedition.khronos.egl.EGL10; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.egl.EGLDisplay; import android.opengl.GLSurfaceView.EGLConfigChooser; abstract class BaseConfigChooser implements EGLConfigChooser { // =================...
Java
package net.rbgrn.opengl; import javax.microedition.khronos.egl.EGL10; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.egl.EGLContext; import javax.microedition.khronos.egl.EGLDisplay; import android.opengl.GLSurfaceView.EGLContextFactory; class DefaultContextFactory imple...
Java
package net.rbgrn.opengl; import java.util.ArrayList; import javax.microedition.khronos.opengles.GL10; import net.rbgrn.opengl.GLWallpaperService.GLEngine; import org.anddev.andengine.opengl.view.GLSurfaceView.Renderer; import android.opengl.GLSurfaceView.EGLConfigChooser; import android.opengl.GLSurfac...
Java
package net.rbgrn.opengl; import javax.microedition.khronos.egl.EGL10; import javax.microedition.khronos.egl.EGL11; import javax.microedition.khronos.egl.EGLConfig; import javax.microedition.khronos.egl.EGLContext; import javax.microedition.khronos.egl.EGLDisplay; import javax.microedition.khronos.egl.EGLSurfac...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.cgg.java.matisse; import java.io.BufferedReader; import java.io.FileReader; import java.util.Arrays; import java.util.StringTokenizer; import javax.swing.JOptionPane; /** * * @author Carlos Garibo */ pub...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.japo.java.basic.samples; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.io.File; /** * * @author Pablo Parra */ // EVENTOS DE VENTANA SON DE BAJO NIVE...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.japo.java.basic.samples; import javax.swing.JFrame; /** * * @author Pablo Parra */ class IGU extends JFrame{ //Aquí la referencia de componentes colecciones variables etc: IGU()...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.japo.java.basic.samples; import java.awt.EventQueue; /** * * @author Pablo Parra */ public class EjecucionUnica { public static void main(String[] args) { EventQueue.invokeLater( //hilo de ...
Java
package com.st.android.iNemoDemo; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.os.Bundle; import android.util.Log; /* This Activity does nothing but receive USB_DEVICE_ATTACHED events from the * USB service and springboards to the main G...
Java
package com.st.android.iNemoDemo; import com.android.future.usb.UsbAccessory; import com.st.android.iNemoDemo.iNemoInfo.INemoInfo; public class ActivityDataObject { private INemoInfo mINemoInfo; private UsbAccessory mAccessory; public ActivityDataObject(){ this.mINemoInfo = null; this.mAccessory = null; }...
Java
package com.st.android.iNemoDemo; import android.os.Bundle; import android.preference.PreferenceActivity; public class SettingsActivity extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.pre...
Java
package com.st.android.iNemoDemo; import java.nio.ByteBuffer; import java.nio.ShortBuffer; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import com.st.android.iNemoDemo.iNemoInfo.INemoInfo; public class CommunicationFrame { static final String TAG = "CommunicationFram...
Java
package com.st.android.iNemoDemo; import java.io.FileDescriptor; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import android.app.Activity; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content....
Java
package com.st.android.iNemoDemo.iNemoInfo; import java.util.HashMap; import com.st.android.iNemoDemo.CommunicationFrame; public class INemoInfo { private String UID; private String FW_v; private String HW_v; private HashMap<Byte, Sensor> sensors; private HashMap<Byte, short[]> tmpAcquiredData; boolean calib...
Java
package com.st.android.iNemoDemo.iNemoInfo; import com.st.android.iNemoDemo.CommunicationFrame; public class Gyro_1axis extends Sensor{ public Gyro_1axis(){ super(); this.parameters.put(CommunicationFrame.GYRO1_FULL_SCALE, new byte[1]); this.parameters.put(CommunicationFrame.GYRO1_OFFSET_Z, new byte[2]); } ...
Java
package com.st.android.iNemoDemo.iNemoInfo; import com.st.android.iNemoDemo.CommunicationFrame; public class Accelerometer extends Sensor{ public Accelerometer(){ super(); this.parameters.put(CommunicationFrame.ACC_OUT_RATE, new byte[1]); this.parameters.put(CommunicationFrame.ACC_FULL_SCALE, new byte[1]); ...
Java
package com.st.android.iNemoDemo.iNemoInfo; import com.st.android.iNemoDemo.CommunicationFrame; public class Gyro_2axis extends Sensor{ public Gyro_2axis(){ super(); this.parameters.put(CommunicationFrame.GYRO2_FULL_SCALE, new byte[1]); this.parameters.put(CommunicationFrame.GYRO2_OFFSET_X, new byte[2]); t...
Java
package com.st.android.iNemoDemo.iNemoInfo; import com.st.android.iNemoDemo.CommunicationFrame; public class Magnetometer extends Sensor{ public Magnetometer(){ super(); this.parameters.put(CommunicationFrame.MAG_OUT_RATE, new byte[1]); this.parameters.put(CommunicationFrame.MAG_FULL_SCALE, new byte[1]); t...
Java
package com.st.android.iNemoDemo.iNemoInfo; import com.st.android.iNemoDemo.CommunicationFrame; public class Pressure extends Sensor{ public Pressure(){ super(); this.parameters.put(CommunicationFrame.PRESS_OUT_RATE, new byte[1]); this.parameters.put(CommunicationFrame.PRESS_OFFSET, new byte[2]); } }
Java
package com.st.android.iNemoDemo.iNemoInfo; import com.st.android.iNemoDemo.CommunicationFrame; public class Temperature extends Sensor{ public Temperature(){ super(); this.parameters.put(CommunicationFrame.TEMP_OFFSET, new byte[2]); } }
Java
package com.st.android.iNemoDemo.iNemoInfo; import java.util.HashMap; public abstract class Sensor { private boolean enabled; protected HashMap<Byte, byte[]> parameters; public Sensor(){ super(); enabled = false; this.parameters = new HashMap<Byte, byte[]>(); } public boolean isEnabled() { return ena...
Java
package com.st.android.iNemoDemo; import java.io.PrintWriter; import java.io.StringWriter; import java.util.ArrayList; import com.st.android.iNemoDemo.R; import com.st.android.iNemoDemo.iNemoInfo.INemoInfo; import com.st.android.iNemoDemo.iNemoInfo.Sensor; import android.content.Intent; import android.content.Shared...
Java
/** Automatically generated file. DO NOT MODIFY */ package com.st.android.iNemoDemo; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
package com.st.android.adkping; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.os.ParcelFileDescript...
Java
package com.google.android.DemoKit; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; public class S...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
Java
package com.google.android.DemoKit; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class BaseActivity extends DemoKitActivity { private InputController mInputController; public BaseActivity() { super(); } @Override public void onCreate(Bundle savedInstanceState) { ...
Java
package com.google.android.DemoKit; import android.view.ViewGroup; public class OutputController extends AccessoryController { private boolean mVertical; OutputController(DemoKitActivity hostActivity, boolean vertical) { super(hostActivity); mVertical = vertical; } protected void onAccesssoryAttached() { ...
Java
package com.google.android.DemoKit; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.LinearLayout; import android.widget.TextView; public class DemoKitPhone extends BaseActivity implements OnClickListener { ...
Java
package com.google.android.DemoKit; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.text.SpannableStringBuilder; import android.text.style.RelativeSizeSpan; import android.text.style.SubscriptSpan; import android.view.ViewGroup; import android.widget.CompoundButton; impo...
Java
package com.google.android.DemoKit; import com.google.android.DemoKit.Slider.SliderPositionListener; import android.content.res.Resources; import android.graphics.drawable.Drawable; import android.text.SpannableStringBuilder; import android.text.style.RelativeSizeSpan; import android.text.style.SubscriptSpan; import ...
Java
/* * Copyright (C) 2011 The Android Open Source Project * * 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 app...
Java
package com.google.android.DemoKit; public class DemoKitTablet extends BaseActivity { private OutputController mOutputController; protected void hideControls() { super.hideControls(); mOutputController = null; } protected void showControls() { super.showControls(); mOutputController = new OutputControlle...
Java
package com.google.android.DemoKit; import android.text.SpannableStringBuilder; import android.text.style.RelativeSizeSpan; import android.text.style.SubscriptSpan; import android.view.ViewGroup; import android.widget.TextView; public class ServoController implements Slider.SliderPositionListener { private final int...
Java
package com.google.android.DemoKit; import android.content.Context; import android.util.AttributeSet; public class VerticalSlider extends Slider { public VerticalSlider(Context context) { super(context); initSliderView(context, true); } public VerticalSlider(Context context, AttributeSet attrs) { super(cont...
Java
package com.google.android.DemoKit; import android.content.res.Resources; import android.view.View; public abstract class AccessoryController { protected DemoKitActivity mHostActivity; public AccessoryController(DemoKitActivity activity) { mHostActivity = activity; } protected View findViewById(int id) { r...
Java