text
stringlengths
3
1.18M
package com.thiny.android.game.thunderbolt.role; import com.thiny.android.game.thunderbolt.util.Constants; import com.thiny.android.game.thunderbolt.view.GameView; /** * 道具类,共五种: * 添加生命值, * 添加子弹(上限为三发), * 大弹(威力增强), * 子弹加速, * 清除画面敌机及子弹。 * * @author THINY * */ public class Property extends B...
package com.thiny.android.game.thunderbolt.role; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Rect; import com.thiny.android.game.thunderbolt.view.GameView; /** * 基础角色类,各主要角色皆从此处继承 * * @author THINY * */ public abstract class BaseRole { // 角色的bitmap...
package com.thiny.android.game.thunderbolt.role; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.Date; /** * 玩家类,用于存储分数等数据 * * @author THINY * */ public class GamePlayer implements Serializable { private static final long serialVersionUID = 1L; // 玩家名字 pri...
package com.thiny.android.game.thunderbolt.role; import com.thiny.android.game.thunderbolt.util.Constants; import com.thiny.android.game.thunderbolt.view.GameView; /** * 敌机类 * * @author THINY * */ public class Enemy extends Plane { private Player mPlayer; private float speedX, speedY; // 飞...
package com.thiny.android.game.thunderbolt.callback; public interface BeKilledCallBack { //主角被杀死时候回调 public void onPlayerBeKilled(); }
package com.thiny.android.game.thunderbolt.callback; public interface GameOverCallBack { //游戏完结时候回调 void onGameOver(); }
package com.thiny.android.game.thunderbolt.callback; public interface BeFiredCallback { //我方被击中了 void onPlayerBeFired(); }
package com.thiny.android.game.thunderbolt.callback; public interface KillBossCallBack { //boss被杀死时候回调 public void onBossKilled(); }
package com.thiny.android.game.thunderbolt.adapter; import java.util.List; import com.thiny.android.game.thunderbolt.R; import com.thiny.android.game.thunderbolt.role.GamePlayer; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; im...
package com.thiny.android.game.thunderbolt.util; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.StreamCorruptedException; import java.util.Col...
package com.thiny.android.game.thunderbolt.util; import android.util.Log; public class LogUtil { public static void v(String s) { Log.v(Constants.LOG_TAG, s); } public static void d(String s) { Log.d(Constants.LOG_TAG, s); } public static void i(String s) { Log.i(Constants.LOG_TAG, ...
package com.thiny.android.game.thunderbolt.util; public class Constants { // 日志tag public static final String LOG_TAG = "tag"; // SharedPreferences 名字 public static final String SP_NAME = "thunderbolt_sp"; // SharedPreferences key public static final String KEY_MUSIC_SETTING = "music_setting"; /** ...
package com.thiny.android.game.thunderbolt.util; import java.util.HashMap; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.SoundPool; import com.thiny.android.game.thunderbolt.R; /** * 声音控制播放类,用于播放游戏过程中的音乐 * * @author THINY ...
/* * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, ...
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
package android.androidVNC; import java.io.IOException; public enum COLORMODEL { C24bit, C256, C64, C8, C4, C2; public int bpp() { switch (this) { case C24bit: return 4; default: return 1; } } public int[] palette() { switch (this) { case C24bit: return null; case C256...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; /** * @author Michael A. MacDonald * */ class MetaKeyBase implements Comparable<MetaKeyBase> { int keySym; int mouseButtons; int keyEvent; String name; boolean isMouse; boolean isKeyEvent; MetaKeyBase(int mouseButtons, String na...
package android.androidVNC; public class ColorModel8 { public final static int [] colors; static { colors = new int[256]; colors[0]=0xff000000; colors[1]=0xff0000ff; colors[2]=0xff00ff00; colors[3]=0xff00ffff; colors[4]=0xffff0000; colors[5]=0xffff00ff; colors[6]=0xffffff00; color...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.FieldAccessor; import com.antlersoft.android.db.TableInterface; /** * @author Michael A. MacDonald * */ @TableInterface(TableName="META_KEY",ImplementingClassName="AbstractMetaKeyBean") public interface ...
package android.androidVNC; public class ColorModel256 { public final static int [] colors; static { colors = new int[256]; colors[0]=0xff000000; colors[1]=0xff240000; colors[2]=0xff490000; colors[3]=0xff6d0000; colors[4]=0xff920000; colors[5]=0xffb60000; colors[6]=0xffdb0000; col...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; /** * @author Michael A. MacDonald * */ class CompactBitmapData extends AbstractBi...
/* * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, ...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PixelFormat; import android.graphics.Rect; import android.graphics.drawable.DrawableContainer; /** * @author Michael A. MacDonald * */ public class A...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.*; /** * @author Michael A. MacDonald * */ @TableInterface(ImplementingClassName="AbstractConnectionBean",TableName="CONNECTION_BEAN") interface IConnectionBean { @FieldAccessor long get_Id(); @FieldA...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import java.util.ArrayList; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import andro...
package android.androidVNC; public class ColorModel64 { public final static int [] colors; static { colors = new int[256]; colors[0]=0xff000000; colors[1]=0xff000055; colors[2]=0xff0000aa; colors[3]=0xff0000ff; colors[4]=0xff005500; colors[5]=0xff005555; colors[6]=0xff0055aa; colo...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; import android.widget.ImageView.ScaleType; import com.antlersoft.android.dbimpl.NewInstance; import java.lang.Comparable; /** * @author Michael A. MacD...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * @author Michael A. MacDonald * */ class VncDatabase extends SQLiteOpenHelper { VncDatabase(Context co...
// // Copyright (C) 2003 Constantin Kaplinsky. All Rights Reserved. // // This is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version....
package android.androidVNC; /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) a...
// // This DES class has been extracted from package Acme.Crypto for use in VNC. // The bytebit[] array has been reversed so that the most significant bit // in each byte of the key is ignored, not the least significant. Also the // unnecessary odd parity code has been removed. // // These changes are: // Copyright (...
// // Copyright (C) 2001-2004 HorizonLive.com, Inc. All Rights Reserved. // Copyright (C) 2001-2006 Constantin Kaplinsky. All Rights Reserved. // Copyright (C) 2000 Tridia Corporation. All Rights Reserved. // Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. // // This is free software; you ...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.*; /** * @author Michael A. MacDonald * */ @TableInterface(TableName="MOST_RECENT",ImplementingIsAbstract=false,ImplementingClassName="MostRecentBean") public interface IMostRecentBean { @FieldAccessor ...
package android.androidVNC; /** * Keys for intent values */ public class VncConstants { public static final String CONNECTION = "CONNECTION"; }
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.widget.ImageView; /** * Abstract interface between the VncCanvas and ...
// // Copyright (C) 2004 Horizon Wimba. All Rights Reserved. // Copyright (C) 2001-2003 HorizonLive.com, Inc. All Rights Reserved. // Copyright (C) 2001,2002 Constantin Kaplinsky. All Rights Reserved. // Copyright (C) 2000 Tridia Corporation. All Rights Reserved. // Copyright (C) 1999 AT&T Laboratories Cambrid...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.util.ArrayList; import java.util.HashMap; import com.antlersoft.android.dbimpl.NewInstance; import android.view.KeyEvent; /** * @author Michael A. MacDonald * */ class MetaKeyBean extends AbstractMetaKeyBean implements Com...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; /** * @author Michael A. MacDonald * */ class Large...
package android.androidVNC; import android.app.Activity; import android.app.ActivityManager; import android.app.AlertDialog; import android.app.ActivityManager.MemoryInfo; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import and...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.FieldAccessor; import com.antlersoft.android.db.TableInterface; /** * @author Michael A. MacDonald * */ @TableInterface(TableName="META_LIST",ImplementingIsAbstract=false,ImplementingClassName="MetaList"...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.view.KeyEvent; import android.view.MotionEvent; /** * The VncCanvasActivity has several different ways of handling input from the touchscreen, * keyboard, buttons and trackball. These will be represented by different impl...
// // Copyright (C) 2003 Constantin Kaplinsky. All Rights Reserved. // // This is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version....
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Collections; import java.util.Map.Entry; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.DialogInt...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.util; /** * Synchronized object pool * @author Michael A. MacDonald * */ public abstract class SafeObjectPool<R> extends ObjectPool<R> { /* (non-Javadoc) * @see com.antlersoft.util.ObjectPool#release(com.antlersoft.util.ObjectPool.Entry)...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.util; /** * A pool of reusable object of a given type. You get the object from a Entry, which you get * by calling reserve(). When you are done with the object, you call release() passing the Entry. * <p> * Failing to call release() does n...
/** * */ package com.antlersoft.util; /** * @author Michael A. MacDonald * */ public class ByteBufferStack { private byte[] m_buffer; private int[] m_offsets; private int m_depth; private int m_max_depth; private int m_max_size; public static final int MAX_DEPTH = 20; public static final int MAX_SIZE = ...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.drawing; import android.graphics.Rect; import java.util.ArrayList; import com.antlersoft.util.ObjectPool; /** * A list of rectangular regions that together represent an area of interest. Provides * a set of operations that apply to...
package com.antlersoft.android.drawing; import com.antlersoft.util.ObjectPool; import com.antlersoft.util.SafeObjectPool; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; public class OverlappingCopy { private static SafeObjectPool<Rect> oc...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.content.Context; /** * Create interface implementations appropriate to the current version of the SDK; * implementations can allow use of higher-level SDK calls in .apk's that will still run * on lower-level SDK's ...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.view.View; import android.view.HapticFeedbackConstants; /** * Implementation for SDK version >= 3 * @author Michael A. MacDonald */ class BCHapticDefault implements IBCHaptic { /* (non-Javadoc) * @see com.antle...
/** * Copyright (c) 2010 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.view.MotionEvent; /** * Pre-sdk 5 version; add fake multi-touch sensing later? * * @author Michael A. MacDonald * */ class BCMotionEvent4 implements IBCMotionEvent { /* (non-Javadoc) * @see com.antlersoft.an...
/** * Copyright (c) 2010 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.view.MotionEvent; /** * @author Michael A. MacDonald * */ class BCMotionEvent5 implements IBCMotionEvent { /* (non-Javadoc) * @see com.antlersoft.android.bc.IBCMotionEvent#getPointerCount(android.view.MotionEve...
/* Copyright (C) 2010 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 appli...
/* * Copyright (C) 2010 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 ap...
/* Copyright (C) 2010 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 appli...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.app.ActivityManager; /** * @author Michael A. MacDonald */ public interface IBCActivityManager { public int getMemoryClass(ActivityManager am); }
/** * Copyright (c) 2010 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.content.Context; import java.io.File; /** * Provides a way to access the directory on external storage as returned by * Context.getExternal... added in API 8 that will work with earlier API releases. * @author Mic...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.view.View; /** * Access the Haptic interfaces added in version 3 without breaking compatibility * @author Michael A. MacDonald */ public interface IBCHaptic { public boolean performLongPressHaptic(View v); /** ...
/** * Copyright (c) 2011 Michael A. MacDonald */ package com.antlersoft.android.bc; import java.io.File; import android.content.Context; import android.os.Environment; /** * @author Michael A. MacDonald * */ public class BCStorageContext7 implements IBCStorageContext { /* (non-Javadoc) * @see com.antlersof...
/* Copyright (C) 2010 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 appli...
/* Copyright (C) 2010 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 appli...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.content.Context; import android.view.GestureDetector; /** * Create a gesture detector in a version friendly way, avoiding incompatible API on older version * and deprecated API on newer version * * @author Michae...
/** * Copyright (c) 2010 Michael A. MacDonald */ package com.antlersoft.android.bc; import java.io.File; import android.content.Context; /** * @author Michael A. MacDonald * */ class BCStorageContext8 implements IBCStorageContext { /* (non-Javadoc) * @see com.antlersoft.android.bc.IBCStorageContext#getExter...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.app.ActivityManager; /** * @author Michael A. MacDonald */ class BCActivityManagerDefault implements IBCActivityManager { /* (non-Javadoc) * @see com.antlersoft.android.bc.IBCActivityManager#getMemoryClass(andro...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.content.Context; import android.view.GestureDetector; import android.view.GestureDetector.OnGestureListener; /** * @author Michael A. MacDonald */ public class BCGestureDetectorDefault implements IBCGestureDetector ...
/** * Copyright (C) 2009 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.app.ActivityManager; /** * @author Michael A. MacDonald */ public class BCActivityManagerV5 implements IBCActivityManager { /* (non-Javadoc) * @see com.antlersoft.android.bc.IBCActivityManager#getMemoryClass(and...
/** * Copyright (c) 2010 Michael A. MacDonald */ package com.antlersoft.android.bc; import android.view.MotionEvent; /** * Access to SDK-dependent features of MotionEvent * * @see android.view.MotionEvent * * @author Michael A. MacDonald * */ public interface IBCMotionEvent { /** * Obtain the number of ...
/* * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, ...
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Thi...
package android.androidVNC; import java.io.IOException; public enum COLORMODEL { C24bit, C256, C64, C8, C4, C2; public int bpp() { switch (this) { case C24bit: return 4; default: return 1; } } public int[] palette() { switch (this) { case C24bit: return null; case C256...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; /** * @author Michael A. MacDonald * */ class MetaKeyBase implements Comparable<MetaKeyBase> { int keySym; int mouseButtons; int keyEvent; String name; boolean isMouse; boolean isKeyEvent; MetaKeyBase(int mouseButtons, String na...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.widget.ImageView.ScaleType; /** * @author Michael A. MacDonald */ class OneToOneScaling extends AbstractScaling { /** * @param id * @param scaleType */ public OneToOneScaling() { super(R.id.itemOneToOne,ScaleTyp...
package android.androidVNC; public class ColorModel8 { public final static int [] colors; static { colors = new int[256]; colors[0]=0xff000000; colors[1]=0xff0000ff; colors[2]=0xff00ff00; colors[3]=0xff00ffff; colors[4]=0xffff0000; colors[5]=0xffff00ff; colors[6]=0xffffff00; color...
/** * Copyright (c) 2010 Michael A. MacDonald */ package android.androidVNC; import android.graphics.PointF; import android.os.Handler; import android.view.KeyEvent; import android.view.MotionEvent; /** * Input handlers delegate to this class to handle keystrokes; this detects keystrokes * from the DPad and uses ...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.widget.ImageView; /** * @author Michael A. MacDonald * * A scaling mode for the VncCanvas; based on ImageView.ScaleType */ abstract class AbstractScaling { private static final int scaleModeIds[] = { R.id.itemFitToScre...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.FieldAccessor; import com.antlersoft.android.db.TableInterface; /** * @author Michael A. MacDonald * */ @TableInterface(TableName="META_KEY",ImplementingClassName="AbstractMetaKeyBean") public interface ...
package android.androidVNC; class BitmapImplHint { static final long AUTO = 0L; static final long FULL = 1L; static final long TILE = 2L; }
package android.androidVNC; public class ColorModel256 { public final static int [] colors; static { colors = new int[256]; colors[0]=0xff000000; colors[1]=0xff240000; colors[2]=0xff490000; colors[3]=0xff6d0000; colors[4]=0xff920000; colors[5]=0xffb60000; colors[6]=0xffdb0000; col...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; /** * @author Michael A. MacDonald * */ class CompactBitmapData extends AbstractBi...
/* * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This software is distributed in the hope that it will be useful, ...
/** * Copyright (c) 2010 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import java.util.Arrays; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.util.Log; import android.widget.ImageView; /** * @author Michael A. MacDonal...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.PixelFormat; import android.graphics.Rect; import android.graphics.drawable.DrawableContainer; /** * @author Michael A. MacDonald * */ public class A...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.*; /** * @author Michael A. MacDonald * */ @TableInterface(ImplementingClassName="AbstractConnectionBean",TableName="CONNECTION_BEAN") interface IConnectionBean { @FieldAccessor long get_Id(); @FieldA...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.graphics.PointF; import android.os.Handler; import android.os.SystemClock; import android.util.Log; /** * Handles panning the screen continuously over a period of time * @author Michael A. MacDonald */ class Panner implem...
/** * */ package android.androidVNC; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.text.Html; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; /** * @author Mic...
/** * Copyright (c) 2010 Michael A. MacDonald */ package android.androidVNC; import com.antlersoft.android.db.FieldAccessor; import com.antlersoft.android.db.TableInterface; /** * Interface specification for table storing sent text; the last N text items sent are stored in a table * and will be recalled on demand...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import java.io.IOException; import java.util.ArrayList; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android....
package android.androidVNC; public class ColorModel64 { public final static int [] colors; static { colors = new int[256]; colors[0]=0xff000000; colors[1]=0xff000055; colors[2]=0xff0000aa; colors[3]=0xff0000ff; colors[4]=0xff005500; colors[5]=0xff005555; colors[6]=0xff0055aa; colo...
/** * Copyright 2010 Michael A. MacDonald */ package android.androidVNC; import android.os.Handler; import android.os.SystemClock; import android.view.MotionEvent; /** * Specialization of panner that moves the mouse instead of panning the screen * * @author Michael A. MacDonald * */ class MouseMover extends P...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; import android.widget.ImageView.ScaleType; import com.antlersoft.android.dbimpl.NewInstance; import java.lang.Comparable; /** * @author Michael A. MacD...
/** * Copyright (C) 2009 Michael A. MacDonald */ package android.androidVNC; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; /** * @author Michael A. MacDonald * */ class VncDatabase extends SQLiteOpenHelper ...
// // Copyright (C) 2003 Constantin Kaplinsky. All Rights Reserved. // // This is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version....
package android.androidVNC; // CRYPTO LIBRARY FOR EXCHANGING KEYS // USING THE DIFFIE-HELLMAN KEY EXCHANGE PROTOCOL // The diffie-hellman can be used to securely exchange keys // between parties, where a third party eavesdropper given // the values being transmitted cannot determine the key. // Implemented by Lee Gri...
package android.androidVNC; /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) a...
/** * */ package android.androidVNC; /** * @author mike * */ interface ConnectionSettable { void setConnection(ConnectionBean connection); }
// // This DES class has been extracted from package Acme.Crypto for use in VNC. // The bytebit[] array has been reversed so that the most significant bit // in each byte of the key is ignored, not the least significant. Also the // unnecessary odd parity code has been removed. // // These changes are: // Copyright (...
// // Copyright (C) 2001-2004 HorizonLive.com, Inc. All Rights Reserved. // Copyright (C) 2001-2006 Constantin Kaplinsky. All Rights Reserved. // Copyright (C) 2000 Tridia Corporation. All Rights Reserved. // Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. // // This is free software; you ...
/** * Copyright (c) 2010 Michael A. MacDonald */ package android.androidVNC; import android.app.Activity; import android.app.Dialog; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import com.antlersoft.android.bc.BCFactory; ...