Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/
DLocalManagerRegistry.java50 public static <T> T getManager(@NonNull Class<T> managerClass) { in getManager() argument
52 return (T) sManagers.get(managerClass); in getManager()
62 public static <T> T getManagerOrThrow(@NonNull Class<T> managerClass) in getManagerOrThrow() argument
64 T manager = getManager(managerClass); in getManagerOrThrow()
66 throw new ManagerNotFoundException(managerClass); in getManagerOrThrow()
78 public static <T> void addManager(@NonNull Class<T> managerClass, @NonNull T manager) { in addManager() argument
79 Objects.requireNonNull(managerClass, "managerClass"); in addManager()
82 if (sManagers.containsKey(managerClass)) { in addManager()
83 throw new IllegalStateException(managerClass.getName() + " is already registered"); in addManager()
85 sManagers.put(managerClass, manager); in addManager()
[all …]