/frameworks/base/cmds/service/ |
H A D | Android.mk | 5 service.cpp 15 LOCAL_MODULE:= service
|
H A D | service.cpp | 33 static String16 get_interface_name(sp<IBinder> service) argument 35 if (service != NULL) { 37 status_t err = service->transact(IBinder::INTERFACE_TRANSACTION, data, &reply); 63 aerr << "service: Unable to get default service manager!" << endl; 81 aerr << "service: Unknown option -" << ic << endl; 94 sp<IBinder> service = sm->checkService(String16(argv[optind])); local 96 (service == NULL ? ": not found" : ": found") << endl; 98 aerr << "service: No service specifie 108 sp<IBinder> service = sm->checkService(name); local 118 sp<IBinder> service = sm->checkService(String16(argv[optind++])); local [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ServiceConnection.java | 22 * Interface for monitoring the state of an application service. See 34 * @param name The concrete component name of the service that has 37 * @param service The IBinder of the Service's communication channel, 40 public void onServiceConnected(ComponentName name, IBinder service); argument 44 * happens when the process hosting the service has crashed or been killed. 46 * binding to the service will remain active, and you will receive a call 49 * @param name The concrete component name of the service whose
|
H A D | BroadcastReceiver.java | 105 * <p>In particular, you may <i>not</i> show a dialog or bind to a service from 109 * send a command to the service. 183 * to interact with a service that is already running, you can use 200 * Provide a binder to an already-running service. This method is synchronous 201 * and will not start the target service if it is not present, so it is safe 205 * @param service The Intent indicating the service you wish to use. See {@link 208 public IBinder peekService(Context myContext, Intent service) { argument 212 binder = am.peekService(service, service [all...] |
/frameworks/base/core/java/android/app/ |
H A D | IServiceConnection.aidl | 24 void connected(in ComponentName name, IBinder service);
|
H A D | NotificationManager.java | 90 INotificationManager service = getService(); 94 service.enqueueNotification(pkg, id, notification, idOut); 109 INotificationManager service = getService(); 113 service.cancelNotification(pkg, id); 124 INotificationManager service = getService(); 128 service.cancelAllNotifications(pkg);
|
H A D | AlarmManager.java | 39 * is possible that the phone will sleep before the requested service is launched. 42 * service becomes available. 90 AlarmManager(IAlarmManager service) { argument 91 mService = service;
|
/frameworks/base/core/java/android/os/ |
H A D | ServiceManager.java | 38 // Find the service manager 44 * Returns a reference to a service with the given name. 46 * @param name the name of the service to get 47 * @return a reference to the service, or <code>null</code> if the service doesn't exist 51 IBinder service = sCache.get(name); 52 if (service != null) { 53 return service; 64 * Place a new @a service called @a name into the service 70 addService(String name, IBinder service) argument [all...] |
H A D | ServiceManagerNative.java | 21 * Native implementation of the service manager. Most clients will only 28 * Cast a Binder object into a service manager interface, generating 57 IBinder service = getService(name); 58 reply.writeStrongBinder(service); 65 IBinder service = checkService(name); 66 reply.writeStrongBinder(service); 73 IBinder service = data.readStrongBinder(); 74 addService(name, service); 139 public void addService(String name, IBinder service) argument 145 data.writeStrongBinder(service); [all...] |
H A D | IServiceManager.java | 32 * Retrieve an existing service called @a name from the 33 * service manager. Blocks for a few seconds waiting for it to be 39 * Retrieve an existing service called @a name from the 40 * service manager. Non-blocking. 45 * Place a new @a service called @a name into the service 48 public void addService(String name, IBinder service) throws RemoteException; argument 56 * Assign a permission controller to the service manager. After set, this
|
/frameworks/base/media/java/android/media/ |
H A D | AudioManager.java | 362 IAudioService service = getService(); 364 service.adjustStreamVolume(streamType, direction, flags); 385 IAudioService service = getService(); 387 service.adjustVolume(direction, flags); 408 IAudioService service = getService(); 410 service.adjustSuggestedStreamVolume(direction, suggestedStreamType, flags); 424 IAudioService service = getService(); 426 return service.getRingerMode(); 441 IAudioService service = getService(); 443 return service [all...] |
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/ |
H A D | ServiceTest.java | 120 public void onServiceConnected(ComponentName name, IBinder service) { argument 143 public void onServiceConnected(ComponentName name, IBinder service) { argument 149 service.transact(SET_REPORTER_CODE, data, null, 0); 191 void startExpectResult(Intent service) { argument 192 startExpectResult(service, new Bundle()); 195 void startExpectResult(Intent service, Bundle bundle) { argument 201 getContext().startService(new Intent(service).putExtras(bundle)); 202 waitForResultOrThrow(5 * 1000, "service to start first time"); 205 getContext().startService(new Intent(service).putExtras(bundle)); 206 waitForResultOrThrow(5 * 1000, "service t 223 startExpectNoPermission(Intent service) argument 232 bindExpectResult(Intent service) argument 339 bindAutoExpectResult(Intent service) argument 363 bindExpectNoPermission(Intent service) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | AccessibilityManagerService.java | 64 * This class is instantiated by the system as a system level service and can be 65 * accessed only by the system. The task of this service is to be a centralized 115 Service service = (Service) message.obj; 119 notifyEventListenerLocked(service, eventType); 120 AccessibilityEvent oldEvent = service.mPendingEvents.get(eventType); 121 service.mPendingEvents.remove(eventType); 260 Service service = mServices.get(i); 262 service.mServiceInterface.onInterrupt(); 265 Log.w(LOG_TAG, "Dead " + service.mService + ". Cleaning up."); 266 if (removeDeadServiceLocked(service)) { 352 notifyAccessibilityServiceDelayedLocked(Service service, AccessibilityEvent event) argument 400 notifyEventListenerLocked(Service service, int eventType) argument 427 removeDeadServiceLocked(Service service) argument 456 canDispathEventLocked(Service service, AccessibilityEvent event, int handledFeedbackTypes) argument 653 onServiceConnected(ComponentName componentName, IBinder service) argument [all...] |
H A D | MasterClearReceiver.java | 40 ICheckinService service = 43 if (service != null) { 46 service.masterClear();
|
H A D | BootReceiver.java | 31 Intent service = new Intent(context, com.android.server.LoadAverageService.class); 36 context.startService(service);
|
/frameworks/base/core/java/android/webkit/ |
H A D | UrlInterceptHandler.java | 37 public CacheResult service(String url, Map<String, String> headers); method in interface:UrlInterceptHandler
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | AppBindRecord.java | 24 * An association between a service and one of its client applications. 27 final ServiceRecord service; // The running service. field in class:AppBindRecord 29 final ProcessRecord client; // Who has started/bound the service. 35 pw.println(prefix + "service=" + service); 53 service = _service; 61 + " " + service.shortName + ":" + client.processName + "}";
|
H A D | HistoryRecord.java | 46 final ActivityManagerService service; // owner field in class:HistoryRecord 181 service = _service; 334 service.mWindowManager.pauseKeyDispatching(this); 341 service.mWindowManager.resumeKeyDispatching(this); 357 service.mWindowManager.startAppFreezingScreen(this, configChanges); 364 service.mWindowManager.stopAppFreezingScreen(this, force); 369 synchronized(service) { 373 final long totalTime = service.mInitialStartTime != 0 374 ? (curTime - service.mInitialStartTime) : thisTime; 379 StringBuilder sb = service [all...] |
H A D | IntentBindRecord.java | 30 /** The running service. */ 31 final ServiceRecord service; field in class:IntentBindRecord 37 /** Binder published from service. */ 43 /** Set when we still need to tell the service all clients are unbound. */ 45 /** Set when the service's onUnbind() has asked to be told about new clients. */ 51 pw.print(prefix); pw.print("service="); pw.println(service); 77 service = _service; 89 sb.append(service.shortName);
|
/frameworks/base/tools/layoutlib/bridge/src/android/os/ |
H A D | ServiceManager.java | 24 * Returns a reference to a service with the given name. 26 * @param name the name of the service to get 27 * @return a reference to the service, or <code>null</code> if the service doesn't exist 34 * Place a new @a service called @a name into the service 37 * @param name the name of the new service 38 * @param service the service object 40 public static void addService(String name, IBinder service) { argument [all...] |
/frameworks/base/cmds/dumpsys/ |
H A D | dumpsys.cpp | 34 LOGE("Unable to get default service manager!"); 35 aerr << "dumpsys: Unable to get default service manager!" << endl; 58 sp<IBinder> service = sm->checkService(services[i]); local 59 if (service != NULL) { 65 sp<IBinder> service = sm->checkService(services[i]); local 66 if (service != NULL) { 70 int err = service->dump(STDOUT_FILENO, args); 72 aerr << "Error dumping service info: (" << strerror(err) 76 aerr << "Can't find service: " << services[i] << endl;
|
/frameworks/base/core/java/com/google/android/net/ |
H A D | ParentalControl.java | 62 ICheckinService service = 67 service.getParentalControlState(remoteCallback, requestingApp); 70 Log.e("ParentalControl", "Failed to talk to the checkin service.");
|
/frameworks/base/core/java/android/accounts/ |
H A D | AccountMonitor.java | 37 * connection to the accounts service is only made when it needs to 52 public AccountUpdater(IBinder service) { argument 53 mService = service; 65 // if the service was killed then the system will restart it and when it does we 122 public void onServiceConnected(ComponentName className, IBinder service) { argument 124 new AccountUpdater(service).start(); 139 " (Missing service?)");
|
/frameworks/base/cmds/runtime/ |
H A D | ServiceManager.cpp | 49 status_t BServiceManager::addService(const String16& name, const sp<IBinder>& service) argument 52 LOGI("ServiceManager: addService(%s, %p)\n", String8(name).string(), service.get()); 53 const ssize_t res = mServices.add(name, service);
|
/frameworks/base/core/java/android/net/ |
H A D | ConnectivityManager.java | 287 public ConnectivityManager(IConnectivityManager service) { argument 288 if (service == null) { 290 "ConnectivityManager() cannot be constructed with null service"); 292 mService = service;
|