Lines Matching full:then
107 if test $# -gt 0; then
124 if test $# -gt 0; then
137 if test $# -gt 0; then
150 if test $# -gt 0; then
163 if test $# -gt 0; then
176 if test $# -gt 0; then
212 if ! which adb &> /dev/null; then
227 if [ ! -z "$2" ]; then
235 if [ ! -z "$2" ]; then
243 if [ ! -z "$2" ]; then
255 if [ -f "build/release/release_configs/trunk_staging.textproto" ]; then
263 if [ $exit_code -eq 0 ]; then
280 if [ -z "$PLATFORM_BUILD" ]; then
282 elif [[ "$PLATFORM_BUILD" == "None" ]]; then
292 if [ -z "$VENDOR_KERNEL_BUILD" ]; then
301 if [ -z "$KERNEL_BUILD" ]; then
312 if [[ "$SKIP_BUILD" = true ]]; then
320 if [ $exit_code -eq 1 ]; then
324 if [ -f "${ANDROID_PRODUCT_OUT}/system.img" ]; then
333 if [[ "$SKIP_BUILD" = true ]]; then
338 if [ "$GCOV" = true ]; then
341 if [ "$DEBUG" = true ]; then
344 if [ "$KASAN" = true ]; then
351 if [ $exit_code -eq 0 ]; then
362 if [[ "$1" == *"user/"* ]]; then
373 if [ $exit_code -eq 0 ]; then
378 if [[ "$pattern" == "vendor_ramdisk-debug.img" ]]; then
395 if [ $exit_code -eq 0 ]; then
410 if [[ "$VENDOR_KERNEL_VERSION" == *"6.6" ]]; then
427 if [ $exit_code -eq 0 ]; then
447 …if [[ "$PRODUCT" == "kirkwood" ]] && [[ ! "$KERNEL_VERSION" =~ ^android13 ]]; then # Check if NOT…
450 …NEL_VERSION" =~ ^android12 ]] && [[ ! "$KERNEL_VERSION" =~ ^android13 ]]; then # Check if NOT and…
457 …NEL_VERSION" =~ ^android12 ]] && [[ ! "$KERNEL_VERSION" =~ ^android13 ]]; then # Check if NOT and…
464 …NEL_VERSION" =~ ^android12 ]] && [[ ! "$KERNEL_VERSION" =~ ^android13 ]]; then # Check if NOT andr…
470 if [ -z "$TRADEFED" ]; then
473 if [ -d "$DOWNLOAD_PATH/tf_gki_kernel_dir" ]; then
488 if [ ! -z "$system_dlkm_image_name" ]; then
497 if [ -z "$TRADEFED" ]; then
505 if [ -d "$DOWNLOAD_PATH/tf_vendor_kernel_dir" ]; then
512 if [ ! -f "$VENDOR_KERNEL_BUILD/$pattern" ]; then
516 if [[ "$pattern" == "boot.img" ]]; then
537 if (( devices > 0 )); then
549 if [[ "$PLATFORM_BUILD" == ab://* ]] && [ -x "$FLASH_CLI" ]; then
552 if [ ! -z "${array[3]}" ]; then
554 if [[ "$_build_type" == *userdebug ]]; then
556 elif [[ "$_build_type" == *user ]]; then
560 if [ ! -z "${array[4]}" ] && [[ "${array[4]}" != latest* ]]; then
570 if [ $exit_code -eq 0 ]; then
581 [ -x "$PLATFORM_REPO_ROOT/vendor/google/tools/flashall" ]; then
584 if [ -z "${TARGET_PRODUCT}" ] || [[ "${TARGET_PRODUCT}" != *"$PRODUCT" ]]; then
585 if [[ "$PLATFORM_VERSION" == aosp-* ]]; then
593 elif [ -x "${ANDROID_HOST_OUT}/bin/local_flashstation" ] || [ -x "$LOCAL_FLASH_CLI" ]; then
594 if [ -z "${TARGET_PRODUCT}" ]; then
597 if [ -z "${TARGET_BUILD_VARIANT}" ]; then
600 … if [ -z "${ANDROID_PRODUCT_OUT}" ] || [[ "${ANDROID_PRODUCT_OUT}" != "$PLATFORM_BUILD" ]] ; then
603 if [ -z "${ANDROID_HOST_OUT}" ]; then
606 if [ ! -f "$PLATFORM_BUILD/system.img" ]; then
616 if [ ! -x "$LOCAL_FLASH_CLI" ]; then
624 if [ $exit_code -eq 0 ]; then
640 if [ $exit_code -eq 0 ]; then
650 …T_PATH} ] && [ -f "$PLATFORM_REPO_ROOT_PATH/vendor/google/tools/build_mixed_kernels_ramdisk"]; then
652 elif [ -f "$DOWNLOAD_PATH/build_mixed_kernels_ramdisk" ]; then
659 if [ ! -f "$mix_kernel_cmd" ]; then
661 elif [ ! -x "$mix_kernel_cmd" ]; then
664 if [[ "$PLATFORM_BUILD" == ab://* ]]; then
666 if [ -d "$DOWNLOAD_PATH/device_dir" ]; then
674 elif [ ! -z "$PLATFORM_REPO_ROOT" ] && [[ "$PLATFORM_BUILD" == "$PLATFORM_REPO_ROOT"* ]]; then
680 if [ ! -z "device_image" ]; then
684 if [ ! -z "device_image" ]; then
694 if [ $exit_code -eq 0 ]; then
704 if [ -d "$new_device_dir" ]; then
709 if [ -d "${KERNEL_BUILD}" ]; then
716 if [ ! -f "$device_image" ]; then
730 if [ ! -z "$version_output" ]; then
737 if [ ! -z "$version_output" ]; then
744 if [ ! -z "$version_output" ]; then
751 if [ ! -z "$version_output" ]; then
758 if [ ! -z "$version_output" ]; then
765 if [ ! -z "$version_output" ]; then
772 if [ ! -z "$version_output" ]; then
782 … if [[ "$KERNEL_VERSION" == "$DEVICE_KERNEL_VERSION"* ]] && [ ! -z "$SYSTEM_DLKM_INFO" ]; then
785 elif [ -z "$SYSTEM_DLKM_INFO" ]; then
789 elif [[ "$KERNEL_VERSION" != "$DEVICE_KERNEL_VERSION"* ]]; then
797 if [[ "$KERNEL_VERSION" == "$EVICE_KERNEL_VERSION"* ]]; then
816 if [[ "$kernel_string" == *"-mainline"* ]]; then
818 elif [[ "$kernel_string" == *"-android"* ]]; then
829 if (( adb_count > 0 )); then
842 if (( fastboot_count > 0 )); then
854 if [ -f "${ANDROID_HOST_OUT}/bin/tradefed.sh" ] ; then
858 elif [ -f "$PLATFORM_TF_PREBUILT" ]; then
861 elif [ -f "$KERNEL_TF_PREBUILT" ]; then
863 elif [ -f "/tmp/tradefed/tradefed.sh" ]; then
871 if [ $exit_code -eq 0 ]; then
881 if [ -d "${ANDROID_JAVA_HOME}" ] ; then
883 elif [ -d "$PLATFORM_JDK_PATH" ] ; then
885 elif [ -d "$KERNEL_JDK_PATH" ] ; then
887 elif [ -d "$LOCAL_JDK_PATH" ] ; then
904 if [ -z "$SERIAL_NUMBER" ]; then
913 if [[ "$REPO_LIST_OUT" == "error"* ]]; then
926 if [ ! -d "$DOWNLOAD_PATH" ]; then
930 if [ ! -z "$PLATFORM_BUILD" ] && [[ "$PLATFORM_BUILD" != ab://* ]] && [ -d "$PLATFORM_BUILD" ]; then
934 if [[ "$PLATFORM_REPO_LIST_OUT" != "error"* ]]; then
936 if [[ "$PWD" != "$REPO_ROOT_PATH" ]]; then
939 …$SKIP_BUILD" = false ] && [[ "$PLATFORM_BUILD" != "ab://"* ]] && [[ ! -z "$PLATFORM_BUILD" ]]; then
940 if [ -z "${TARGET_PRODUCT}" ] || [[ "${TARGET_PRODUCT}" != *"$PRODUCT" ]]; then
941 if [[ "$PLATFORM_VERSION" == aosp-* ]]; then
946 elif [[ "${TARGET_PRODUCT}" == *"$PRODUCT" ]]; then
949 if [[ "${TARGET_PRODUCT}" == *"$PRODUCT" ]]; then
955 …ATFORM_REPO_ROOT}" ] && [ -f "$PLATFORM_REPO_ROOT/out/target/product/$PRODUCT/otatools.zip" ]; then
957 elif [ -d "${ANDROID_PRODUCT_OUT}" ] && [ -f "${ANDROID_PRODUCT_OUT}/otatools.zip" ]; then
965 if [[ "$SYSTEM_BUILD" == ab://* ]]; then
967 elif [ ! -z "$SYSTEM_BUILD" ] && [ -d "$SYSTEM_BUILD" ]; then
972 if [[ "$SYSTEM_REPO_LIST_OUT" != "error"* ]]; then
974 if [[ "$PWD" != "$REPO_ROOT_PATH" ]]; then
977 if [ -z "${TARGET_PRODUCT}" ] || [[ "${TARGET_PRODUCT}" != "_arm64" ]]; then
979 if [ "$SKIP_BUILD" = false ] ; then
987 if [[ "$KERNEL_BUILD" == ab://* ]]; then
993 … != "$DEVICE_KERNEL_VERSION"* ]] && [ -z "$PLATFORM_BUILD" ] && [ -z "$VENDOR_KERNEL_BUILD" ]; then
1000 if [ -d "$DOWNLOAD_PATH/gki_dir" ]; then
1008 elif [ ! -z "$KERNEL_BUILD" ] && [ -d "$KERNEL_BUILD" ]; then
1012 if [[ "$KERNEL_REPO_LIST_OUT" != "error"* ]]; then
1014 if [[ "$PWD" != "$REPO_ROOT_PATH" ]]; then
1017 if [ "$SKIP_BUILD" = false ] ; then
1018 if [ ! -f "common/BUILD.bazel" ]; then
1026 elif [ -f "$KERNEL_BUILD/boot*.img" ]; then
1031 if [[ "$VENDOR_KERNEL_BUILD" == ab://* ]]; then
1033 if [ -d "$DOWNLOAD_PATH/vendor_kernel_dir" ]; then
1041 elif [ ! -z "$VENDOR_KERNEL_BUILD" ] && [ -d "$VENDOR_KERNEL_BUILD" ]; then
1045 if [[ "$VENDOR_KERNEL_REPO_LIST_OUT" != "error"* ]]; then
1047 if [[ "$PWD" != "$REPO_ROOT_PATH" ]]; then
1050 if [ -z "$VENDOR_KERNEL_BUILD_TARGET" ]; then
1052 if (( kernel_build_target_count == 1 )); then
1054 elif (( kernel_build_target_count > 1 )); then
1062 if [ "$SKIP_BUILD" = false ] ; then
1064 if [ "$GCOV" = true ]; then
1067 if [ "$DEBUG" = true ]; then
1070 if [ "$KASAN" = true ]; then
1076 if [ $exit_code -eq 0 ]; then
1087 if [ -z "$PLATFORM_BUILD" ]; then # No platform build provided
1088 …if [ -z "$KERNEL_BUILD" ] && [ -z "$VENDOR_KERNEL_BUILD" ]; then # No kernel or vendor kernel bui…
1091 elif [ -z "$KERNEL_BUILD" ] && [ ! -z "$VENDOR_KERNEL_BUILD" ]; then # Only vendor kernel build
1094 …elif [ ! -z "$KERNEL_BUILD" ] && [ ! -z "$VENDOR_KERNEL_BUILD" ]; then # Both kernel and vendor k…
1097 elif [ ! -z "$KERNEL_BUILD" ] && [ -z "$VENDOR_KERNEL_BUILD" ]; then # Only GKI build
1101 …if [ -z "$KERNEL_BUILD" ] && [ -z "$VENDOR_KERNEL_BUILD" ]; then # No kernel or vendor kernel bui…
1104 …elif [ -z "$KERNEL_BUILD" ] && [ ! -z "$VENDOR_KERNEL_BUILD" ]; then # Vendor kernel build and pl…
1108 …elif [ ! -z "$KERNEL_BUILD" ] && [ -z "$VENDOR_KERNEL_BUILD" ]; then # GKI build and platform build
1112 …elif [ ! -z "$KERNEL_BUILD" ] && [ ! -z "$VENDOR_KERNEL_BUILD" ]; then # All three builds provided