UNPKG

@icecreamcake/autojs6-dts

Version:

TypeScript Declarations for AutoJs6

716 lines (703 loc) 113 kB
declare module jackpal { export module androidterm { export class BoundSession extends jackpal.androidterm.GenericTermSession { public static class: java.lang.Class<jackpal.androidterm.BoundSession>; public getTitle(): string; public getTitle(defaultTitle: string): string; public initializeEmulator(columns: number, rows: number): void; } } } declare module jackpal { export module androidterm { export class BuildConfig extends java.lang.Object { public static class: java.lang.Class<jackpal.androidterm.BuildConfig>; public static DEBUG: boolean; public static APPLICATION_ID: string; public static BUILD_TYPE: string; public static FLAVOR: string; public static VERSION_CODE: number; public static VERSION_NAME: string; public constructor(); } } } declare module jackpal { export module androidterm { export class Exec extends java.lang.Object { public static class: java.lang.Class<jackpal.androidterm.Exec>; public constructor(); } } } declare module jackpal { export module androidterm { export class GenericTermSession extends jackpal.androidterm.emulatorview.TermSession { public static class: java.lang.Class<jackpal.androidterm.GenericTermSession>; public static PROCESS_EXIT_FINISHES_SESSION: number; public static PROCESS_EXIT_DISPLAYS_MESSAGE: number; public updatePrefs(settings: jackpal.androidterm.util.TermSettings): void; public onProcessExit(): void; public getTitle(): string; public toString(): string; public getHandle(): string; public finish(): void; public getTitle(defaultTitle: string): string; public setHandle(handle: string): void; public initializeEmulator(columns: number, rows: number): void; public updateSize(columns: number, rows: number): void; public setProcessExitMessage(message: string): void; } } } declare module jackpal { export module androidterm { export class RemoteInterface extends android.app.Activity { public static class: java.lang.Class<jackpal.androidterm.RemoteInterface>; public static PRIVACT_OPEN_NEW_WINDOW: string; public static PRIVACT_SWITCH_WINDOW: string; public static PRIVEXTRA_TARGET_WINDOW: string; public static PRIVACT_ACTIVITY_ALIAS: string; public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean; public onActionModeStarted(mode: android.view.ActionMode): void; public finish(): void; public onMenuOpened(featureId: number, menu: android.view.Menu): boolean; public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean; public handleIntent(): void; public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode; public onSearchRequested(): boolean; public constructor(base: android.content.Context, themeResId: number); public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onCreatePanelView(param0: number): android.view.View; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public onCreate(savedInstanceState: android.os.Bundle, persistentState: any): void; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean; public onDetachedFromWindow(): void; public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View; public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean; public static quoteForBash(s: string): string; public constructor(); public getTermService(): jackpal.androidterm.TermService; public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public dispatchTouchEvent(param0: android.view.MotionEvent): boolean; public onTrimMemory(level: number): void; public dispatchKeyEvent(event: android.view.KeyEvent): boolean; public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean; public onWindowFocusChanged(param0: boolean): void; public onPanelClosed(featureId: number, menu: android.view.Menu): void; public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void; public onSearchRequested(searchEvent: any): boolean; public onContentChanged(): void; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public onCreate(savedInstanceState: android.os.Bundle): void; public appendToWindow(handle: string, iInitialCommand: string): string; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode; public onActionModeFinished(mode: android.view.ActionMode): void; public onCreatePanelView(featureId: number): android.view.View; public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean; public onPanelClosed(param0: number, param1: android.view.Menu): void; public onTrimMemory(param0: number): void; public onActionModeFinished(param0: android.view.ActionMode): void; public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme); public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean; public onWindowFocusChanged(hasFocus: boolean): void; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; public onActionModeStarted(param0: android.view.ActionMode): void; public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean; public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean; public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode; public onMenuOpened(param0: number, param1: android.view.Menu): boolean; public openNewWindow(iInitialCommand: string): string; public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onSearchRequested(param0: any): boolean; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean; public dispatchTouchEvent(ev: android.view.MotionEvent): boolean; public dispatchKeyEvent(param0: android.view.KeyEvent): boolean; public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean; public onAttachedToWindow(): void; public constructor(base: android.content.Context); public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void; public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void; } } } declare module jackpal { export module androidterm { export class RunScript extends jackpal.androidterm.RemoteInterface { public static class: java.lang.Class<jackpal.androidterm.RunScript>; public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean; public onActionModeStarted(mode: android.view.ActionMode): void; public onMenuOpened(featureId: number, menu: android.view.Menu): boolean; public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean; public handleIntent(): void; public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode; public onSearchRequested(): boolean; public constructor(base: android.content.Context, themeResId: number); public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onCreatePanelView(param0: number): android.view.View; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean; public onDetachedFromWindow(): void; public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View; public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean; public constructor(); public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public dispatchTouchEvent(param0: android.view.MotionEvent): boolean; public onTrimMemory(level: number): void; public dispatchKeyEvent(event: android.view.KeyEvent): boolean; public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean; public onWindowFocusChanged(param0: boolean): void; public onPanelClosed(featureId: number, menu: android.view.Menu): void; public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void; public onSearchRequested(searchEvent: any): boolean; public onContentChanged(): void; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode; public onActionModeFinished(mode: android.view.ActionMode): void; public onCreatePanelView(featureId: number): android.view.View; public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean; public onPanelClosed(param0: number, param1: android.view.Menu): void; public onTrimMemory(param0: number): void; public onActionModeFinished(param0: android.view.ActionMode): void; public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme); public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean; public onWindowFocusChanged(hasFocus: boolean): void; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; public onActionModeStarted(param0: android.view.ActionMode): void; public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean; public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean; public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode; public onMenuOpened(param0: number, param1: android.view.Menu): boolean; public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onSearchRequested(param0: any): boolean; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean; public dispatchTouchEvent(ev: android.view.MotionEvent): boolean; public dispatchKeyEvent(param0: android.view.KeyEvent): boolean; public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean; public onAttachedToWindow(): void; public constructor(base: android.content.Context); public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void; public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void; } } } declare module jackpal { export module androidterm { export class RunShortcut extends jackpal.androidterm.RemoteInterface { public static class: java.lang.Class<jackpal.androidterm.RunShortcut>; public static ACTION_RUN_SHORTCUT: string; public static EXTRA_WINDOW_HANDLE: string; public static EXTRA_SHORTCUT_COMMAND: string; public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean; public onActionModeStarted(mode: android.view.ActionMode): void; public onMenuOpened(featureId: number, menu: android.view.Menu): boolean; public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean; public handleIntent(): void; public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode; public onSearchRequested(): boolean; public constructor(base: android.content.Context, themeResId: number); public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onCreatePanelView(param0: number): android.view.View; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean; public onDetachedFromWindow(): void; public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View; public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean; public constructor(); public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public dispatchTouchEvent(param0: android.view.MotionEvent): boolean; public onTrimMemory(level: number): void; public dispatchKeyEvent(event: android.view.KeyEvent): boolean; public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean; public onWindowFocusChanged(param0: boolean): void; public onPanelClosed(featureId: number, menu: android.view.Menu): void; public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void; public onSearchRequested(searchEvent: any): boolean; public onContentChanged(): void; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode; public onActionModeFinished(mode: android.view.ActionMode): void; public onCreatePanelView(featureId: number): android.view.View; public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean; public onPanelClosed(param0: number, param1: android.view.Menu): void; public onTrimMemory(param0: number): void; public onActionModeFinished(param0: android.view.ActionMode): void; public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme); public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean; public onWindowFocusChanged(hasFocus: boolean): void; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; public onActionModeStarted(param0: android.view.ActionMode): void; public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean; public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean; public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode; public onMenuOpened(param0: number, param1: android.view.Menu): boolean; public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onSearchRequested(param0: any): boolean; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean; public dispatchTouchEvent(ev: android.view.MotionEvent): boolean; public dispatchKeyEvent(param0: android.view.KeyEvent): boolean; public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean; public onAttachedToWindow(): void; public constructor(base: android.content.Context); public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void; public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void; } } } declare module jackpal { export module androidterm { export class ShellTermSession extends jackpal.androidterm.GenericTermSession { public static class: java.lang.Class<jackpal.androidterm.ShellTermSession>; public finish(): void; public initializeEmulator(columns: number, rows: number): void; public constructor(); public constructor(settings: jackpal.androidterm.util.TermSettings, initialCommand: string); public constructor(exitOnEOF: boolean); } } } declare module jackpal { export module androidterm { export class Term extends android.app.Activity implements jackpal.androidterm.emulatorview.UpdateCallback, android.content.SharedPreferences.OnSharedPreferenceChangeListener { public static class: java.lang.Class<jackpal.androidterm.Term>; public static REQUEST_CHOOSE_WINDOW: number; public static EXTRA_WINDOW_ID: string; public onStart(): void; public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean; public onConfigurationChanged(newConfig: android.content.res.Configuration): void; public onActionModeStarted(mode: android.view.ActionMode): void; public onActivityResult(request: number, result: number, data: android.content.Intent): void; public onMenuOpened(featureId: number, menu: android.view.Menu): boolean; public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean; public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean; public onActivityResult(requestCode: number, resultCode: number, data: android.content.Intent): void; public onCreate(icicle: android.os.Bundle): void; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode; public onSearchRequested(): boolean; public constructor(base: android.content.Context, themeResId: number); public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onCreatePanelView(param0: number): android.view.View; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public onCreate(savedInstanceState: android.os.Bundle, persistentState: any): void; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean; public onDetachedFromWindow(): void; public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View; public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean; public onNewIntent(intent: android.content.Intent): void; public constructor(); public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public dispatchTouchEvent(param0: android.view.MotionEvent): boolean; public onTrimMemory(level: number): void; public dispatchKeyEvent(event: android.view.KeyEvent): boolean; public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean; public onWindowFocusChanged(param0: boolean): void; public onPanelClosed(featureId: number, menu: android.view.Menu): void; public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void; public onSearchRequested(searchEvent: any): boolean; public onContentChanged(): void; public onSharedPreferenceChanged(sharedPreferences: android.content.SharedPreferences, s: string): void; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode; public static createTermSession(context: android.content.Context, settings: jackpal.androidterm.util.TermSettings, initialCommand: string): jackpal.androidterm.emulatorview.TermSession; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public onCreate(savedInstanceState: android.os.Bundle): void; public onPrepareOptionsMenu(menu: android.view.Menu): boolean; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode; public onUpdate(): void; public onActionModeFinished(mode: android.view.ActionMode): void; public onCreatePanelView(featureId: number): android.view.View; public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean; public onDestroy(): void; public onPanelClosed(param0: number, param1: android.view.Menu): void; public onTrimMemory(param0: number): void; public onActionModeFinished(param0: android.view.ActionMode): void; public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme); public onPause(): void; public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean; public onWindowFocusChanged(hasFocus: boolean): void; public onStop(): void; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; public onActionModeStarted(param0: android.view.ActionMode): void; public onCreateOptionsMenu(menu: android.view.Menu): boolean; public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean; public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean; public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode; public onMenuOpened(param0: number, param1: android.view.Menu): boolean; public onOptionsItemSelected(item: android.view.MenuItem): boolean; public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onSearchRequested(param0: any): boolean; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public onContextItemSelected(item: android.view.MenuItem): boolean; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean; public dispatchTouchEvent(ev: android.view.MotionEvent): boolean; public dispatchKeyEvent(param0: android.view.KeyEvent): boolean; public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean; public onAttachedToWindow(): void; public constructor(base: android.content.Context); public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void; public onSharedPreferenceChanged(param0: android.content.SharedPreferences, param1: string): void; public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void; } export module Term { export class EmulatorViewGestureListener extends android.view.GestureDetector.SimpleOnGestureListener { public static class: java.lang.Class<jackpal.androidterm.Term.EmulatorViewGestureListener>; public onLongPress(e: android.view.MotionEvent): void; public onSingleTapConfirmed(param0: android.view.MotionEvent): boolean; public onSingleTapUp(e: android.view.MotionEvent): boolean; public onContextClick(param0: android.view.MotionEvent): boolean; public onSingleTapConfirmed(e: android.view.MotionEvent): boolean; public onDoubleTapEvent(e: android.view.MotionEvent): boolean; public onLongPress(param0: android.view.MotionEvent): void; public onDoubleTapEvent(param0: android.view.MotionEvent): boolean; public onDown(param0: android.view.MotionEvent): boolean; public onSingleTapUp(param0: android.view.MotionEvent): boolean; public constructor(); public onContextClick(e: android.view.MotionEvent): boolean; public onShowPress(e: android.view.MotionEvent): void; public onFling(param0: android.view.MotionEvent, param1: android.view.MotionEvent, param2: number, param3: number): boolean; public onShowPress(param0: android.view.MotionEvent): void; public onScroll(param0: android.view.MotionEvent, param1: android.view.MotionEvent, param2: number, param3: number): boolean; public onDown(e: android.view.MotionEvent): boolean; public constructor(param0: jackpal.androidterm.Term, view: jackpal.androidterm.emulatorview.EmulatorView); public onFling(e1: android.view.MotionEvent, e2: android.view.MotionEvent, velocityX: number, velocityY: number): boolean; public onDoubleTap(param0: android.view.MotionEvent): boolean; public onScroll(e1: android.view.MotionEvent, e2: android.view.MotionEvent, distanceX: number, distanceY: number): boolean; public onDoubleTap(e: android.view.MotionEvent): boolean; } export class WindowListActionBarAdapter extends jackpal.androidterm.WindowListAdapter implements jackpal.androidterm.emulatorview.UpdateCallback { public static class: java.lang.Class<jackpal.androidterm.Term.WindowListActionBarAdapter>; public constructor(sessions: jackpal.androidterm.util.SessionList); public onUpdate(): void; public isEnabled(param0: number): boolean; public getDropDownView(position: number, convertView: android.view.View, parent: android.view.ViewGroup): android.view.View; public getView(position: number, convertView: android.view.View, parent: android.view.ViewGroup): android.view.View; public constructor(param0: jackpal.androidterm.Term, sessions: jackpal.androidterm.util.SessionList); public isEnabled(position: number): boolean; public getDropDownView(param0: number, param1: android.view.View, param2: android.view.ViewGroup): android.view.View; public areAllItemsEnabled(): boolean; public constructor(); } } } } declare module jackpal { export module androidterm { export class TermDebug extends java.lang.Object { public static class: java.lang.Class<jackpal.androidterm.TermDebug>; public static DEBUG: boolean; public static LOG_TAG: string; public constructor(); } } } declare module jackpal { export module androidterm { export class TermPreferences extends android.preference.PreferenceActivity { public static class: java.lang.Class<jackpal.androidterm.TermPreferences>; public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean; public onActionModeStarted(mode: android.view.ActionMode): void; public onMenuOpened(featureId: number, menu: android.view.Menu): boolean; public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean; public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode; public onSearchRequested(): boolean; public constructor(base: android.content.Context, themeResId: number); public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onCreatePanelView(param0: number): android.view.View; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public onCreate(savedInstanceState: android.os.Bundle, persistentState: any): void; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean; public onDetachedFromWindow(): void; public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View; public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean; public constructor(); public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public dispatchTouchEvent(param0: android.view.MotionEvent): boolean; public onTrimMemory(level: number): void; public dispatchKeyEvent(event: android.view.KeyEvent): boolean; public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean; public onWindowFocusChanged(param0: boolean): void; public onPanelClosed(featureId: number, menu: android.view.Menu): void; public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void; public onSearchRequested(searchEvent: any): boolean; public onContentChanged(): void; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public onCreate(savedInstanceState: android.os.Bundle): void; public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode; public onActionModeFinished(mode: android.view.ActionMode): void; public onCreatePanelView(featureId: number): android.view.View; public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean; public onPanelClosed(param0: number, param1: android.view.Menu): void; public onTrimMemory(param0: number): void; public onActionModeFinished(param0: android.view.ActionMode): void; public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme); public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean; public onWindowFocusChanged(hasFocus: boolean): void; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; public onActionModeStarted(param0: android.view.ActionMode): void; public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean; public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean; public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean; public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode; public onMenuOpened(param0: number, param1: android.view.Menu): boolean; public onOptionsItemSelected(item: android.view.MenuItem): boolean; public onPreferenceStartFragment(param0: android.preference.PreferenceFragment, param1: android.preference.Preference): boolean; public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View; public onSearchRequested(param0: any): boolean; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public onPreferenceStartFragment(caller: android.preference.PreferenceFragment, pref: android.preference.Preference): boolean; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean; public dispatchTouchEvent(ev: android.view.MotionEvent): boolean; public dispatchKeyEvent(param0: android.view.KeyEvent): boolean; public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean; public onAttachedToWindow(): void; public constructor(base: android.content.Context); public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void; public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void; } } } declare module jackpal { export module androidterm { export class TermService extends android.app.Service implements jackpal.androidterm.emulatorview.TermSession.FinishCallback { public static class: java.lang.Class<jackpal.androidterm.TermService>; public onBind(param0: android.content.Intent): android.os.IBinder; public onCreate(): void; public constructor(); public onDestroy(): void; public onBind(intent: android.content.Intent): android.os.IBinder; public getSessions(): jackpal.androidterm.util.SessionList; /** @deprecated */ public onStart(intent: android.content.Intent, startId: number): void; public onStart(intent: android.content.Intent, flags: number): void; public onSessionFinish(param0: jackpal.androidterm.emulatorview.TermSession): void; public onTrimMemory(param0: number): void; public onTrimMemory(level: number): void; public onSessionFinish(session: jackpal.androidterm.emulatorview.TermSession): void; public onStartCommand(intent: android.content.Intent, flags: number, startId: number): number; public constructor(base: android.content.Context); } export module TermService { export class RBinder extends jackpal.androidterm.libtermexec.v1.ITerminal.Stub { public static class: java.lang.Class<jackpal.androidterm.TermService.RBinder>; public startSession(pseudoTerminalMultiplexerFd: android.os.ParcelFileDescriptor, callback: android.os.ResultReceiver): android.content.IntentSender; public dump(fd: java.io.FileDescriptor, args: string[]): void; public dumpAsync(param0: java.io.FileDescriptor, param1: string[]): void; public linkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): void; public unlinkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): boolean; public isBinderAlive(): boolean; public startSession(param0: android.os.ParcelFileDescriptor, param1: android.os.ResultReceiver): android.content.IntentSender; public transact(param0: number, param1: android.os.Parcel, param2: android.os.Parcel, param3: number): boolean; public linkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): void; public queryLocalInterface(param0: string): android.os.IInterface; public unlinkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): boolean; public transact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean; public dump(fd: java.io.FileDescriptor, fout: java.io.PrintWriter, args: string[]): void; public dump(param0: java.io.FileDescriptor, param1: string[]): void; public dumpAsync(fd: java.io.FileDescriptor, args: string[]): void; public getInterfaceDescriptor(): string; public pingBinder(): boolean; public queryLocalInterface(descriptor: string): android.os.IInterface; } export class RBinderCleanupCallback extends java.lang.Object implements jackpal.androidterm.emulatorview.TermSession.FinishCallback { public static class: java.lang.Class<jackpal.androidterm.TermService.RBinderCleanupCallback>; public onSessionFinish(session: jackpal.androidterm.emulatorview.TermSession): void; public constructor(param0: jackpal.androidterm.TermService, result: android.app.PendingIntent, callback: android.os.ResultReceiver); public onSessionFinish(param0: jackpal.androidterm.emulatorview.TermSession): void; } export class TSBinder extends android.os.Binder { public static class: java.lang.Class<jackpal.androidterm.TermService.TSBinder>; public dump(fd: java.io.FileDescriptor, args: string[]): void; public dumpAsync(param0: java.io.FileDescriptor, param1: string[]): void; public linkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): void; public unlinkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): boolean; public isBinderAlive(): boolean; public transact(param0: number, param1: android.os.Parcel, param2: android.os.Parcel, param3: number): boolean; public linkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): void; public queryLocalInterface(param0: string): android.os.IInterface; public constructor(); public constructor(this$0: jackpal.androidterm.TermService); public unlinkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): boolean; public transact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean; public dump(fd: java.io.FileDescriptor, fout: java.io.PrintWriter, args: string[]): void; public dump(param0: java.io.FileDescriptor, param1: string[]): void; public dumpAsync(fd: java.io.FileDescriptor, args: string[]): void; public getInterfaceDescriptor(): string; public pingBinder(): boolean; public queryLocalInterface(descriptor: string): android.os.IInterface; } } } } declare module jackpal { export module androidterm { export class TermView extends jackpal.androidterm.emulatorview.EmulatorView { public static class: java.lang.Class<jackpal.androidterm.TermView>; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public onScroll(param0: android.view.MotionEvent, param1: android.view.MotionEvent, param2: number, param3: number): boolean; public onDown(e: android.view.MotionEvent): boolean; public onScroll(e1: android.view.MotionEvent, e2: android.view.MotionEvent, distanceX: number, distanceY: number): boolean; public onSingleTapUp(e: android.view.MotionEvent): boolean; public constructor(context: android.content.Context, attrs: android.util.AttributeSet); public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void; public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void; public constructor(context: android.content.Context); public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public unscheduleDrawable(who: android.graphics.drawable.Drawable): void; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onDown(param0: android.view.MotionEvent): boolean; public onShowPress(e: android.view.MotionEvent): void; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public onSingleTapUp(param0: android.view.MotionEvent): boolean; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public sendAccessibilityEvent(param0: number): void; public onLongPress(param0: android.view.MotionEvent): void; public onFling(param0: android.view.MotionEvent, param1: android.view.MotionEvent, param2: number, param3: number): boolean; public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyle: number); public updatePrefs(settings: jackpal.androidterm.util.TermSettings, scheme: jackpal.androidterm.emulatorview.ColorScheme): void; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void; public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void; public updatePrefs(settings: jackpal.androidterm.util.TermSettings): void; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void; public onFling(e1: android.view.MotionEvent, e2: android.view.MotionEvent, velocityX: number, velocityY: number): boolean; public toString(): string; public constructor(context: android.content.Context, session: jackpal.androidterm.emulatorview.TermSession, metrics: android.util.DisplayMetrics); public invalidateDrawable(param0: android.graphics.drawable.Drawable): void; public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void; public onShowPress(param0: android.view.MotionEvent): void; public onLongPress(e: android.view.MotionEvent): void; public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number); public sendAccessibilityEvent(eventType: number): void; public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void; } } } declare module jackpal { export module androidterm { export class TermViewFlipper extends android.widget.ViewFlipper implements java.lang.Iterable<android.view.View> { public static class: java.lang.Class<jackpal.androidterm.TermViewFlipper>; public invalidateChildInParent(location: number[], dirty: android.graphics.Rect): android.view.ViewParent; public onStopNestedScroll(param0: android.view.View): void; public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void; public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number); public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void; public constructor(context: android.content.Context); public showContextMenuForChild(originalView: android.view.View, x: number, y: number): boolean; public requestSendAccessibilityEvent(param0: android.view.View, param1: android.view.accessibility.AccessibilityEvent): boolean; public childHasTransientStateChanged(param0: android.view.View, param1: boolean): void; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public onNestedScrollAccepted(param0: android.view.View, param1: android.view.View, param2: number): void; public showContextMenuForChild(param0: android.view.View): boolean; public onNestedScrollAccepted(child: android.view.View, target: android.view.View, axes: number): void; public bringChildToFront(param0: android.view.View): void; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public sendAccessibilityEvent(param0: number): void; public requestChildFocus(child: android.view.View, focused: android.view.View): void; public requestChildRectangleOnScreen(child: android.view.View, rectangle: android.graphics.Rect, immediate: boolean): boolean; public requestTransparentRegion(param0: android.view.View): void; public addView(child: android.view.View, width: number, height: number): void; public canResolveTextAlignment(): boolean; public getParent(): android.view.ViewParent; public onStartNestedScroll(param0: android.view.View, param1: android.view.View, param2: number): boolean; public requestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void; public getLayoutDirection(): number; public requestChildFocus(param0: android.view.View, param1: android.view.View): void; public invalidateDrawable(param0: android.graphics.drawable.Drawable): void; public getChildVisibleRect(child: android.view.View, r: android.graphics.Rect, offset: android.graphics.Point): boolean; public recomputeViewAttributes(param0: android.view.View): void; public focusSearch(direction: number): android.view.View; public createContextMenu(menu: android.view.ContextMenu): void; public showNext(): void; public isLayoutRequested(): boolean; public addView(child: android.view.View, index: number, params: android.view.ViewGroup.LayoutParams): void; public onDraw(canvas: android.graphics.Canvas): void; public requestTransparentRegion(child: android.view.View): void; public onNestedScroll(target: android.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number): void; public invalidateChild(param0: android.view.View, param1: android.graphics.Rect): void; public invalidateChild(child: android.view.View, dirty: android.graphics.Rect): void; public updateViewLayout(view: android.view.View, params: android.view.ViewGroup.LayoutParams): void; public addView(v: android.view.View, index: number): void; public notifySubtreeAccessibilityStateChanged(child: android.view.View, source: android.view.View, changeType: number): void; public setDisplayedChild(whichChild: number): void; public onNestedPreScroll(param0: android.view.View, param1: number, param2: number, param3: number[]): void; public requestLayout(): void; public childDrawableStateChanged(param0: android.view.View): void; public removeView(view: android.view.View): void; public onNestedPreFling(target: android.view.View, velocityX: number, velocityY: number): boolean; public canResolveTextDirection(): boolean; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void; /** @deprecated */ public requestFitSystemWindows(): void; public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void; public getChildVisibleRect(param0: android.view.View, param1: android.graphics.Rect, param2: android.graphics.Point): boolean; public updatePrefs(settings: jackpal.androidterm.util.TermSettings): void; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public focusSearch(focused: android.view.View, direction: number): android.view.View; public invalidateChildInParent(param0: number[], param1: android.graphics.Rect): android.view.ViewParent; public recomputeViewAttributes(child: android.view.View): void; public addView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void; public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number); public childHasTransientStateChanged(child: android.view.View, childHasTransientState: boolean): void; public requestFitSystemWindows(): void; public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void; public childDrawableStateChanged(child: android.view.View): void; public isLayoutDirectionResolved(): boolean; public resumeCurrentView(): void; public focusableViewAvailable(param0: android.view.View): void; public createContextMenu(param0: android.view.ContextMenu): void; public focusSearch(param0: android.view.View, param1: number): android.view.View; public canResolveLayoutDirection(): boolean; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; public onNestedFling(param0: android.view.View, param1: number, param2: number, param3: boolean): boolean; public addView(child: android.view.View, index: number): void; public