Searched refs:statusProto (Results 1 – 1 of 1) sorted by relevance
2712 private static void checkSuccess(StatusProto statusProto) throws AppSearchException { in checkSuccess() argument2713 checkCodeOneOf(statusProto, StatusProto.Code.OK); in checkSuccess()2720 private static void checkCodeOneOf(StatusProto statusProto, StatusProto.Code... codes) in checkCodeOneOf() argument2723 if (codes[i] == statusProto.getCode()) { in checkCodeOneOf()2729 if (statusProto.getCode() == StatusProto.Code.WARNING_DATA_LOSS) { in checkCodeOneOf()2732 Log.w(TAG, "Encountered WARNING_DATA_LOSS: " + statusProto.getMessage()); in checkCodeOneOf()2737 ResultCodeToProtoConverter.toResultCode(statusProto.getCode()), in checkCodeOneOf()2738 statusProto.getMessage()); in checkCodeOneOf()2887 private static int statusProtoToResultCode(@NonNull StatusProto statusProto) { in statusProtoToResultCode() argument2888 return ResultCodeToProtoConverter.toResultCode(statusProto.getCode()); in statusProtoToResultCode()