Home
last modified time | relevance | path

Searched refs:errorCode (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DUpdateEngineErrorCodes.java76 public static boolean isUpdateSucceeded(int errorCode) { in isUpdateSucceeded() argument
77 return SUCCEEDED_COMPLETION_CODES.contains(errorCode); in isUpdateSucceeded()
83 public static String getCodeName(int errorCode) { in getCodeName() argument
84 return CODE_TO_NAME_MAP.get(errorCode); in getCodeName()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
DUpdateManager.java508 private void onPayloadApplicationComplete(int errorCode) { in onPayloadApplicationComplete() argument
509 Log.d(TAG, "onPayloadApplicationComplete invoked, errorCode=" + errorCode); in onPayloadApplicationComplete()
510 mEngineErrorCode.set(errorCode); in onPayloadApplicationComplete()
511 if (errorCode == UpdateEngine.ErrorCodeConstants.SUCCESS in onPayloadApplicationComplete()
512 || errorCode == UpdateEngineErrorCodes.UPDATED_BUT_NOT_ACTIVE) { in onPayloadApplicationComplete()
516 } else if (errorCode != UpdateEngineErrorCodes.USER_CANCELLED) { in onPayloadApplicationComplete()
521 .ifPresent(callback -> callback.accept(errorCode)); in onPayloadApplicationComplete()
534 public void onPayloadApplicationComplete(int errorCode) { in onPayloadApplicationComplete() argument
535 UpdateManager.this.onPayloadApplicationComplete(errorCode); in onPayloadApplicationComplete()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/
DMainActivity.java293 private void onEnginePayloadApplicationComplete(int errorCode) { in onEnginePayloadApplicationComplete() argument
294 final String completionState = UpdateEngineErrorCodes.isUpdateSucceeded(errorCode) in onEnginePayloadApplicationComplete()
299 + UpdateEngineErrorCodes.getCodeName(errorCode) + "/" + errorCode in onEnginePayloadApplicationComplete()
302 setUiEngineErrorCode(errorCode); in onEnginePayloadApplicationComplete()
400 private void setUiEngineErrorCode(int errorCode) { in setUiEngineErrorCode() argument
401 String errorText = UpdateEngineErrorCodes.getCodeName(errorCode); in setUiEngineErrorCode()
402 mTextViewEngineErrorCode.setText(errorText + "/" + errorCode); in setUiEngineErrorCode()