Merge "Frameworks/base: Add is64Bit method to Process" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c936af815
@@ -23447,6 +23447,7 @@ package android.os {
|
||||
method public static final int getGidForName(java.lang.String);
|
||||
method public static final int getThreadPriority(int) throws java.lang.IllegalArgumentException;
|
||||
method public static final int getUidForName(java.lang.String);
|
||||
method public static final boolean is64Bit();
|
||||
method public static final void killProcess(int);
|
||||
method public static final int myPid();
|
||||
method public static final int myTid();
|
||||
|
||||
@@ -25373,6 +25373,7 @@ package android.os {
|
||||
method public static final int getGidForName(java.lang.String);
|
||||
method public static final int getThreadPriority(int) throws java.lang.IllegalArgumentException;
|
||||
method public static final int getUidForName(java.lang.String);
|
||||
method public static final boolean is64Bit();
|
||||
method public static final void killProcess(int);
|
||||
method public static final int myPid();
|
||||
method public static final int myTid();
|
||||
|
||||
@@ -21,6 +21,7 @@ import android.net.LocalSocketAddress;
|
||||
import android.system.Os;
|
||||
import android.util.Log;
|
||||
import com.android.internal.os.Zygote;
|
||||
import dalvik.system.VMRuntime;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.DataInputStream;
|
||||
import java.io.IOException;
|
||||
@@ -744,7 +745,14 @@ public class Process {
|
||||
* @return Returns the number of milliseconds this process has return.
|
||||
*/
|
||||
public static final native long getElapsedCpuTime();
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if the current process is a 64-bit runtime.
|
||||
*/
|
||||
public static final boolean is64Bit() {
|
||||
return VMRuntime.getRuntime().is64Bit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the identifier of this process, which can be used with
|
||||
* {@link #killProcess} and {@link #sendSignal}.
|
||||
|
||||
Reference in New Issue
Block a user