FileDocCategorySizeDatePackage
BinderInternal.javaAPI DocAndroid 1.5 API2811Wed May 06 22:41:56 BST 2009com.android.internal.os

BinderInternal

public class BinderInternal extends Object
Private and debugging Binder APIs.
see
IBinder

Fields Summary
static WeakReference
mGcWatcher
static long
mLastGcTime
Constructors Summary
Methods Summary
static voidforceBinderGc()

        forceGc("Binder");
    
public static voidforceGc(java.lang.String reason)

        EventLog.writeEvent(2741, reason);
        Runtime.getRuntime().gc();
    
public static final native android.os.IBindergetContextObject()
Return the global "context object" of the system. This is usually an implementation of IServiceManager, which you can use to find other services.

public static longgetLastGcTime()
Return the system time (as reported by {@link SystemClock#uptimeMillis SystemClock.uptimeMillis()}) that the last garbage collection occurred in this process. This is not for general application use, and the meaning of "when a garbage collection occurred" will change as the garbage collector evolves.

return
Returns the time as per {@link SystemClock#uptimeMillis SystemClock.uptimeMillis()} of the last garbage collection.

        return mLastGcTime;
    
static final native voidhandleGc()

public static final native voidjoinThreadPool()
Add the calling thread to the IPC thread pool. This function does not return until the current process is exiting.