Lines Matching refs:status

70 static std::string ErrorMessage(const android::binder::Status& status,  in ErrorMessage()  argument
72 if (!status.isOk()) { in ErrorMessage()
73 return status.exceptionMessage().string(); in ErrorMessage()
121 auto status = gsid_->getInstallProgress(&latest); in UpdateProgress() local
122 if (!status.isOk()) { in UpdateProgress()
126 if (latest.status == IGsiService::STATUS_NO_OPERATION) { in UpdateProgress()
267 auto status = gsid->openInstall(installDir, &error); in Install() local
268 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
269 std::cerr << "Could not open DSU installation: " << ErrorMessage(status, error) << "\n"; in Install()
273 auto status = gsid->createPartition("userdata", userdataSize, false, &error); in Install() local
274 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
275 std::cerr << "Could not start live image install: " << ErrorMessage(status, error) in Install()
281 status = gsid->createPartition(partition, gsiSize, true, &error); in Install()
282 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
283 std::cerr << "Could not start live image install: " << ErrorMessage(status, error) << "\n"; in Install()
290 status = gsid->commitGsiChunkFromStream(stream, gsiSize, &ok); in Install()
292 std::cerr << "Could not commit live image data: " << ErrorMessage(status) << "\n"; in Install()
296 status = gsid->closeInstall(&error); in Install()
297 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
298 std::cerr << "Could not close DSU installation: " << ErrorMessage(status, error) << "\n"; in Install()
303 status = gsid->getActiveDsuSlot(&dsuSlot); in Install()
304 if (!status.isOk()) { in Install()
305 std::cerr << "Could not get the active DSU slot: " << ErrorMessage(status) << "\n"; in Install()
308 status = gsid->enableGsi(true, dsuSlot, &error); in Install()
309 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Install()
310 std::cerr << "Could not make live image bootable: " << ErrorMessage(status, error) << "\n"; in Install()
331 auto status = gsid->removeGsi(&ok); in Wipe() local
332 if (!status.isOk() || !ok) { in Wipe()
333 std::cerr << "Could not remove GSI install: " << ErrorMessage(status) << "\n"; in Wipe()
353 auto status = gsid->isGsiRunning(&running); in WipeData() local
354 if (!status.isOk()) { in WipeData()
355 std::cerr << "error: " << status.exceptionMessage().string() << std::endl; in WipeData()
364 status = gsid->isGsiInstalled(&installed); in WipeData()
365 if (!status.isOk()) { in WipeData()
366 std::cerr << "error: " << status.exceptionMessage().string() << std::endl; in WipeData()
375 status = gsid->zeroPartition("userdata" + std::string(kDsuPostfix), &error); in WipeData()
376 if (!status.isOk() || error) { in WipeData()
377 std::cerr << "Could not wipe GSI userdata: " << ErrorMessage(status, error) << "\n"; in WipeData()
389 auto status = gsid->isGsiRunning(&running); in Status() local
390 if (!status.isOk()) { in Status()
391 std::cerr << "error: " << status.exceptionMessage().string() << std::endl; in Status()
397 status = gsid->isGsiInstalled(&installed); in Status()
398 if (!status.isOk()) { in Status()
399 std::cerr << "error: " << status.exceptionMessage().string() << std::endl; in Status()
405 status = gsid->isGsiEnabled(&enabled); in Status()
406 if (!status.isOk()) { in Status()
407 std::cerr << status.exceptionMessage().string() << std::endl; in Status()
419 status = gsid->getInstalledDsuSlots(&dsu_slots); in Status()
420 if (!status.isOk()) { in Status()
421 std::cerr << status.exceptionMessage().string() << std::endl; in Status()
428 status = gsid->openImageService("dsu/" + dsu_slot + "/", &image_service); in Status()
429 if (!status.isOk()) { in Status()
430 std::cerr << "error: " << status.exceptionMessage().string() << std::endl; in Status()
434 status = image_service->getAllBackingImages(&images); in Status()
435 if (!status.isOk()) { in Status()
436 std::cerr << "error: " << status.exceptionMessage().string() << std::endl; in Status()
443 status = image_service->getAvbPublicKey(image, &public_key, &err); in Status()
460 auto status = gsid->cancelGsiInstall(&cancelled); in Cancel() local
461 if (!status.isOk()) { in Cancel()
462 std::cerr << status.exceptionMessage().string() << std::endl; in Cancel()
509 auto status = gsid->getActiveDsuSlot(&dsuSlot); in Enable() local
510 if (!status.isOk()) { in Enable()
511 std::cerr << "Could not get the active DSU slot: " << ErrorMessage(status) << "\n"; in Enable()
516 auto status = gsid->enableGsi(one_shot, dsuSlot, &error); in Enable() local
517 if (!status.isOk() || error != IGsiService::INSTALL_OK) { in Enable()
518 std::cerr << "Error re-enabling GSI: " << ErrorMessage(status, error) << "\n"; in Enable()