Lines Matching refs:constant
38 from aidegen import constant
59 _IDE_UNDEFINED = constant.IDE_DICT[constant.IDE_UNDEFINED]
60 _IDE_INTELLIJ = constant.IDE_DICT[constant.IDE_INTELLIJ]
61 _IDE_CLION = constant.IDE_DICT[constant.IDE_CLION]
62 _IDE_VSCODE = constant.IDE_DICT[constant.IDE_VSCODE]
128 if target == constant.WHOLE_ANDROID_TREE_TARGET:
395 out_dir_common_base = os.getenv(constant.OUT_DIR_COMMON_BASE_ENV_VAR)
400 or constant.ANDROID_DEFAULT_OUT)
424 return os.path.join(get_android_root_dir(), constant.AIDEGEN_ROOT_PATH)
465 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_BP))
477 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_MK))
491 constant.RE_INSIDE_PATH_CHECK.format(relative_path), source)
503 return str(data).replace(os.path.expanduser('~'), constant.USER_HOME)
654 product = os.environ.get(constant.TARGET_PRODUCT)
655 build_variant = os.environ.get(constant.TARGET_BUILD_VARIANT)
658 {constant.LUNCH_TARGET: "-".join([product, build_variant])})
673 constant.BLUEPRINT_JAVA_JSONFILE_NAME))
674 data[constant.GEN_JAVA_DEPS] = bp_java_path
676 root_dir, get_blueprint_json_path(constant.BLUEPRINT_CC_JSONFILE_NAME))
677 data[constant.GEN_CC_DEPS] = bp_cc_path
678 data[constant.GEN_COMPDB] = os.path.join(get_soong_out_path(),
679 constant.RELATIVE_COMPDB_PATH,
680 constant.COMPDB_JSONFILE_NAME)
681 data[constant.GEN_RUST] = os.path.join(
682 root_dir, get_blueprint_json_path(constant.RUST_PROJECT_JSON))
729 constant.GIT_FOLDER_NAME)
754 if ide == _IDE_UNDEFINED and lang == constant.LANG_UNDEFINED:
756 lang = constant.LANG_JAVA
758 lang = constant.LANG_CC
760 lang = constant.LANG_RUST
761 if lang in (constant.LANG_UNDEFINED, constant.LANG_JAVA):
764 lang = constant.LANG_JAVA
765 if constant.IDE_NAME_DICT[ide] == constant.IDE_CLION:
766 lang = constant.LANG_CC
767 elif lang == constant.LANG_CC:
770 if constant.IDE_NAME_DICT[ide] == constant.IDE_INTELLIJ:
771 lang = constant.LANG_JAVA
772 elif lang == constant.LANG_RUST:
774 return constant.LANGUAGE_NAME_DICT[lang], constant.IDE_NAME_DICT[ide]
787 for extension in (constant.JAVA_FILES, constant.KOTLIN_FILES):