Stay organized with collections
Save and categorize content based on your preferences.
DeviceStateMonitor
public
class
DeviceStateMonitor
extends NativeDeviceStateMonitor
Known direct subclasses
NestedDeviceStateMonitor |
Device state monitor that executes extra checks on nested device to accommodate the specifics of
the virtualized environment.
|
|
Helper class for monitoring the state of a IDevice
.
Summary
Protected methods |
boolean
|
postOnlineCheck(long waitTime)
Additional checks to be done on an Online device
|
boolean
|
waitForPmResponsive(long waitTime)
Waits for the device package manager to be responsive.
|
Public constructors
DeviceStateMonitor
public DeviceStateMonitor (IDeviceManager mgr,
IDevice device,
boolean fastbootEnabled)
Parameters |
mgr |
IDeviceManager |
device |
IDevice |
fastbootEnabled |
boolean |
Protected methods
postOnlineCheck
protected boolean postOnlineCheck (long waitTime)
Additional checks to be done on an Online device
Parameters |
waitTime |
long : time in ms to wait before giving up |
Returns |
boolean |
true if checks are successful before waitTime expires. false
otherwise |
waitForPmResponsive
protected boolean waitForPmResponsive (long waitTime)
Waits for the device package manager to be responsive.
Parameters |
waitTime |
long : time in ms to wait before giving up |
Returns |
boolean |
true if package manage becomes responsive before waitTime expires.
false otherwise |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-03-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2023-03-08 UTC.",
"confidential": False
}