Searched refs:wb (Results 1 - 5 of 5) sorted by relevance

/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCameraCapabilities.java219 for (String wb : supportedWhiteBalances) {
220 if (Camera.Parameters.WHITE_BALANCE_AUTO.equals(wb)) {
222 } else if (Camera.Parameters.WHITE_BALANCE_CLOUDY_DAYLIGHT.equals(wb)) {
224 } else if (Camera.Parameters.WHITE_BALANCE_DAYLIGHT.equals(wb)) {
226 } else if (Camera.Parameters.WHITE_BALANCE_FLUORESCENT.equals(wb)) {
228 } else if (Camera.Parameters.WHITE_BALANCE_INCANDESCENT.equals(wb)) {
230 } else if (Camera.Parameters.WHITE_BALANCE_SHADE.equals(wb)) {
232 } else if (Camera.Parameters.WHITE_BALANCE_TWILIGHT.equals(wb)) {
234 } else if (Camera.Parameters.WHITE_BALANCE_WARM_FLUORESCENT.equals(wb)) {
H A DCameraCapabilities.java433 * @param wb The focus mode to convert.
437 public String stringify(WhiteBalance wb) { argument
438 return toApiCase(wb.name());
619 public boolean supports(WhiteBalance wb) { argument
620 return (wb != null && mSupportedWhiteBalances.contains(wb));
H A DAndroidCamera2Capabilities.java239 * @param wb The integral representation.
243 public static WhiteBalance whiteBalanceFromInt(int wb) { argument
244 switch (wb) {
262 Log.w(TAG, "Unable to convert from API 2 white balance: " + wb);
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp869 float wr = 0.2126, wg = 0.7152, wb = 0.0722; // ITU709 recommended constants local
872 float y = wr * r + wg * g + wb * b;
873 float u = 0.5 * ((b - y) / (1.0 - wb)) + 0.5;
891 // u = 0.5 * ((b - y) / (1.0 - wb)) + 0.5
892 // 0.5 * ((b - y) / (1.0 - wb)) = u - 0.5
893 // (b - y) / (1.0 - wb) = 2 * (u - 0.5)
894 // b - y = 2 * (u - 0.5) * (1.0 - wb)
895 // b = 2 * (u - 0.5) * (1.0 - wb) + y
903 // y = wr * r + wg * g + wb * b
904 // wr * r + wg * g + wb *
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowManagerService.java1422 WindowState wb = windows.get(i-1);
1423 if (wb.mAppToken == w.mAppToken && canBeImeTarget(wb)) {
1425 w = wb;
2009 WindowState wb = windows.get(foundI - 1);
2010 if (wb.mBaseLayer < maxLayer &&
2011 wb.mAttachedWindow != foundW &&
2013 wb.mAttachedWindow != foundW.mAttachedWindow) &&
2014 (wb.mAttrs.type != TYPE_APPLICATION_STARTING ||
2015 foundW.mToken == null || wb
[all...]

Completed in 409 milliseconds