/external/mesa3d/src/mesa/main/ |
light.c | 31 #include "light.h" 52 if (ctx->Light.ShadeModel == mode) 56 ctx->Light.ShadeModel = mode; 86 if (ctx->Light.ProvokingVertex == mode) 90 ctx->Light.ProvokingVertex = mode; 96 * per-light state. 104 struct gl_light *light; local 107 light = &ctx->Light.Light[lnum] 634 struct gl_light *light, *list = &ctx->Light.EnabledList; local 887 struct gl_light *light; local 949 struct gl_light *light; local [all...] |
light.h | 50 _mesa_Lightf( GLenum light, GLenum pname, GLfloat param ); 53 _mesa_Lightfv( GLenum light, GLenum pname, const GLfloat *params ); 56 _mesa_Lightiv( GLenum light, GLenum pname, const GLint *params ); 59 _mesa_Lighti( GLenum light, GLenum pname, GLint param ); 74 _mesa_GetLightfv( GLenum light, GLenum pname, GLfloat *params ); 77 _mesa_GetLightiv( GLenum light, GLenum pname, GLint *params );
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/ |
DrawParameters.java | 18 import com.android.cts.verifier.sensors.sixdof.Renderer.Renderable.Light; 26 private Light mLight; 33 public void update(float[] viewMatrix, float[] projectionMatrix, Light light) { 35 mLight = light; 46 public Light getLight() {
|
/external/skia/src/effects/ |
SkEmbossMaskFilter.h | 15 This mask filter creates a 3D emboss look, by specifying a light and blur amount. 19 struct Light { 26 static sk_sp<SkMaskFilter> Make(SkScalar blurSigma, const Light& light); 39 SkEmbossMaskFilter(SkScalar blurSigma, const Light& light); 43 Light fLight;
|
SkEmbossMask.cpp | 81 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) { 86 int specular = light.fSpecular; 87 int ambient = light.fAmbient; 88 SkFixed lx = SkScalarToFixed(light.fDirection[0]); 89 SkFixed ly = SkScalarToFixed(light.fDirection[1]); 90 SkFixed lz = SkScalarToFixed(light.fDirection[2]); 132 // R = 2 (Light * Normal) Normal - Light 143 // value in the light, and just pass that in to this function [all...] |
SkLightingImageFilter.cpp | 84 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, function in class:__anon29623::DiffuseLightingType 106 SkPMColor light(const SkPoint3& normal, const SkPoint3& surfaceTolight, function in class:__anon29623::SpecularLightingType 211 const SkImageFilterLight* light, 217 const LightType* l = static_cast<const LightType*>(light); 231 *dptr++ = lightingType.light(topLeftNormal(m, surfaceScale), surfaceToLight, 239 *dptr++ = lightingType.light(topNormal(m, surfaceScale), surfaceToLight, 244 *dptr++ = lightingType.light(topRightNormal(m, surfaceScale), surfaceToLight, 258 *dptr++ = lightingType.light(leftNormal(m, surfaceScale), surfaceToLight, 266 *dptr++ = lightingType.light(interiorNormal(m, surfaceScale), surfaceToLight, 271 *dptr++ = lightingType.light(rightNormal(m, surfaceScale), surfaceToLight 552 const SkImageFilterLight* light() const { return fLight; } function in class:__anon29623::GrLightingEffect [all...] |
/frameworks/base/services/core/java/com/android/server/lights/ |
Light.java | 19 import android.hardware.light.V2_0.Flash; 20 import android.hardware.light.V2_0.Brightness; 22 public abstract class Light { 28 * Light brightness is managed by a user setting. 33 * Light brightness is managed by a light sensor. 38 * Low-persistence light mode.
|
LightsManager.java | 19 import android.hardware.light.V2_0.Type; 32 public abstract Light getLight(int id);
|
/external/skia/include/core/ |
SkLights.h | 22 class Light { 29 Light(const Light& other) 38 Light(Light&& other) 47 static Light MakeDirectional(const SkColor3f& color, const SkVector3& dir, 49 Light light(kDirectional_LightType, color, dir, isRadial); 50 if (!light.fDirOrPos.normalize()) { 51 light.fDirOrPos.set(0.0f, 0.0f, 1.0f) 174 const Light& light(int index) const { function in class:SkLights 178 Light& light(int index) { function in class:SkLights [all...] |
/hardware/interfaces/tests/extension/light/2.0/ |
Android.mk | 8 LOCAL_MODULE := android.hardware.tests.extension.light-V2.0-java 16 android.hardware.light-V2.0-java \ 23 GEN := $(intermediates)/android/hardware/tests/extension/light/V2_0/Default.java 33 android.hardware.tests.extension.light@2.0::types.Default 42 GEN := $(intermediates)/android/hardware/tests/extension/light/V2_0/ExtBrightness.java 52 android.hardware.tests.extension.light@2.0::types.ExtBrightness 61 GEN := $(intermediates)/android/hardware/tests/extension/light/V2_0/ExtLightState.java 71 android.hardware.tests.extension.light@2.0::types.ExtLightState 80 GEN := $(intermediates)/android/hardware/tests/extension/light/V2_0/IExtLight.java 92 android.hardware.tests.extension.light@2.0::IExtLigh [all...] |
/hardware/interfaces/light/2.0/ |
Android.mk | 8 LOCAL_MODULE := android.hardware.light-V2.0-java 22 GEN := $(intermediates)/android/hardware/light/V2_0/Brightness.java 32 android.hardware.light@2.0::types.Brightness 41 GEN := $(intermediates)/android/hardware/light/V2_0/Flash.java 51 android.hardware.light@2.0::types.Flash 60 GEN := $(intermediates)/android/hardware/light/V2_0/LightState.java 70 android.hardware.light@2.0::types.LightState 79 GEN := $(intermediates)/android/hardware/light/V2_0/Status.java 89 android.hardware.light@2.0::types.Status 98 GEN := $(intermediates)/android/hardware/light/V2_0/Type.jav [all...] |
types.hal | 17 package android.hardware.light@2.0; 28 * Keep the light steady on or off. 33 * Flash the light at specified rate. 38 * Flash the light using hardware assist. 45 * Light brightness is managed by a user setting. 50 * Light brightness is managed by a light sensor. 68 * emitting light for a single frame. 81 * These light IDs correspond to logical lights, not physical. 82 * So for example, if your INDICATOR light is in line with you [all...] |
/cts/tests/tests/systemui/src/android/systemui/cts/ |
LightBarActivity.java | 50 private void setLightBar(boolean light, int systemUiFlag) { 52 if (light) {
|
/external/mesa3d/src/mesa/tnl/ |
t_rasterpos.c | 29 #include "main/light.h" 122 /*const*/ GLfloat (*base)[3] = ctx->Light._BaseColor; 123 const struct gl_light *light; local 128 ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3], 0.0F, 1.0F ); 131 foreach (light, &ctx->Light.EnabledList) { 133 GLfloat VP[3]; /* vector from vertex to light pos */ 137 if (!(light->_Flags & LIGHT_POSITIONAL)) { 138 /* light at infinity */ 139 COPY_3V(VP, light->_VP_inf_norm) [all...] |
/external/swiftshader/src/Renderer/ |
VertexProcessor.cpp | 262 void VertexProcessor::setLightEnable(unsigned int light, bool lightEnable) 264 if(light < 8) 266 context->setLightEnable(light, lightEnable); 280 void VertexProcessor::setLightPosition(unsigned int light, const Point &lightPosition) 282 if(light < 8) 284 context->setLightPosition(light, lightPosition); 291 void VertexProcessor::setLightDiffuse(unsigned int light, const Color<float> &lightDiffuse) 293 if(light < 8) 295 ff.lightDiffuse[light][0] = lightDiffuse.r; 296 ff.lightDiffuse[light][1] = lightDiffuse.g [all...] |
VertexProcessor.hpp | 209 virtual void setLightEnable(unsigned int light, bool lightEnable); 213 virtual void setLightPosition(unsigned int light, const Point &lightPosition); 214 virtual void setLightViewPosition(unsigned int light, const Point &lightPosition); 215 virtual void setLightDiffuse(unsigned int light, const Color<float> &lightDiffuse); 216 virtual void setLightSpecular(unsigned int light, const Color<float> &lightSpecular); 217 virtual void setLightAmbient(unsigned int light, const Color<float> &lightAmbient); 218 virtual void setLightAttenuation(unsigned int light, float constant, float linear, float quadratic); 219 virtual void setLightRange(unsigned int light, float lightRange);
|
/external/swiftshader/src/D3D9/ |
Direct3DDevice9.hpp | 151 long __stdcall SetLight(unsigned long index, const D3DLIGHT9 *light); 224 struct Light : D3DLIGHT9 226 Light &operator=(const D3DLIGHT9 &light) 228 Type = light.Type; 229 Diffuse = light.Diffuse; 230 Specular = light.Specular; 231 Ambient = light.Ambient; 232 Position = light.Position; 233 Direction = light.Direction 256 Lights light; member in class:D3D9::Direct3DDevice9 [all...] |
/hardware/interfaces/tests/extension/light/2.0/default/ |
Light.cpp | 16 #include "Light.h" 22 namespace light { namespace in namespace:android::hardware::tests::extension 26 // Methods from ::android::hardware::light::V2_0::ILight follow. 27 Return<Status> Light::setLight(Type type, const LightState& state) { 41 Return<void> Light::getSupportedTypes(getSupportedTypes_cb _hidl_cb) { 54 // Methods from ::android::hardware::example::extension::light::V2_0::ILight follow. 55 Return<Status> Light::setExtLight(Type /* type */, 67 } // namespace light
|
/external/skia/src/core/ |
SkShadowShader.cpp | 122 fLightColor[fNumNonAmbLights] = lights->light(i).color(); 124 if (SkLights::Light::kPoint_LightType == lights->light(i).type()) { 125 fLightDirOrPos[fNumNonAmbLights] = lights->light(i).pos(); 126 fLightColor[fNumNonAmbLights].scale(lights->light(i).intensity()); 128 fLightDirOrPos[fNumNonAmbLights] = lights->light(i).dir(); 132 SkLights::Light::kPoint_LightType == lights->light(i).type(); 134 fIsRadialLight[fNumNonAmbLights] = lights->light(i).isRadial(); 136 SkImage_Base* shadowMap = ((SkImage_Base*)lights->light(i).getShadowMap()) [all...] |
SkLightingShader.cpp | 24 support different light types 41 lights to light the diffuse bitmap. 119 if (SkLights::Light::kDirectional_LightType == lights->light(i).type()) { 120 fDirectionalLights.push_back(lights->light(i)); 123 SkDEBUGFAIL("Unimplemented Light Type passed to LightingFP"); 176 // diffuse light 180 // TODO: modulate the contribution from each light based on the shadow map 188 // ambient light 205 const SkTArray<SkLights::Light>& directionalLights = lightingFP.directionalLights() 372 const SkLights::Light& light = lightShader.fLights->light(l); local [all...] |
/hardware/interfaces/light/2.0/default/ |
Light.cpp | 17 #define LOG_TAG "light" 21 #include "Light.h" 25 namespace light { namespace in namespace:android::hardware 44 Light::Light(std::map<Type, light_device_t*> &&lights) 47 // Methods from ::android::hardware::light::V2_0::ILight follow. 48 Return<Status> Light::setLight(Type type, const LightState& state) { 77 Return<void> Light::getSupportedTypes(getSupportedTypes_cb _hidl_cb) { 128 ALOGE("Light passthrough failed to load legacy HAL."); 140 light_device_t* light = getLightDevice(name) local [all...] |
/external/skia/include/effects/ |
SkLightingImageFilter.h | 45 SkLightingImageFilter(sk_sp<SkImageFilterLight> light, 50 const SkImageFilterLight* light() const { return fLight.get(); } function in class:SkLightingImageFilter
|
/external/skia/src/utils/ |
SkShadowPaintFilterCanvas.cpp | 51 SkISize SkShadowPaintFilterCanvas::ComputeDepthMapSize(const SkLights::Light& light, int maxDepth, 53 if (light.type() != SkLights::Light::kDirectional_LightType) { 56 // of the point light and the shapes, etc... If we take upper bounds 62 int dMapWidth = SkMin32(maxDepth * fabs(light.dir().fX) + width, 64 int dMapHeight = SkMin32(maxDepth * fabs(light.dir().fY) + height, 82 // It is up to the user to set the 0th light in fLights to 83 // the light the want to render the depth map with. 84 if (this->fLights->light(0).type() == SkLights::Light::kDirectional_LightType) [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
UserIcons.java | 65 * @param light whether we want a light icon (suitable for a dark background) 67 public static Drawable getDefaultUserIcon(int userId, boolean light) { 68 int colorResId = light ? R.color.user_icon_default_white : R.color.user_icon_default_gray;
|
/test/vts/tools/build/tasks/list/ |
vts_test_lib_hidl_trace_list.mk | 20 test/vts-testcase/hal-trace/light/V2_0/android.hardware.light@2.0_sailfish_1.vts.trace \
|