/external/qemu/android/protocol/ |
ui-commands.h | 26 /* Changes display brightness. */ 40 int brightness; member in struct:UICmdChangeDispBrightness
|
/device/samsung/crespo/liblight/ |
lights.c | 31 char const *const LCD_FILE = "/sys/class/backlight/s5p_bl/brightness"; 70 int brightness = rgb_to_brightness(state); local 73 err = write_int(LCD_FILE, brightness);
|
/development/tools/emulator/system/lights/ |
lights_qemu.c | 54 /* Get brightness(0~255) from state. */ 63 /* set backlight brightness by LIGHTS_SERVICE_NAME service. */ 83 int brightness = rgb_to_brightness( state ); local 86 snprintf( buffer, sizeof(buffer), "power:light:brightness:lcd_backlight:%d", brightness );
|
/frameworks/base/media/mca/filterpacks/native/imageproc/ |
brightness.c | 25 float brightness; member in struct:__anon16955 42 if (strcmp(key, "brightness") == 0) 43 ((BrightnessParameters*)user_data)->brightness = atof(value); 56 LOGE("Brightness: Incorrect input count! Expected 1 but got %d!", input_count); 62 LOGE("Brightness: Input-output sizes do not match up. %d vs. %d!", input_sizes[0], output_size); 71 LOGE("Brightness: No input or output pointer found!"); 77 const float brightness = params->brightness; local 79 // Run the brightness adjustment 80 const int factor = (int)(brightness * 255.0f) [all...] |
/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...] |
/device/asus/grouper/liblights/ |
lights.c | 68 int brightness = rgb_to_brightness(state); local 73 int old_brightness = brightness; 79 if( brightness>=t_range_min && brightness<=t_range_max){ 91 brightness = new_brightness; 95 err = write_int("/sys/class/backlight/pwm-backlight/brightness", 96 brightness);
|
/device/moto/stingray/liblights/ |
lights.c | 104 /* use max of the RGB components for brightness */ 110 int brightness = red; local 111 if (green > brightness) 112 brightness = green; 113 if (blue > brightness) 114 brightness = blue; 116 return brightness; 124 int brightness = rgb_to_brightness(state); local 127 err = write_int("/sys/class/leds/lcd-backlight/brightness", brightness); 136 unsigned int brightness = rgb_to_brightness(state); local [all...] |
/device/samsung/tuna/liblight/ |
lights.c | 32 char const *const LCD_FILE = "/sys/class/backlight/s6e8aa0/brightness"; 42 // brightness at mid-slope, on 0 - 127 scale 87 int brightness = rgb_to_brightness(state); local 90 err = write_int(LCD_FILE, brightness);
|
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 180 * Returns the brightness component of a color int. 186 public static float brightness(int color) { method in class:Color 248 * @param b Brightness component
|
/hardware/msm7k/liblights/ |
lights.c | 49 = "/sys/class/leds/jogball-backlight/brightness"; 52 = "/sys/class/leds/red/brightness"; 55 = "/sys/class/leds/green/brightness"; 58 = "/sys/class/leds/blue/brightness"; 61 = "/sys/class/leds/amber/brightness"; 64 = "/sys/class/leds/lcd-backlight/brightness"; 79 = "/sys/class/leds/keyboard-backlight/brightness"; 82 = "/sys/class/leds/button-backlight/brightness"; 162 int brightness = rgb_to_brightness(state); local 164 g_backlight = brightness; [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
TextureGenerator.java | 276 * This method applies brightness and contrast for RGB textures. 281 texres.red = (texres.red - 0.5f) * bacd.contrast + bacd.brightness; 285 texres.green =(texres.green - 0.5f) * bacd.contrast + bacd.brightness; 289 texres.blue = (texres.blue - 0.5f) * bacd.contrast + bacd.brightness; 296 * This method applies brightness and contrast for Luminance textures. 299 * @param brightness 301 protected void applyBrightnessAndContrast(TexturePixel texres, float contrast, float brightness) { 302 texres.intensity = (texres.intensity - 0.5f) * contrast + brightness; 394 * This class contains brightness and contrast data. 399 public final float brightness; field in class:TextureGenerator.BrightnessAndContrastData [all...] |
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/ |
OMX3A.cpp | 185 (( mParameters3A.Brightness != varint )) ) 187 mParameters3A.Brightness = (unsigned) varint; 188 CAMHAL_LOGDB("Brightness %d", mParameters3A.Brightness); 410 Gen3A.Brightness = atoi(OMXCameraAdapter::DEFAULT_BRIGHTNESS); 965 OMX_CONFIG_BRIGHTNESSTYPE brightness; local 975 OMX_INIT_STRUCT_PTR (&brightness, OMX_CONFIG_BRIGHTNESSTYPE); 976 brightness.nPortIndex = mCameraAdapterParameters.mPrevPortIndex; 977 brightness.nBrightness = Gen3A.Brightness; [all...] |
/packages/apps/Settings/src/com/android/settings/ |
BrightnessPreference.java | 146 float brightness = 0; local 148 brightness = Settings.System.getFloat(getContext().getContentResolver(), 150 brightness = (brightness+1)/2; 153 brightness = Settings.System.getInt(getContext().getContentResolver(), 156 brightness = mCurBrightness; 158 brightness = (brightness - mScreenBrightnessDim) 161 return (int)(brightness*SEEK_BAR_RANGE); 213 private void setBrightness(int brightness, boolean write) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ImageUtils.java | 62 long brightness = (299L*r + 587*g + 114*b) / 1000; local 63 if (brightness < 128) { 73 * Returns the perceived brightness of the given RGB integer on a scale from 0 to 255 76 * @return the perceived brightness, with 0 maximally dark and 255 maximally bright
|
/device/samsung/crespo/libs3cjpeg/ |
Exif.h | 210 srational_t brightness; member in struct:__anon1514
|
/packages/apps/Settings/src/com/android/settings/widget/ |
SettingsAppWidgetProvider.java | 103 /** Minimum brightness at which the indicator is shown at half-full and ON */ 105 /** Minimum brightness at which the indicator is shown at full */ 686 final int brightness = getBrightness(context); local 688 if (brightness > FULL_BRIGHTNESS_THRESHOLD) { 691 } else if (brightness > HALF_BRIGHTNESS_THRESHOLD) { 699 if (brightness > HALF_BRIGHTNESS_THRESHOLD) { 771 * Gets brightness level. 774 * @return brightness level between 0 and 255. 781 int brightness = Settings.System.getInt(context.getContentResolver(), local 783 return brightness; 822 int brightness = Settings.System.getInt(cr, local [all...] |
/bionic/libc/kernel/common/linux/ |
videodev.h | 101 __u16 brightness; member in struct:video_picture
|
/development/ndk/platforms/android-3/include/linux/ |
videodev.h | 67 __u16 brightness; member in struct:video_picture
|
/external/kernel-headers/original/linux/ |
videodev.h | 87 __u16 brightness; member in struct:video_picture
|
/external/qemu/android/skin/ |
window.c | 95 int brightness; member in struct:ADisplay 146 disp->brightness = LCD_BRIGHTNESS_DEFAULT; 291 lcd_brightness_argb32( unsigned char* pixels, SkinRect* r, int pitch, int brightness ) 298 unsigned alpha = brightness; 577 if (disp->brightness == LCD_BRIGHTNESS_OFF) 591 lcd_brightness_argb32( surface->pixels, &r, surface->pitch, disp->brightness ); [all...] |
/hardware/ti/omap4xxx/test/CameraHal/ |
camera_test_menu.cpp | 74 int brightness = 0; variable 1141 brightness = 50; 1146 brightness = 100; 1175 params.set(KEY_BRIGHTNESS, brightness); [all...] |
/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/ |
videodev.h | 67 __u16 brightness; member in struct:video_picture
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
videodev.h | 70 __u16 brightness; member in struct:video_picture
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
videodev.h | 70 __u16 brightness; member in struct:video_picture
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
videodev.h | 70 __u16 brightness; member in struct:video_picture
|