/frameworks/base/core/java/android/hardware/lights/ |
D | LightState.java | 37 public final class LightState implements Parcelable { class 51 public LightState(@ColorInt int color) { in LightState() method in LightState 63 public LightState(@ColorInt int color, int playerId) { in LightState() method in LightState 117 public @NonNull LightState build() { in build() 119 return new LightState(mValue, 0); in build() 121 return new LightState(0, mValue); in build() 129 private LightState(@NonNull Parcel in) { in LightState() method in LightState 171 public static final @NonNull Parcelable.Creator<LightState> CREATOR = 172 new Parcelable.Creator<LightState>() { 173 public LightState createFromParcel(Parcel in) { [all …]
|
D | LightsRequest.java | 35 final Map<Light, LightState> mRequests = new HashMap<>(); 37 final List<LightState> mLightStates = new ArrayList<>(); 42 private LightsRequest(Map<Light, LightState> requests) { in LightsRequest() 67 public @NonNull List<LightState> getLightStates() { in getLightStates() 75 public @NonNull Map<Light, LightState> getLightsAndStates() { in getLightsAndStates() 84 final Map<Light, LightState> mChanges = new HashMap<>(); 91 public @NonNull Builder addLight(@NonNull Light light, @NonNull LightState state) { in addLight() 108 public @NonNull Builder setLight(@NonNull Light light, @NonNull LightState state) { in setLight()
|
D | ILightsManager.aidl | 20 import android.hardware.lights.LightState; 31 LightState getLightState(int lightId); in getLightState() 37 void setLightStates(in IBinder sessionToken, in int[] lightIds, in LightState[] states); in setLightStates()
|
D | SystemLightsManager.java | 87 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState() 166 List<LightState> stateList = request.getLightStates(); in requestLights() 171 LightState[] states = new LightState[stateList.size()]; in requestLights()
|
D | LightState.aidl | 20 parcelable LightState;
|
D | LightsManager.java | 75 public abstract @NonNull LightState getLightState(@NonNull Light light); in getLightState()
|
/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceLightsManagerTest.java | 38 import android.hardware.lights.LightState; 96 ArrayMap<Integer, LightState> lightStatesById = new ArrayMap<>(); in setUp() 99 final LightState[] lightStates = in setUp() 100 (LightState[]) invocation.getArguments()[2]; in setUp() 106 any(int[].class), any(LightState[].class), any(IBinder.class)); in setUp() 113 return new LightState(0); in setUp() 177 LightState[] states = new LightState[]{new LightState(0xf1), new LightState(0xf2), in testControlMultipleLights() 178 new LightState(0xf3)}; in testControlMultipleLights() 227 LightState[] states = new LightState[]{new LightState(0xf1, PLAYER_ID)}; in testControlPlayerIdLight() 268 LightState state1 = new LightState(0xf1); in testLightsRequest() [all …]
|
/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 | 36 import android.hardware.lights.LightState; 127 .addLight(manager.getLights().get(0), new LightState(0xf1)) in testControlMultipleLights() 128 .addLight(manager.getLights().get(1), new LightState(0xf2)) in testControlMultipleLights() 129 .addLight(manager.getLights().get(2), new LightState(0xf3)) in testControlMultipleLights() 152 session.requestLights(new Builder().addLight(micLight, new LightState(GREEN)).build()); in testControlLights_onlyEffectiveForLifetimeOfClient() 173 session1.requestLights(new Builder().addLight(micLight, new LightState(BLUE)).build()); in testControlLights_firstCallerWinsContention() 174 session2.requestLights(new Builder().addLight(micLight, new LightState(WHITE)).build()); in testControlLights_firstCallerWinsContention() 199 session.requestLights(new Builder().addLight(micLight, new LightState(WHITE)).build()); in testClearLight() 221 new Builder().addLight(micLight, new LightState(BLUE)).build()); in testControlLights_higherPriorityCallerWinsContention() 223 new Builder().addLight(micLight, new LightState(WHITE)).build()); in testControlLights_higherPriorityCallerWinsContention()
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LightsService.java | 26 import android.hardware.lights.LightState; 77 final SparseArray<LightState> mRequests = new SparseArray<>(); 85 void setRequest(int lightId, LightState state) { in setRequest() 133 public void setLightStates(IBinder token, int[] lightIds, LightState[] lightStates) { in setLightStates() 152 public @Nullable LightState getLightState(int lightId) { in getLightState() 160 return new LightState(light.getColor()); in getLightState() 245 final Map<Integer, LightState> states = new HashMap<>(); in invalidateLightStatesLocked() 247 SparseArray<LightState> requests = mSessions.get(i).mRequests; in invalidateLightStatesLocked() 255 LightState state = states.get(light.mHwLight.id); in invalidateLightStatesLocked()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceLightsManager.java | 22 import android.hardware.lights.LightState; 68 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState()
|
D | IInputManager.aidl | 36 import android.hardware.lights.LightState; 192 LightState getLightState(int deviceId, int lightId); in getLightState() 194 void setLightStates(int deviceId, in int[] lightIds, in LightState[] states, in IBinder token); in setLightStates()
|
D | InputManagerGlobal.java | 32 import android.hardware.lights.LightState; 1181 @NonNull LightState getLightState(int deviceId, @NonNull Light light) { in getLightState() 1201 List<LightState> lightStateList = request.getLightStates(); in requestLights() 1203 lightStateList.toArray(new LightState[0]), in requestLights()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightControllerTest.java | 42 import android.hardware.lights.LightState; 298 for (LightState lightState : lightsRequest.getLightStates()) { in testNoLightSensor() 336 for (LightState lightState : mLightsRequestCaptor.getValue().getLightStates()) { in testAlsThresholds()
|
/frameworks/base/services/core/java/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightController.java | 28 import android.hardware.lights.LightState; 252 new LightState.Builder() in updateLightSession()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | InputManagerService.java | 60 import android.hardware.lights.LightState; 1860 private LightState[] mLightStates; 1892 private void setLightStateInternal(int deviceId, Light light, LightState lightState) { in setLightStateInternal() 1910 private void setLightStatesInternal(int deviceId, int[] lightIds, LightState[] lightStates) { in setLightStatesInternal() 1927 public void setLightStates(int deviceId, int[] lightIds, LightState[] lightStates, in setLightStates() 1945 public @Nullable LightState getLightState(int deviceId, int lightId) { in getLightState() 1950 return new LightState(color, playerId); in getLightState() 1980 Arrays.fill(lightSession.mLightStates, new LightState(0)); in closeLightSession()
|
/frameworks/base/core/api/ |
D | current.txt | 20492 public final class LightState implements android.os.Parcelable { 20497 …Null public static final android.os.Parcelable.Creator<android.hardware.lights.LightState> CREATOR; 20500 public static final class LightState.Builder { 20501 ctor public LightState.Builder(); 20502 method @NonNull public android.hardware.lights.LightState build(); 20503 method @NonNull public android.hardware.lights.LightState.Builder setColor(@ColorInt int); 20504 method @NonNull public android.hardware.lights.LightState.Builder setPlayerId(int); 20508 …method @NonNull public abstract android.hardware.lights.LightState getLightState(@NonNull android.… 20519 method @NonNull public java.util.List<android.hardware.lights.LightState> getLightStates(); 20521 …ic java.util.Map<android.hardware.lights.Light,android.hardware.lights.LightState> getLightsAndSta… [all …]
|
D | system-current.txt | 5891 public final class LightState implements android.os.Parcelable { 5892 ctor @Deprecated public LightState(@ColorInt int); 5900 …lder setLight(@NonNull android.hardware.lights.Light, @NonNull android.hardware.lights.LightState);
|