|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.ddmlib.DdmPreferences
public final class DdmPreferences
Preferences for the ddm library.
This class does not handle storing the preferences. It is merely a central point for applications using the ddmlib to override the default values. Various components of the ddmlib query this class to get their values. Calls to someset##()
methods will update the components using the values
right away, while other methods will have no effect once AndroidDebugBridge.init(boolean)
has been called.
Check the documentation of each method.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ADBHOST_VALUE
|
static int |
DEFAULT_DEBUG_PORT_BASE
Default value for the debug port base |
static boolean |
DEFAULT_INITIAL_HEAP_UPDATE
Default value for heap update flag upon client connection. |
static boolean |
DEFAULT_INITIAL_THREAD_UPDATE
Default value for thread update flag upon client connection. |
static Log.LogLevel |
DEFAULT_LOG_LEVEL
Default value for the logcat Log.LogLevel |
static int |
DEFAULT_PROFILER_BUFFER_SIZE_MB
Default profiler buffer size (megabytes) |
static int |
DEFAULT_SELECTED_DEBUG_PORT
Default value for the selected client debug port |
static int |
DEFAULT_TIMEOUT
Default timeout values for adb connection (milliseconds) |
static boolean |
DEFAULT_USE_ADBHOST
Default values for the use of the ADBHOST environment variable. |
Method Summary | |
---|---|
static java.lang.String |
getAdbHostValue()
Returns the value of the ADBHOST variable set by the user. |
static int |
getDebugPortBase()
Returns the debug port used by the first Client . |
static boolean |
getInitialHeapUpdate()
Returns the initial Client flag for heap updates. |
static boolean |
getInitialThreadUpdate()
Returns the initial Client flag for thread updates. |
static Log.LogLevel |
getLogLevel()
Returns the minimum Log.LogLevel being displayed. |
static int |
getProfilerBufferSizeMb()
Returns the profiler buffer size (megabytes). |
static int |
getSelectedDebugPort()
Returns the debug port used by the selected Client . |
static int |
getTimeOut()
Returns the timeout to be used in adb connections (milliseconds). |
static boolean |
getUseAdbHost()
Returns a boolean indicating that the user uses or not the variable ADBHOST. |
static void |
setAdbHostValue(java.lang.String adbHostValue)
Sets the value of the ADBHOST variable. |
static void |
setDebugPortBase(int port)
Sets the debug port used by the first Client . |
static void |
setInitialHeapUpdate(boolean state)
Sets the initial Client flag for heap updates. |
static void |
setInitialThreadUpdate(boolean state)
Sets the initial Client flag for thread updates. |
static void |
setLogLevel(java.lang.String value)
Sets the minimum Log.LogLevel to display. |
static void |
setProfilerBufferSizeMb(int bufferSizeMb)
Sets the profiler buffer size value. |
static void |
setSelectedDebugPort(int port)
Sets the debug port used by the selected Client . |
static void |
setTimeOut(int timeOut)
Sets the timeout value for adb connection. |
static void |
setUseAdbHost(boolean useAdbHost)
Sets the value of the boolean indicating that the user uses or not the variable ADBHOST. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_INITIAL_THREAD_UPDATE
public static final boolean DEFAULT_INITIAL_HEAP_UPDATE
public static final int DEFAULT_SELECTED_DEBUG_PORT
public static final int DEFAULT_DEBUG_PORT_BASE
public static final Log.LogLevel DEFAULT_LOG_LEVEL
Log.LogLevel
public static final int DEFAULT_TIMEOUT
public static final int DEFAULT_PROFILER_BUFFER_SIZE_MB
public static final boolean DEFAULT_USE_ADBHOST
public static final java.lang.String DEFAULT_ADBHOST_VALUE
Method Detail |
---|
public static boolean getInitialThreadUpdate()
Client
flag for thread updates.
setInitialThreadUpdate(boolean)
public static void setInitialThreadUpdate(boolean state)
Client
flag for thread updates.
This change takes effect right away, for newly created Client
objects.
public static boolean getInitialHeapUpdate()
Client
flag for heap updates.
setInitialHeapUpdate(boolean)
public static void setInitialHeapUpdate(boolean state)
Client
flag for heap updates.
If true
, the ClientData
will automatically be updated with
the VM heap information whenever a GC happens.
This change takes effect right away, for newly created Client
objects.
public static int getSelectedDebugPort()
Client
.
public static void setSelectedDebugPort(int port)
Client
.
This change takes effect right away.
port
- the new port to use.public static int getDebugPortBase()
Client
. Following clients, will use the
next port.
public static void setDebugPortBase(int port)
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 AndroidDebugBridge.init(boolean)
.
public static Log.LogLevel getLogLevel()
Log.LogLevel
being displayed.
public static void setLogLevel(java.lang.String value)
Log.LogLevel
to display.
This change takes effect right away.
public static int getTimeOut()
public static void setTimeOut(int timeOut)
timeOut
- the timeout value (milliseconds).public static int getProfilerBufferSizeMb()
public static void setProfilerBufferSizeMb(int bufferSizeMb)
bufferSizeMb
- the buffer size (megabytes).public static boolean getUseAdbHost()
public static void setUseAdbHost(boolean useAdbHost)
useAdbHost
- true if the user uses ADBHOSTpublic static java.lang.String getAdbHostValue()
public static void setAdbHostValue(java.lang.String adbHostValue)
adbHostValue
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |