PropertyFetcher
public
final
class
PropertyFetcher
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.PropertyFetcher |
Fetches and caches 'getprop' values from device.
Summary
Public constructors | |
|---|---|
PropertyFetcher(IDevice device)
|
|
Public methods | |
|---|---|
boolean
|
arePropertiesSet()
This method is deprecated. implementation detail |
static
void
|
enableCachingMutableProps(boolean enabled)
|
|
getProperties()
Returns the full list of cached properties. |
ListenableFuture<String>
|
getProperty(String name)
Make a possibly asynchronous request for a system property value. |
Public constructors
Public methods
arePropertiesSet
public boolean arePropertiesSet ()
This method is deprecated.
implementation detail
Return true if cache is populated.
| Returns | |
|---|---|
boolean |
|
enableCachingMutableProps
public static void enableCachingMutableProps (boolean enabled)
| Parameters | |
|---|---|
enabled |
boolean |
getProperties
publicgetProperties ()
Returns the full list of cached properties.
| Returns | |
|---|---|
|
|
getProperty
public ListenableFuture<String> getProperty (String name)
Make a possibly asynchronous request for a system property value.
| Parameters | |
|---|---|
name |
String: the property name to retrieve |
| Returns | |
|---|---|
ListenableFuture<String> |
a ERROR(/Future) that can be used to retrieve the prop value |