/external/vulkan-validation-layers/demos/smoke/ |
Smoke.push_constant.vert | 22 float brightness = dot(light_dir, world_normal) / length(light_dir) / length(world_normal); 23 brightness = abs(brightness); 26 color = params.light_color * brightness;
|
Smoke.vert | 22 float brightness = dot(light_dir, world_normal) / length(light_dir) / length(world_normal); 23 brightness = abs(brightness); 26 color = params.light_color * brightness;
|
/external/chromium-trace/catapult/experimental/heatmap/ |
color.js | 29 function calculateColor(r, g, b, a, brightness) { 30 if (brightness <= 1) { 31 r *= brightness; 32 g *= brightness; 33 b *= brightness; 35 r = mapRange(brightness, 1, 2, r, 255); 36 g = mapRange(brightness, 1, 2, g, 255); 37 b = mapRange(brightness, 1, 2, b, 255);
|
/external/autotest/server/site_tests/power_BrightnessResetAfterReboot/ |
control | 9 PURPOSE = "default brightness test." 10 CRITERIA = "This test will fail if unable to set the default brightness after reboot." 21 1. Checks for the default brightness after initial boot. 23 3. Checks for the brightness level after rebooting the device. 26 -Device not able to change brightness to min and max levels. 27 -Device not able to set the brightness level to default after reboot.
|
power_BrightnessResetAfterReboot.py | 10 """Tests for default brightness level after rebooting the device. 18 """This test verify that user should get default brightness 34 raise error.TestFail('Default brightness level is out ' 40 raise error.TestFail('Not able to change the brightness ' 44 raise error.TestFail('Not able to change the brightness ' 53 raise error.TestFail('Not able to reset default brightness\n' 54 'Previous boot default brightness: %f\n' 55 'Current boot default brightness: %f' 62 - sets the brightness percentage to a given level 63 - gets the brightness percentage and returns a float valu [all...] |
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
brightness.c | 26 float brightness; member in struct:__anon28350 43 if (strcmp(key, "brightness") == 0) 44 ((BrightnessParameters*)user_data)->brightness = atof(value); 57 LOGE("Brightness: Incorrect input count! Expected 1 but got %d!", input_count); 63 LOGE("Brightness: Input-output sizes do not match up. %d vs. %d!", input_sizes[0], output_size); 72 LOGE("Brightness: No input or output pointer found!"); 78 const float brightness = params->brightness; local 80 // Run the brightness adjustment 81 const int factor = (int)(brightness * 255.0f) [all...] |
/external/autotest/client/site_tests/power_BacklightSuspend/ |
control | 7 PURPOSE = "Test the backlight's resume brightness feature." 18 This test requests a brightness level to be set after resume. It then triggers 19 a suspend/resume and checks that the brightness has indeed been set to the
|
power_BacklightSuspend.py | 21 # If the current brightness is the same as the requested brightness, 32 ('Brightness level after resume did not match requested ' + \ 33 'brightness: %d vs %d') % (final_level, resume_level))
|
/external/chromium-trace/catapult/tracing/tracing/base/ |
sinebow_color_generator.html | 20 * Set brightness = 0 to always generate black. 21 * Set brightness = 2 to always generate white. 22 * Set brightness = 1 to generate saturated colors. 72 SinebowColorGenerator.calculateColor = function(r, g, b, a, brightness) { 73 if (brightness <= 1) { 74 r *= brightness; 75 g *= brightness; 76 b *= brightness; 78 r = tr.b.lerp(tr.b.normalize(brightness, 1, 2), r, 255); 79 g = tr.b.lerp(tr.b.normalize(brightness, 1, 2), g, 255) [all...] |
/external/skia/gm/ |
colorfilterimagefilter.cpp | 21 static SkColorFilter* cf_make_brightness(float brightness) { 22 SkScalar amount255 = SkScalarMul(brightness, SkIntToScalar(255)); 126 for (float brightness = -1.0f; brightness <= 1.0f; brightness += 0.2f) { 127 SkAutoTUnref<SkImageFilter> dim(make_brightness(-brightness)); 128 SkAutoTUnref<SkImageFilter> bright(make_brightness(brightness, dim)); 136 SkAutoTUnref<SkImageFilter> brightness(make_brightness(0.9f)); 137 SkAutoTUnref<SkImageFilter> grayscale(make_grayscale(brightness)); 144 SkAutoTUnref<SkImageFilter> brightness(make_brightness(0.9f, grayscale)) [all...] |
/external/ImageMagick/Magick++/demo/ |
analyze.cpp | 34 attributes.push_back("filter:brightness:mean"); 35 attributes.push_back("filter:brightness:standard-deviation"); 36 attributes.push_back("filter:brightness:kurtosis"); 37 attributes.push_back("filter:brightness:skewness");
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
BrightnessFilter.java | 33 "uniform float brightness;\n" + 37 " gl_FragColor = brightness * color;\n" + 41 super(name, "brightness"); 46 return new NativeProgram("filterpack_imageproc", "brightness");
|
/frameworks/base/services/core/java/com/android/server/lights/ |
Light.java | 25 * Light brightness is managed by a user setting. 30 * Light brightness is managed by a light sensor. 39 public abstract void setBrightness(int brightness); 40 public abstract void setBrightness(int brightness, int brightnessMode);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
BrightnessFilter.java | 36 "uniform float brightness;\n" + 40 " if (brightness < 0.5) {\n" + 41 " gl_FragColor = color * (2.0 * brightness);\n" + 44 " gl_FragColor = color + diff * (2.0 * (brightness - 0.5));\n" + 59 .addInputPort("brightness", Signature.PORT_OPTIONAL, FrameType.single(float.class)) 66 if (port.getName().equals("brightness")) { 83 mShader.setUniformValue("brightness", mBrightness);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
EmbossMaskFilterTest.java | 64 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); 65 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)); 69 assertEquals(0, brightness(bitmap, top)); 71 assertEquals(0, brightness(bitmap, bottom)); 73 assertEquals(0, brightness(bitmap, left)); 75 assertEquals(0, brightness(bitmap, right)); 79 * Calculate the cumulative brightness of all pixels in the given rectangle. 82 private long brightness(Bitmap b, Rect rect) method in class:EmbossMaskFilterTest [all...] |
/external/libweave/examples/daemon/oven/ |
oven.cc | 105 "brightness": { 110 "brightness": { 119 "brightness": { 135 // - brightness: sets the brightness of the oven light 139 // - brightness: current oven brightness 150 kComponent, {"temperatureSetting", "temperatureSensor", "brightness"}, 159 device->AddCommandHandler(kComponent, "brightness.setConfig", 207 int brightness; local [all...] |
/external/skia/bench/ |
ColorFilterBench.cpp | 83 for (float brightness = -1.0f; brightness <= 1.0f; brightness += 0.4f) { 84 SkAutoTUnref<SkImageFilter> dim(make_brightness(-brightness)); 85 SkAutoTUnref<SkImageFilter> bright(make_brightness(brightness, dim)); 112 SkAutoTUnref<SkImageFilter> brightness(make_brightness(0.9f)); 113 SkAutoTUnref<SkImageFilter> grayscale(make_grayscale(brightness)); 140 SkAutoTUnref<SkImageFilter> brightness(make_brightness(0.9f, grayscale)); 141 paint.setImageFilter(brightness); 167 SkAutoTUnref<SkImageFilter> brightness(make_brightness(1.0f, blue)) [all...] |
/device/moto/shamu/liblight/ |
lights.shamu.so | |
/device/google/dragon/lights/ |
lights.c | 71 static int write_brightness(struct dragon_lights *lights, int brightness) 76 bytes = snprintf(path, sizeof(path), "%s/brightness", 80 "failed to create brightness path %d\n", bytes); 91 bytes = snprintf(buffer, sizeof(buffer), "%d\n", brightness); 94 "failed to create brightness value %d/%d\n", 95 brightness, bytes); 102 "failed to write brightness value %d/%d\n", amt, 161 int brightness = rgb_to_brightness(state); local 163 if (brightness > 0) { 164 // Get the bin number for brightness (0 to kNumBrightnessLevels - 1 [all...] |
/external/ImageMagick/filters/ |
analyze.c | 60 % analyzeImage() computes the brightness and saturation mean, standard 90 brightness, 172 GetPixelBlue(image,p),&hue,&saturation,&brightness); 173 brightness*=QuantumRange; 174 brightness_sum_x+=brightness; 175 brightness_sum_x2+=brightness*brightness; 176 brightness_sum_x3+=brightness*brightness*brightness; 88 brightness, local 170 GetPixelBlue(image,p),&hue,&saturation,&brightness); local [all...] |
/external/ImageMagick/www/source/ |
analyze.c | 60 % analyzeImage() computes the brightness and saturation mean, standard 90 brightness, 171 GetPixelBlue(p),&hue,&saturation,&brightness); 172 brightness*=QuantumRange; 173 brightness_sum_x+=brightness; 174 brightness_sum_x2+=brightness*brightness; 175 brightness_sum_x3+=brightness*brightness*brightness; 88 brightness, local 169 GetPixelBlue(p),&hue,&saturation,&brightness); local [all...] |
/frameworks/base/services/core/java/com/android/server/display/ |
DisplayPowerController.java | 68 * For debugging, you can make the color fade and brightness animations run 84 // The minimum reduction in brightness when dimmed. 105 // Brightness animation ramp rate in brightness units per second. 138 // The doze screen brightness. 141 // The dim screen brightness. 144 // The minimum screen brightness to use in a very dark room. 147 // The minimum allowed brightness. 150 // The maximum allowed brightness. 153 // True if auto-brightness should be used 545 int brightness = PowerManager.BRIGHTNESS_DEFAULT; local [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
FastBitmapDrawable.java | 50 public final float brightness; field in class:FastBitmapDrawable.State 57 State(float desaturation, float brightness, float viewScale, TimeInterpolator interpolator) { 59 this.brightness = brightness; 84 // Since we don't need 256^2 values for combinations of both the brightness and saturation, we 89 // A cache of ColorFilters for optimizing brightness and saturation animations 100 // The saturation and brightness are values that are mapped to REDUCED_FILTER_VALUE_SPACE and 186 .ofFloat(this, "brightness", newState.brightness)); 208 setBrightness(newState.brightness); [all...] |
/external/opencv3/samples/cpp/tutorial_code/HighGUI/ |
BasicLinearTransformsTrackbar.cpp | 3 * @brief Simple program to change contrast and brightness 17 int beta; /**< Simple brightness control*/ 58 createTrackbar( "Brightness Trackbar", "New Image", &beta, beta_max, on_trackbar );
|
/external/opencv3/samples/cpp/ |
demhist.cpp | 16 /* brightness/contrast callback function */ 20 int brightness = _brightness - 100; local 32 b = a*(brightness - delta); 38 b = a*brightness + delta; 88 createTrackbar("brightness", "image", &_brightness, 200, updateBrightnessContrast);
|