Searched refs:LightState (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/core/java/android/hardware/lights/ |
D | LightState.java | 40 public final class LightState implements Parcelable { class 48 public LightState(@ColorInt int color) { in LightState() method in LightState 52 private LightState(@NonNull Parcel in) { in LightState() method in LightState 74 public static final @NonNull Parcelable.Creator<LightState> CREATOR = 75 new Parcelable.Creator<LightState>() { 76 public LightState createFromParcel(Parcel in) { 77 return new LightState(in); 80 public LightState[] newArray(int size) { 81 return new LightState[size];
|
D | LightsRequest.java | 39 final LightState[] mLightStates; 44 private LightsRequest(SparseArray<LightState> changes) { in LightsRequest() 47 mLightStates = new LightState[n]; in LightsRequest() 59 private final SparseArray<LightState> mChanges = new SparseArray<>(); 67 public @NonNull Builder setLight(@NonNull Light light, @NonNull LightState state) { in setLight()
|
D | ILightsManager.aidl | 20 import android.hardware.lights.LightState; 29 LightState getLightState(int lightId); in getLightState() 32 void setLightStates(in IBinder sessionToken, in int[] lightIds, in LightState[] states); in setLightStates()
|
D | LightState.aidl | 20 parcelable LightState;
|
D | LightsManager.java | 112 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_lights_LightsService.cpp | 36 using LightState = ::android::hardware::light::V2_0::LightState; typedef 75 static LightState constructState( in constructState() 84 LightState state{}; in constructState() 104 const LightState &state) { in processReturn() 145 LightState state = constructState( in setLight_native()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
D | LightsServiceTest.java | 32 import android.hardware.lights.LightState; 110 .setLight(manager.getLights().get(0), new LightState(0xf1)) in testControlMultipleLights() 111 .setLight(manager.getLights().get(1), new LightState(0xf2)) in testControlMultipleLights() 112 .setLight(manager.getLights().get(2), new LightState(0xf3)) in testControlMultipleLights() 135 session.requestLights(new Builder().setLight(micLight, new LightState(GREEN)).build()); in testControlLights_onlyEffectiveForLifetimeOfClient() 155 session1.requestLights(new Builder().setLight(micLight, new LightState(BLUE)).build()); in testControlLights_firstCallerWinsContention() 156 session2.requestLights(new Builder().setLight(micLight, new LightState(WHITE)).build()); in testControlLights_firstCallerWinsContention() 179 session.requestLights(new Builder().setLight(micLight, new LightState(WHITE)).build()); in testClearLight()
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LightsService.java | 27 import android.hardware.lights.LightState; 75 final SparseArray<LightState> mRequests = new SparseArray<>(); 81 void setRequest(int lightId, LightState state) { in setRequest() 122 public void setLightStates(IBinder token, int[] lightIds, LightState[] lightStates) { in setLightStates() 141 public @Nullable LightState getLightState(int lightId) { in getLightState() 150 return new LightState(light.getColor()); in getLightState() 234 final Map<Integer, LightState> states = new HashMap<>(); in invalidateLightStatesLocked() 236 SparseArray<LightState> requests = mSessions.get(i).mRequests; in invalidateLightStatesLocked() 244 LightState state = states.get(light.mHwLight.id); in invalidateLightStatesLocked()
|
/frameworks/base/api/ |
D | test-current.txt | 1438 public final class LightState implements android.os.Parcelable { 1439 ctor public LightState(@ColorInt int); 1443 …Null public static final android.os.Parcelable.Creator<android.hardware.lights.LightState> CREATOR; 1447 …ifest.permission.CONTROL_DEVICE_LIGHTS) public android.hardware.lights.LightState getLightState(@N… 1465 …lder setLight(@NonNull android.hardware.lights.Light, @NonNull android.hardware.lights.LightState);
|
D | system-current.txt | 2835 public final class LightState implements android.os.Parcelable { 2836 ctor public LightState(@ColorInt int); 2840 …Null public static final android.os.Parcelable.Creator<android.hardware.lights.LightState> CREATOR; 2861 …lder setLight(@NonNull android.hardware.lights.Light, @NonNull android.hardware.lights.LightState);
|
/frameworks/base/non-updatable-api/ |
D | system-current.txt | 2783 public final class LightState implements android.os.Parcelable { 2784 ctor public LightState(@ColorInt int); 2788 …Null public static final android.os.Parcelable.Creator<android.hardware.lights.LightState> CREATOR; 2809 …lder setLight(@NonNull android.hardware.lights.Light, @NonNull android.hardware.lights.LightState);
|