Lines Matching defs:config

300         public BluetoothHealthDeathRecipient(HealthService service, BluetoothHealthAppConfiguration config) {
302 mConfig = config;
343 public boolean registerAppConfiguration(BluetoothHealthAppConfiguration config,
347 return service.registerAppConfiguration(config, callback);
350 public boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config) {
353 return service.unregisterAppConfiguration(config);
357 BluetoothHealthAppConfiguration config) {
360 return service.connectChannelToSource(device, config);
364 BluetoothHealthAppConfiguration config, int channelType) {
367 return service.connectChannelToSink(device, config, channelType);
371 BluetoothHealthAppConfiguration config, int channelId) {
374 return service.disconnectChannel(device, config, channelId);
378 BluetoothHealthAppConfiguration config) {
381 return service.getMainChannelFd(device, config);
403 boolean registerAppConfiguration(BluetoothHealthAppConfiguration config,
407 if (mApps.get(config) != null) {
411 mApps.put(config, new AppInfo(callback));
412 Message msg = mHandler.obtainMessage(MESSAGE_REGISTER_APPLICATION,config);
417 boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config) {
419 if (mApps.get(config) == null) {
423 Message msg = mHandler.obtainMessage(MESSAGE_UNREGISTER_APPLICATION,config);
429 BluetoothHealthAppConfiguration config) {
431 return connectChannel(device, config, BluetoothHealth.CHANNEL_TYPE_ANY);
435 BluetoothHealthAppConfiguration config, int channelType) {
437 return connectChannel(device, config, channelType);
441 BluetoothHealthAppConfiguration config, int channelId) {
454 BluetoothHealthAppConfiguration config) {
458 if (chan.mDevice.equals(device) && chan.mConfig.equals(config)) {
463 Log.e(TAG, "No channel found for device: " + device + " config: " + config);
513 private void callStatusCallback(BluetoothHealthAppConfiguration config, int status) {
514 if (VDBG) log ("Health Device Application: " + config + " State Change: status:" + status);
515 IBluetoothHealthCallback callback = (mApps.get(config)).mCallback;
521 callback.onHealthAppConfigurationStatusChange(config, status);
576 BluetoothHealthAppConfiguration config, int channelType) {
577 if (mApps.get(config) == null) {
578 Log.e(TAG, "connectChannel fail to get a app id from config");
582 HealthChannel chan = new HealthChannel(device, config, channelType);
591 private void callHealthChannelCallback(BluetoothHealthAppConfiguration config,
608 IBluetoothHealthCallback callback = (mApps.get(config)).mCallback;
610 Log.e(TAG, "No callback found for config: " + config);
615 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id);
849 private HealthChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config,
853 mConfig = config;