Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DVersionInfo.java77 public void checkVersion(VersionInfo plugin) throws InvalidVersionException { in checkVersion()
87 throw new InvalidVersionException(aClass.getSimpleName() in checkVersion()
91 throw new InvalidVersionException(aClass, v.mVersion < version.mVersion, in checkVersion()
101 throw new InvalidVersionException("Missing required dependency " in checkVersion()
120 public static class InvalidVersionException extends RuntimeException { class in VersionInfo
123 public InvalidVersionException(String str, boolean tooNew) { in InvalidVersionException() method in VersionInfo.InvalidVersionException
128 public InvalidVersionException(Class<?> cls, boolean tooNew, int expected, int actual) { in InvalidVersionException() method in VersionInfo.InvalidVersionException
DPluginInstanceManager.java45 import com.android.systemui.shared.plugins.VersionInfo.InvalidVersionException;
361 } catch (InvalidVersionException e) { in handleLoadPlugin()
409 throws InvalidVersionException { in checkVersion()
416 throw new InvalidVersionException("Invalid legacy version", false); in checkVersion()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DVersionInfoTest.java28 import com.android.systemui.shared.plugins.VersionInfo.InvalidVersionException;
61 mThrown.expect(InvalidVersionException.class); in testIncorrectVersion()
69 mThrown.expect(InvalidVersionException.class); in testMissingRequired()
77 mThrown.expect(InvalidVersionException.class); in testMissingDependencies()
DPluginInstanceManagerTest.java55 import com.android.systemui.shared.plugins.VersionInfo.InvalidVersionException;
162 doThrow(new InvalidVersionException("", false)).when(mMockVersionInfo).checkVersion(any()); in testIncorrectVersion()