Home
last modified time | relevance | path

Searched refs:service (Results 1 – 25 of 471) sorted by relevance

12345678910>>...19

/frameworks/base/media/java/android/media/
DAudioManager.java549 IAudioService service = getService(); in adjustStreamVolume() local
552 service.adjustMasterVolume(direction, flags); in adjustStreamVolume()
554 service.adjustStreamVolume(streamType, direction, flags); in adjustStreamVolume()
579 IAudioService service = getService(); in adjustVolume() local
582 service.adjustMasterVolume(direction, flags); in adjustVolume()
584 service.adjustVolume(direction, flags); in adjustVolume()
609 IAudioService service = getService(); in adjustSuggestedStreamVolume() local
612 service.adjustMasterVolume(direction, flags); in adjustSuggestedStreamVolume()
614 service.adjustSuggestedStreamVolume(direction, suggestedStreamType, flags); in adjustSuggestedStreamVolume()
631 IAudioService service = getService(); in adjustMasterVolume() local
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DServiceTest.java120 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
143 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
149 service.transact(SET_REPORTER_CODE, data, null, 0); in onServiceConnected()
191 void startExpectResult(Intent service) { in startExpectResult() argument
192 startExpectResult(service, new Bundle()); in startExpectResult()
195 void startExpectResult(Intent service, Bundle bundle) { in startExpectResult() argument
201 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult()
205 getContext().startService(new Intent(service).putExtras(bundle)); in startExpectResult()
211 getContext().stopService(service); in startExpectResult()
219 getContext().stopService(service); in startExpectResult()
[all …]
/frameworks/base/services/java/com/android/server/location/
DLocationProviderProxy.java102 ILocationProvider service;
107 service = getService();
110 if (service == null) return;
114 properties = service.getProperties();
122 service.enable();
124 service.setRequest(request, source);
157 ILocationProvider service = getService(); in enable() local
158 if (service == null) return; in enable()
161 service.enable(); in enable()
175 ILocationProvider service = getService(); in disable() local
[all …]
/frameworks/base/docs/html/guide/components/
Dbound-services.jd11 <li>A bound service allows other components to bind to it, in order to interact with it and
13 <li>A bound service is destroyed once all clients unbind, unless the service was also started</li>
50 <p>A bound service is the server in a client-server interface. A bound service allows components
51 (such as activities) to bind to the service, send requests, receive responses, and even perform
52 interprocess communication (IPC). A bound service typically lives only while it serves another
55 <p>This document shows you how to create a bound service, including how to bind
56 to the service from other application components. However, you should also refer to the <a
58 information about services in general, such as how to deliver notifications from a service, set
59 the service to run in the foreground, and more.</p>
64 <p>A bound service is an implementation of the {@link android.app.Service} class that allows
[all …]
Dservices.jd8 <li>A service can run in the background to perform work even while the user is in a different
10 <li>A service can allow other components to bind to it, in order to interact with it and
12 <li>A service runs in the main thread of the application that hosts it, by default</li>
18 <li><a href="#Declaring">Declaring a service in the manifest</a></li>
24 <li><a href="#StartingAService">Starting a service</a></li>
25 <li><a href="#Stopping">Stopping a service</a></li>
62 application component can start a service and it will continue to run in the background even if the
63 user switches to another application. Additionally, a component can bind to a service to
64 interact with it and even perform interprocess communication (IPC). For example, a service might
68 <p>A service can essentially take two forms:</p>
[all …]
/frameworks/base/core/java/android/os/
DSystemService.java80 public static State getState(String service) { in getState() argument
81 final String rawState = SystemProperties.get("init.svc." + service); in getState()
93 public static boolean isStopped(String service) { in isStopped() argument
94 return State.STOPPED.equals(getState(service)); in isStopped()
100 public static boolean isRunning(String service) { in isRunning() argument
101 return State.RUNNING.equals(getState(service)); in isRunning()
107 public static void waitForState(String service, State state, long timeoutMillis) in waitForState() argument
112 final State currentState = getState(service); in waitForState()
118 throw new TimeoutException("Service " + service + " currently " + currentState in waitForState()
136 for (String service : services) { in waitForAnyStopped()
[all …]
DServiceManager.java51 IBinder service = sCache.get(name); in getService() local
52 if (service != null) { in getService()
53 return service; in getService()
70 public static void addService(String name, IBinder service) { in addService() argument
72 getIServiceManager().addService(name, service, false); in addService()
87 public static void addService(String name, IBinder service, boolean allowIsolated) { in addService() argument
89 getIServiceManager().addService(name, service, allowIsolated); in addService()
101 IBinder service = sCache.get(name); in checkService() local
102 if (service != null) { in checkService()
103 return service; in checkService()
DServiceManagerNative.java59 IBinder service = getService(name); in onTransact() local
60 reply.writeStrongBinder(service); in onTransact()
67 IBinder service = checkService(name); in onTransact() local
68 reply.writeStrongBinder(service); in onTransact()
75 IBinder service = data.readStrongBinder(); in onTransact() local
77 addService(name, service, allowIsolated); in onTransact()
142 public void addService(String name, IBinder service, boolean allowIsolated) in addService() argument
148 data.writeStrongBinder(service); in addService()
/frameworks/base/docs/html/training/connect-devices-wirelessly/
Dnsd.jd58 <p>To register your service on the local network, first create a {@link
61 service. </p>
77 <p>This code snippet sets the service name to "NsdChat".
79 local services. Keep in mind that the name must be unique for any service on the
82 them changes the service name automatically, to something like "NsdChat
85 <p>The second parameter sets the service type, specifies which protocol and transport
88 code snippet, the service uses HTTP protocol running over TCP. An application
89 offering a printer service (for instance, a network printer) would set the
90 service type to "_ipp._tcp".</p>
94 authoritative list of service types used by service discovery protocols such as NSD and Bonjour.
[all …]
/frameworks/base/docs/html/guide/topics/text/
Dspell-checker-framework.jd38 To use the framework in your app, you create a special type of Android service that
44 The following diagram shows the lifecycle of the spelling checker service:
49 <strong>Figure 1.</strong> The spelling checker service lifecycle.
53 service. Clients in your app, such as activities or individual UI elements, request a
54 spelling checker session from the service, then use the session to get suggestions for text.
56 app can shut down the spelling checker service at any time.
60 …To use the spelling checker framework in your app, add a spelling checker service component includ…
63 the spelling checker service, and add the appropriate elements to your manifest file.
67 Define the service and session object with the following classes:
71 A subclass of {@link android.service.textservice.SpellCheckerService}
[all …]
/frameworks/base/docs/html/guide/topics/ui/accessibility/
Dservices.jd13 <li><a href="#service-declaration">Accessibility service declaration</a></li>
14 <li><a href="#service-config">Accessibility service configuration</a></li>
47 <p>An accessibility service is an application that provides user interface enhancements to
54 accessibility service.</p>
68 application manifests to be treated as an accessibility service by the Android system. This
72 <h3 id="service-declaration">Accessibility service declaration</h3>
74 <p>In order to be treated as an accessibility service, your application must include the
75 {@code service} element (rather than the {@code activity} element) within the {@code application}
76 element in its manifest. In addition, within the {@code service} element, you must also include an
77 accessibility service intent filter. For compatiblity with Android 4.1 and higher, the manifest
[all …]
/frameworks/base/core/java/android/app/
DNotificationManager.java125 INotificationManager service = getService(); in notify() local
132 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut, in notify()
147 INotificationManager service = getService(); in notifyAsUser() local
154 service.enqueueNotificationWithTag(pkg, tag, id, notification, idOut, in notifyAsUser()
180 INotificationManager service = getService(); in cancel() local
184 service.cancelNotificationWithTag(pkg, tag, id, UserHandle.myUserId()); in cancel()
194 INotificationManager service = getService(); in cancelAsUser() local
198 service.cancelNotificationWithTag(pkg, tag, id, user.getIdentifier()); in cancelAsUser()
209 INotificationManager service = getService(); in cancelAll() local
213 service.cancelAllNotifications(pkg, UserHandle.myUserId()); in cancelAll()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerServiceTest.java191 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType() local
192 service.setServiceInfo(MockAccessibilityService.createDefaultInfo()); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType()
202 service.expectEvent(sentEvent); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType()
203 service.replay(); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType()
209 assertMockServiceVerifiedWithinTimeout(service); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType()
221 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotMatchingPackage() local
222 service.setServiceInfo(MockAccessibilityService.createDefaultInfo()); in testSendAccessibilityEvent_OneService_NotMatchingPackage()
233 service.replay(); in testSendAccessibilityEvent_OneService_NotMatchingPackage()
239 assertMockServiceVerifiedWithinTimeout(service); in testSendAccessibilityEvent_OneService_NotMatchingPackage()
251 MockAccessibilityService service = MyFirstMockAccessibilityService.sInstance; in testSendAccessibilityEvent_OneService_NotMatchingEventType() local
[all …]
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityManagerService.java391 Service service = services.get(i); in getEnabledAccessibilityServiceList() local
392 if ((service.mFeedbackType & feedbackTypeBit) != 0) { in getEnabledAccessibilityServiceList()
393 result.add(service.mAccessibilityServiceInfo); in getEnabledAccessibilityServiceList()
413 Service service = services.get(i); in interrupt() local
415 service.mServiceInterface.onInterrupt(); in interrupt()
418 + service.mService, re); in interrupt()
541 ComponentName service, boolean touchExplorationEnabled) { in temporaryEnableAccessibilityStateUntilKeyguardRemoved() argument
561 userState.mEnabledServices.add(service); in temporaryEnableAccessibilityStateUntilKeyguardRemoved()
563 userState.mTouchExplorationGrantedServices.add(service); in temporaryEnableAccessibilityStateUntilKeyguardRemoved()
604 Service service = getQueryBridge(); in getAccessibilityFocusBoundsInActiveWindow() local
[all …]
/frameworks/base/cmds/service/
Dservice.cpp33 static String16 get_interface_name(sp<IBinder> service) in get_interface_name() argument
35 if (service != NULL) { in get_interface_name()
37 status_t err = service->transact(IBinder::INTERFACE_TRANSACTION, data, &reply); in get_interface_name()
94 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main() local
96 (service == NULL ? ": not found" : ": found") << endl; in main()
108 sp<IBinder> service = sm->checkService(name); in main() local
111 << ": [" << good_old_string(get_interface_name(service)) << "]" in main()
118 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main() local
119 String16 ifName = get_interface_name(service); in main()
121 if (service != NULL && ifName.size() > 0) { in main()
[all …]
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java658 public Void run(ITextToSpeechService service) throws RemoteException { in shutdown()
659 service.setCallback(getCallerIdentity(), null); in shutdown()
660 service.stop(getCallerIdentity()); in shutdown()
817 public Integer run(ITextToSpeechService service) throws RemoteException { in speak()
820 return service.playAudio(getCallerIdentity(), utteranceUri, queueMode, in speak()
823 return service.speak(getCallerIdentity(), text, queueMode, getParams(params)); in speak()
851 public Integer run(ITextToSpeechService service) throws RemoteException {
856 return service.playAudio(getCallerIdentity(), earconUri, queueMode,
882 public Integer run(ITextToSpeechService service) throws RemoteException {
883 return service.playSilence(getCallerIdentity(), durationInMs, queueMode,
[all …]
/frameworks/base/services/java/com/android/server/
DAppWidgetService.java255 AppWidgetServiceImpl service; in getImplForUser() local
257 service = mAppWidgetServices.get(userId); in getImplForUser()
258 if (service == null) { in getImplForUser()
261 service = new AppWidgetServiceImpl(mContext, userId, mSaveStateHandler); in getImplForUser()
262 service.systemReady(mSafeMode); in getImplForUser()
264 mAppWidgetServices.append(userId, service); in getImplForUser()
269 service.sendInitialBroadcasts(); in getImplForUser()
271 return service; in getImplForUser()
367 AppWidgetServiceImpl service = mAppWidgetServices.valueAt(i); in dump() local
368 service.dump(fd, ipw, args); in dump()
[all …]
/frameworks/base/docs/html/guide/topics/manifest/
Dservice-element.jd1 page.title=&lt;service&gt;
8 <dd><pre class="stx">&lt;service android:<a href="#enabled">enabled</a>=["true" | "false"]
17 &lt;/service&gt;</pre></dd>
27 <dd>Declares a service (a {@link android.app.Service} subclass) as one
34 All services must be represented by {@code &lt;service&gt;} elements in
42 <dd>Whether or not the service can be instantiated by the system &mdash;
50 …pics/manifest/application-element.html">&lt;application&gt;</a></code> and {@code &lt;service&gt;}
52 are by default) for the service to be enabled. If either is
53 "{@code false}", the service is disabled; it cannot be instantiated.
58 the service or interact with it &mdash; "{@code true}" if they can, and
[all …]
/frameworks/base/docs/html/training/accessibility/
Dservice.jd35 installed on Android devices. An accessibility service can communicate to the
38 lesson covers how to create an accessibility service, process information
44 <p>An accessibility service can be bundled with a normal application, or created
45 as a standalone Android project. The steps to creating the service are the same
68 <p>Like any other service, you also declare it in the manifest file.
70 so that the service is called when applications fire an
76 &lt;service android:name=".MyAccessibilityService"&gt;
81 &lt;/service&gt;
86 <p>If you created a new project for this service, and don't plan on having an
91 <p>Setting the configuration variables for your accessibility service tells the
[all …]
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp60 sp<IBinder> service = sm->checkService(services[i]); in main() local
61 if (service != NULL) { in main()
68 sp<IBinder> service = sm->checkService(services[i]); in main() local
69 if (service != NULL) { in main()
75 int err = service->dump(STDOUT_FILENO, args); in main()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbResolverActivity.java99 IUsbManager service = IUsbManager.Stub.asInterface(b); in onIntentSelected() local
105 service.grantDevicePermission(mDevice, uid); in onIntentSelected()
108 service.setDevicePackage(mDevice, ri.activityInfo.packageName, userId); in onIntentSelected()
110 service.setDevicePackage(mDevice, null, userId); in onIntentSelected()
114 service.grantAccessoryPermission(mAccessory, uid); in onIntentSelected()
117 service.setAccessoryPackage(mAccessory, ri.activityInfo.packageName, userId); in onIntentSelected()
119 service.setAccessoryPackage(mAccessory, null, userId); in onIntentSelected()
/frameworks/base/docs/html/google/play/licensing/
Dindex.jd5 <p>Google Play offers a licensing service that lets you enforce licensing policies for
10 <p>Using the service, you can apply a flexible licensing policy on an application-by-application
17 <p>The licensing service is a secure means of controlling access to your applications. When an
24 service. No special account or registration is needed. Additionally, because the service uses no
28 <p class="note"><strong>Note:</strong> The Google Play Licensing service is primarily intended
30 on Google Play. However, any application (including free apps) may use the licensing service
32 sends to the licensing service is not to check whether the user paid for the app, but to request the
37 <p>To learn more about Google Play's application licensing service and start integrating it into
43 <dd>Describes how the service works and what a typical licensing implementation looks
54 <dd>Provides detailed information about the licensing library's classes and the service response
/frameworks/base/services/java/com/android/server/am/
DActiveServices.java207 public ActiveServices(ActivityManagerService service) { in ActiveServices() argument
208 mAm = service; in ActiveServices()
212 Intent service, String resolvedType, in startServiceLocked() argument
214 if (DEBUG_SERVICE) Slog.v(TAG, "startService: " + service in startServiceLocked()
215 + " type=" + resolvedType + " args=" + service.getExtras()); in startServiceLocked()
223 + ") when starting service " + service); in startServiceLocked()
228 retrieveServiceLocked(service, resolvedType, in startServiceLocked()
239 callingUid, r.packageName, service, service.getFlags(), null); in startServiceLocked()
246 service, neededGrants)); in startServiceLocked()
251 String error = bringUpServiceLocked(r, service.getFlags(), false); in startServiceLocked()
[all …]
DAppBindRecord.java27 final ServiceRecord service; // The running service. field in AppBindRecord
35 pw.println(prefix + "service=" + service); in dump()
53 service = _service; in AppBindRecord()
61 + " " + service.shortName + ":" + client.processName + "}"; in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIccServiceTable.java42 protected boolean isAvailable(int service) { in isAvailable() argument
43 int offset = service / 8; in isAvailable()
46 Log.e(getTag(), "isAvailable for service " + (service + 1) + " fails, max service is " + in isAvailable()
50 int bit = service % 8; in isAvailable()

12345678910>>...19