/bootable/recovery/updater/ |
D | updater.cpp | 43 setlinebuf(cmd_pipe_.get()); in Init() 83 fprintf(cmd_pipe_.get(), "ui_print script succeeded: result was [%s]\n", result_.c_str()); in RunUpdate() 86 fprintf(cmd_pipe_.get(), "log cause: %d\n", state.cause_code); in RunUpdate() 99 fprintf(cmd_pipe_.get(), "%s\n", std::string(message).c_str()); in WriteToCommandPipe() 101 fflush(cmd_pipe_.get()); in WriteToCommandPipe() 111 fprintf(cmd_pipe_.get(), "ui_print %s\n", line.c_str()); in UiPrint() 129 fprintf(cmd_pipe_.get(), "ui_print script aborted (no error message)\n"); in ParseAndReportErrorCode() 141 fprintf(cmd_pipe_.get(), "ui_print %s\n", line.c_str()); in ParseAndReportErrorCode() 150 fprintf(cmd_pipe_.get(), "log error: %d\n", state->error_code); in ParseAndReportErrorCode() 153 fprintf(cmd_pipe_.get(), "log cause: %d\n", state->cause_code); in ParseAndReportErrorCode() [all …]
|
/bootable/recovery/tests/unit/ |
D | verifier_test.cpp | 57 ASSERT_EQ(expected, verify_file(package.get(), keys)); in VerifyFile() 66 ASSERT_EQ(VERIFY_SUCCESS, verify_file(package.get(), certs)); in VerifyPackageWithCertificates() 175 BN_set_word(exponent.get(), 3); in TEST() 176 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in TEST() 180 BN_set_word(exponent.get(), 17); in TEST() 181 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in TEST() 185 BN_set_word(exponent.get(), 3); in TEST() 186 RSA_generate_key_ex(rsa.get(), 1024, exponent.get(), nullptr); in TEST() 192 ASSERT_EQ(1, EC_KEY_generate_key(ec.get())); in TEST() 197 ASSERT_EQ(1, EC_KEY_generate_key(ec.get())); in TEST() [all …]
|
D | screen_ui_test.cpp | 237 image.get(), in TEST_F() 238 image.get(), in TEST_F() 239 image.get(), in TEST_F() 241 GraphicMenu menu(header.get(), items, 0, draw_funcs_); in TEST_F() 264 image.get(), in TEST_F() 265 image.get(), in TEST_F() 266 image.get(), in TEST_F() 269 ASSERT_TRUE(GraphicMenu::Validate(200, 200, header.get(), items)); in TEST_F() 273 ASSERT_FALSE(GraphicMenu::Validate(299, 200, wide_surface.get(), items)); in TEST_F() 276 items.emplace_back(image.get()); in TEST_F() [all …]
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 230 draw_funcs_.DrawTextIcon(x, y, graphic_headers_.get()); in DrawHeader() 251 draw_funcs_.DrawTextIcon(x, y + offset, item.get()); in DrawItems() 350 return intro_done_ ? loop_frames_[current_frame_].get() : intro_frames_[current_frame_].get(); in GetCurrentFrame() 352 return error_icon_.get(); in GetCurrentFrame() 358 return erasing_text_.get(); in GetCurrentText() 360 return error_text_.get(); in GetCurrentText() 362 return installing_text_.get(); in GetCurrentText() 364 return no_command_text_.get(); in GetCurrentText() 400 gr_get_height(loop_frames_[0].get()); in GetAnimationBaseline() 405 gr_get_height(installing_text_.get()); in GetTextBaseline() [all …]
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ |
D | UpdaterState.java | 73 public int get() { in get() method in UpdaterState 74 return mState.get(); in get() 83 int oldState = mState.get(); in set() 84 if (!TRANSITIONS.get(oldState).contains(newState)) { in set() 95 return STATE_MAP.get(state); in getStateText()
|
D | UpdateManager.java | 100 getOnStateChangeCallback().ifPresent(callback -> callback.accept(mUpdaterState.get())); in bind() 114 return mUpdaterState.get(); in getUpdaterState() 122 return mManualSwitchSlotRequired.get(); in isManualSwitchSlotRequired() 229 int previousState = mUpdaterState.get(); in setUpdaterState() 425 int state = mUpdaterState.get(); in synchronizeUpdaterStateWithUpdateEngineStatus() 426 int engineStatus = mUpdateEngineStatus.get(); in synchronizeUpdaterStateWithUpdateEngineStatus() 491 int previousStatus = mUpdateEngineStatus.get(); in onStatusUpdate() 501 getOnProgressUpdateCallback().ifPresent(callback -> callback.accept(mProgress.get())); in onStatusUpdate()
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/services/ |
D | PrepareUpdateService.java | 171 || !Paths.get(OTA_PACKAGE_DIR, PAYLOAD_PROPERTIES_FILE_NAME).toFile().exists()) { in execute() 175 File compatibilityFile = Paths.get(OTA_PACKAGE_DIR, COMPATIBILITY_ZIP_FILE_NAME).toFile(); in execute() 185 payloadBinary.get().getOffset(), in execute() 186 payloadBinary.get().getSize(), in execute() 187 Paths.get(OTA_PACKAGE_DIR, PAYLOAD_PROPERTIES_FILE_NAME).toFile()); in execute() 209 Path metadataPath = Paths.get(OTA_PACKAGE_DIR, PackageFiles.PAYLOAD_METADATA_FILE_NAME); in verifyPayloadMetadata() 214 metadataPackageFile.get().getOffset(), in verifyPayloadMetadata() 215 metadataPackageFile.get().getSize(), in verifyPayloadMetadata() 243 Files.deleteIfExists(Paths.get(OTA_PACKAGE_DIR, file)); in downloadPreStreamingFiles() 253 Paths.get(dir, file.getFilename()).toFile()); in downloadPreStreamingFiles()
|
/bootable/recovery/install/ |
D | verifier.cpp | 281 key.rsa.get())) { in verify_file() 289 if (!ECDSA_verify(0, hash, key.hash_len, sig_der.data(), sig_der.size(), key.ec.get())) { in verify_file() 371 RSA_get0_key(rsa.get(), &out_n, &out_e, nullptr /* private exponent */); in CheckRSAKey() 392 const EC_GROUP* ec_group = EC_KEY_get0_group(ec_key.get()); in CheckECKey() 411 PEM_read_bio_X509(content.get(), nullptr, nullptr, nullptr), X509_free); in LoadCertificateFromBuffer() 417 int nid = X509_get_signature_nid(x509.get()); in LoadCertificateFromBuffer() 436 std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> public_key(X509_get_pubkey(x509.get()), in LoadCertificateFromBuffer() 443 int key_type = EVP_PKEY_id(public_key.get()); in LoadCertificateFromBuffer() 447 cert->rsa.reset(EVP_PKEY_get1_RSA(public_key.get())); in LoadCertificateFromBuffer() 455 cert->ec.reset(EVP_PKEY_get1_EC_KEY(public_key.get())); in LoadCertificateFromBuffer()
|
D | adb_install.cpp | 117 *result = InstallPackage(package.get(), FUSE_SIDELOAD_HOST_PATHNAME, false, 0, ui); in AdbInstallPackageHandler() 201 ev.data.fd = socket_fd.get(); in ListenAndExecuteMinadbdCommands() 203 if (epoll_ctl(epoll_fd.get(), EPOLL_CTL_ADD, socket_fd.get(), &ev) == -1) { in ListenAndExecuteMinadbdCommands() 219 TEMP_FAILURE_RETRY(epoll_wait(epoll_fd.get(), events, EPOLL_MAX_EVENTS, TIMEOUT_MILLIS)); in ListenAndExecuteMinadbdCommands() 237 if (!HandleMessageFromMinadbd(socket_fd.get(), command_map)) { in ListenAndExecuteMinadbdCommands()
|
D | package.cpp | 139 off64_t file_size = lseek64(fd.get(), 0, SEEK_END); in CreateFilePackage() 234 if (!android::base::ReadFullyAtOffset(fd_.get(), buffer, byte_count, offset)) { in ReadFullyAtOffset() 272 if (auto err = OpenArchiveFd(fd_.get(), path_.c_str(), &zip_handle_, false); err != 0) { in GetZipArchiveHandle()
|
D | wipe_device.cpp | 181 if (!CheckWipePackage(wipe_package.get(), ui)) { in WipeAbDevice() 186 auto partition_list = GetWipePartitionList(wipe_package.get()); in WipeAbDevice()
|
D | fuse_install.cpp | 71 while ((de = readdir(d.get())) != nullptr) { in BrowseDirectory() 187 InstallPackage(package.get(), FUSE_SIDELOAD_HOST_PATHNAME, false, 0 /* retry_count */, ui); in InstallWithFuseFromPath()
|
/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 149 if (fd.get() == -1) { in ReadBlocks() 159 if (lseek64(fd.get(), static_cast<off64_t>(range_start) * kBlockSize, SEEK_SET) == -1) { in ReadBlocks() 167 if (!android::base::ReadFully(fd.get(), buf.data(), to_read)) { in ReadBlocks() 184 ret = t.get() && ret; in ReadBlocks() 225 if (care_map_fd.get() == -1) { in ParseCareMap() 231 if (!android::base::ReadFdToString(care_map_fd.get(), &file_content)) { in ParseCareMap()
|
/bootable/recovery/minui/ |
D | events.cpp | 126 android::base::unique_fd dfd(openat(dirfd(dir.get()), pevent->name, O_RDONLY)); in inotify_cb() 151 if (inotify_fd.get() == -1) { in ev_init() 166 while ((de = readdir(dir.get())) != nullptr) { in ev_init() 168 android::base::unique_fd fd(openat(dirfd(dir.get()), de->d_name, O_RDONLY | O_CLOEXEC)); in ev_init() 204 return g_epoll_fd.get(); in ev_get_epollfd()
|
D | graphics_fbdev.cpp | 128 gr_draw = gr_framebuffer[1].get(); in Init() 133 printf("framebuffer: %d (%zu x %zu)\n", fb_fd.get(), gr_draw->width, gr_draw->height); in Init() 145 gr_draw = gr_framebuffer[displayed_buffer].get(); in Flip()
|
D | graphics_drm.cpp | 296 if (uint64_t cap = 0; drmGetCap(fd.get(), DRM_CAP_DUMB_BUFFER, &cap) != 0 || cap == 0) { in Init() 300 res = drmModeGetResources(fd.get()); in Init() 307 if (find_first_connected_connector(fd.get(), res)) { in Init() 361 return GRSurfaceDrms[0].get(); in Init() 403 return GRSurfaceDrms[current_buffer].get(); in Flip()
|
D | graphics_adf.cpp | 189 Sync(surfaces[current_surface].get()); in Flip() 190 return surfaces[current_surface].get(); in Flip()
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 230 Bitmap b = savedBitmaps.get(loc); 239 countByLanguage.put(lang, countByLanguage.get(lang)+1); 252 Bitmap bm = savedBitmaps.get(loc); 298 if (countByLanguage.get(lang) > 1) { 299 countByLanguage.put(lang, countByLanguage.get(lang)-1);
|
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/ |
D | FileDownloaderTest.java | 62 .get(mTargetContext.getCacheDir().getAbsolutePath(), "ota.zip") in download_downloadsChunkOfZip() 70 .get(mTargetContext.getCacheDir().getAbsolutePath(), "care_map.txt") in download_downloadsChunkOfZip()
|
D | PayloadSpecsTest.java | 77 .get(mTargetContext.getCacheDir().getAbsolutePath(), "ota.zip") in forNonStreaming_works() 91 spec.getProperties().get(0)); in forNonStreaming_works()
|
/bootable/recovery/applypatch/ |
D | freecache.cpp | 49 while ((de = readdir(d.get())) != 0) { in EliminateOpenFiles() 62 while ((fdde = readdir(fdd.get())) != 0) { in EliminateOpenFiles() 91 while ((de = readdir(d.get())) != 0) { in FindExpendableFiles()
|
/bootable/recovery/tools/image_generator/ |
D | ImageGenerator.java | 385 return mLoadedFontMap.get(language); in loadFontsByLocale() 571 int[] pixel = {info.get(i)}; in drawText() 618 textWidth = Math.max(textWidth, measureTextWidth(localizedTextMap.get(locale), locale)); in generateImage() 627 Locale fallbackLocale = fallbackLocaleMap.get(locale.getLanguage()); in generateImage() 632 } else if (localizedTextMap.get(locale).equals(localizedTextMap.get(fallbackLocale))) { in generateImage() 637 drawText(localizedTextMap.get(locale), locale, languageTag); in generateImage()
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/ |
D | UpdateEngineStatuses.java | 47 return STATUS_MAP.get(status); in getStatusText()
|
D | UpdateEngineErrorCodes.java | 84 return CODE_TO_NAME_MAP.get(errorCode); in getCodeName()
|
/bootable/recovery/updater/include/updater/ |
D | updater.h | 57 return runtime_.get(); in GetRuntime()
|