Fields Summary |
---|
public static final boolean | DEFAULT_INITIAL_THREAD_UPDATEDefault value for thread update flag upon client connection. |
public static final boolean | DEFAULT_INITIAL_HEAP_UPDATEDefault value for heap update flag upon client connection. |
public static final int | DEFAULT_SELECTED_DEBUG_PORTDefault value for the selected client debug port |
public static final int | DEFAULT_DEBUG_PORT_BASEDefault value for the debug port base |
public static final com.android.ddmlib.Log.LogLevel | DEFAULT_LOG_LEVELDefault value for the logcat {@link LogLevel} |
private static boolean | sThreadUpdate |
private static boolean | sInitialHeapUpdate |
private static int | sSelectedDebugPort |
private static int | sDebugPortBase |
private static com.android.ddmlib.Log.LogLevel | sLogLevel |
Methods Summary |
---|
public static int | getDebugPortBase()Returns the debug port used by the first {@link Client}. Following clients, will use the
next port.
return sDebugPortBase;
|
public static boolean | getInitialHeapUpdate()Returns the initial {@link Client} flag for heap updates.
return sInitialHeapUpdate;
|
public static boolean | getInitialThreadUpdate()Returns the initial {@link Client} flag for thread updates.
return sThreadUpdate;
|
public static com.android.ddmlib.Log.LogLevel | getLogLevel()Returns the minimum {@link LogLevel} being displayed.
return sLogLevel;
|
public static int | getSelectedDebugPort()Returns the debug port used by the selected {@link Client}.
return sSelectedDebugPort;
|
public static void | setDebugPortBase(int port)Sets the debug port used by the first {@link Client}.
Once a port is used, the next Client will use port + 1. Quitting applications will
release their debug port, and new clients will be able to reuse them.
This must be called before {@link AndroidDebugBridge#init(boolean)}.
sDebugPortBase = port;
|
public static void | setInitialHeapUpdate(boolean state)Sets the initial {@link Client} flag for heap updates.
If true , the {@link ClientData} will automatically be updated with
the VM heap information whenever a GC happens.
This change takes effect right away, for newly created {@link Client} objects.
sInitialHeapUpdate = state;
|
public static void | setInitialThreadUpdate(boolean state)Sets the initial {@link Client} flag for thread updates.
This change takes effect right away, for newly created {@link Client} objects.
sThreadUpdate = state;
|
public static void | setLogLevel(java.lang.String value)Sets the minimum {@link LogLevel} to display.
This change takes effect right away.
sLogLevel = LogLevel.getByString(value);
Log.setLevel(sLogLevel);
|
public static void | setSelectedDebugPort(int port)Sets the debug port used by the selected {@link Client}.
This change takes effect right away.
sSelectedDebugPort = port;
MonitorThread monitorThread = MonitorThread.getInstance();
if (monitorThread != null) {
monitorThread.setDebugSelectedPort(port);
}
|