Lines Matching refs:role
38 * <p> How to connect to a health device which is acting in the source role.
140 * @param dataType The dataType of the Source role of Health Profile to which
157 * SOURCE role.This is an asynchronous call and so
163 * @param dataType The dataType of the Source role of Health Profile.
171 public boolean registerAppConfiguration(String name, int dataType, int role,
174 if (!isEnabled() || !checkAppParam(name, role, channelType, callback)) return result;
179 new BluetoothHealthAppConfiguration(name, dataType, role, channelType);
556 private boolean checkAppParam(String name, int role, int channelType,
558 if (name == null || (role != SOURCE_ROLE && role != SINK_ROLE) ||
564 if (role == SOURCE_ROLE && channelType == CHANNEL_TYPE_ANY) return false;