FileDocCategorySizeDatePackage
LightsService.javaAPI DocAndroid 5.1 API7121Thu Mar 12 22:22:42 GMT 2015com.android.server.lights

LightsService

public class LightsService extends com.android.server.SystemService

Fields Summary
static final String
TAG
static final boolean
DEBUG
final LightImpl[]
mLights
private final IHardwareService.Stub
mLegacyFlashlightHack
private final LightsManager
mService
private android.os.Handler
mH
private long
mNativePointer
Constructors Summary
public LightsService(android.content.Context context)


       
        super(context);

        mNativePointer = init_native();

        for (int i = 0; i < LightsManager.LIGHT_ID_COUNT; i++) {
            mLights[i] = new LightImpl(i);
        }
    
Methods Summary
protected voidfinalize()


    
         
        finalize_native(mNativePointer);
        super.finalize();
    
private static native voidfinalize_native(long ptr)

private static native longinit_native()

public voidonStart()

        publishBinderService("hardware", mLegacyFlashlightHack);
        publishLocalService(LightsManager.class, mService);
    
static native voidsetLight_native(long ptr, int light, int color, int mode, int onMS, int offMS, int brightnessMode)