Home
last modified time | relevance | path

Searched refs:light (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/services/core/jni/
Dcom_android_server_lights_LightsService.cpp33 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/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DInvocationLightsView.java155 for (EdgeLight light : mAssistInvocationLights) { in hide()
156 light.setLength(0); in hide()
222 for (EdgeLight light : mAssistInvocationLights) { in onDraw()
223 renderLight(light, canvas); in onDraw()
265 for (EdgeLight light : mAssistInvocationLights) { in updateDarkness()
266 light.setColor(invocationColor); in updateDarkness()
272 private void renderLight(EdgeLight light, Canvas canvas) { in renderLight() argument
273 mGuide.strokeSegment(mPath, light.getOffset(), light.getOffset() + light.getLength()); in renderLight()
274 mPaint.setColor(light.getColor()); in renderLight()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DColorFiltersMutateActivity.java79 ObjectAnimator light = ObjectAnimator.ofInt(this, "lightAdd", 0x00101030); in BitmapsView() local
80 light.setEvaluator(new ArgbEvaluator()); in BitmapsView()
81 light.setDuration(1000); in BitmapsView()
82 light.setRepeatCount(ObjectAnimator.INFINITE); in BitmapsView()
83 light.setRepeatMode(ObjectAnimator.REVERSE); in BitmapsView()
84 light.start(); in BitmapsView()
/frameworks/base/services/core/java/com/android/server/lights/
DLight.java19 import android.hardware.light.V2_0.Brightness;
20 import android.hardware.light.V2_0.Flash;
DLightsService.java246 LightImpl light = (LightImpl)msg.obj;
247 light.stopFlashing();
251 static native void setLight_native(int light, int color, int mode, in setLight_native() argument
DLightsManager.java19 import android.hardware.light.V2_0.Type;
/frameworks/native/opengl/libagl/
Dlight.cpp469 light_t& light = c->lighting.lights[i-GL_LIGHT0]; in lightx() local
476 light.spotExp = param; in lightx()
483 light.spotCutoff = param; in lightx()
484 light.spotCutoffCosine = in lightx()
492 light.attenuation[0] = param; in lightx()
499 light.attenuation[1] = param; in lightx()
506 light.attenuation[2] = param; in lightx()
523 light_t& light = c->lighting.lights[i-GL_LIGHT0]; in lightxv() local
526 what = light.ambient.v; in lightxv()
529 what = light.diffuse.v; in lightxv()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DUserIcons.java69 public static Drawable getDefaultUserIcon(Resources resources, int userId, boolean light) { in getDefaultUserIcon() argument
70 int colorResId = light ? R.color.user_icon_default_white : R.color.user_icon_default_gray; in getDefaultUserIcon()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL10.java581 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
DGL11.java300 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/
DGLErrorWrapper.java426 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 …]
DGLES11.java361 int light, in glGetLightfv() argument
370 int light, in glGetLightfv() argument
378 int light, in glGetLightxv() argument
387 int light, in glGetLightxv() argument
DGLES10.java731 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
DGLES11Ext.java391 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
DGLLogWrapper.java830 private String getLightName(int light) { in getLightName() argument
831 if (light >= GL_LIGHT0 && light <= GL_LIGHT7) { in getLightName()
832 return "GL_LIGHT" + Integer.toString(light); in getLightName()
834 return getHex(light); in getLightName()
1842 public void glLightf(int light, int pname, float param) { in glLightf() argument
1844 arg("light", getLightName(light)); in glLightf()
1849 mgl.glLightf(light, pname, param); in glLightf()
1853 public void glLightfv(int light, int pname, float[] params, int offset) { in glLightfv() argument
1855 arg("light", getLightName(light)); in glLightfv()
1861 mgl.glLightfv(light, pname, params, offset); in glLightfv()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DImageClock.java85 public void setClockColors(int dark, int light) { in setClockColors() argument
87 mMinuteHand.setColorFilter(light); in setClockColors()
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/
Dcube.frag36 float light = max(0.0, dot(lightDir, normal));
37 uFragColor = light * texture(tex, texcoord.xy);
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java556 int light, in glLightf() argument
564 int light, in glLightfv() argument
573 int light, in glLightfv() argument
581 int light, in glLightx() argument
589 int light, in glLightxv() argument
598 int light, in glLightxv() argument
1373 int light, in glGetLightfv() argument
1382 int light, in glGetLightfv() argument
1390 int light, in glGetLightxv() argument
1399 int light, in glGetLightxv() argument
/frameworks/native/opengl/libs/GLES_CM/
Dgl_api.in34 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/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rs115 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/native/opengl/tools/glgen/specs/gles11/
DGLES10.spec51 void glLightf ( GLenum light, GLenum pname, GLfloat param )
52 void glLightfv ( GLenum light, GLenum pname, const GLfloat *params )
53 void glLightx ( GLenum light, GLenum pname, GLfixed param )
54 void glLightxv ( GLenum light, GLenum pname, const GLfixed *params )
DGLES11.spec17 void glGetLightfv ( GLenum light, GLenum pname, GLfloat *params )
18 void glGetLightxv ( GLenum light, GLenum pname, GLfixed *params )
DGLES11Ext.spec25 void glGetLightxvOES ( GLenum light, GLenum pname, GLfixed *params )
31 void glLightxOES ( GLenum light, GLenum pname, GLfixed param )
32 void glLightxvOES ( GLenum light, GLenum pname, const GLfixed *params )
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.117 void glGetLightfv ( GLenum light, GLenum pname, GLfloat *params )
18 void glGetLightxv ( GLenum light, GLenum pname, GLfixed *params )
Dglspec-1.051 void glLightf ( GLenum light, GLenum pname, GLfloat param )
52 void glLightfv ( GLenum light, GLenum pname, const GLfloat *params )
53 void glLightx ( GLenum light, GLenum pname, GLfixed param )
54 void glLightxv ( GLenum light, GLenum pname, const GLfixed *params )

123