LightsServicepublic 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 void | finalize()
finalize_native(mNativePointer);
super.finalize();
| private static native void | finalize_native(long ptr)
| private static native long | init_native()
| public void | onStart()
publishBinderService("hardware", mLegacyFlashlightHack);
publishLocalService(LightsManager.class, mService);
| static native void | setLight_native(long ptr, int light, int color, int mode, int onMS, int offMS, int brightnessMode)
|
|