Home
last modified time | relevance | path

Searched refs:get (Results 1 – 11 of 11) sorted by relevance

/bootable/recovery/uncrypt/
Duncrypt.cpp267 if (!android::base::WriteStringToFd(s, mapfd.get())) { in produce_block_map()
307 if (ioctl(fd.get(), FIBMAP, &block) != 0) { in produce_block_map()
313 if (write_at_offset(buffers[head].data(), sb.st_blksize, wfd.get(), in produce_block_map()
326 if (!android::base::ReadFully(fd.get(), buffers[tail].data(), to_read)) { in produce_block_map()
343 if (ioctl(fd.get(), FIBMAP, &block) != 0) { in produce_block_map()
349 if (write_at_offset(buffers[head].data(), sb.st_blksize, wfd.get(), in produce_block_map()
359 android::base::StringPrintf("%zu\n", ranges.size() / 2), mapfd.get())) { in produce_block_map()
365 android::base::StringPrintf("%d %d\n", ranges[i], ranges[i+1]), mapfd.get())) { in produce_block_map()
371 if (fsync(mapfd.get()) == -1) { in produce_block_map()
375 if (close(mapfd.get()) == -1) { in produce_block_map()
[all …]
Dbootloader_message_writer.cpp67 if (fd.get() == -1) { in write_bootloader_message()
72 if (!android::base::WriteFully(fd.get(), &boot, sizeof(boot))) { in write_bootloader_message()
78 if (fsync(fd.get()) == -1) { in write_bootloader_message()
/bootable/recovery/
Dverifier.cpp272 sig_der_length, key.rsa.get())) { in verify_file()
283 sig_der_length, key.ec.get())) { in verify_file()
342 std::reverse((uint8_t*)modulus.get(), in parse_rsa_key()
343 (uint8_t*)(modulus.get() + key_len_words)); in parse_rsa_key()
366 key->n = BN_bin2bn((uint8_t*)modulus.get(), in parse_rsa_key()
399 if (key_len_bytes != BN_num_bytes(EC_GROUP_get0_order(group.get()))) { in parse_ec_key()
421 point[i].reset(BN_bin2bn(bytes.get(), key_len_bytes, nullptr)); in parse_ec_key()
437 if (!key || !EC_KEY_set_group(key.get(), group.get()) || in parse_ec_key()
438 !EC_KEY_set_public_key_affine_coordinates(key.get(), point[0].get(), in parse_ec_key()
439 point[1].get())) { in parse_ec_key()
[all …]
Dunique_fd.h39 int get() { in get() function
Dbootloader.cpp195 if (fd.get() == -1) { in set_bootloader_message_block()
204 ssize_t wrote = TEMP_FAILURE_RETRY(write(fd.get(), start + written, total - written)); in set_bootloader_message_block()
213 if (fsync(fd.get()) == -1) { in set_bootloader_message_block()
Dinterlace-frames.py74 num_frames = int(img.info.get('Frames', 1))
Dscreen_ui.cpp482 while ((de = readdir(dir.get())) != nullptr) { in LoadAnimation()
/bootable/recovery/applypatch/
Dfreecache.cpp44 while ((de = readdir(d.get())) != 0) { in EliminateOpenFiles()
57 while ((fdde = readdir(fdd.get())) != 0) { in EliminateOpenFiles()
90 while ((de = readdir(d.get())) != 0) { in FindExpendableFiles()
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java211 Bitmap b = savedBitmaps.get(loc);
220 countByLanguage.put(lang, countByLanguage.get(lang)+1);
233 Bitmap bm = savedBitmaps.get(loc);
279 if (countByLanguage.get(lang) > 1) {
280 countByLanguage.put(lang, countByLanguage.get(lang)-1);
/bootable/recovery/updater/
Dinstall.cpp1218 patch_shas.emplace_back(arg_values.get()[i], FreeValue); in ApplyPatchFn()
1219 patches.emplace_back(arg_values.get()[i+1], FreeValue); in ApplyPatchFn()
1237 patch_ptrs.push_back(patches[i].get()); in ApplyPatchFn()
1367 args.emplace_back(arg_values.get()[i], FreeValue); in Sha1CheckFn()
Dblockimg.cpp497 while ((item = readdir(directory.get())) != nullptr) { in EnumerateStash()