Home | History | Annotate | Download | only in bluetooth

Lines Matching defs:characteristic

140      * Add a characteristic to this service.
143 * @param characteristic The characteristics to be added
144 * @return true, if the characteristic was added to the service
146 public boolean addCharacteristic(BluetoothGattCharacteristic characteristic) {
147 mCharacteristics.add(characteristic);
148 characteristic.setService(this);
153 * Get characteristic by UUID and instanceId.
157 for(BluetoothGattCharacteristic characteristic : mCharacteristics) {
158 if (uuid.equals(characteristic.getUuid())
159 && characteristic.getInstanceId() == instanceId)
160 return characteristic;
248 * Returns a characteristic with a given UUID out of the list of
251 * <p>This is a convenience function to allow access to a given characteristic
256 * UUID, the first instance of a characteristic with the given UUID
259 * @return GATT characteristic object or null if no characteristic with the
263 for(BluetoothGattCharacteristic characteristic : mCharacteristics) {
264 if (uuid.equals(characteristic.getUuid()))
265 return characteristic;