Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 18 of 18) sorted by relevance

/bootable/recovery/applypatch/
Dimgpatch.cpp70 int ret = deflateInit2(&strm, level, method, window_bits, mem_level, strategy); in ApplyBSDiffPatchAndStreamOutput() local
71 if (ret != Z_OK) { in ApplyBSDiffPatchAndStreamOutput()
72 LOG(ERROR) << "Failed to init uncompressed data deflation: " << ret; in ApplyBSDiffPatchAndStreamOutput()
82 &ret, &sink](const uint8_t* data, size_t len) -> size_t { in ApplyBSDiffPatchAndStreamOutput()
91 ret = deflate(&strm, Z_NO_FLUSH); in ApplyBSDiffPatchAndStreamOutput()
93 ret = deflate(&strm, Z_FINISH); in ApplyBSDiffPatchAndStreamOutput()
95 if (ret != Z_OK && ret != Z_STREAM_END) { in ApplyBSDiffPatchAndStreamOutput()
96 LOG(ERROR) << "Failed to deflate stream: " << ret; in ApplyBSDiffPatchAndStreamOutput()
107 } while ((strm.avail_in != 0 || strm.avail_out == 0) && ret != Z_STREAM_END); in ApplyBSDiffPatchAndStreamOutput()
120 if (ret != Z_STREAM_END) { in ApplyBSDiffPatchAndStreamOutput()
[all …]
Dimgdiff.cpp410 int ret = deflateInit2(&strm, level, METHOD, WINDOWBITS, MEMLEVEL, STRATEGY); in TryReconstruction() local
411 if (ret < 0) { in TryReconstruction()
412 LOG(ERROR) << "Failed to initialize deflate: " << ret; in TryReconstruction()
421 ret = deflate(&strm, Z_FINISH); in TryReconstruction()
422 if (ret < 0) { in TryReconstruction()
423 LOG(ERROR) << "Failed to deflate: " << ret; in TryReconstruction()
434 } while (ret != Z_STREAM_END); in TryReconstruction()
678 int ret = StartIteration(handle, &cookie); in InitializeChunks() local
679 if (ret != 0) { in InitializeChunks()
680 LOG(ERROR) << "Failed to iterate over entries in " << filename << ": " << ErrorCodeString(ret); in InitializeChunks()
[all …]
/bootable/recovery/
Drecovery-refresh.cpp52 ssize_t ret; in main() local
67 ret = __android_log_pmsg_file_read( in main()
71 return (ret < 0) ? ret : 0; in main()
Drecovery_main.cpp213 ssize_t ret = TEMP_FAILURE_RETRY(read(connection_fd, &msg, sizeof(msg))); in ListenRecoverySocket() local
214 if (ret != sizeof(msg)) { in ListenRecoverySocket()
490 auto ret = fastboot ? StartFastboot(device, args) : start_recovery(device, args); in main() local
492 if (ret == Device::KEY_INTERRUPTED) { in main()
493 ret = action.exchange(ret); in main()
494 if (ret == Device::NO_ACTION) { in main()
498 switch (ret) { in main()
567 Reboot("unknown" + std::to_string(ret)); in main()
/bootable/recovery/tests/manual/
Drecovery_test.cpp54 ssize_t ret = __android_log_pmsg_file_read( in TEST() local
56 if (ret == -ENOENT) { in TEST()
64 EXPECT_EQ(static_cast<ssize_t>(kInjectTxtContent.size()), ret); in TEST()
72 ssize_t ret = __android_log_pmsg_file_read( in TEST() local
74 if (ret == -ENOENT) { in TEST()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp71 int ret; in wait_for_device() local
76 ret = stat(blk_device.c_str(), &buf); in wait_for_device()
77 if (ret == -1) { in wait_for_device()
82 } while (ret && tries < 10); in wait_for_device()
84 if (ret) { in wait_for_device()
87 return ret == 0; in wait_for_device()
/bootable/recovery/install/
Dsnapshot_utils.cpp69 auto ret = sm->RecoveryCreateSnapshotDevices(); in CreateSnapshotPartitions() local
70 if (ret == CreateResult::ERROR) { in CreateSnapshotPartitions()
/bootable/recovery/minui/
Devents.cpp94 int ret = ioctl(fd, FIONREAD, &event_len_int); in inotify_cb() local
95 if (ret != 0) return -1; in inotify_cb()
215 int ret = epoll_ctl(g_epoll_fd, EPOLL_CTL_ADD, fd, &ev); in ev_add_fd() local
216 if (!ret) { in ev_add_fd()
223 return ret; in ev_add_fd()
Dgraphics_fbdev.cpp42 int ret = ioctl(fb_fd, FBIOBLANK, blank ? FB_BLANK_POWERDOWN : FB_BLANK_UNBLANK); in Blank() local
43 if (ret < 0) perror("ioctl(): blank"); in Blank()
Dgraphics.cpp358 int ret = gr_init_font("font", &gr_font); in gr_init() local
359 if (ret != 0) { in gr_init()
361 ret); in gr_init()
/bootable/recovery/updater/
Ddynamic_partitions.cpp60 std::vector<std::string> ret; in ReadStringArgs() local
61 std::transform(args.begin(), args.end(), std::back_inserter(ret), in ReadStringArgs()
63 return ret; in ReadStringArgs()
Dtarget_files.cpp182 if (auto ret = OpenArchive(path_.c_str(), &handle_); ret != 0) { in Open() local
183 LOG(ERROR) << "failed to open source target file " << path_ << ": " << ErrorCodeString(ret); in Open()
Dupdater_runtime_dynamic_partitions.cpp125 uint64_t ret; in uint_arg() local
126 if (!android::base::ParseUint(str, &ret)) { in uint_arg()
130 return ret; in uint_arg()
Dupdater_runtime.cpp133 int ret = unmount_mounted_volume(vol); in Unmount() local
134 return { true, ret }; in Unmount()
Dinstall.cpp140 int32_t ret = ExtractEntryToFile(za, &entry, fd); in PackageExtractFileFn() local
141 if (ret != 0) { in PackageExtractFileFn()
144 << "\": " << ErrorCodeString(ret); in PackageExtractFileFn()
183 int32_t ret = in PackageExtractFileFn() local
185 if (ret != 0) { in PackageExtractFileFn()
188 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); in PackageExtractFileFn()
Dblockimg.cpp1913 int ret = pthread_join(params.thread, nullptr); in PerformBlockImageUpdate() local
1914 if (ret != 0) { in PerformBlockImageUpdate()
1915 LOG(WARNING) << "pthread join returned with " << strerror(ret); in PerformBlockImageUpdate()
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp182 bool ret = true; in ReadBlocks() local
184 ret = t.get() && ret; in ReadBlocks()
188 return ret; in ReadBlocks()
/bootable/recovery/recovery_utils/
Droots.cpp112 int ret = fstat(fd, &buf); in get_file_size() local
113 if (ret) return 0; in get_file_size()