Home
last modified time | relevance | path

Searched refs:die (Results 1 – 24 of 24) sorted by relevance

/system/core/fs_mgr/tests/
Dadb-remount-test.sh624 die() { function
666 ${error} && die "${*}"
692 ${error} && die "${*}"
805 die "getopt failure"
850 die "${0}: error unknown option ${1}"
890 inAdb || die "no device or more than one device in adb mode"
892 [ -n "${D}" ] || die "cannot get device serial"
897 inFastboot && die "device in fastboot mode"
898 inRecovery && die "device in recovery mode"
903 inAdb || die "specified device not in adb mode"
[all …]
/system/update_engine/scripts/
Dbrillo_update_payload89 die() { function
103 . "${path}/shflags" || die "Could not load ${path}/shflags."
107 die "Could not find shflags."
357 die "Cleanup encountered an error."
364 die "Cleanup success after an error."
389 { rm -rf "${output_directory}"; die "Failed to extract ${entry_name}"; }
422 die "Couldn't detect the image format of ${image}"
483 [[ -n "${path_in_zip}" ]] || die "Failed to find ${part}.img"
537 die "Invalid partition names found in the partition list."
542 die "The list of partitions is empty. Can't generate a payload."
[all …]
/system/libufdt/tests/
Drun_tests.sh35 die "Test case: ${filename} failed!!"
42 die "Run envsetup.sh / lunch yet?"
48 die "Run mmma $(dirname ${SCRIPT_DIR}) yet?"
91 die "Some test cases failed, please check error message..."
Drun_stress_test.sh73 die "Run envsetup.sh / lunch yet?"
78 die "Run mmma $(dirname $SCRIPT_DIR) yet?"
97 die "Some test cases failed, please check error message..."
Drun_performance_test.sh89 die "Run envsetup.sh / lunch yet?"
94 die "Run mmma $(dirname $SCRIPT_DIR) yet?"
100 die "adb can not connect to device."
Dcommon.sh20 die() { function
/system/extras/cpustats/
Dcpustats.c50 #define die(...) \ macro
112 if (cpu_count < 1) die("Unexpected cpu count\n"); in main()
115 if (!old_cpus) die("Could not allocate struct cpu_info\n"); in main()
117 if (!new_cpus) die("Could not allocate struct cpu_info\n"); in main()
121 if (freq_count < 1) die("Unexpected frequency scale count\n"); in main()
124 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
126 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n"); in main()
136 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
138 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n"); in main()
186 die("present cpus != online cpus\n"); in get_cpu_count()
[all …]
/system/libziparchive/
Dziptool.cpp75 static void die(int error, const char* fmt, ...) { in die() function
191 die(0, "(EOF/read error; assuming [N]one...)"); in PromptOverwrite()
228 die(0, "failed to extract %s: %s", name.c_str(), ErrorCodeString(err)); in TestOne()
244 die(0, "entry size %" PRIu64 " is too large to extract.", entry.uncompressed_length); in ExtractToPipe()
250 die(0, "failed to extract %s: %s", name.c_str(), ErrorCodeString(err)); in ExtractToPipe()
253 die(errno, "failed to write %s to stdout", name.c_str()); in ExtractToPipe()
261 die(0, "bad filename %s", name.c_str()); in ExtractOne()
274 die(errno, "couldn't create directory hierarchy for %s", dst.c_str()); in ExtractOne()
285 die(errno, "couldn't extract directory %s", dst.c_str()); in ExtractOne()
298 if (fd == -1) die(errno, "couldn't create file %s", dst.c_str()); in ExtractOne()
[all …]
/system/core/fastboot/
Dutil.cpp51 void die(const char* fmt, ...) { in die() function
61 void die(const std::string& str) { in die() function
62 die("%s", str.c_str()); in die()
108 die("could not get file size"); in get_file_size()
Dfastboot.cpp187 die("ANDROID_PRODUCT_OUT not set"); in find_item_given_name()
216 die("Command failed"); in Epilog()
652 die("cannot load '%s': %s", kernel.c_str(), strerror(errno)); in LoadBootableImage()
657 die("cannot load '%s': too short", kernel.c_str()); in LoadBootableImage()
664 if (!ramdisk.empty()) die("cannot boot a boot.img *and* ramdisk"); in LoadBootableImage()
672 die("cannot load '%s': %s", ramdisk.c_str(), strerror(errno)); in LoadBootableImage()
679 die("cannot load '%s': %s", second_stage.c_str(), strerror(errno)); in LoadBootableImage()
686 die("Argument dtb not supported for boot image header version %d\n", in LoadBootableImage()
690 die("cannot load '%s': %s", g_dtb_path.c_str(), strerror(errno)); in LoadBootableImage()
716 die("entry '%s' is too large: %" PRIu64, entry_name.c_str(), zip_entry.uncompressed_length); in UnzipToMemory()
[all …]
Dutil.h22 void die(const char* fmt, ...) __attribute__((__noreturn__))
27 void die(const std::string& str) __attribute__((__noreturn__));
Dbootimg_utils.cpp38 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline_v3_and_above()
46 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline()
84 die("Second stage bootloader and dtb not supported in v%d boot image\n", in mkbootimg()
Dresult.h50 die(r.error().message()); in Expect()
Dtask.cpp46 die("The partition you are trying to flash is dynamic, and " in Run()
/system/extras/power_profile/gps_on/
Dgradlew22 die ( ) { function
79 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
86 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/power_profile/camera_flashlight/
Dgradlew22 die ( ) { function
79 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
86 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/power_profile/camera_avg/
Dgradlew22 die ( ) { function
79 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
86 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/simpleperf/demo/SimpleperfExampleJava/
Dgradlew56 die () { function
95 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
102 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/simpleperf/demo/SimpleperfExampleCpp/
Dgradlew40 die () { function
78 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
85 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/simpleperf/demo/CppApi/
Dgradlew40 die () { function
78 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
85 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/simpleperf/demo/JavaApi/
Dgradlew40 die () { function
78 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
85 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/extras/simpleperf/demo/SimpleperfExampleKotlin/
Dgradlew56 die () { function
95 die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
102 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
/system/tools/mkbootimg/gki/
Dboot_signature_info.sh24 die() { function
63 die "expected one input image"
/system/extras/boottime_tools/bootio/
Dbootio_collector.cpp44 #define die(...) { LOG(ERROR) << (__VA_ARGS__); exit(EXIT_FAILURE); } macro
51 if (!file) die("Could not open /proc/stat.\n"); in PopulateCpu()
181 if (!procDir) die("Could not open /proc.\n"); in ReadProcData()