Lines Matching defs:mode

390             for (String mode : antiBandingModes) {
391 int convertedMode = convertAntiBandingMode(mode);
393 Log.v(TAG, "Antibanding mode " + ((mode == null) ? "NULL" : mode) +
624 if (supportedSceneModes == null) { // camera1 doesn't support scene mode settings
640 Log.v(TAG, "mapLens - focus-mode='" + p.getFocusMode() + "'");
904 // Only "OFF" test pattern mode is available
1019 static int convertSceneModeFromLegacy(String mode) {
1020 if (mode == null) {
1023 int index = ArrayUtils.getArrayIndex(sLegacySceneModes, mode);
1030 static String convertSceneModeToLegacy(int mode) {
1031 if (mode == CONTROL_SCENE_MODE_FACE_PRIORITY) {
1036 int index = ArrayUtils.getArrayIndex(sSceneModes, mode);
1067 static int convertEffectModeFromLegacy(String mode) {
1068 if (mode == null) {
1071 int index = ArrayUtils.getArrayIndex(sLegacyEffectMode, mode);
1078 static String convertEffectModeToLegacy(int mode) {
1079 int index = ArrayUtils.getArrayIndex(sEffectModes, mode);
1087 * Convert the ae antibanding mode from api1 into api2.
1089 * @param mode the api1 mode, {@code null} is allowed and will return {@code -1}.
1093 private static int convertAntiBandingMode(String mode) {
1094 if (mode == null) {
1098 switch (mode) {
1112 Log.w(TAG, "convertAntiBandingMode - Unknown antibanding mode " + mode);
1119 * Convert the ae antibanding mode from api1 into api2.
1121 * @param mode the api1 mode, {@code null} is allowed and will return {@code MODE_OFF}.
1125 static int convertAntiBandingModeOrDefault(String mode) {
1126 int antiBandingMode = convertAntiBandingMode(mode);
1170 // Disallowed templates in legacy mode:
1266 // control.mode
1337 // flash.mode
1396 * Convert the requested AF mode into its equivalent supported parameter.
1398 * @param mode {@code CONTROL_AF_MODE}
1400 * @return the stringified af mode, or {@code null} if its not supported
1402 static String convertAfModeToLegacy(int mode, List<String> supportedFocusModes) {
1409 switch (mode) {
1434 // Weed out bad user input by setting to the first arbitrary focus mode
1438 "convertAfModeToLegacy - ignoring unsupported mode %d, " +
1439 "defaulting to %s", mode, defaultMode));