Lines Matching refs:constant
38 from aidegen import constant
62 _IDE_UNDEFINED = constant.IDE_DICT[constant.IDE_UNDEFINED]
63 _IDE_INTELLIJ = constant.IDE_DICT[constant.IDE_INTELLIJ]
64 _IDE_CLION = constant.IDE_DICT[constant.IDE_CLION]
65 _IDE_VSCODE = constant.IDE_DICT[constant.IDE_VSCODE]
131 if target == constant.WHOLE_ANDROID_TREE_TARGET:
398 out_dir_common_base = os.getenv(constant.OUT_DIR_COMMON_BASE_ENV_VAR)
403 or constant.ANDROID_DEFAULT_OUT)
427 return os.path.join(get_android_root_dir(), constant.AIDEGEN_ROOT_PATH)
468 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_BP))
480 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_MK))
494 constant.RE_INSIDE_PATH_CHECK.format(relative_path), source)
506 return str(data).replace(os.path.expanduser('~'), constant.USER_HOME)
657 product = os.environ.get(constant.TARGET_PRODUCT)
658 build_variant = os.environ.get(constant.TARGET_BUILD_VARIANT)
661 {constant.LUNCH_TARGET: "-".join([product, build_variant])})
676 constant.BLUEPRINT_JAVA_JSONFILE_NAME))
677 data[constant.GEN_JAVA_DEPS] = bp_java_path
679 root_dir, get_blueprint_json_path(constant.BLUEPRINT_CC_JSONFILE_NAME))
680 data[constant.GEN_CC_DEPS] = bp_cc_path
681 data[constant.GEN_COMPDB] = os.path.join(get_soong_out_path(),
682 constant.RELATIVE_COMPDB_PATH,
683 constant.COMPDB_JSONFILE_NAME)
684 data[constant.GEN_RUST] = os.path.join(
685 root_dir, get_blueprint_json_path(constant.RUST_PROJECT_JSON))
732 constant.GIT_FOLDER_NAME)
757 if ide == _IDE_UNDEFINED and lang == constant.LANG_UNDEFINED:
759 lang = constant.LANG_JAVA
761 lang = constant.LANG_CC
763 lang = constant.LANG_RUST
764 if lang in (constant.LANG_UNDEFINED, constant.LANG_JAVA):
767 lang = constant.LANG_JAVA
768 if constant.IDE_NAME_DICT[ide] == constant.IDE_CLION:
769 lang = constant.LANG_CC
770 elif lang == constant.LANG_CC:
773 if constant.IDE_NAME_DICT[ide] == constant.IDE_INTELLIJ:
774 lang = constant.LANG_JAVA
775 elif lang == constant.LANG_RUST:
777 return constant.LANGUAGE_NAME_DICT[lang], constant.IDE_NAME_DICT[ide]
790 for extension in (constant.JAVA_FILES, constant.KOTLIN_FILES):