text stringlengths 3 1.18M |
|---|
/**
* 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... |
/*
* 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,
... |
/*
* 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... |
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;
/**
* 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
* @author Michael A. MacDonald
... |
/**
* 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) 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) 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) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.content.Context;
import android.view.GestureDetector;
import android.view.GestureDetector.OnGestureListener;
/**
* Calls the deprecated version in order to have compatibility with pre-1.5 devices
* @author Michael A... |
/**
* 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) 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) 2009 Michael A. MacDonald
*/
package com.antlersoft.android.bc;
import android.view.View;
/**
* Default implementation does nothing (we could have it get out the Vibrate service,
* but that would require an extra permission)
* @author Michael A. MacDonald
*/
class BCHapticOld implements IBCH... |
/**
* 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;
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 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) 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 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;
/* 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) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.widget.ImageView.ScaleType;
/**
* @author Michael A. MacDonald
*/
class FitToScreenScaling extends AbstractScaling {
/**
* @param id
* @param scaleType
*/
FitToScreenScaling() {
super(R.id.itemFitToScreen, Scale... |
/**
* Copyright (C) 2009 Michael A. MacDonald
*/
package android.androidVNC;
import android.content.Context;
import android.view.GestureDetector;
import android.view.MotionEvent;
import com.antlersoft.android.bc.BCFactory;
/**
* An AbstractInputHandler that uses GestureDetector to detect standard gestures in touc... |
/**
* 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 = "android.androidVNC.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) 2010 Michael A. MacDonald
// 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) 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 com.antlersoft.android.drawing.OverlappingCopy;
import com.antlersoft.android.drawing.RectList;
import com.antlersoft.util.ObjectPool;
import android.graphics.Bitmap;
import android.graphics.Canvas;
impo... |
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.graphics.Matrix;
import android.util.Log;
import android.widget.ImageView.ScaleType;
/**
* @author Michael A. MacDonald
*/
class ZoomScaling extends AbstractScaling {
static final String TAG = "ZoomScaling";
private M... |
/**
* 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... |
/*
* 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 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.