/bootable/recovery/applypatch/ |
D | imgpatch.cpp | 70 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 …]
|
D | imgdiff.cpp | 410 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/ |
D | recovery-refresh.cpp | 52 ssize_t ret; in main() local 67 ret = __android_log_pmsg_file_read( in main() 71 return (ret < 0) ? ret : 0; in main()
|
D | recovery_main.cpp | 213 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/ |
D | recovery_test.cpp | 54 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/ |
D | bootloader_message.cpp | 71 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/ |
D | snapshot_utils.cpp | 69 auto ret = sm->RecoveryCreateSnapshotDevices(); in CreateSnapshotPartitions() local 70 if (ret == CreateResult::ERROR) { in CreateSnapshotPartitions()
|
/bootable/recovery/minui/ |
D | events.cpp | 94 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()
|
D | graphics_fbdev.cpp | 42 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()
|
D | graphics_adf.cpp | 157 GRSurface* ret = Flip(); in Init() local 162 return ret; in Init()
|
D | graphics.cpp | 359 int ret = gr_init_font("font", &gr_font); in gr_init() local 360 if (ret != 0) { in gr_init() 362 ret); in gr_init()
|
/bootable/recovery/updater/ |
D | dynamic_partitions.cpp | 60 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()
|
D | target_files.cpp | 175 if (auto ret = OpenArchive(path_.c_str(), &handle_); ret != 0) { in Open() local 176 LOG(ERROR) << "failed to open source target file " << path_ << ": " << ErrorCodeString(ret); in Open()
|
D | updater_runtime_dynamic_partitions.cpp | 125 uint64_t ret; in uint_arg() local 126 if (!android::base::ParseUint(str, &ret)) { in uint_arg() 130 return ret; in uint_arg()
|
D | updater_runtime.cpp | 137 int ret = unmount_mounted_volume(vol); in Unmount() local 138 return { true, ret }; in Unmount()
|
D | install.cpp | 139 int32_t ret = ExtractEntryToFile(za, &entry, fd); in PackageExtractFileFn() local 140 if (ret != 0) { in PackageExtractFileFn() 143 << "\": " << ErrorCodeString(ret); in PackageExtractFileFn() 177 int32_t ret = in PackageExtractFileFn() local 179 if (ret != 0) { in PackageExtractFileFn() 182 zip_path.c_str(), buffer.size(), ErrorCodeString(ret)); in PackageExtractFileFn()
|
D | blockimg.cpp | 1913 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/ |
D | update_verifier.cpp | 182 bool ret = true; in ReadBlocks() local 184 ret = t.get() && ret; in ReadBlocks() 188 return ret; in ReadBlocks()
|
/bootable/recovery/recovery_utils/ |
D | roots.cpp | 112 int ret = fstat(fd, &buf); in get_file_size() local 113 if (ret) return 0; in get_file_size()
|