Lines Matching defs:mode

391             for (String mode : antiBandingModes) {
392 int convertedMode = convertAntiBandingMode(mode);
394 Log.v(TAG, "Antibanding mode " + ((mode == null) ? "NULL" : mode) +
647 // Special case where the only scene mode listed is AUTO => no scene mode
688 Log.v(TAG, "mapLens - focus-mode='" + p.getFocusMode() + "'");
955 // Only "OFF" test pattern mode is available
1070 static int convertSceneModeFromLegacy(String mode) {
1071 if (mode == null) {
1074 int index = ArrayUtils.getArrayIndex(sLegacySceneModes, mode);
1081 static String convertSceneModeToLegacy(int mode) {
1082 if (mode == CONTROL_SCENE_MODE_FACE_PRIORITY) {
1087 int index = ArrayUtils.getArrayIndex(sSceneModes, mode);
1118 static int convertEffectModeFromLegacy(String mode) {
1119 if (mode == null) {
1122 int index = ArrayUtils.getArrayIndex(sLegacyEffectMode, mode);
1129 static String convertEffectModeToLegacy(int mode) {
1130 int index = ArrayUtils.getArrayIndex(sEffectModes, mode);
1138 * Convert the ae antibanding mode from api1 into api2.
1140 * @param mode the api1 mode, {@code null} is allowed and will return {@code -1}.
1144 private static int convertAntiBandingMode(String mode) {
1145 if (mode == null) {
1149 switch (mode) {
1163 Log.w(TAG, "convertAntiBandingMode - Unknown antibanding mode " + mode);
1170 * Convert the ae antibanding mode from api1 into api2.
1172 * @param mode the api1 mode, {@code null} is allowed and will return {@code MODE_OFF}.
1176 static int convertAntiBandingModeOrDefault(String mode) {
1177 int antiBandingMode = convertAntiBandingMode(mode);
1221 // Disallowed templates in legacy mode:
1317 // control.mode
1388 // flash.mode
1462 * Convert the requested AF mode into its equivalent supported parameter.
1464 * @param mode {@code CONTROL_AF_MODE}
1466 * @return the stringified af mode, or {@code null} if its not supported
1468 static String convertAfModeToLegacy(int mode, List<String> supportedFocusModes) {
1475 switch (mode) {
1500 // Weed out bad user input by setting to the first arbitrary focus mode
1504 "convertAfModeToLegacy - ignoring unsupported mode %d, " +
1505 "defaulting to %s", mode, defaultMode));