Home | History | Annotate | Download | only in activities

Lines Matching refs:service

27 import com.android.tools.sdkcontroller.service.ControllerService;
28 import com.android.tools.sdkcontroller.service.ControllerService.ControllerBinder;
29 import com.android.tools.sdkcontroller.service.ControllerService.ControllerListener;
43 * Returns the binder. Activities can use that to query the controller service.
54 * This automatically binds to the service, starting it as needed.
56 * Since on resume we automatically bind to the service, the {@link ServiceConnection}
58 * Derived classes that need to initialize anything that is related to the service
60 * <em>not</em> in {@link #onResume()} -- since binding to the service is asynchronous
72 * This automatically unbinds from the service but does not stop it.
83 * Called when binding to the service to get the activity's {@link ControllerListener}.
89 * Called by the service once the activity is connected (bound) to it.
92 * can be used by the activity to control the service.
97 * Called by the service when it is forcibly disconnected OR when we know
98 * we're unbinding the service.
106 * Starts the service and binds to it.
114 * Called when the service is connected.
115 * Allows us to retrieve the binder to talk to the service.
118 public void onServiceConnected(ComponentName name, IBinder service) {
119 if (DEBUG) Log.d(TAG, "Activity connected to service");
120 mServiceBinder = (ControllerBinder) service;
126 * Called when the service got disconnected, e.g. because it crashed.
127 * This is <em>not</em> called when we unbind from the service.
131 if (DEBUG) Log.d(TAG, "Activity disconnected from service");
138 // Start service so that it doesn't stop when we unbind
139 if (DEBUG) Log.d(TAG, "start requested & bind service");
140 Intent service = new Intent(this, ControllerService.class);
141 startService(service);
142 bindService(service,
148 * Unbinds from the service but does not actually stop the service.
153 if (DEBUG) Log.d(TAG, "unbind service");