FileDocCategorySizeDatePackage
ServiceThread.javaAPI DocAndroid 5.1 API1506Thu Mar 12 22:22:42 GMT 2015com.android.server

ServiceThread

public class ServiceThread extends android.os.HandlerThread
Special handler thread that we create for system services that require their own loopers.

Fields Summary
private static final String
TAG
private final boolean
mAllowIo
Constructors Summary
public ServiceThread(String name, int priority, boolean allowIo)


           
        super(name, priority);
        mAllowIo = allowIo;
    
Methods Summary
public voidrun()

        Process.setCanSelfBackground(false);

        // For debug builds, log event loop stalls to dropbox for analysis.
        if (!mAllowIo && StrictMode.conditionallyEnableDebugLogging()) {
            Slog.i(TAG, "Enabled StrictMode logging for " + getName() + " looper.");
        }

        super.run();