public class

FourGManager.FourGLock

extends Object
java.lang.Object
   ↳ com.htc.net.FourG.FourGManager.FourGLock

Class Overview

When an application is holding this lock, the application is indicating to the 4G Manager that the 4G radio should stay enabled. However, the 4G Manager's implementation of this "radio on" lock does not take precedence over the radio enable/disable logic of the aireplane mode or the carrier defined, lower-level radio policies. When one or more Lock objects are outstanding (held by applications), the implementation shall attempt to keep the radio on and and active even when the radio is idle. Applications holding locks for long periods may have adverse impact on the battery life.

Summary

Public Methods
void acquire()
Locks the 4G radio on until release() is called
boolean isHeld()
Checks whether this Lock is currently held
void release()
Unlocks the 4G radio, allowing it to turn off when the device is idle
void setReferenceCounted(boolean refCounted)
Controls whether this is a reference-counted or non-reference-counted Lock
String toString()
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void acquire ()

Locks the 4G radio on until release() is called

public boolean isHeld ()

Checks whether this Lock is currently held

public void release ()

Unlocks the 4G radio, allowing it to turn off when the device is idle

public void setReferenceCounted (boolean refCounted)

Controls whether this is a reference-counted or non-reference-counted Lock

public String toString ()

Since: API Level

Protected Methods

protected void finalize ()

Since: API Level

Throws
Throwable