Lines Matching defs:services

104     // The minimum amount of time between restarting services that we allow.
105 // That is, when multiple services are restarting, we won't allow each
120 // Maximum number of services that we allow to start in the background
133 * List of services that we have been asked to start,
141 * List of services that are scheduled to restart following a crash.
146 * List of services that are in the process of being destroyed.
167 * Information about services for a single user.
178 /* XXX eventually I'd like to have this based on processes instead of services.
179 * That is, if we try to start two services in a row both running in the same
181 * that remains until all services in it are done.
282 // TODO: Deal with global services
362 // to delay the start if there are already other background services
391 // currently running other services or receivers.
632 for (int i=proc.services.size()-1; i>=0; i--) {
633 ServiceRecord sr = proc.services.valueAt(i);
670 for (int i=proc.services.size()-1; i>=0 && !anyClientActivities; i--) {
671 ServiceRecord sr = proc.services.valueAt(i);
726 // others to know why certain services are running.
1266 // Make sure that we don't end up restarting a bunch of services
1287 // reason to hold of on restarting their services.
1503 final boolean newService = app.services.add(r);
1539 app.services.remove(r);
1760 r.app.services.remove(r);
2019 r.app.services.remove(r);
2029 // Collect any services that are waiting for this process to come up.
2053 // Also, if there are any services that are waiting to restart and
2055 // be weird to bring up the process but arbitrarily not let the services
2089 ArrayMap<ComponentName, ServiceRecord> services) {
2091 for (int i = services.size() - 1; i >= 0; i--) {
2092 ServiceRecord service = services.valueAt(i);
2107 service.app.services.remove(service);
2156 ArrayList<ServiceRecord> services = new ArrayList<>();
2161 services.add(sr);
2165 // Take care of any running services associated with the app.
2166 for (int i = services.size() - 1; i >= 0; i--) {
2167 ServiceRecord sr = services.get(i);
2190 // Report disconnected services.
2194 if (app.services.size() > 0) {
2195 Iterator<ServiceRecord> it = app.services.iterator();
2218 // Clean up any connections this application has to other services.
2226 // Clear app state from services.
2227 for (int i = app.services.size() - 1; i >= 0; i--) {
2228 ServiceRecord sr = app.services.valueAt(i);
2233 sr.app.services.remove(sr);
2290 for (int i=app.services.size()-1; i>=0; i--) {
2291 ServiceRecord sr = app.services.valueAt(i);
2296 app.services.removeAt(i);
2310 // Any services running in the application may need to be placed
2344 app.services.clear();
2346 // Make sure there are no more restarting services for this process.
2549 * Prints a list of ServiceRecords (dumpsys activity services)
2559 pw.println("ACTIVITY MANAGER SERVICES (dumpsys activity services)");
2585 pw.println(" User " + user + " active services:");
2660 pw.println(" User " + user + " delayed start services:");
2704 pw.println(" Pending services:");
2727 pw.println(" Restarting services:");
2750 pw.println(" Destroying services:");
2776 pw.println(" Connection bindings to services:");
2792 * - no service specified: dump all the services
2796 * dump all services whose component contains the first arg as a substring
2800 ArrayList<ServiceRecord> services = new ArrayList<ServiceRecord>();
2813 services.add(r1);
2840 services.add(r1);
2844 services.add(r1);
2847 services.add(r1);
2854 if (services.size() <= 0) {
2859 for (int i=0; i<services.size(); i++) {
2864 dumpService("", fd, pw, services.get(i), args, dumpAll);