Home
last modified time | relevance | path

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

12345678910>>...33

/frameworks/native/libs/binder/
DAppOpsManager.cpp29 static const sp<IBinder>& getToken(const sp<IAppOpsService>& service) { in getToken() argument
32 gToken = service->getToken(new BBinder()); in getToken()
46 sp<IAppOpsService> service = mService; in getService() local
47 while (service == NULL || !IInterface::asBinder(service)->isBinderAlive()) { in getService()
60 service = interface_cast<IAppOpsService>(binder); in getService()
61 mService = service; in getService()
65 return service; in getService()
70 sp<IAppOpsService> service = getService(); in checkOp() local
71 return service != NULL ? service->checkOperation(op, uid, callingPackage) : MODE_IGNORED; in checkOp()
75 sp<IAppOpsService> service = getService(); in noteOp() local
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityManager.java203 IAccessibilityManager service = iBinder == null in getInstance() local
205 sInstance = new AccessibilityManager(context, service, userId); in getInstance()
220 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { in AccessibilityManager() argument
222 mService = service; in AccessibilityManager()
243 IAccessibilityManager service = getServiceLocked(); in isEnabled() local
244 if (service == null) { in isEnabled()
258 IAccessibilityManager service = getServiceLocked(); in isTouchExplorationEnabled() local
259 if (service == null) { in isTouchExplorationEnabled()
279 IAccessibilityManager service = getServiceLocked(); in isHighTextContrastEnabled() local
280 if (service == null) { in isHighTextContrastEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/
DSystemServiceManager.java86 final T service; in startService() local
89 service = constructor.newInstance(mContext); in startService()
105 mServices.add(service); in startService()
109 service.onStart(); in startService()
114 return service; in startService()
133 final SystemService service = mServices.get(i); in startBootPhase() local
135 service.onBootPhase(mCurrentPhase); in startBootPhase()
138 + service.getClass().getName() in startBootPhase()
148 final SystemService service = mServices.get(i); in startUser() local
150 service.onStartUser(userHandle); in startUser()
[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/core/java/android/app/
DNotificationManager.java39 import android.service.notification.IConditionListener;
40 import android.service.notification.StatusBarNotification;
41 import android.service.notification.ZenModeConfig;
211 INotificationManager service = getService(); in notify() local
230 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notify()
245 INotificationManager service = getService(); in notifyAsUser() local
258 service.enqueueNotificationWithTag(pkg, mContext.getOpPackageName(), tag, id, in notifyAsUser()
290 INotificationManager service = getService(); in cancel() local
294 service.cancelNotificationWithTag(pkg, tag, id, UserHandle.myUserId()); in cancel()
304 INotificationManager service = getService(); in cancelAsUser() local
[all …]
DSystemServiceRegistry.java103 import android.service.persistentdata.IPersistentDataBlockService;
104 import android.service.persistentdata.PersistentDataBlockManager;
160 IAccountManager service = IAccountManager.Stub.asInterface(b); in registerService()
161 return new AccountManager(ctx, service); in registerService() argument
176 IAlarmManager service = IAlarmManager.Stub.asInterface(b); in registerService()
177 return new AlarmManager(service, ctx); in registerService()
227 IConnectivityManager service = IConnectivityManager.Stub.asInterface(b); in registerService()
228 return new ConnectivityManager(context, service); in registerService() argument
272 IDropBoxManagerService service = IDropBoxManagerService.Stub.asInterface(b); in registerService()
273 if (service == null) { in registerService()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DLocationProviderProxy.java105 ILocationProvider service;
110 service = getService();
113 if (service == null) return;
117 properties = service.getProperties();
125 service.enable();
127 service.setRequest(request, source);
160 ILocationProvider service = getService(); in enable() local
161 if (service == null) return; in enable()
164 service.enable(); in enable()
178 ILocationProvider service = getService(); in disable() local
[all …]
/frameworks/base/core/java/android/nfc/cardemulation/
DCardEmulation.java134 private CardEmulation(Context context, INfcCardEmulation service) { in CardEmulation() argument
136 sService = service; in CardEmulation()
172 INfcCardEmulation service = adapter.getCardEmulationService(); in getInstance() local
173 if (service == null) { in getInstance()
177 manager = new CardEmulation(context, service); in getInstance()
202 public boolean isDefaultServiceForCategory(ComponentName service, String category) { in isDefaultServiceForCategory() argument
204 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, category); in isDefaultServiceForCategory()
213 return sService.isDefaultServiceForCategory(UserHandle.myUserId(), service, in isDefaultServiceForCategory()
233 public boolean isDefaultServiceForAid(ComponentName service, String aid) { in isDefaultServiceForAid() argument
235 return sService.isDefaultServiceForAid(UserHandle.myUserId(), service, aid); in isDefaultServiceForAid()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGatt.java230 BluetoothGattService service = getService(mDevice,
235 if (service != null && includedService != null) {
236 service.addIncludedService(includedService);
256 BluetoothGattService service = getService(mDevice, srvcUuid.getUuid(),
258 if (service != null) {
259 service.addCharacteristic(new BluetoothGattCharacteristic(
260 service, charUuid.getUuid(), charInstId, charProps, 0));
279 BluetoothGattService service = getService(mDevice, srvcUuid.getUuid(),
281 if (service == null) return;
283 BluetoothGattCharacteristic characteristic = service.getCharacteristic(
[all …]
DBluetoothGattServer.java118 BluetoothGattService service = getService(srvcUuid, srvcInstId, srvcType);
119 if (service == null) return;
122 mCallback.onServiceAdded((int)status, service);
141 BluetoothGattService service = getService(srvcUuid, srvcInstId, srvcType);
142 if (service == null) return;
144 BluetoothGattCharacteristic characteristic = service.getCharacteristic(charUuid);
170 BluetoothGattService service = getService(srvcUuid, srvcInstId, srvcType);
171 if (service == null) return;
173 BluetoothGattCharacteristic characteristic = service.getCharacteristic(charUuid);
200 BluetoothGattService service = getService(srvcUuid, srvcInstId, srvcType);
[all …]
/frameworks/base/docs/html/guide/components/
Dservices.jd10 <li><a href="#Declaring">Declaring a service in the manifest</a></li>
16 <li><a href="#StartingAService">Starting a service</a></li>
17 <li><a href="#Stopping">Stopping a service</a></li>
54 application component can start a service and it will continue to run in the background even if the
55 user switches to another application. Additionally, a component can bind to a service to
56 interact with it and even perform interprocess communication (IPC). For example, a service might
60 <p>A service can essentially take two forms:</p>
64 <dd>A service is "started" when an application component (such as an activity) starts it by
65 calling {@link android.content.Context#startService startService()}. Once started, a service
67 a started service performs a single operation and does not return a result to the caller.
[all …]
Dbound-services.jd44 <p>A bound service is the server in a client-server interface. A bound service allows components
45 (such as activities) to bind to the service, send requests, receive responses, and even perform
46 interprocess communication (IPC). A bound service typically lives only while it serves another
49 <p>This document shows you how to create a bound service, including how to bind
50 to the service from other application components. However, you should also refer to the <a
52 information about services in general, such as how to deliver notifications from a service, set
53 the service to run in the foreground, and more.</p>
58 <p>A bound service is an implementation of the {@link android.app.Service} class that allows
60 service, you must implement the {@link android.app.Service#onBind onBind()} callback method. This
62 clients can use to interact with the service.</p>
[all …]
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java108 public boolean sendMessage(int service, int what, ByteBuffer content) { in sendMessage() argument
109 checkServiceId(service); in sendMessage()
122 mOutputBuffer.putShort((short)service); in sendMessage()
179 public void registerService(int service, Callback callback) { in registerService() argument
180 checkServiceId(service); in registerService()
186 mServices.put(service, callback); in registerService()
195 public void unregisterService(int service) { in unregisterService() argument
196 checkServiceId(service); in unregisterService()
199 mServices.remove(service); in unregisterService()
203 private void dispatchMessageReceived(int service, int what, ByteBuffer content) { in dispatchMessageReceived() argument
[all …]
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImplLegacy.cpp53 audio_module_handle_t aps_load_hw_module(void *service __unused, in aps_load_hw_module()
106 audio_io_handle_t aps_open_output(void *service __unused, in aps_open_output()
118 audio_io_handle_t aps_open_output_on_module(void *service __unused, in aps_open_output_on_module()
132 audio_io_handle_t aps_open_dup_output(void *service __unused, in aps_open_dup_output()
144 int aps_close_output(void *service __unused, audio_io_handle_t output) in aps_close_output()
154 int aps_suspend_output(void *service __unused, audio_io_handle_t output) in aps_suspend_output()
165 int aps_restore_output(void *service __unused, audio_io_handle_t output) in aps_restore_output()
215 audio_io_handle_t aps_open_input(void *service __unused, in aps_open_input()
225 audio_io_handle_t aps_open_input_on_module(void *service __unused, in aps_open_input_on_module()
235 int aps_close_input(void *service __unused, audio_io_handle_t input) in aps_close_input()
[all …]
/frameworks/base/core/java/android/os/
DSystemService.java78 public static State getState(String service) { in getState() argument
79 final String rawState = SystemProperties.get("init.svc." + service); in getState()
91 public static boolean isStopped(String service) { in isStopped() argument
92 return State.STOPPED.equals(getState(service)); in isStopped()
98 public static boolean isRunning(String service) { in isRunning() argument
99 return State.RUNNING.equals(getState(service)); in isRunning()
105 public static void waitForState(String service, State state, long timeoutMillis) in waitForState() argument
110 final State currentState = getState(service); in waitForState()
116 throw new TimeoutException("Service " + service + " currently " + currentState in waitForState()
134 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()
/frameworks/base/media/java/android/media/
DAudioManager.java806 IAudioService service = getService(); in adjustStreamVolume() local
808 service.adjustStreamVolume(streamType, direction, flags, in adjustStreamVolume()
874 IAudioService service = getService(); in setMasterMute() local
876 service.setMasterMute(mute, flags, getContext().getOpPackageName(), in setMasterMute()
891 IAudioService service = getService(); in getRingerMode() local
893 return service.getRingerModeExternal(); in getRingerMode()
912 IAudioService service = getService(); in isValidRingerMode() local
914 return service.isValidRingerMode(ringerMode); in isValidRingerMode()
929 IAudioService service = getService(); in getStreamMaxVolume() local
931 return service.getStreamMaxVolume(streamType); in getStreamMaxVolume()
[all …]
/frameworks/base/core/java/android/nfc/
DINfcCardEmulation.aidl29 boolean isDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in isDefaultServiceForCategory() argument
30 boolean isDefaultServiceForAid(int userHandle, in ComponentName service, String aid); in isDefaultServiceForAid() argument
31 boolean setDefaultServiceForCategory(int userHandle, in ComponentName service, String category); in setDefaultServiceForCategory() argument
32 boolean setDefaultForNextTap(int userHandle, in ComponentName service); in setDefaultForNextTap() argument
33 …boolean registerAidGroupForService(int userHandle, in ComponentName service, in AidGroup aidGroup); in registerAidGroupForService() argument
34 AidGroup getAidGroupForService(int userHandle, in ComponentName service, String category); in getAidGroupForService() argument
35 boolean removeAidGroupForService(int userHandle, in ComponentName service, String category); in removeAidGroupForService() argument
37 boolean setPreferredService(in ComponentName service); in setPreferredService() argument
/frameworks/base/docs/html/training/connect-devices-wirelessly/
Dnsd.jd54 <p>To register your service on the local network, first create a {@link
57 service. </p>
73 <p>This code snippet sets the service name to "NsdChat".
75 local services. Keep in mind that the name must be unique for any service on the
78 them changes the service name automatically, to something like "NsdChat
81 <p>The second parameter sets the service type, specifies which protocol and transport
84 code snippet, the service uses HTTP protocol running over TCP. An application
85 offering a printer service (for instance, a network printer) would set the
86 service type to "_ipp._tcp".</p>
90 authoritative list of service types used by service discovery protocols such as NSD and Bonjour.
[all …]
/frameworks/base/core/java/android/speech/
DRecognitionService.java337 public RecognitionServiceBinder(RecognitionService service) { in RecognitionServiceBinder() argument
338 mServiceRef = new WeakReference<RecognitionService>(service); in RecognitionServiceBinder()
344 final RecognitionService service = mServiceRef.get(); in startListening() local
345 if (service != null && service.checkPermissions(listener)) { in startListening()
346 service.mHandler.sendMessage(Message.obtain(service.mHandler, in startListening()
347 MSG_START_LISTENING, service.new StartListeningArgs( in startListening()
355 final RecognitionService service = mServiceRef.get(); in stopListening() local
356 if (service != null && service.checkPermissions(listener)) { in stopListening()
357 service.mHandler.sendMessage(Message.obtain(service.mHandler, in stopListening()
365 final RecognitionService service = mServiceRef.get(); in cancel() local
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java136 final RemotePrintService service; in onPrintJobQueued() local
140 service = mActiveServices.get(printServiceName); in onPrintJobQueued()
142 if (service != null) { in onPrintJobQueued()
143 service.onPrintJobQueued(printJob); in onPrintJobQueued()
154 final RemotePrintService service; in onAllPrintJobsForServiceHandled() local
157 service = mActiveServices.get(printService); in onAllPrintJobsForServiceHandled()
159 if (service != null) { in onAllPrintJobsForServiceHandled()
160 service.onAllPrintJobsHandled(); in onAllPrintJobsForServiceHandled()
529 public void onServiceDied(RemotePrintService service) { in onServiceDied() argument
537 failActivePrintJobsForService(service.getComponentName()); in onServiceDied()
[all …]
DRemotePrintService.java97 public void onServiceDied(RemotePrintService service); in onServiceDied() argument
547 public void onServiceConnected(ComponentName name, IBinder service) { in onServiceConnected() argument
553 mPrintService = IPrintService.Stub.asInterface(service); in onServiceConnected()
555 service.linkToDeath(RemotePrintService.this, 0); in onServiceConnected()
563 Slog.e(LOG_TAG, "Error setting client for: " + service, re); in onServiceConnected()
684 public RemotePrintServiceClient(RemotePrintService service) { in RemotePrintServiceClient() argument
685 mWeakService = new WeakReference<RemotePrintService>(service); in RemotePrintServiceClient()
690 RemotePrintService service = mWeakService.get(); in getPrintJobInfos() local
691 if (service != null) { in getPrintJobInfos()
694 return service.mSpooler.getPrintJobInfos(service.mComponentName, in getPrintJobInfos()
[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, you must include a
75 {@code service} element (rather than the {@code activity} element) within the {@code application}
76 element in your 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/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 …]

12345678910>>...33