AI 144089: Make "Term" build against the public Android API.
This was done by making a private copy of android.term.Exec. BUG=1750582 Automated import of CL 144089
This commit is contained in:
committed by
The Android Open Source Project
parent
ac2a8469f2
commit
a5370e95c4
@@ -16,6 +16,12 @@
|
||||
|
||||
package com.android.term;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
@@ -35,10 +41,8 @@ import android.graphics.Rect;
|
||||
import android.graphics.Typeface;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Exec;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.os.SystemClock;
|
||||
import android.preference.PreferenceManager;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
@@ -54,13 +58,6 @@ import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.ExtractedText;
|
||||
import android.view.inputmethod.ExtractedTextRequest;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* A terminal emulator activity.
|
||||
@@ -98,10 +95,7 @@ public class Term extends Activity {
|
||||
|
||||
/**
|
||||
* The pseudo-teletype (pty) file descriptor that we use to communicate with
|
||||
* another process, typically a shell. Currently we just use this to get the
|
||||
* mTermIn / mTermOut file descriptors, but when we implement resizing of
|
||||
* the terminal we will need it to issue the ioctl to inform the other
|
||||
* process that we've changed the terminal size.
|
||||
* another process, typically a shell.
|
||||
*/
|
||||
private FileDescriptor mTermFd;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user