Home | History | Annotate | Download | only in server

Lines Matching refs:service

49      * Starts a service by class name.
51 * @return The service instance.
60 throw new RuntimeException("Failed to create service " + className
61 + ": service class not found, usually indicates that the caller should "
70 * Creates and starts a system service. The class must be a subclass of
74 * @return The service instance, never null.
75 * @throws RuntimeException if the service fails to start.
84 // Create the service.
87 + ": service must extend " + SystemService.class.getName());
89 final T service;
92 service = constructor.newInstance(mContext);
94 throw new RuntimeException("Failed to create service " + name
95 + ": service could not be instantiated", ex);
97 throw new RuntimeException("Failed to create service " + name
98 + ": service must have a public constructor with a Context argument", ex);
100 throw new RuntimeException("Failed to create service " + name
101 + ": service must have a public constructor with a Context argument", ex);
103 throw new RuntimeException("Failed to create service " + name
104 + ": service constructor threw an exception", ex);
108 mServices.add(service);
112 service.onStart();
114 throw new RuntimeException("Failed to start service " + name
117 return service;
140 final SystemService service = mServices.get(i);
142 service.onBootPhase(mCurrentPhase);
144 throw new RuntimeException("Failed to boot service "
145 + service.getClass().getName()
158 final SystemService service = mServices.get(i);
160 service.onStartUser(userHandle);
163 + " to service " + service.getClass().getName(), ex);
171 final SystemService service = mServices.get(i);
173 service.onUnlockUser(userHandle);
176 + " to service " + service.getClass().getName(), ex);
184 final SystemService service = mServices.get(i);
186 service.onSwitchUser(userHandle);
189 + " to service " + service.getClass().getName(), ex);
197 final SystemService service = mServices.get(i);
199 service.onStopUser(userHandle);
202 + " to service " + service.getClass().getName(), ex);
210 final SystemService service = mServices.get(i);
212 service.onCleanupUser(userHandle);
215 + " to service " + service.getClass().getName(), ex);
242 final SystemService service = mServices.get(i);
244 .append(service.getClass().getSimpleName())