/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
D | hwc_display_external_test.cpp | 279 std::bitset<16> color = {}; in CalcCRC() local 284 color = (color_val & 0xFC) << 8; in CalcCRC() 287 color = color_val << 8; in CalcCRC() 290 color = color_val << 6; in CalcCRC() 299 (*crc_data)[12] ^ (*crc_data)[14] ^ (*crc_data)[15] ^ color[0] ^ color[1] ^ in CalcCRC() 300 color[2] ^ color[3] ^ color[4] ^ color[5] ^ color[6] ^ color[7] ^ color[8] ^ in CalcCRC() 301 color[9] ^ color[10] ^ color[11] ^ color[12] ^ color[14] ^ color[15]; in CalcCRC() 303 temp_crc[14] = (*crc_data)[12] ^ (*crc_data)[13] ^ color[12] ^ color[13]; in CalcCRC() 304 temp_crc[13] = (*crc_data)[11] ^ (*crc_data)[12] ^ color[11] ^ color[12]; in CalcCRC() 305 temp_crc[12] = (*crc_data)[10] ^ (*crc_data)[11] ^ color[10] ^ color[11]; in CalcCRC() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/hwc/ |
D | hwc_display_external_test.cpp | 279 std::bitset<16> color = {}; in CalcCRC() local 284 color = (color_val & 0xFC) << 8; in CalcCRC() 287 color = color_val << 8; in CalcCRC() 290 color = color_val << 6; in CalcCRC() 299 (*crc_data)[12] ^ (*crc_data)[14] ^ (*crc_data)[15] ^ color[0] ^ color[1] ^ in CalcCRC() 300 color[2] ^ color[3] ^ color[4] ^ color[5] ^ color[6] ^ color[7] ^ color[8] ^ in CalcCRC() 301 color[9] ^ color[10] ^ color[11] ^ color[12] ^ color[14] ^ color[15]; in CalcCRC() 303 temp_crc[14] = (*crc_data)[12] ^ (*crc_data)[13] ^ color[12] ^ color[13]; in CalcCRC() 304 temp_crc[13] = (*crc_data)[11] ^ (*crc_data)[12] ^ color[11] ^ color[12]; in CalcCRC() 305 temp_crc[12] = (*crc_data)[10] ^ (*crc_data)[11] ^ color[10] ^ color[11]; in CalcCRC() [all …]
|
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
D | hwc_display_external_test.cpp | 272 std::bitset<16> color = {}; in CalcCRC() local 277 color = (color_val & 0xFC) << 8; in CalcCRC() 280 color = color_val << 8; in CalcCRC() 283 color = color_val << 6; in CalcCRC() 292 (*crc_data)[12] ^ (*crc_data)[14] ^ (*crc_data)[15] ^ color[0] ^ color[1] ^ in CalcCRC() 293 color[2] ^ color[3] ^ color[4] ^ color[5] ^ color[6] ^ color[7] ^ color[8] ^ in CalcCRC() 294 color[9] ^ color[10] ^ color[11] ^ color[12] ^ color[14] ^ color[15]; in CalcCRC() 296 temp_crc[14] = (*crc_data)[12] ^ (*crc_data)[13] ^ color[12] ^ color[13]; in CalcCRC() 297 temp_crc[13] = (*crc_data)[11] ^ (*crc_data)[12] ^ color[11] ^ color[12]; in CalcCRC() 298 temp_crc[12] = (*crc_data)[10] ^ (*crc_data)[11] ^ color[10] ^ color[11]; in CalcCRC() [all …]
|
/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
D | hwc_display_pluggable_test.cpp | 270 std::bitset<16> color = {}; in CalcCRC() local 275 color = (color_val & 0xFC) << 8; in CalcCRC() 278 color = color_val << 8; in CalcCRC() 281 color = color_val << 6; in CalcCRC() 290 (*crc_data)[12] ^ (*crc_data)[14] ^ (*crc_data)[15] ^ color[0] ^ color[1] ^ in CalcCRC() 291 color[2] ^ color[3] ^ color[4] ^ color[5] ^ color[6] ^ color[7] ^ color[8] ^ in CalcCRC() 292 color[9] ^ color[10] ^ color[11] ^ color[12] ^ color[14] ^ color[15]; in CalcCRC() 294 temp_crc[14] = (*crc_data)[12] ^ (*crc_data)[13] ^ color[12] ^ color[13]; in CalcCRC() 295 temp_crc[13] = (*crc_data)[11] ^ (*crc_data)[12] ^ color[11] ^ color[12]; in CalcCRC() 296 temp_crc[12] = (*crc_data)[10] ^ (*crc_data)[11] ^ color[10] ^ color[11]; in CalcCRC() [all …]
|
D | hwc_color_manager.cpp | 55 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue() 56 ((params.color.b) & 0xff); in Get8BitsARGBColorValue() 194 if (solid_fill_params_.color.r_bitdepth != solid_fill_params_.color.b_bitdepth in SetSolidFill() 195 || solid_fill_params_.color.r_bitdepth != solid_fill_params_.color.g_bitdepth) { in SetSolidFill() 196 DLOGE("invalid bit depth r %d g %d b %d", solid_fill_params_.color.r_bitdepth, in SetSolidFill() 197 solid_fill_params_.color.g_bitdepth, solid_fill_params_.color.b_bitdepth); in SetSolidFill() 201 solid_fill_color.bit_depth = solid_fill_params_.color.r_bitdepth; in SetSolidFill() 202 solid_fill_color.red = solid_fill_params_.color.r; in SetSolidFill() 203 solid_fill_color.blue = solid_fill_params_.color.b; in SetSolidFill() 204 solid_fill_color.green = solid_fill_params_.color.g; in SetSolidFill()
|
/hardware/qcom/sdm845/display/sdm/libs/hwc2/ |
D | hwc_display_external_test.cpp | 272 std::bitset<16> color = {}; in CalcCRC() local 277 color = (color_val & 0xFC) << 8; in CalcCRC() 280 color = color_val << 8; in CalcCRC() 283 color = color_val << 6; in CalcCRC() 292 (*crc_data)[12] ^ (*crc_data)[14] ^ (*crc_data)[15] ^ color[0] ^ color[1] ^ in CalcCRC() 293 color[2] ^ color[3] ^ color[4] ^ color[5] ^ color[6] ^ color[7] ^ color[8] ^ in CalcCRC() 294 color[9] ^ color[10] ^ color[11] ^ color[12] ^ color[14] ^ color[15]; in CalcCRC() 296 temp_crc[14] = (*crc_data)[12] ^ (*crc_data)[13] ^ color[12] ^ color[13]; in CalcCRC() 297 temp_crc[13] = (*crc_data)[11] ^ (*crc_data)[12] ^ color[11] ^ color[12]; in CalcCRC() 298 temp_crc[12] = (*crc_data)[10] ^ (*crc_data)[11] ^ color[10] ^ color[11]; in CalcCRC() [all …]
|
D | hwc_color_manager.cpp | 55 uint32_t argb_color = ((params.color.r << 16) & 0xff0000) | ((params.color.g << 8) & 0xff00) | in Get8BitsARGBColorValue() 56 ((params.color.b) & 0xff); in Get8BitsARGBColorValue() 182 if (solid_fill_params_.color.r_bitdepth != solid_fill_params_.color.b_bitdepth in SetSolidFill() 183 || solid_fill_params_.color.r_bitdepth != solid_fill_params_.color.g_bitdepth) { in SetSolidFill() 184 DLOGE("invalid bit depth r %d g %d b %d", solid_fill_params_.color.r_bitdepth, in SetSolidFill() 185 solid_fill_params_.color.g_bitdepth, solid_fill_params_.color.b_bitdepth); in SetSolidFill() 189 solid_fill_color.bit_depth = solid_fill_params_.color.r_bitdepth; in SetSolidFill() 190 solid_fill_color.red = solid_fill_params_.color.r; in SetSolidFill() 191 solid_fill_color.blue = solid_fill_params_.color.b; in SetSolidFill() 192 solid_fill_color.green = solid_fill_params_.color.g; in SetSolidFill()
|
/hardware/interfaces/light/utils/ |
D | main.cpp | 38 int parseArgs(int argc, char* argv[], unsigned int* color) { in parseArgs() argument 47 *color = strtoul(argv[1], &col_ptr, 0); in parseArgs() 56 *color = 0u; in parseArgs() 60 void setToColorAidl(sp<aidl::ILights> hal, unsigned int color) { in setToColorAidl() argument 62 off.color = color; in setToColorAidl() 81 void setToColorHidl(sp<V2_0::ILight> hal, unsigned int color) { in setToColorHidl() argument 83 .color = color, in setToColorHidl()
|
/hardware/interfaces/graphics/composer/2.2/utils/command-buffer/include/composer-command-buffer/2.2/ |
D | ComposerCommandBuffer.h | 78 void setLayerFloatColor(IComposerClient::FloatColor color) { in setLayerFloatColor() argument 80 writeFloatColor(color); in setLayerFloatColor() 95 void writeFloatColor(const IComposerClient::FloatColor& color) { in writeFloatColor() argument 96 writeFloat(color.r); in writeFloatColor() 97 writeFloat(color.g); in writeFloatColor() 98 writeFloat(color.b); in writeFloatColor() 99 writeFloat(color.a); in writeFloatColor()
|
/hardware/qcom/display/msm8084/liblight/ |
D | lights.c | 102 return state->color & 0x00ffffff; in is_lit() 108 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 109 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 110 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 153 colorRGB = state->color; in set_speaker_light_locked() 231 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/display/msm8996/liblight/ |
D | lights.c | 103 return state->color & 0x00ffffff; in is_lit() 109 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 110 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 111 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 154 colorRGB = state->color; in set_speaker_light_locked() 258 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/display/msm8226/liblight/ |
D | lights.c | 102 return state->color & 0x00ffffff; in is_lit() 108 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 109 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 110 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 153 colorRGB = state->color; in set_speaker_light_locked() 248 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/display/msm8994/liblight/ |
D | lights.c | 103 return state->color & 0x00ffffff; in is_lit() 109 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 110 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 111 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 154 colorRGB = state->color; in set_speaker_light_locked() 249 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/display/msm8998/liblight/ |
D | lights.c | 115 return state->color & 0x00ffffff; in is_lit() 121 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 122 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 123 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 191 colorRGB = state->color; in set_speaker_light_locked() 295 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/display/msm8909w_3100/liblight/ |
D | lights.c | 117 return state->color & 0x00ffffff; in is_lit() 123 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 124 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 125 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 178 int brightness = state->color & 0x00ffffff; in set_light_backlight_ext() 215 colorRGB = state->color; in set_speaker_light_locked() 319 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/display/msm8960/liblight/ |
D | lights.c | 119 return state->color & 0x00ffffff; in is_lit() 125 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 126 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 127 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 163 colorRGB = state->color; in set_speaker_light_locked()
|
/hardware/qcom/display/msm8909/liblight/ |
D | lights.c | 115 return state->color & 0x00ffffff; in is_lit() 121 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 122 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 123 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 191 colorRGB = state->color; in set_speaker_light_locked() 295 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/sdm845/display/liblight/ |
D | lights.c | 184 return state->color & 0x00ffffff; in is_lit() 190 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 191 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 192 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 269 colorRGB = state->color; in set_speaker_light_locked() 351 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/qcom/sm8150/display/liblight/ |
D | lights.c | 118 return state->color & 0x00ffffff; in is_lit() 124 int color = state->color & 0x00ffffff; in rgb_to_brightness() local 125 return ((77*((color>>16)&0x00ff)) in rgb_to_brightness() 126 + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; in rgb_to_brightness() 223 colorRGB = state->color; in set_speaker_light_locked() 325 err = write_int(BUTTON_FILE, state->color & 0xFF); in set_light_buttons()
|
/hardware/interfaces/light/2.0/ |
D | types.hal | 60 * implementation dependent, and any value set for color in LightState may be 84 * light to a reasonable color when the BUTTONS are lit. 107 * The color of the LED in ARGB. 113 * unsigned char brightness = ((77*((color>>16)&0x00ff)) 114 * + (150*((color>>8)&0x00ff)) + (29*(color&0x00ff))) >> 8; 120 uint32_t color;
|
/hardware/interfaces/configstore/1.0/ |
D | ISurfaceFlingerConfigs.hal | 51 * or can support a wide-color display, e.g. color space 53 * color primaries as DCI-P3. 56 * This also means that the device is color managed. 57 * A color managed device will use the appropriate 67 * 1. is a wide color gamut display, typically DCI-P3 or lager
|
/hardware/interfaces/graphics/composer/2.3/ |
D | IComposerClient.hal | 40 * Indicates that the display must apply a color transform even when 43 * the color transform during its composition step. 122 * Sets a matrix for color transform which will be applied on this layer 128 * The matrix provided is an affine color transformation of the following 140 * Given a matrix of this form and an input color [R_in, G_in, B_in], 141 * the input color must first be converted to linear space 142 * [R_linear, G_linear, B_linear], then the output linear color 209 * If the active configuration or color mode of this display has changed 274 * Query for what types of color sampling the hardware supports. 302 * Enables or disables the collection of color content statistics [all …]
|
/hardware/interfaces/graphics/composer/2.2/ |
D | IComposerClient.hal | 114 * setLayerColor(FloatColor color); 116 * Sets the color of the given layer. If the composition type of the layer 120 * @param color is the new color using float type. 155 * If the active configuration or color mode of this display has changed 341 * Returns the color modes supported on this display. 348 * @return modes is an array of color modes. 355 * Returns the render intents supported by the specified display and color 358 * For SDR color modes, RenderIntent::COLORIMETRIC must be supported. For 359 * HDR color modes, RenderIntent::TONE_MAP_COLORIMETRIC must be supported. 362 * @param mode is the color mode to query. [all …]
|
/hardware/interfaces/graphics/common/1.1/ |
D | types.hal | 238 * RenderIntent defines the mapping from color mode colors to display colors. 240 * A render intent must not change how it maps colors when the color mode 241 * changes. That is to say that when a render intent maps color C to color C', 242 * the fact that color C can have different pixel values in different color 245 * RenderIntent overrides the render intents defined for individual color 246 * modes. It is ignored when the color mode is ColorMode::NATIVE, because 257 * ColorMode::NATIVE is the only supported color mode. 265 * The enhancement typically picks the biggest standard color space (e.g.
|
/hardware/interfaces/light/2.0/vts/functional/ |
D | VtsHalLightV2_0TargetTest.cpp | 44 .color = 0xFFFFFFFF, 52 .color = 0xFF123456, 60 .color = 0x00000000,
|