Home
last modified time | relevance | path

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

12345678910>>...30

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java797 private void setProfileServiceState(Class service, int state) { in setProfileServiceState() argument
798 Intent intent = new Intent(this, service); in setProfileServiceState()
805 for (Class service : services) { in setAllProfileServiceStates()
806 if (GattService.class.getSimpleName().equals(service.getSimpleName())) { in setAllProfileServiceStates()
809 setProfileServiceState(service, state); in setAllProfileServiceStates()
1083 AdapterService service = getService(); in getState() local
1084 if (service == null) { in getState()
1088 enforceBluetoothPermission(service); in getState()
1090 return service.getState(); in getState()
1095 AdapterService service = getService(); in enable() local
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java225 for (ApduServiceInfo service : services) { in verifyDefaults()
226 if (service.hasCategory(CardEmulation.CATEGORY_PAYMENT)) { in verifyDefaults()
228 lastFoundPaymentService = service.getComponent(); in verifyDefaults()
257 ComponentName service = ComponentName.unflattenFromString(name); in getDefaultServiceForCategory() local
258 if (!validateInstalled || service == null) { in getDefaultServiceForCategory()
259 return service; in getDefaultServiceForCategory()
261 return mServiceCache.hasService(userId, service) ? service : null; in getDefaultServiceForCategory()
268 boolean setDefaultServiceForCategoryChecked(int userId, ComponentName service, in setDefaultServiceForCategoryChecked() argument
277 if (service == null || mServiceCache.hasService(userId, service)) { in setDefaultServiceForCategoryChecked()
280 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.java320 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onConnectionStateChanged() local
321 if (service != null) { in onConnectionStateChanged()
322 service.messageFromNative(event); in onConnectionStateChanged()
335 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onAudioStateChanged() local
336 if (service != null) { in onAudioStateChanged()
337 service.messageFromNative(event); in onAudioStateChanged()
352 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onVrStateChanged() local
353 if (service != null) { in onVrStateChanged()
354 service.messageFromNative(event); in onVrStateChanged()
369 HeadsetClientService service = HeadsetClientService.getHeadsetClientService(); in onNetworkState() local
[all …]
DHeadsetClientService.java222 HeadsetClientService service = getService(); in connect() local
223 if (service == null) { in connect()
226 return service.connect(device); in connect()
231 HeadsetClientService service = getService(); in disconnect() local
232 if (service == null) { in disconnect()
235 return service.disconnect(device); in disconnect()
240 HeadsetClientService service = getService(); in getConnectedDevices() local
241 if (service == null) { in getConnectedDevices()
244 return service.getConnectedDevices(); in getConnectedDevices()
249 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;
125 public RadioAppServiceWrapper(@NonNull IRadioAppService service) { in RadioAppServiceWrapper() argument
126 Objects.requireNonNull(service); in RadioAppServiceWrapper()
127 mService.set(service); in RadioAppServiceWrapper()
128 initialize(service); in RadioAppServiceWrapper()
131 private void initialize(@NonNull IRadioAppService service) { in initialize() argument
133 service.addCallback(mCallback); in initialize()
205 callService(service -> service.removeCallback(mCallback)); in unbind()
209 private void onServiceConnected(IBinder binder, @NonNull IRadioAppService service) { in onServiceConnected() argument
211 mService.set(service); in onServiceConnected()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java424 GattService service = getService(); in getDevicesMatchingConnectionStates() local
425 if (service == null) { in getDevicesMatchingConnectionStates()
428 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
433 GattService service = getService(); in registerClient() local
434 if (service == null) { in registerClient()
437 service.registerClient(uuid.getUuid(), callback); in registerClient()
442 GattService service = getService(); in unregisterClient() local
443 if (service == null) { in unregisterClient()
446 service.unregisterClient(clientIf); in unregisterClient()
452 GattService service = getService(); in registerScanner() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java426 final HeadsetService service = mService; in getService() local
427 if (!Utils.checkCallerAllowManagedProfiles(service)) { in getService()
431 if (service == null) { in getService()
435 if (!service.isAlive()) { in getService()
439 return service; in getService()
444 HeadsetService service = getService(); in connect() local
445 if (service == null) { in connect()
448 return service.connect(device); in connect()
453 HeadsetService service = getService(); in disconnect() local
454 if (service == null) { in disconnect()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java347 HidHostService service = getService(); in connect() local
348 if (service == null) { in connect()
351 enforceBluetoothPrivilegedPermission(service); in connect()
352 return service.connect(device); in connect()
357 HidHostService service = getService(); in disconnect() local
358 if (service == null) { in disconnect()
361 enforceBluetoothPrivilegedPermission(service); in disconnect()
362 return service.disconnect(device); in disconnect()
367 HidHostService service = getService(); in getConnectionState() local
368 if (service == null) { in getConnectionState()
[all …]
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 …]
DHidDeviceService.java247 BluetoothHidDeviceDeathRecipient(HidDeviceService service) { in BluetoothHidDeviceDeathRecipient() argument
248 mService = service; in BluetoothHidDeviceDeathRecipient()
281 BluetoothHidDeviceBinder(HidDeviceService service) { in BluetoothHidDeviceBinder() argument
282 mService = service; in BluetoothHidDeviceBinder()
319 HidDeviceService service = getService(); in registerApp() local
320 if (service == null) { in registerApp()
324 return service.registerApp(sdp, inQos, outQos, callback); in registerApp()
333 HidDeviceService service = getService(); in unregisterApp() local
334 if (service == null) { in unregisterApp()
338 return service.unregisterApp(); in unregisterApp()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java1222 A2dpService service = getService(); in connect() local
1223 if (service == null) { in connect()
1226 return service.connect(device); in connect()
1231 A2dpService service = getService(); in disconnect() local
1232 if (service == null) { in disconnect()
1235 return service.disconnect(device); in disconnect()
1240 A2dpService service = getService(); in getConnectedDevices() local
1241 if (service == null) { in getConnectedDevices()
1244 return service.getConnectedDevices(); in getConnectedDevices()
1249 A2dpService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java451 Binder(MapClientService service) { in Binder() argument
455 mService = service; in Binder()
482 MapClientService service = getService(); in isConnected() local
483 if (service == null) { in isConnected()
486 return service.getConnectionState(device) == BluetoothProfile.STATE_CONNECTED; in isConnected()
494 MapClientService service = getService(); in connect() local
495 if (service == null) { in connect()
498 return service.connect(device); in connect()
506 MapClientService service = getService(); in disconnect() local
507 if (service == null) { in disconnect()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java102 public static synchronized void setA2dpSinkService(A2dpSinkService service) { in setA2dpSinkService() argument
103 sService = service; in setA2dpSinkService()
175 A2dpSinkService service = getService(); in connect() local
176 if (service == null) { in connect()
179 return service.connect(device); in connect()
184 A2dpSinkService service = getService(); in disconnect() local
185 if (service == null) { in disconnect()
188 return service.disconnect(device); in disconnect()
193 A2dpSinkService service = getService(); in getConnectedDevices() local
194 if (service == null) { in getConnectedDevices()
[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/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.java872 HearingAidService service = getService(); in connect() local
873 if (service == null) { in connect()
876 return service.connect(device); in connect()
881 HearingAidService service = getService(); in disconnect() local
882 if (service == null) { in disconnect()
885 return service.disconnect(device); in disconnect()
890 HearingAidService service = getService(); in getConnectedDevices() local
891 if (service == null) { in getConnectedDevices()
894 return service.getConnectedDevices(); in getConnectedDevices()
899 HearingAidService service = getService(); in getDevicesMatchingConnectionStates() local
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCreateConnectionProcessorTest.java153 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testSimPhoneAccountSuccess() local
159 verify(mMockCall).setConnectionService(eq(service)); in testSimPhoneAccountSuccess()
160 verify(service).createConnection(eq(mMockCall), any(CreateConnectionResponse.class)); in testSimPhoneAccountSuccess()
176 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testbadPhoneAccount() local
180 verify(service, never()).createConnection(eq(mMockCall), in testbadPhoneAccount()
195 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testConnectionManagerSuccess() local
206 verify(mMockCall).setConnectionService(eq(service)); in testConnectionManagerSuccess()
207 verify(service).createConnection(eq(mMockCall), in testConnectionManagerSuccess()
224 ConnectionServiceWrapper service = makeConnectionServiceWrapper(); in testConnectionManagerFailedFallToSim() local
230 when(mMockCall.getConnectionService()).thenReturn(service); in testConnectionManagerFailedFallToSim()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java253 PanService service = getService(); in connect() local
254 if (service == null) { in connect()
257 return service.connect(device); in connect()
262 PanService service = getService(); in disconnect() local
263 if (service == null) { in disconnect()
266 return service.disconnect(device); in disconnect()
271 PanService service = getService(); in setConnectionPolicy() local
272 if (service == null) { in setConnectionPolicy()
275 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
280 PanService service = getService(); in getConnectionState() local
[all …]
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java102 IInstrumentCluster service = IInstrumentCluster.Stub.asInterface(binder);
105 mRendererService = service;
108 if (navContextOwner != null && service != null) {
109 notifyNavContextOwnerChanged(service, navContextOwner);
139 FixedActivityService service = CarLocalServices.getService(
141 return service.startFixedActivityModeForDisplayAndUser(intent, options,
148 FixedActivityService service = CarLocalServices.getService(
150 service.stopFixedActivityMode(displayId);
212 IInstrumentCluster service; in changeNavContextOwner() local
227 service = mRendererService; in changeNavContextOwner()
[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/modules/NetworkStack/common/networkstackclient/src/android/net/
DIpMemoryStoreClient.java91 runWhenServiceReady(service -> ignoringRemoteException( in storeNetworkAttributes()
92 () -> service.storeNetworkAttributes(l2Key, attributes.toParcelable(), in storeNetworkAttributes()
116 runWhenServiceReady(service -> ignoringRemoteException( in storeBlob()
117 () -> service.storeBlob(l2Key, clientId, name, data, in storeBlob()
143 runWhenServiceReady(service -> ignoringRemoteException( in findL2Key()
144 () -> service.findL2Key(attributes.toParcelable(), in findL2Key()
165 runWhenServiceReady(service -> ignoringRemoteException( in isSameNetwork()
166 () -> service.isSameNetwork(l2Key1, l2Key2, in isSameNetwork()
187 runWhenServiceReady(service -> ignoringRemoteException( in retrieveNetworkAttributes()
188 () -> service.retrieveNetworkAttributes(l2Key, in retrieveNetworkAttributes()
[all …]
/packages/services/Car/car-lib/src/android/car/
DCar.java721 public void onServiceConnected(ComponentName name, IBinder service) {
723 ICar newService = ICar.Stub.asInterface(service);
738 mServiceConnectionListenerClient.onServiceConnected(name, service);
847 IBinder service = null; in createCar() local
851 service = ServiceManager.getService(CAR_SERVICE_BINDER_SERVICE_NAME); in createCar()
854 car = new Car(context, ICar.Stub.asInterface(service), in createCar()
857 if (service != null) { in createCar()
888 car.mService = ICar.Stub.asInterface(service); in createCar()
945 IBinder service = null; in createCar() local
958 service = ServiceManager.getService(CAR_SERVICE_BINDER_SERVICE_NAME); in createCar()
[all …]

12345678910>>...30