1 // Copyright 2014 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.base.library_loader; 6 7 import androidx.annotation.IntDef; 8 9 import java.lang.annotation.Retention; 10 import java.lang.annotation.RetentionPolicy; 11 12 /** 13 * These are the possible failures from the LibraryLoader 14 */ 15 @IntDef({LoaderErrors.NORMAL_COMPLETION, LoaderErrors.FAILED_TO_REGISTER_JNI, 16 LoaderErrors.NATIVE_LIBRARY_LOAD_FAILED, LoaderErrors.NATIVE_LIBRARY_WRONG_VERSION, 17 LoaderErrors.NATIVE_STARTUP_FAILED}) 18 @Retention(RetentionPolicy.SOURCE) 19 public @interface LoaderErrors { 20 int NORMAL_COMPLETION = 0; 21 int FAILED_TO_REGISTER_JNI = 1; 22 int NATIVE_LIBRARY_LOAD_FAILED = 2; 23 int NATIVE_LIBRARY_WRONG_VERSION = 3; 24 int NATIVE_STARTUP_FAILED = 4; 25 } 26