/frameworks/base/core/java/android/hardware/lights/ |
D | LightsRequest.java | 46 final Light light = lights.get(i); in LightsRequest() local 47 mLightIds.add(i, light.getId()); in LightsRequest() 48 mLightStates.add(i, mRequests.get(light)); in LightsRequest() 91 public @NonNull Builder addLight(@NonNull Light light, @NonNull LightState state) { in addLight() argument 92 Preconditions.checkNotNull(light); in addLight() 94 mChanges.put(light, state); in addLight() 108 public @NonNull Builder setLight(@NonNull Light light, @NonNull LightState state) { in setLight() argument 109 return addLight(light, state); in setLight() 117 public @NonNull Builder clearLight(@NonNull Light light) { in clearLight() argument 118 Preconditions.checkNotNull(light); in clearLight() [all …]
|
D | Light.java | 197 Light light = (Light) obj; in equals() local 198 return mId == light.mId && mOrdinal == light.mOrdinal && mType == light.mType in equals() 199 && mCapabilities == light.mCapabilities; in equals()
|
D | SystemLightsManager.java | 87 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState() argument 88 Preconditions.checkNotNull(light); in getLightState() 90 return mService.getLightState(light.getId()); in getLightState()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_lights_LightsService.cpp | 33 using Brightness = ::android::hardware::light::V2_0::Brightness; 34 using Flash = ::android::hardware::light::V2_0::Flash; 35 using ILight = ::android::hardware::light::V2_0::ILight; 36 using LightState = ::android::hardware::light::V2_0::LightState; 37 using Status = ::android::hardware::light::V2_0::Status; 38 using Type = ::android::hardware::light::V2_0::Type; 44 static bool validate(jint light, jint flash, jint brightness) { in validate() argument 47 if (light < 0 || light >= static_cast<jint>(Type::COUNT)) { in validate() 48 ALOGE("Invalid light parameter %d.", light); in validate() 67 light != static_cast<jint>(Type::BACKLIGHT)) { in validate() [all …]
|
/frameworks/native/services/inputflinger/reader/controller/ |
D | PeripheralController.cpp | 278 for (const auto& [lightId, light] : mLights) { in populateDeviceInfo() 280 InputDeviceLightInfo lightInfo(light->name, light->id, light->type, light->capabilityFlags, in populateDeviceInfo() 281 /*ordinal=*/1, getPreferredBrightnessLevels(light.get())); in populateDeviceInfo() 290 const Light* light) const { in getPreferredBrightnessLevels() 293 light->type != InputDeviceLightType::KEYBOARD_BACKLIGHT) { in getPreferredBrightnessLevels() 322 for (const auto& [lightId, light] : mLights) { in dump() 324 dump += StringPrintf(INDENT4 "Name: %s", light->name.c_str()); in dump() 325 dump += StringPrintf(INDENT4 "Type: %s", ftl::enum_string(light->type).c_str()); in dump() 327 light->capabilityFlags.string().c_str()); in dump() 328 light->dump(dump); in dump() [all …]
|
/frameworks/base/services/core/java/com/android/server/lights/ |
D | LightsService.java | 21 import android.hardware.light.HwLight; 22 import android.hardware.light.HwLightState; 23 import android.hardware.light.ILights; 156 final LightImpl light = mLightsById.get(lightId); in getLightState() local 157 if (light == null || light.isSystemLight()) { in getLightState() 160 return new LightState(light.getColor()); in getLightState() 204 final LightImpl light = mLightsById.valueAt(i); in dump() local 206 light.mHwLight.id, light.mHwLight.ordinal, light.getColor())); in dump() 233 final LightImpl light = mLightsById.get(lightId); in checkRequestIsValid() local 234 Preconditions.checkState(light != null && !light.isSystemLight(), in checkRequestIsValid() [all …]
|
D | LogicalLight.java | 19 import android.hardware.light.V2_0.Brightness; 20 import android.hardware.light.V2_0.Flash;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | InvocationLightsView.java | 158 for (EdgeLight light : mAssistInvocationLights) { in hide() 159 light.setEndpoints(0, 0); in hide() 225 for (EdgeLight light : mAssistInvocationLights) { in onDraw() 226 renderLight(light, canvas); in onDraw() 264 for (EdgeLight light : mAssistInvocationLights) { in updateDarkness() 265 changed &= light.setColor(invocationColor); in updateDarkness() 273 private void renderLight(EdgeLight light, Canvas canvas) { in renderLight() argument 274 if (light.getLength() > 0) { in renderLight() 275 mGuide.strokeSegment(mPath, light.getStart(), light.getStart() + light.getLength()); in renderLight() 276 mPaint.setColor(light.getColor()); in renderLight()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | KeyboardLedController.java | 100 Light light = getKeyboardMicMuteLight(device); in updateMicMuteLedState() local 101 if (light != null) { in updateMicMuteLedState() 102 mNative.setLightColor(deviceId, light.getId(), color); in updateMicMuteLedState() 109 for (Light light : device.getLightsManager().getLights()) { in getKeyboardMicMuteLight() 110 if (light.getType() == Light.LIGHT_TYPE_KEYBOARD_MIC_MUTE in getKeyboardMicMuteLight() 111 && light.hasBrightnessControl()) { in getKeyboardMicMuteLight() 112 return light; in getKeyboardMicMuteLight()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/ |
D | LightsServiceTest.java | 32 import android.hardware.light.HwLight; 33 import android.hardware.light.HwLightState; 34 import android.hardware.light.ILights; 88 HwLight light = new HwLight(); in fakeHwLight() local 89 light.id = id; in fakeHwLight() 90 light.type = (byte) type; in fakeHwLight() 91 light.ordinal = ordinal; in fakeHwLight() 92 return light; in fakeHwLight()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | ColorFiltersMutateActivity.java | 100 ObjectAnimator light = ObjectAnimator.ofInt(this, "lightAdd", 0x00101030); in BitmapsView() local 101 light.setEvaluator(new ArgbEvaluator()); in BitmapsView() 102 light.setDuration(1000); in BitmapsView() 103 light.setRepeatCount(ObjectAnimator.INFINITE); in BitmapsView() 104 light.setRepeatMode(ObjectAnimator.REVERSE); in BitmapsView() 105 light.start(); in BitmapsView()
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputDeviceLightsManager.java | 68 public @NonNull LightState getLightState(@NonNull Light light) { in getLightState() argument 69 Preconditions.checkNotNull(light); in getLightState() 70 return mGlobal.getLightState(mDeviceId, light); in getLightState()
|
/frameworks/base/core/tests/vibrator/src/android/os/vibrator/ |
D | PrebakedSegmentTest.java | 84 PrebakedSegment light = medium.applyEffectStrength(VibrationEffect.EFFECT_STRENGTH_LIGHT); in testApplyEffectStrength() local 85 assertNotEquals(medium, light); in testApplyEffectStrength() 86 assertEquals(medium.getEffectId(), light.getEffectId()); in testApplyEffectStrength() 87 assertEquals(medium.shouldFallback(), light.shouldFallback()); in testApplyEffectStrength() 88 assertEquals(VibrationEffect.EFFECT_STRENGTH_LIGHT, light.getEffectStrength()); in testApplyEffectStrength()
|
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/ |
D | GL10.java | 581 int light, in glLightf() argument 587 int light, in glLightfv() argument 594 int light, in glLightfv() argument 600 int light, in glLightx() argument 606 int light, in glLightxv() argument 613 int light, in glLightxv() argument
|
D | GL11.java | 300 int light, in glGetLightfv() argument 307 int light, in glGetLightfv() argument 313 int light, in glGetLightxv() argument 320 int light, in glGetLightxv() argument
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLErrorWrapper.java | 426 public void glLightf(int light, int pname, float param) { in glLightf() argument 428 mgl.glLightf(light, pname, param); in glLightf() 432 public void glLightfv(int light, int pname, float[] params, int offset) { in glLightfv() argument 434 mgl.glLightfv(light, pname, params, offset); in glLightfv() 438 public void glLightfv(int light, int pname, FloatBuffer params) { in glLightfv() argument 440 mgl.glLightfv(light, pname, params); in glLightfv() 444 public void glLightx(int light, int pname, int param) { in glLightx() argument 446 mgl.glLightx(light, pname, param); in glLightx() 450 public void glLightxv(int light, int pname, int[] params, int offset) { in glLightxv() argument 452 mgl.glLightxv(light, pname, params, offset); in glLightxv() [all …]
|
D | GLES11.java | 361 int light, in glGetLightfv() argument 370 int light, in glGetLightfv() argument 378 int light, in glGetLightxv() argument 387 int light, in glGetLightxv() argument
|
D | GLES10.java | 731 int light, in glLightf() argument 739 int light, in glLightfv() argument 748 int light, in glLightfv() argument 756 int light, in glLightx() argument 764 int light, in glLightxv() argument 773 int light, in glLightxv() argument
|
D | GLES11Ext.java | 391 int light, in glGetLightxvOES() argument 400 int light, in glGetLightxvOES() argument 481 int light, in glLightxOES() argument 489 int light, in glLightxvOES() argument 498 int light, in glLightxvOES() argument
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
D | GLImpl.java | 559 int light, in glLightf() argument 567 int light, in glLightfv() argument 576 int light, in glLightfv() argument 584 int light, in glLightx() argument 592 int light, in glLightxv() argument 601 int light, in glLightxv() argument 1376 int light, in glGetLightfv() argument 1385 int light, in glGetLightfv() argument 1393 int light, in glGetLightxv() argument 1402 int light, in glGetLightxv() argument
|
/frameworks/native/opengl/libs/GLES_CM/ |
D | gl_api.in | 34 void API_ENTRY(glGetLightfv)(GLenum light, GLenum pname, GLfloat *params) { 35 CALL_GL_API(glGetLightfv, light, pname, params); 52 void API_ENTRY(glLightf)(GLenum light, GLenum pname, GLfloat param) { 53 CALL_GL_API(glLightf, light, pname, param); 55 void API_ENTRY(glLightfv)(GLenum light, GLenum pname, const GLfloat *params) { 56 CALL_GL_API(glLightfv, light, pname, params); 256 void API_ENTRY(glGetLightxv)(GLenum light, GLenum pname, GLfixed *params) { 257 CALL_GL_API(glGetLightxv, light, pname, params); 298 void API_ENTRY(glLightx)(GLenum light, GLenum pname, GLfixed param) { 299 CALL_GL_API(glLightx, light, pname, param); [all …]
|
/frameworks/base/tests/Input/src/android/hardware/input/ |
D | InputDeviceLightsManagerTest.java | 253 Light light = new Light(1 /* id */, "Light1", 0 /* ordinal */, Light.LIGHT_TYPE_INPUT, in testLightCapabilities() local 255 assertThat(light.getType()).isEqualTo(Light.LIGHT_TYPE_INPUT); in testLightCapabilities() 256 assertThat(light.getCapabilities()).isEqualTo(Light.LIGHT_CAPABILITY_COLOR_RGB in testLightCapabilities() 258 assertTrue(light.hasBrightnessControl()); in testLightCapabilities() 259 assertTrue(light.hasRgbControl()); in testLightCapabilities()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | vr.rscript | 58 float3 mLightRelitvePos = (float3) {0.f, 0.7071f, -0.7071f}; // light relitve to camera 115 float light = 1; 171 float lop = (ambient + diffuse * dot_prod) * light * opf; 172 light -= opf; 181 if (light > 0) { 274 … float lop = (ambient + diffuse * dot_prod + specular * pow(spec, 10)) * light * opf; 275 light -= opf; 279 if (light <= 0) {
|
/frameworks/base/core/java/com/android/internal/util/ |
D | UserIcons.java | 80 public static Drawable getDefaultUserIcon(Resources resources, int userId, boolean light) { in getDefaultUserIcon() argument 81 int colorResId = light ? R.color.user_icon_default_white : R.color.user_icon_default_gray; in getDefaultUserIcon()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightControllerTest.java | 356 Light light = ExtendedMockito.mock(Light.class); in getNextLight() local 358 doReturn(Light.LIGHT_TYPE_CAMERA).when(light).getType(); in getNextLight() 360 doReturn(Light.LIGHT_TYPE_MICROPHONE).when(light).getType(); in getNextLight() 362 doReturn(mNextLightId++).when(light).getId(); in getNextLight() 363 return light; in getNextLight()
|