Search in sources :

Example 6 with Light

use of com.android.server.lights.Light in project platform_frameworks_base by android.

the class PowerManagerService method setAttentionLightInternal.

private void setAttentionLightInternal(boolean on, int color) {
    Light light;
    synchronized (mLock) {
        if (!mSystemReady) {
            return;
        }
        light = mAttentionLight;
    }
    // Control light outside of lock.
    light.setFlashing(color, Light.LIGHT_FLASH_HARDWARE, (on ? 3 : 0), 0);
}
Also used : Light(com.android.server.lights.Light)

Aggregations

Light (com.android.server.lights.Light)6 IBinder (android.os.IBinder)2 Parcel (android.os.Parcel)2 RemoteException (android.os.RemoteException)2 LightsManager (com.android.server.lights.LightsManager)2