/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/field/ |
PrimeField.java | 7 protected final BigInteger characteristic; field in class:PrimeField 9 PrimeField(BigInteger characteristic) 11 this.characteristic = characteristic; 16 return characteristic; 35 return characteristic.equals(other.characteristic); 40 return characteristic.hashCode();
|
FiniteFields.java | 32 public static FiniteField getPrimeField(BigInteger characteristic) 34 int bitLength = characteristic.bitLength(); 35 if (characteristic.signum() <= 0 || bitLength < 2) 37 throw new IllegalArgumentException("'characteristic' must be >= 2"); 42 switch (characteristic.intValue()) 51 return new PrimeField(characteristic);
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothGattCallback.java | 51 * Callback reporting the result of a characteristic read operation. 54 * @param characteristic Characteristic that was read from the associated 59 public void onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, 64 * Callback indicating the result of a characteristic write operation. 67 * in progress, the value of the characteristic represents the value 73 * @param characteristic Characteristic that was written to the associated 79 BluetoothGattCharacteristic characteristic, int status) { 83 * Callback triggered as a result of a remote characteristic notification [all...] |
BluetoothGattDescriptor.java | 28 * characteristic, {@link BluetoothGattCharacteristic}. They can be used to describe 29 * the characteristic's features or to control certain behaviours of the characteristic. 109 * Back-reference to the characteristic this descriptor belongs to. 135 * @param characteristic The characteristic this descriptor belongs to 139 /*package*/ BluetoothGattDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, 141 initDescriptor(characteristic, uuid, instance, permissions); 151 private void initDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, 153 mCharacteristic = characteristic; [all...] |
BluetoothGattService.java | 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 [all...] |
BluetoothGatt.java | 245 * Remote characteristic has been read. 278 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice, handle); 279 if (characteristic == null) { 280 Log.w(TAG, "onCharacteristicRead() failed to find characteristic!"); 284 if (status == 0) characteristic.setValue(value); 287 mCallback.onCharacteristicRead(BluetoothGatt.this, characteristic, status); 294 * Characteristic has been written to the remote device. 310 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice, handle); 311 if (characteristic == null) return; 319 characteristic.getWriteType(), AUTHENTICATION_MITM [all...] |
BluetoothGattServerCallback.java | 50 * A remote client has requested to read a local characteristic. 57 * @param offset Offset into the value of the characteristic 58 * @param characteristic Characteristic to be read 61 int offset, BluetoothGattCharacteristic characteristic) { 65 * A remote client has requested to write to a local characteristic. 72 * @param characteristic Characteristic to be written to. 77 * @param value The value the client wants to assign to the characteristic 80 BluetoothGattCharacteristic characteristic, [all...] |
BluetoothGattServer.java | 129 * Remote client characteristic read request. 138 + "service=" + srvcUuid + ", characteristic=" + charUuid); 144 BluetoothGattCharacteristic characteristic = service.getCharacteristic(charUuid); 145 if (characteristic == null) return; 148 mCallback.onCharacteristicReadRequest(device, transId, offset, characteristic); 166 + "service=" + srvcUuid + ", characteristic=" + charUuid 173 BluetoothGattCharacteristic characteristic = service.getCharacteristic(charUuid); 174 if (characteristic == null) return; 176 BluetoothGattDescriptor descriptor = characteristic.getDescriptor(descrUuid); 187 * Remote client characteristic write request [all...] |
/developers/build/prebuilts/gradle/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
BluetoothLeService.java | 103 BluetoothGattCharacteristic characteristic, 106 broadcastUpdate(ACTION_DATA_AVAILABLE, characteristic); 112 BluetoothGattCharacteristic characteristic) { 113 broadcastUpdate(ACTION_DATA_AVAILABLE, characteristic); 123 final BluetoothGattCharacteristic characteristic) { 128 // http://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml 129 if (UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())) { 130 int flag = characteristic.getProperties(); 139 final int heartRate = characteristic.getIntValue(format, 1); 144 final byte[] data = characteristic.getValue() [all...] |
DeviceControlActivity.java | 116 // If a given GATT characteristic is selected, check for supported features. This sample 119 // list of supported characteristic features. 126 final BluetoothGattCharacteristic characteristic = 128 final int charaProp = characteristic.getProperties(); 130 // If there is an active notification on a characteristic, clear 137 mBluetoothLeService.readCharacteristic(characteristic); 140 mNotifyCharacteristic = characteristic; 142 characteristic, true);
|
/developers/samples/android/connectivity/bluetooth/BluetoothLeGatt/Application/src/main/java/com/example/android/bluetoothlegatt/ |
BluetoothLeService.java | 103 BluetoothGattCharacteristic characteristic, 106 broadcastUpdate(ACTION_DATA_AVAILABLE, characteristic); 112 BluetoothGattCharacteristic characteristic) { 113 broadcastUpdate(ACTION_DATA_AVAILABLE, characteristic); 123 final BluetoothGattCharacteristic characteristic) { 128 // http://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml 129 if (UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())) { 130 int flag = characteristic.getProperties(); 139 final int heartRate = characteristic.getIntValue(format, 1); 144 final byte[] data = characteristic.getValue() [all...] |
DeviceControlActivity.java | 116 // If a given GATT characteristic is selected, check for supported features. This sample 119 // list of supported characteristic features. 126 final BluetoothGattCharacteristic characteristic = 128 final int charaProp = characteristic.getProperties(); 130 // If there is an active notification on a characteristic, clear 137 mBluetoothLeService.readCharacteristic(characteristic); 140 mNotifyCharacteristic = characteristic; 142 characteristic, true);
|
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/ |
BluetoothLeService.java | 103 BluetoothGattCharacteristic characteristic, 106 broadcastUpdate(ACTION_DATA_AVAILABLE, characteristic); 112 BluetoothGattCharacteristic characteristic) { 113 broadcastUpdate(ACTION_DATA_AVAILABLE, characteristic); 123 final BluetoothGattCharacteristic characteristic) { 128 // http://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml 129 if (UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())) { 130 int flag = characteristic.getProperties(); 139 final int heartRate = characteristic.getIntValue(format, 1); 144 final byte[] data = characteristic.getValue() [all...] |
DeviceControlActivity.java | 116 // If a given GATT characteristic is selected, check for supported features. This sample 119 // list of supported characteristic features. 126 final BluetoothGattCharacteristic characteristic = 128 final int charaProp = characteristic.getProperties(); 130 // If there is an active notification on a characteristic, clear 137 mBluetoothLeService.readCharacteristic(characteristic); 140 mNotifyCharacteristic = characteristic; 142 characteristic, true);
|
/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/ |
BluetoothMidiDevice.java | 58 // Bluetooth MIDI Gatt characteristic UUID 61 // Descriptor UUID for enabling characteristic changed notifications 121 for (BluetoothGattCharacteristic characteristic : characteristics) { 122 if (MIDI_CHARACTERISTIC.equals(characteristic.getUuid())) { 124 mCharacteristic = characteristic; 126 // Specification says to read the characteristic first and then 128 mBluetoothGatt.readCharacteristic(characteristic); 143 BluetoothGattCharacteristic characteristic, 147 // switch to receiving notifications after initial characteristic read 148 mBluetoothGatt.setCharacteristicNotification(characteristic, true) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
BleClientService.java | 153 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); local 154 if (characteristic == null) return; 155 characteristic.setValue(writeValue); 156 mBluetoothGatt.writeCharacteristic(characteristic); 160 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); local 161 if (characteristic != null) mBluetoothGatt.readCharacteristic(characteristic); 177 BluetoothGattCharacteristic characteristic = getCharacteristic(UPDATE_CHARACTERISTIC_UUID); local 178 if (characteristic != null) 179 mBluetoothGatt.setCharacteristicNotification(characteristic, enable) 274 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); local [all...] |
BleServerService.java | 139 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); local 140 if (characteristic != null) return; 141 characteristic.setValue(writeValue); 205 BluetoothGattCharacteristic characteristic = local 207 if (characteristic == null) { 208 showMessage("Characteristic not found"); 211 return characteristic; 215 BluetoothGattCharacteristic characteristic = getCharacteristic(CHARACTERISTIC_UUID); local 216 if (characteristic == null) return null; 218 BluetoothGattDescriptor descriptor = characteristic.getDescriptor(DESCRIPTOR_UUID) 229 BluetoothGattCharacteristic characteristic = local [all...] |
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
bt_gatt_utils.py | 115 for characteristic in characteristic_uuids: 118 discovered_services_index, i, characteristic)) 125 characteristic, descriptor, test_value) 128 characteristic, descriptor) 215 for characteristic in characteristic_list: 217 characteristic) 226 for characteristic in characteristic_list: 228 characteristic) 235 for characteristic in characteristic_list: 237 characteristic) [all...] |
GattConnectedBaseTest.py | 46 # CCC == Client Characteristic Configuration 205 for characteristic in characteristic_list: 207 gatt_service3, characteristic)
|
/tools/test/connectivity/acts/tests/google/bt/gatt/ |
GattOverBrEdrTest.py | 121 for characteristic in characteristic_uuids: 122 self.log.info("Discovered characteristic uuid {}".format( 123 characteristic)) 126 discovered_services_index, i, characteristic)) 161 for characteristic in characteristic_list: 163 gatt_service, characteristic) 169 for characteristic in characteristic_list: 171 gatt_service2, characteristic) 177 for characteristic in characteristic_list: 179 gatt_service3, characteristic) [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/bluetooth/ |
GattServerFacade.java | 199 * Notify that characteristic was changed 203 * @param characteristicIndex characteristic index 207 @Rpc(description = "Notify that characteristic was changed.") 251 * Add a characteristic to a bluetooth gatt service 258 @Rpc(description = "Add a characteristic to a bluetooth gatt service") 279 * Add a characteristic to a bluetooth gatt service 281 * @param index the bluetooth gatt service to add a characteristic to 282 * @param characteristicIndex the characteristic to add 285 @Rpc(description = "Add a characteristic to a bluetooth gatt service") 373 * Add a descriptor to a bluetooth gatt characteristic 408 BluetoothGattCharacteristic characteristic = local [all...] |
GattClientFacade.java | 366 * Reads the requested characteristic from the associated remote device. 371 * @param characteristicUuid the characteristic uuid to read 375 @Rpc(description = "Reads the requested characteristic from the associated remote device.") 397 throw new Exception("Invalid characteristic uuid: " + characteristicUuid); 407 * @param characteristicUuid - the characteristic uuid in which the descriptor is 434 throw new Exception("Invalid characteristic uuid: " + characteristicUuid); 476 throw new Exception("Invalid characteristic uuid: " + characteristicUuid); 491 * @param characteristicUuid - the characteristic uuid in which the descriptor is 519 throw new Exception("Invalid characteristic uuid: " + characteristicUuid); 530 * Write the value of a given characteristic to the associated remote devic [all...] |
/tools/test/connectivity/acts/tests/google/ble/gatt/ |
GattConnectTest.py | 117 for characteristic in characteristic_uuids: 118 self.log.info("Discovered characteristic uuid {}".format( 119 characteristic)) 122 discovered_services_index, i, characteristic)) 163 for characteristic in characteristic_list: 165 gatt_service, characteristic) 171 for characteristic in characteristic_list: 173 gatt_service2, characteristic) 179 for characteristic in characteristic_list: 181 gatt_service3, characteristic) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothAccessoryFragment.java | 309 BluetoothGattCharacteristic characteristic, int status) { 312 Log.e(TAG, "Read characteristic failure on " + gatt + " " + characteristic); 317 if (GATT_BATTERY_LEVEL_CHARACTERISTIC_UUID.equals(characteristic.getUuid())) { 319 characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, 0);
|
/system/bt/bta/gatt/ |
bta_gattc_cache.c | 80 "C", /* Characteristic */ 81 "D" /* Characteristic Descriptor */ 235 APPL_TRACE_DEBUG("%s: Add a characteristic into Service", __func__); 246 /* TODO(jpawlowski): We should use attribute handle, not value handle to refer to characteristic. 252 tBTA_GATTC_CHARACTERISTIC *characteristic = osi_malloc(sizeof(tBTA_GATTC_CHARACTERISTIC)); local 254 characteristic->handle = value_handle; 255 characteristic->properties = property; 256 characteristic->descriptors = list_new(osi_free); 257 memcpy(&characteristic->uuid, p_uuid, sizeof(tBT_UUID)); 259 characteristic->service = service [all...] |