/**@class android.os.TokenWatcher @extends java.lang.Object Helper class that helps you use IBinder objects as reference counted tokens. IBinders make good tokens because we find out when they are removed */ var TokenWatcher = { /**Called when the number of active tokens goes from 0 to 1. */ acquired : function( ) {}, /**Called when the number of active tokens goes from 1 to 0. */ released : function( ) {}, /**Record that this token has been acquired. When acquire is called, and the current count is 0, the acquired method is called on the given handler. @param {Object {IBinder}} token An IBinder object. If this token has already been acquired, no action is taken. @param {String} tag A string used by the {@link #dump} method for debugging, to see who has references. */ acquire : function( ) {}, /** */ cleanup : function( ) {}, /** */ release : function( ) {}, /** */ isAcquired : function( ) {}, /** */ dump : function( ) {}, /** */ dump : function( ) {}, };