Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:characteristic

226      * Add a characteristic to this service.
229 * @param characteristic The characteristics to be added
230 * @return true, if the characteristic was added to the service
232 public boolean addCharacteristic(BluetoothGattCharacteristic characteristic) {
233 mCharacteristics.add(characteristic);
234 characteristic.setService(this);
239 * Get characteristic by UUID and instanceId.
243 for(BluetoothGattCharacteristic characteristic : mCharacteristics) {
244 if (uuid.equals(characteristic.getUuid())
245 && characteristic.getInstanceId() == instanceId)
246 return characteristic;
334 * Returns a characteristic with a given UUID out of the list of
337 * <p>This is a convenience function to allow access to a given characteristic
342 * UUID, the first instance of a characteristic with the given UUID
345 * @return GATT characteristic object or null if no characteristic with the
349 for(BluetoothGattCharacteristic characteristic : mCharacteristics) {
350 if (uuid.equals(characteristic.getUuid()))
351 return characteristic;