/**@class android.os.UpdateLock @extends java.lang.Object Advisory wakelock-like mechanism by which processes that should not be interrupted for OTA/update purposes can so advise the OS. This is particularly relevant for headless or kiosk-like operation. @hide */ var UpdateLock = { /** Broadcast Intent action sent when the global update lock state changes, i.e. when the first locker acquires an update lock, or when the last locker releases theirs. The broadcast is sticky but is sent only to registered receivers. */ UPDATE_LOCK_CHANGED : "android.os.UpdateLock.UPDATE_LOCK_CHANGED", /** Boolean Intent extra on the UPDATE_LOCK_CHANGED sticky broadcast, indicating whether now is an appropriate time to interrupt device activity with an update operation. True means that updates are okay right now; false indicates that perhaps later would be a better time. */ NOW_IS_CONVENIENT : "nowisconvenient", /** Long Intent extra on the UPDATE_LOCK_CHANGED sticky broadcast, marking the wall-clock time [in UTC] at which the broadcast was sent. Note that this is in the System.currentTimeMillis() time base, which may be non-monotonic especially around reboots. */ TIMESTAMP : "timestamp", /**Change the refcount behavior of this update lock. */ setReferenceCounted : function( ) {}, /**Is this lock currently held? */ isHeld : function( ) {}, /**Acquire an update lock. */ acquire : function( ) {}, /**Release this update lock. */ release : function( ) {}, };