no.nordicsemi.android.ble.common.profile.hr.BodySensorLocationCallback Java Examples

The following examples show how to use no.nordicsemi.android.ble.common.profile.hr.BodySensorLocationCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BodySensorLocationDataCallbackTest.java    From Android-BLE-Common-Library with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Test
public void onBodySensorLocationReceived() {
	success = false;
	final Data data = new Data(new byte[] { BodySensorLocationCallback.SENSOR_LOCATION_EAR_LOBE });
	response.onDataReceived(null, data);
	assertTrue(response.isValid());
	assertTrue(success);
	assertEquals(BodySensorLocationCallback.SENSOR_LOCATION_EAR_LOBE, sensorLocation);
}
 
Example #2
Source File: BodySensorLocationDataCallbackTest.java    From Android-BLE-Library with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@Test
public void onBodySensorLocationReceived() {
	success = false;
	final Data data = new Data(new byte[] { BodySensorLocationCallback.SENSOR_LOCATION_EAR_LOBE });
	response.onDataReceived(null, data);
	assertTrue(response.isValid());
	assertTrue(success);
	assertEquals(BodySensorLocationCallback.SENSOR_LOCATION_EAR_LOBE, sensorLocation);
}