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.java241 * @param wb The integral representation.
245 public static WhiteBalance whiteBalanceFromInt(int wb) { argument
246 switch (wb) {
264 Log.w(TAG, "Unable to convert from API 2 white balance: " + wb);
/frameworks/native/opengl/tests/hwc/
H A DhwcTestLib.cpp872 float wr = 0.2126, wg = 0.7152, wb = 0.0722; // ITU709 recommended constants local
875 float y = wr * r + wg * g + wb * b;
876 float u = 0.5 * ((b - y) / (1.0 - wb)) + 0.5;
894 // u = 0.5 * ((b - y) / (1.0 - wb)) + 0.5
895 // 0.5 * ((b - y) / (1.0 - wb)) = u - 0.5
896 // (b - y) / (1.0 - wb) = 2 * (u - 0.5)
897 // b - y = 2 * (u - 0.5) * (1.0 - wb)
898 // b = 2 * (u - 0.5) * (1.0 - wb) + y
906 // y = wr * r + wg * g + wb * b
907 // wr * r + wg * g + wb *
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowManagerService.java1343 WindowState wb = windows.get(i-1);
1344 if (wb.mAppToken == w.mAppToken && canBeImeTarget(wb)) {
1346 w = wb;
1898 WindowState wb = windows.get(foundI-1);
1899 if (wb.mBaseLayer < maxLayer &&
1900 wb.mAttachedWindow != foundW &&
1902 wb.mAttachedWindow != foundW.mAttachedWindow) &&
1903 (wb.mAttrs.type != TYPE_APPLICATION_STARTING ||
1904 foundW.mToken == null || wb
[all...]

Completed in 144 milliseconds