Home
last modified time | relevance | path

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

12345678910>>...31

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java750 private void setProfileServiceState(Class service, int state) { in setProfileServiceState() argument
751 Intent intent = new Intent(this, service); in setProfileServiceState()
758 for (Class service : services) { in setAllProfileServiceStates()
759 if (GattService.class.getSimpleName().equals(service.getSimpleName())) { in setAllProfileServiceStates()
762 setProfileServiceState(service, state); in setAllProfileServiceStates()
807 AdapterService service = getService(); in isEnabled() local
808 if (service == null) { in isEnabled()
811 return service.isEnabled(); in isEnabled()
817 AdapterService service = getService(); in getState() local
818 if (service == null) { in getState()
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java221 for (ApduServiceInfo service : services) { in verifyDefaults()
222 if (service.hasCategory(CardEmulation.CATEGORY_PAYMENT)) { in verifyDefaults()
224 lastFoundPaymentService = service.getComponent(); in verifyDefaults()
253 ComponentName service = ComponentName.unflattenFromString(name); in getDefaultServiceForCategory() local
254 if (!validateInstalled || service == null) { in getDefaultServiceForCategory()
255 return service; in getDefaultServiceForCategory()
257 return mServiceCache.hasService(userId, service) ? service : null; in getDefaultServiceForCategory()
264 boolean setDefaultServiceForCategoryChecked(int userId, ComponentName service, in setDefaultServiceForCategoryChecked() argument
273 if (service == null || mServiceCache.hasService(userId, service)) { in setDefaultServiceForCategoryChecked()
276 service != null ? service.flattenToString() : null, userId); in setDefaultServiceForCategoryChecked()
[all …]
DRegisteredNfcFServicesCache.java182 for (NfcFServiceInfo service : services) { in dump()
183 Log.d(TAG, service.toString()); in dump()
189 for (NfcFServiceInfo service : services) { in containsServiceLocked()
190 if (service.getComponent().equals(componentName)) return true; in containsServiceLocked()
251 NfcFServiceInfo service = new NfcFServiceInfo(pm, resolvedService); in getInstalledServices() local
252 if (service != null) { in getInstalledServices()
253 validServices.add(service); in getInstalledServices()
314 for (NfcFServiceInfo service : toBeAdded) { in invalidateCache()
315 userServices.services.put(service.getComponent(), service); in invalidateCache() local
316 if (DBG) Log.d(TAG, "Added service: " + service.getComponent()); in invalidateCache()
[all …]
DRegisteredAidCache.java63 ApduServiceInfo service; field in RegisteredAidCache.ServiceAidInfo
70 "service=" + service.getComponent() + in toString()
85 if (!service.equals(that.service)) return false; in equals()
92 int result = service.hashCode(); in hashCode()
210 public boolean isDefaultServiceForAid(int userId, ComponentName service, String aid) { in isDefaultServiceForAid() argument
218 return service.equals(resolveInfo.defaultService.getComponent()); in isDefaultServiceForAid()
220 return service.equals(resolveInfo.services.get(0).getComponent()); in isDefaultServiceForAid()
253 if (serviceAidInfo.service.getComponent().equals(mPreferredForegroundService)) { in resolveAidConflictLocked()
254 resolveInfo.services.add(serviceAidInfo.service); in resolveAidConflictLocked()
258 matchedForeground = serviceAidInfo.service; in resolveAidConflictLocked()
[all …]
DHostEmulationManager.java112 public void onPreferredPaymentServiceChanged(final ComponentName service) { in onPreferredPaymentServiceChanged() argument
115 if (service != null) { in onPreferredPaymentServiceChanged()
116 bindPaymentServiceLocked(ActivityManager.getCurrentUser(), service); in onPreferredPaymentServiceChanged() local
124 public void onPreferredForegroundServiceChanged(ComponentName service) { in onPreferredForegroundServiceChanged() argument
126 if (service != null) { in onPreferredForegroundServiceChanged()
127 bindServiceIfNeededLocked(service); in onPreferredForegroundServiceChanged()
301 Messenger bindServiceIfNeededLocked(ComponentName service) { in bindServiceIfNeededLocked() argument
302 if (mPaymentServiceName != null && mPaymentServiceName.equals(service)) { in bindServiceIfNeededLocked()
305 } else if (mServiceName != null && mServiceName.equals(service)) { in bindServiceIfNeededLocked()
309 Log.d(TAG, "Binding to service " + service); in bindServiceIfNeededLocked()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DNativeInterface.java94 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onConnectionStateChanged() local
95 if (service != null) { in onConnectionStateChanged()
96 service.messageFromNative(event); in onConnectionStateChanged()
109 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onAudioStateChanged() local
110 if (service != null) { in onAudioStateChanged()
111 service.messageFromNative(event); in onAudioStateChanged()
126 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onVrStateChanged() local
127 if (service != null) { in onVrStateChanged()
128 service.messageFromNative(event); in onVrStateChanged()
143 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onNetworkState() local
[all …]
DHeadsetClientService.java216 HeadsetClientService service = getService(); in connect() local
217 if (service == null) { in connect()
220 return service.connect(device); in connect()
225 HeadsetClientService service = getService(); in disconnect() local
226 if (service == null) { in disconnect()
229 return service.disconnect(device); in disconnect()
234 HeadsetClientService service = getService(); in getConnectedDevices() local
235 if (service == null) { in getConnectedDevices()
238 return service.getConnectedDevices(); in getConnectedDevices()
243 HeadsetClientService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppServiceWrapper.java17 package com.android.car.radio.service;
124 public RadioAppServiceWrapper(@NonNull IRadioAppService service) { in RadioAppServiceWrapper() argument
125 Objects.requireNonNull(service); in RadioAppServiceWrapper()
126 mService.set(service); in RadioAppServiceWrapper()
127 initialize(service); in RadioAppServiceWrapper()
130 private void initialize(@NonNull IRadioAppService service) { in initialize() argument
132 service.addCallback(mCallback); in initialize()
204 callService(service -> service.removeCallback(mCallback)); in unbind()
208 private void onServiceConnected(IBinder binder, @NonNull IRadioAppService service) { in onServiceConnected() argument
210 mService.set(service); in onServiceConnected()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java423 GattService service = getService(); in getDevicesMatchingConnectionStates() local
424 if (service == null) { in getDevicesMatchingConnectionStates()
427 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
432 GattService service = getService(); in registerClient() local
433 if (service == null) { in registerClient()
436 service.registerClient(uuid.getUuid(), callback); in registerClient()
441 GattService service = getService(); in unregisterClient() local
442 if (service == null) { in unregisterClient()
445 service.unregisterClient(clientIf); in unregisterClient()
451 GattService service = getService(); in registerScanner() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java417 final HeadsetService service = mService; in getService() local
418 if (!Utils.checkCallerAllowManagedProfiles(service)) { in getService()
422 if (service == null) { in getService()
426 if (!service.isAlive()) { in getService()
430 return service; in getService()
435 HeadsetService service = getService(); in connect() local
436 if (service == null) { in connect()
439 return service.connect(device); in connect()
444 HeadsetService service = getService(); in disconnect() local
445 if (service == null) { in disconnect()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java1159 A2dpService service = getService(); in connect() local
1160 if (service == null) { in connect()
1163 return service.connect(device); in connect()
1168 A2dpService service = getService(); in disconnect() local
1169 if (service == null) { in disconnect()
1172 return service.disconnect(device); in disconnect()
1177 A2dpService service = getService(); in getConnectedDevices() local
1178 if (service == null) { in getConnectedDevices()
1181 return service.getConnectedDevices(); in getConnectedDevices()
1186 A2dpService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceNativeInterface.java179 HidDeviceService service = HidDeviceService.getHidDeviceService(); in onApplicationStateChanged() local
180 if (service != null) { in onApplicationStateChanged()
181 service.onApplicationStateChangedFromNative(getDevice(address), registered); in onApplicationStateChanged()
189 HidDeviceService service = HidDeviceService.getHidDeviceService(); in onConnectStateChanged() local
190 if (service != null) { in onConnectStateChanged()
191 service.onConnectStateChangedFromNative(getDevice(address), state); in onConnectStateChanged()
199 HidDeviceService service = HidDeviceService.getHidDeviceService(); in onGetReport() local
200 if (service != null) { in onGetReport()
201 service.onGetReportFromNative(type, id, bufferSize); in onGetReport()
209 HidDeviceService service = HidDeviceService.getHidDeviceService(); in onSetReport() local
[all …]
DHidHostService.java336 HidHostService service = getService(); in connect() local
337 if (service == null) { in connect()
340 return service.connect(device); in connect()
345 HidHostService service = getService(); in disconnect() local
346 if (service == null) { in disconnect()
349 return service.disconnect(device); in disconnect()
354 HidHostService service = getService(); in getConnectionState() local
355 if (service == null) { in getConnectionState()
358 return service.getConnectionState(device); in getConnectionState()
368 HidHostService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
DHidDeviceService.java243 BluetoothHidDeviceDeathRecipient(HidDeviceService service) { in BluetoothHidDeviceDeathRecipient() argument
244 mService = service; in BluetoothHidDeviceDeathRecipient()
277 BluetoothHidDeviceBinder(HidDeviceService service) { in BluetoothHidDeviceBinder() argument
278 mService = service; in BluetoothHidDeviceBinder()
315 HidDeviceService service = getService(); in registerApp() local
316 if (service == null) { in registerApp()
320 return service.registerApp(sdp, inQos, outQos, callback); in registerApp()
329 HidDeviceService service = getService(); in unregisterApp() local
330 if (service == null) { in unregisterApp()
334 return service.unregisterApp(); in unregisterApp()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java388 Binder(MapClientService service) { in Binder() argument
392 mService = service; in Binder()
419 MapClientService service = getService(); in isConnected() local
420 if (service == null) { in isConnected()
423 return service.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isConnected()
431 MapClientService service = getService(); in connect() local
432 if (service == null) { in connect()
435 return service.connect(device); in connect()
443 MapClientService service = getService(); in disconnect() local
444 if (service == null) { in disconnect()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DNotificationAccessPreferenceController.java31 import android.service.notification.NotificationListenerService;
73 ComponentName service = arguments.getParcelable(KEY_SERVICE);
74 grantNotificationAccess(service);
78 ComponentName service = arguments.getParcelable(KEY_SERVICE);
79 revokeNotificationAccess(service);
139 for (ServiceInfo service : services) { in onServicesReloaded()
140 ComponentName cn = new ComponentName(service.packageName, service.name); in onServicesReloaded()
143 title = packageManager.getApplicationInfoAsUser(service.packageName, /* flags= */ 0, in onServicesReloaded()
148 String summary = service.loadLabel(packageManager).toString(); in onServicesReloaded()
151 pref.setIcon(mIconDrawableFactory.getBadgedIcon(service, service.applicationInfo, in onServicesReloaded()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java130 A2dpSinkService service = getService(); in connect() local
131 if (service == null) { in connect()
134 return service.connect(device); in connect()
139 A2dpSinkService service = getService(); in disconnect() local
140 if (service == null) { in disconnect()
143 return service.disconnect(device); in disconnect()
148 A2dpSinkService service = getService(); in getConnectedDevices() local
149 if (service == null) { in getConnectedDevices()
152 return service.getConnectedDevices(); in getConnectedDevices()
157 A2dpSinkService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/security/
DInitialLockSetupServiceTest.java89 IInitialLockSetupService service = IInitialLockSetupService.Stub.asInterface( in testGetLockConfig_returnsCorrectConfig() local
91 LockConfig pinConfig = service.getLockConfig(LockTypes.PIN); in testGetLockConfig_returnsCorrectConfig()
94 LockConfig patternConfig = service.getLockConfig(LockTypes.PATTERN); in testGetLockConfig_returnsCorrectConfig()
97 LockConfig passwordConfig = service.getLockConfig(LockTypes.PASSWORD); in testGetLockConfig_returnsCorrectConfig()
104 IInitialLockSetupService service = IInitialLockSetupService.Stub.asInterface( in testCheckValidLock_tooShort() local
106 int result = service.checkValidLock(LockTypes.PASSWORD, "hi".getBytes()); in testCheckValidLock_tooShort()
113 IInitialLockSetupService service = IInitialLockSetupService.Stub.asInterface( in testCheckValidLock_longEnough() local
115 int result = service.checkValidLock(LockTypes.PASSWORD, "password".getBytes()); in testCheckValidLock_longEnough()
122 IInitialLockSetupService service = IInitialLockSetupService.Stub.asInterface( in testCheckValidLockPin_withLetters() local
124 int result = service.checkValidLock(LockTypes.PIN, "12a3".getBytes()); in testCheckValidLockPin_withLetters()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java823 HearingAidService service = getService(); in connect() local
824 if (service == null) { in connect()
827 return service.connect(device); in connect()
832 HearingAidService service = getService(); in disconnect() local
833 if (service == null) { in disconnect()
836 return service.disconnect(device); in disconnect()
841 HearingAidService service = getService(); in getConnectedDevices() local
842 if (service == null) { in getConnectedDevices()
845 return service.getConnectedDevices(); in getConnectedDevices()
850 HearingAidService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCreateConnectionProcessorTest.java151 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testSimPhoneAccountSuccess() local
157 verify(mMockCall).setConnectionService(eq(service)); in testSimPhoneAccountSuccess()
158 verify(service).createConnection(eq(mMockCall), any(CreateConnectionResponse.class)); in testSimPhoneAccountSuccess()
174 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testbadPhoneAccount() local
178 verify(service, never()).createConnection(eq(mMockCall), in testbadPhoneAccount()
193 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testConnectionManagerSuccess() local
204 verify(mMockCall).setConnectionService(eq(service)); in testConnectionManagerSuccess()
205 verify(service).createConnection(eq(mMockCall), in testConnectionManagerSuccess()
222 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testConnectionManagerFailedFallToSim() local
228 when(mMockCall.getConnectionService()).thenReturn(service); in testConnectionManagerFailedFallToSim()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarConfigurationServiceTest.java54 CarConfigurationService service = new CarConfigurationService( in testJsonResourceSuccessfullyRead() local
57 service.init(); in testJsonResourceSuccessfullyRead()
59 assertThat(service.mConfigFile).isNotNull(); in testJsonResourceSuccessfullyRead()
67 assertThat(service.getSpeedBumpConfiguration()).isEqualTo(expectedConfiguration); in testJsonResourceSuccessfullyRead()
73 CarConfigurationService service = new CarConfigurationService( in testJsonFileSuccessfullyRead() local
76 service.init(); in testJsonFileSuccessfullyRead()
79 assertThat(service.mConfigFile).isNotNull(); in testJsonFileSuccessfullyRead()
85 CarConfigurationService service = new CarConfigurationService( in testNullJsonStringResultsInNullConfigFile() local
88 service.init(); in testNullJsonStringResultsInNullConfigFile()
91 assertThat(service.mConfigFile).isNull(); in testNullJsonStringResultsInNullConfigFile()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java235 PanService service = getService(); in connect() local
236 if (service == null) { in connect()
239 return service.connect(device); in connect()
244 PanService service = getService(); in disconnect() local
245 if (service == null) { in disconnect()
248 return service.disconnect(device); in disconnect()
253 PanService service = getService(); in getConnectionState() local
254 if (service == null) { in getConnectionState()
257 return service.getConnectionState(device); in getConnectionState()
261 PanService service = getService(); in isPanNapOn() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java208 PbapClientService service = getService(); in connect() local
212 if (service == null) { in connect()
216 return service.connect(device); in connect()
221 PbapClientService service = getService(); in disconnect() local
222 if (service == null) { in disconnect()
225 return service.disconnect(device); in disconnect()
230 PbapClientService service = getService(); in getConnectedDevices() local
231 if (service == null) { in getConnectedDevices()
234 return service.getConnectedDevices(); in getConnectedDevices()
239 PbapClientService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java887 SapBinder(SapService service) { in SapBinder() argument
889 mService = service; in SapBinder()
900 SapService service = getService(); in getState() local
901 if (service == null) { in getState()
910 SapService service = getService(); in getClient() local
911 if (service == null) { in getClient()
914 Log.v(TAG, "getClient() - returning " + service.getRemoteDevice()); in getClient()
915 return service.getRemoteDevice(); in getClient()
921 SapService service = getService(); in isConnected() local
922 if (service == null) { in isConnected()
[all …]
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java93 IInstrumentCluster service = IInstrumentCluster.Stub.asInterface(binder);
96 mRendererService = service;
99 if (navContextOwner != null && service != null) {
100 notifyNavContextOwnerChanged(service, navContextOwner);
181 IInstrumentCluster service; in changeNavContextOwner() local
196 service = mRendererService; in changeNavContextOwner()
199 if (service != null) { in changeNavContextOwner()
200 notifyNavContextOwnerChanged(service, newOwner); in changeNavContextOwner()
204 private static void notifyNavContextOwnerChanged(IInstrumentCluster service, in notifyNavContextOwnerChanged() argument
207 service.setNavigationContextOwner(owner.uid, owner.pid); in notifyNavContextOwnerChanged()
[all …]

12345678910>>...31