Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyExceptionUtils.java69 public static int throwOnError(int errorFlag) throws BufferQueueAbandonedException { in throwOnError() argument
70 if (errorFlag == NO_ERROR) { in throwOnError()
72 } else if (errorFlag == BAD_VALUE) { in throwOnError()
76 if (errorFlag < 0) { in throwOnError()
77 throw new UnsupportedOperationException("Unknown error " + errorFlag); in throwOnError()
79 return errorFlag; in throwOnError()
87 public static void throwOnServiceError(int errorFlag) { in throwOnServiceError() argument
91 if (errorFlag >= NO_ERROR) { in throwOnServiceError()
93 } else if (errorFlag == PERMISSION_DENIED) { in throwOnServiceError()
96 } else if (errorFlag == ALREADY_EXISTS) { in throwOnServiceError()
[all …]