test_class.declarator: mockContext
test_class.original_string: Context mockContext;
test_class.type: Context
test_class.var_name: mockContext
test_class.declarator: mockDevice
test_class.original_string: BluetoothDevice mockDevice;
test_class.type: BluetoothDevice
test_class.var_name: mockDevice
test_class.declarator: mockHandler
test_class.original_string: Handler mockHandler;
test_class.type: Handler
test_class.var_name: mockHandler
test_class.declarator: mockGattClient
test_class.original_string: GattClient mockGattClient;
test_class.type: GattClient
test_class.var_name: mockGattClient
test_class.declarator: mockGattSerialTransportProfile
test_class.original_string: GattSerialTransportProfile mockGattSerialTransportProfile;
test_class.type: GattSerialTransportProfile
test_class.var_name: mockGattSerialTransportProfile
test_class.declarator: mockDeviceProfile
test_class.original_string: DeviceProfile mockDeviceProfile;
test_class.type: DeviceProfile
test_class.var_name: mockDeviceProfile
test_class.declarator: testListener
test_class.original_string: GattClient.ConnectionListener testListener;
test_class.type: GattClient.ConnectionListener
test_class.var_name: testListener
test_class.declarator: handlerRunnables = new ArrayList<>()
test_class.original_string: List<Runnable> handlerRunnables = new ArrayList<>();
test_class.type: List<Runnable>
test_class.var_name: handlerRunnables
test_class.declarator: fwVersionCallback
test_class.original_string: DeviceProfile.VersionCallback fwVersionCallback;
test_class.type: DeviceProfile.VersionCallback
test_class.var_name: fwVersionCallback
test_class.declarator: hwVersionCallback
test_class.original_string: DeviceProfile.VersionCallback hwVersionCallback;
test_class.type: DeviceProfile.VersionCallback
test_class.var_name: hwVersionCallback
test_class.declarator: bean
test_class.original_string: Bean bean;
test_class.type: Bean
test_class.var_name: bean
test_class.file: sdk/src/test/java/com/punchthrough/bean/sdk/BeanTest.java
test_class.identifier: BeanTest
test_case.body: @Test
      public void testReadFirmwareVersion() {
          doAnswer(new Answer() {
              public Object answer(InvocationOnMock invocation) {
                  Object[] args = invocation.getArguments();
                  fwVersionCallback = (DeviceProfile.VersionCallback) args[0];
                  return null;
              }
          }).when(mockDeviceProfile).getFirmwareVersion(any(DeviceProfile.VersionCallback.class));
  
          bean.readFirmwareVersion(new Callback<String>() {
              @Override
              public void onResult(String result) {
                  assertThat(result).isEqualTo("fwfoo");
              }
          });
  
          fwVersionCallback.onComplete("fwfoo");
      }
test_case.class_method_signature: BeanTest.testReadFirmwareVersion()
test_case.full_signature: @Test public void testReadFirmwareVersion()
test_case.identifier: testReadFirmwareVersion
test_case.invocations: getFirmwareVersion when doAnswer getArguments any readFirmwareVersion isEqualTo assertThat onComplete
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadFirmwareVersion()
focal_class.declarator: CREATOR = new Creator<Bean>() {
  
          @Override
          public Bean createFromParcel(Parcel source) {
              Log.i(TAG, "Creating Bean from Parcel!");
  
              // ugly cast to fix bogus warning in Android Studio...
              BluetoothDevice device = source.readParcelable(((Object) this).getClass().getClassLoader());
              if (device == null) {
                  throw new IllegalStateException("Device is null");
              }
              return new Bean(device);
          }
  
          @Override
          public Bean[] newArray(int size) {
              return new Bean[size];
          }
      }
focal_class.modifier: public static final
focal_class.original_string: public static final Creator<Bean> CREATOR = new Creator<Bean>() {
  
          @Override
          public Bean createFromParcel(Parcel source) {
              Log.i(TAG, "Creating Bean from Parcel!");
  
              // ugly cast to fix bogus warning in Android Studio...
              BluetoothDevice device = source.readParcelable(((Object) this).getClass().getClassLoader());
              if (device == null) {
                  throw new IllegalStateException("Device is null");
              }
              return new Bean(device);
          }
  
          @Override
          public Bean[] newArray(int size) {
              return new Bean[size];
          }
      };
focal_class.type: Creator<Bean>
focal_class.var_name: CREATOR
focal_class.declarator: TAG = "BeanSDK"
focal_class.modifier: private static final
focal_class.original_string: private static final String TAG = "BeanSDK";
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: internalBeanListener = new BeanListener() {
          @Override
          public void onConnected() {
              Log.w(TAG, "onConnected after disconnect from device " + getDevice().getAddress());
          }
  
          @Override
          public void onConnectionFailed() {
              Log.w(TAG, "onConnectionFailed after disconnect from device " +
                      getDevice().getAddress());
          }
  
          @Override
          public void onDisconnected() {}
  
          @Override
          public void onSerialMessageReceived(byte[] data) {}
  
          @Override
          public void onScratchValueChanged(ScratchBank bank, byte[] value) {}
  
          @Override
          public void onError(BeanError error) {
              Log.e(TAG, "Bean returned error: " + error);
          }
  
          @Override
          public void onReadRemoteRssi(final int rssi) {}
      }
focal_class.modifier: private
focal_class.original_string: private BeanListener internalBeanListener = new BeanListener() {
          @Override
          public void onConnected() {
              Log.w(TAG, "onConnected after disconnect from device " + getDevice().getAddress());
          }
  
          @Override
          public void onConnectionFailed() {
              Log.w(TAG, "onConnectionFailed after disconnect from device " +
                      getDevice().getAddress());
          }
  
          @Override
          public void onDisconnected() {}
  
          @Override
          public void onSerialMessageReceived(byte[] data) {}
  
          @Override
          public void onScratchValueChanged(ScratchBank bank, byte[] value) {}
  
          @Override
          public void onError(BeanError error) {
              Log.e(TAG, "Bean returned error: " + error);
          }
  
          @Override
          public void onReadRemoteRssi(final int rssi) {}
      };
focal_class.type: BeanListener
focal_class.var_name: internalBeanListener
focal_class.declarator: beanListener = internalBeanListener
focal_class.modifier: private
focal_class.original_string: private BeanListener beanListener = internalBeanListener;
focal_class.type: BeanListener
focal_class.var_name: beanListener
focal_class.declarator: gattClient
focal_class.modifier: private final
focal_class.original_string: private final GattClient gattClient;
focal_class.type: GattClient
focal_class.var_name: gattClient
focal_class.declarator: device
focal_class.modifier: private final
focal_class.original_string: private final BluetoothDevice device;
focal_class.type: BluetoothDevice
focal_class.var_name: device
focal_class.declarator: handler
focal_class.modifier: private final
focal_class.original_string: private final Handler handler;
focal_class.type: Handler
focal_class.var_name: handler
focal_class.declarator: lastKnownContext
focal_class.modifier: private
focal_class.original_string: private Context lastKnownContext;
focal_class.type: Context
focal_class.var_name: lastKnownContext
focal_class.declarator: beanCallbacks = new HashMap<>(16)
focal_class.modifier: private
focal_class.original_string: private HashMap<BeanMessageID, List<Callback<?>>> beanCallbacks = new HashMap<>(16);
focal_class.type: HashMap<BeanMessageID, List<Callback<?>>>
focal_class.var_name: beanCallbacks
focal_class.declarator: SKETCH_UPLOAD_STATE_TIMEOUT = 3000
focal_class.modifier: private static final
focal_class.original_string: private static final int SKETCH_UPLOAD_STATE_TIMEOUT = 3000;
focal_class.type: int
focal_class.var_name: SKETCH_UPLOAD_STATE_TIMEOUT
focal_class.declarator: SKETCH_BLOCK_SEND_INTERVAL = 200
focal_class.modifier: private static final
focal_class.original_string: private static final int SKETCH_BLOCK_SEND_INTERVAL = 200;
focal_class.type: int
focal_class.var_name: SKETCH_BLOCK_SEND_INTERVAL
focal_class.declarator: MAX_BLOCK_SIZE_BYTES = 64
focal_class.modifier: private static final
focal_class.original_string: private static final int MAX_BLOCK_SIZE_BYTES = 64;
focal_class.type: int
focal_class.var_name: MAX_BLOCK_SIZE_BYTES
focal_class.declarator: sketchUploadState = SketchUploadState.INACTIVE
focal_class.modifier: private
focal_class.original_string: private SketchUploadState sketchUploadState = SketchUploadState.INACTIVE;
focal_class.type: SketchUploadState
focal_class.var_name: sketchUploadState
focal_class.declarator: sketchStateTimeout
focal_class.modifier: private
focal_class.original_string: private Timer sketchStateTimeout;
focal_class.type: Timer
focal_class.var_name: sketchStateTimeout
focal_class.declarator: sketchBlockSendTimeout
focal_class.modifier: private
focal_class.original_string: private Timer sketchBlockSendTimeout;
focal_class.type: Timer
focal_class.var_name: sketchBlockSendTimeout
focal_class.declarator: sketchBlocksToSend
focal_class.modifier: private
focal_class.original_string: private List<byte[]> sketchBlocksToSend;
focal_class.type: List<byte[]>
focal_class.var_name: sketchBlocksToSend
focal_class.declarator: currSketchBlockNum
focal_class.modifier: private
focal_class.original_string: private int currSketchBlockNum;
focal_class.type: int
focal_class.var_name: currSketchBlockNum
focal_class.declarator: onSketchUploadProgress
focal_class.modifier: private
focal_class.original_string: private Callback<UploadProgress> onSketchUploadProgress;
focal_class.type: Callback<UploadProgress>
focal_class.var_name: onSketchUploadProgress
focal_class.declarator: onSketchUploadComplete
focal_class.modifier: private
focal_class.original_string: private Runnable onSketchUploadComplete;
focal_class.type: Runnable
focal_class.var_name: onSketchUploadComplete
focal_class.file: sdk/src/main/java/com/punchthrough/bean/sdk/Bean.java
focal_class.identifier: Bean
focal_class.interfaces: implements Parcelable
focal_class.class_method_signature: Bean.Bean(BluetoothDevice device)
focal_class.full_signature: public  Bean(BluetoothDevice device)
focal_class.identifier: Bean
focal_class.modifiers: public
focal_class.parameters: (BluetoothDevice device)
focal_class.signature:  Bean(BluetoothDevice device)
focal_class.class_method_signature: Bean.Bean(BluetoothDevice device, GattClient client, final Handler handler)
focal_class.full_signature: public  Bean(BluetoothDevice device, GattClient client, final Handler handler)
focal_class.identifier: Bean
focal_class.modifiers: public
focal_class.parameters: (BluetoothDevice device, GattClient client, final Handler handler)
focal_class.signature:  Bean(BluetoothDevice device, GattClient client, final Handler handler)
focal_class.class_method_signature: Bean.init()
focal_class.full_signature: private void init()
focal_class.identifier: init
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void init()
focal_class.class_method_signature: Bean.handleMessage(byte[] data)
focal_class.full_signature: private void handleMessage(byte[] data)
focal_class.identifier: handleMessage
focal_class.modifiers: private
focal_class.parameters: (byte[] data)
focal_class.return: void
focal_class.signature: void handleMessage(byte[] data)
focal_class.class_method_signature: Bean.handleStatus(Status status)
focal_class.full_signature: private void handleStatus(Status status)
focal_class.identifier: handleStatus
focal_class.modifiers: private
focal_class.parameters: (Status status)
focal_class.return: void
focal_class.signature: void handleStatus(Status status)
focal_class.class_method_signature: Bean.stopSketchStateTimeout()
focal_class.full_signature: private void stopSketchStateTimeout()
focal_class.identifier: stopSketchStateTimeout
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stopSketchStateTimeout()
focal_class.class_method_signature: Bean.stopSketchBlockSendTimeout()
focal_class.full_signature: private void stopSketchBlockSendTimeout()
focal_class.identifier: stopSketchBlockSendTimeout
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stopSketchBlockSendTimeout()
focal_class.class_method_signature: Bean.resetSketchStateTimeout()
focal_class.full_signature: private void resetSketchStateTimeout()
focal_class.identifier: resetSketchStateTimeout
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetSketchStateTimeout()
focal_class.class_method_signature: Bean.resetSketchBlockSendTimeout()
focal_class.full_signature: private void resetSketchBlockSendTimeout()
focal_class.identifier: resetSketchBlockSendTimeout
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetSketchBlockSendTimeout()
focal_class.class_method_signature: Bean.sendNextSketchBlock()
focal_class.full_signature: private void sendNextSketchBlock()
focal_class.identifier: sendNextSketchBlock
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void sendNextSketchBlock()
focal_class.class_method_signature: Bean.resetSketchUploadState()
focal_class.full_signature: private void resetSketchUploadState()
focal_class.identifier: resetSketchUploadState
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void resetSketchUploadState()
focal_class.class_method_signature: Bean.returnArduinoPowerState(Buffer buffer)
focal_class.full_signature: private void returnArduinoPowerState(Buffer buffer)
focal_class.identifier: returnArduinoPowerState
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnArduinoPowerState(Buffer buffer)
focal_class.class_method_signature: Bean.returnAccelerometerRange(Buffer buffer)
focal_class.full_signature: private void returnAccelerometerRange(Buffer buffer)
focal_class.identifier: returnAccelerometerRange
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnAccelerometerRange(Buffer buffer)
focal_class.class_method_signature: Bean.returnAcceleration(Buffer buffer)
focal_class.full_signature: private void returnAcceleration(Buffer buffer)
focal_class.identifier: returnAcceleration
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnAcceleration(Buffer buffer)
focal_class.class_method_signature: Bean.returnLed(Buffer buffer)
focal_class.full_signature: private void returnLed(Buffer buffer)
focal_class.identifier: returnLed
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnLed(Buffer buffer)
focal_class.class_method_signature: Bean.returnScratchData(Buffer buffer)
focal_class.full_signature: private void returnScratchData(Buffer buffer)
focal_class.identifier: returnScratchData
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnScratchData(Buffer buffer)
focal_class.class_method_signature: Bean.returnMetadata(Buffer buffer)
focal_class.full_signature: private void returnMetadata(Buffer buffer)
focal_class.identifier: returnMetadata
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnMetadata(Buffer buffer)
focal_class.class_method_signature: Bean.returnTemperature(Buffer buffer)
focal_class.full_signature: private void returnTemperature(Buffer buffer)
focal_class.identifier: returnTemperature
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnTemperature(Buffer buffer)
focal_class.class_method_signature: Bean.returnConfig(Buffer buffer)
focal_class.full_signature: private void returnConfig(Buffer buffer)
focal_class.identifier: returnConfig
focal_class.modifiers: private
focal_class.parameters: (Buffer buffer)
focal_class.return: void
focal_class.signature: void returnConfig(Buffer buffer)
focal_class.class_method_signature: Bean.returnError(BeanError error)
focal_class.full_signature: private void returnError(BeanError error)
focal_class.identifier: returnError
focal_class.modifiers: private
focal_class.parameters: (BeanError error)
focal_class.return: void
focal_class.signature: void returnError(BeanError error)
focal_class.class_method_signature: Bean.returnUploadError(BeanError error)
focal_class.full_signature: private void returnUploadError(BeanError error)
focal_class.identifier: returnUploadError
focal_class.modifiers: private
focal_class.parameters: (BeanError error)
focal_class.return: void
focal_class.signature: void returnUploadError(BeanError error)
focal_class.class_method_signature: Bean.addCallback(BeanMessageID type, Callback<?> callback)
focal_class.full_signature: private void addCallback(BeanMessageID type, Callback<?> callback)
focal_class.identifier: addCallback
focal_class.modifiers: private
focal_class.parameters: (BeanMessageID type, Callback<?> callback)
focal_class.return: void
focal_class.signature: void addCallback(BeanMessageID type, Callback<?> callback)
focal_class.class_method_signature: Bean.getFirstCallback(BeanMessageID type)
focal_class.full_signature: @SuppressWarnings("unchecked") private Callback<T> getFirstCallback(BeanMessageID type)
focal_class.identifier: getFirstCallback
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: (BeanMessageID type)
focal_class.return: Callback<T>
focal_class.signature: Callback<T> getFirstCallback(BeanMessageID type)
focal_class.class_method_signature: Bean.sendMessage(BeanMessageID type, Message message)
focal_class.full_signature: private void sendMessage(BeanMessageID type, Message message)
focal_class.identifier: sendMessage
focal_class.modifiers: private
focal_class.parameters: (BeanMessageID type, Message message)
focal_class.return: void
focal_class.signature: void sendMessage(BeanMessageID type, Message message)
focal_class.class_method_signature: Bean.sendMessage(BeanMessageID type, Buffer payload)
focal_class.full_signature: private void sendMessage(BeanMessageID type, Buffer payload)
focal_class.identifier: sendMessage
focal_class.modifiers: private
focal_class.parameters: (BeanMessageID type, Buffer payload)
focal_class.return: void
focal_class.signature: void sendMessage(BeanMessageID type, Buffer payload)
focal_class.class_method_signature: Bean.sendMessageWithoutPayload(BeanMessageID type)
focal_class.full_signature: private void sendMessageWithoutPayload(BeanMessageID type)
focal_class.identifier: sendMessageWithoutPayload
focal_class.modifiers: private
focal_class.parameters: (BeanMessageID type)
focal_class.return: void
focal_class.signature: void sendMessageWithoutPayload(BeanMessageID type)
focal_class.class_method_signature: Bean.describe()
focal_class.full_signature: public String describe()
focal_class.identifier: describe
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String describe()
focal_class.class_method_signature: Bean.isConnected()
focal_class.full_signature: public boolean isConnected()
focal_class.identifier: isConnected
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isConnected()
focal_class.class_method_signature: Bean.getLastKnownContext()
focal_class.full_signature: public Context getLastKnownContext()
focal_class.identifier: getLastKnownContext
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Context
focal_class.signature: Context getLastKnownContext()
focal_class.class_method_signature: Bean.getBeanListener()
focal_class.full_signature: public BeanListener getBeanListener()
focal_class.identifier: getBeanListener
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BeanListener
focal_class.signature: BeanListener getBeanListener()
focal_class.class_method_signature: Bean.connect(Context context, BeanListener listener)
focal_class.full_signature: public void connect(Context context, BeanListener listener)
focal_class.identifier: connect
focal_class.modifiers: public
focal_class.parameters: (Context context, BeanListener listener)
focal_class.return: void
focal_class.signature: void connect(Context context, BeanListener listener)
focal_class.class_method_signature: Bean.disconnect()
focal_class.full_signature: public void disconnect()
focal_class.identifier: disconnect
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void disconnect()
focal_class.class_method_signature: Bean.getDevice()
focal_class.full_signature: public BluetoothDevice getDevice()
focal_class.identifier: getDevice
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BluetoothDevice
focal_class.signature: BluetoothDevice getDevice()
focal_class.class_method_signature: Bean.readRemoteRssi()
focal_class.full_signature: public void readRemoteRssi()
focal_class.identifier: readRemoteRssi
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void readRemoteRssi()
focal_class.class_method_signature: Bean.readRadioConfig(Callback<RadioConfig> callback)
focal_class.full_signature: public void readRadioConfig(Callback<RadioConfig> callback)
focal_class.identifier: readRadioConfig
focal_class.modifiers: public
focal_class.parameters: (Callback<RadioConfig> callback)
focal_class.return: void
focal_class.signature: void readRadioConfig(Callback<RadioConfig> callback)
focal_class.class_method_signature: Bean.setLed(LedColor color)
focal_class.full_signature: public void setLed(LedColor color)
focal_class.identifier: setLed
focal_class.modifiers: public
focal_class.parameters: (LedColor color)
focal_class.return: void
focal_class.signature: void setLed(LedColor color)
focal_class.class_method_signature: Bean.readLed(Callback<LedColor> callback)
focal_class.full_signature: public void readLed(Callback<LedColor> callback)
focal_class.identifier: readLed
focal_class.modifiers: public
focal_class.parameters: (Callback<LedColor> callback)
focal_class.return: void
focal_class.signature: void readLed(Callback<LedColor> callback)
focal_class.class_method_signature: Bean.setAdvertising(boolean enable)
focal_class.full_signature: public void setAdvertising(boolean enable)
focal_class.identifier: setAdvertising
focal_class.modifiers: public
focal_class.parameters: (boolean enable)
focal_class.return: void
focal_class.signature: void setAdvertising(boolean enable)
focal_class.class_method_signature: Bean.readTemperature(Callback<Integer> callback)
focal_class.full_signature: public void readTemperature(Callback<Integer> callback)
focal_class.identifier: readTemperature
focal_class.modifiers: public
focal_class.parameters: (Callback<Integer> callback)
focal_class.return: void
focal_class.signature: void readTemperature(Callback<Integer> callback)
focal_class.class_method_signature: Bean.readAcceleration(Callback<Acceleration> callback)
focal_class.full_signature: public void readAcceleration(Callback<Acceleration> callback)
focal_class.identifier: readAcceleration
focal_class.modifiers: public
focal_class.parameters: (Callback<Acceleration> callback)
focal_class.return: void
focal_class.signature: void readAcceleration(Callback<Acceleration> callback)
focal_class.class_method_signature: Bean.readSketchMetadata(Callback<SketchMetadata> callback)
focal_class.full_signature: public void readSketchMetadata(Callback<SketchMetadata> callback)
focal_class.identifier: readSketchMetadata
focal_class.modifiers: public
focal_class.parameters: (Callback<SketchMetadata> callback)
focal_class.return: void
focal_class.signature: void readSketchMetadata(Callback<SketchMetadata> callback)
focal_class.class_method_signature: Bean.readScratchData(ScratchBank bank, Callback<ScratchData> callback)
focal_class.full_signature: public void readScratchData(ScratchBank bank, Callback<ScratchData> callback)
focal_class.identifier: readScratchData
focal_class.modifiers: public
focal_class.parameters: (ScratchBank bank, Callback<ScratchData> callback)
focal_class.return: void
focal_class.signature: void readScratchData(ScratchBank bank, Callback<ScratchData> callback)
focal_class.class_method_signature: Bean.setAccelerometerRange(AccelerometerRange range)
focal_class.full_signature: public void setAccelerometerRange(AccelerometerRange range)
focal_class.identifier: setAccelerometerRange
focal_class.modifiers: public
focal_class.parameters: (AccelerometerRange range)
focal_class.return: void
focal_class.signature: void setAccelerometerRange(AccelerometerRange range)
focal_class.class_method_signature: Bean.readAccelerometerRange(Callback<AccelerometerRange> callback)
focal_class.full_signature: public void readAccelerometerRange(Callback<AccelerometerRange> callback)
focal_class.identifier: readAccelerometerRange
focal_class.modifiers: public
focal_class.parameters: (Callback<AccelerometerRange> callback)
focal_class.return: void
focal_class.signature: void readAccelerometerRange(Callback<AccelerometerRange> callback)
focal_class.class_method_signature: Bean.setScratchData(ScratchBank bank, byte[] data)
focal_class.full_signature: public void setScratchData(ScratchBank bank, byte[] data)
focal_class.identifier: setScratchData
focal_class.modifiers: public
focal_class.parameters: (ScratchBank bank, byte[] data)
focal_class.return: void
focal_class.signature: void setScratchData(ScratchBank bank, byte[] data)
focal_class.class_method_signature: Bean.setScratchData(ScratchBank bank, String data)
focal_class.full_signature: public void setScratchData(ScratchBank bank, String data)
focal_class.identifier: setScratchData
focal_class.modifiers: public
focal_class.parameters: (ScratchBank bank, String data)
focal_class.return: void
focal_class.signature: void setScratchData(ScratchBank bank, String data)
focal_class.class_method_signature: Bean.setRadioConfig(RadioConfig config)
focal_class.full_signature: public void setRadioConfig(RadioConfig config)
focal_class.identifier: setRadioConfig
focal_class.modifiers: public
focal_class.parameters: (RadioConfig config)
focal_class.return: void
focal_class.signature: void setRadioConfig(RadioConfig config)
focal_class.class_method_signature: Bean.setRadioConfig(RadioConfig config, boolean save)
focal_class.full_signature: public void setRadioConfig(RadioConfig config, boolean save)
focal_class.identifier: setRadioConfig
focal_class.modifiers: public
focal_class.parameters: (RadioConfig config, boolean save)
focal_class.return: void
focal_class.signature: void setRadioConfig(RadioConfig config, boolean save)
focal_class.class_method_signature: Bean.sendSerialMessage(byte[] value)
focal_class.full_signature: public void sendSerialMessage(byte[] value)
focal_class.identifier: sendSerialMessage
focal_class.modifiers: public
focal_class.parameters: (byte[] value)
focal_class.return: void
focal_class.signature: void sendSerialMessage(byte[] value)
focal_class.class_method_signature: Bean.setPin(int pin, boolean active)
focal_class.full_signature: public void setPin(int pin, boolean active)
focal_class.identifier: setPin
focal_class.modifiers: public
focal_class.parameters: (int pin, boolean active)
focal_class.return: void
focal_class.signature: void setPin(int pin, boolean active)
focal_class.class_method_signature: Bean.sendSerialMessage(String value)
focal_class.full_signature: public void sendSerialMessage(String value)
focal_class.identifier: sendSerialMessage
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void sendSerialMessage(String value)
focal_class.class_method_signature: Bean.readDeviceInfo(final Callback<DeviceInfo> callback)
focal_class.full_signature: public void readDeviceInfo(final Callback<DeviceInfo> callback)
focal_class.identifier: readDeviceInfo
focal_class.modifiers: public
focal_class.parameters: (final Callback<DeviceInfo> callback)
focal_class.return: void
focal_class.signature: void readDeviceInfo(final Callback<DeviceInfo> callback)
focal_class.class_method_signature: Bean.readFirmwareVersion(final Callback<String> callback)
focal_class.full_signature: public void readFirmwareVersion(final Callback<String> callback)
focal_class.identifier: readFirmwareVersion
focal_class.modifiers: public
focal_class.parameters: (final Callback<String> callback)
focal_class.return: void
focal_class.signature: void readFirmwareVersion(final Callback<String> callback)
focal_class.class_method_signature: Bean.readHardwareVersion(final Callback<String> callback)
focal_class.full_signature: public void readHardwareVersion(final Callback<String> callback)
focal_class.identifier: readHardwareVersion
focal_class.modifiers: public
focal_class.parameters: (final Callback<String> callback)
focal_class.return: void
focal_class.signature: void readHardwareVersion(final Callback<String> callback)
focal_class.class_method_signature: Bean.setArduinoEnabled(boolean enable)
focal_class.full_signature: public void setArduinoEnabled(boolean enable)
focal_class.identifier: setArduinoEnabled
focal_class.modifiers: public
focal_class.parameters: (boolean enable)
focal_class.return: void
focal_class.signature: void setArduinoEnabled(boolean enable)
focal_class.class_method_signature: Bean.readArduinoPowerState(final Callback<Boolean> callback)
focal_class.full_signature: public void readArduinoPowerState(final Callback<Boolean> callback)
focal_class.identifier: readArduinoPowerState
focal_class.modifiers: public
focal_class.parameters: (final Callback<Boolean> callback)
focal_class.return: void
focal_class.signature: void readArduinoPowerState(final Callback<Boolean> callback)
focal_class.class_method_signature: Bean.readBatteryLevel(final Callback<BatteryLevel> callback)
focal_class.full_signature: public void readBatteryLevel(final Callback<BatteryLevel> callback)
focal_class.identifier: readBatteryLevel
focal_class.modifiers: public
focal_class.parameters: (final Callback<BatteryLevel> callback)
focal_class.return: void
focal_class.signature: void readBatteryLevel(final Callback<BatteryLevel> callback)
focal_class.class_method_signature: Bean.endSerialGate()
focal_class.full_signature: public void endSerialGate()
focal_class.identifier: endSerialGate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void endSerialGate()
focal_class.class_method_signature: Bean.programWithSketch(SketchHex hex, Callback<UploadProgress> onProgress, Runnable onComplete)
focal_class.full_signature: public void programWithSketch(SketchHex hex, Callback<UploadProgress> onProgress, Runnable onComplete)
focal_class.identifier: programWithSketch
focal_class.modifiers: public
focal_class.parameters: (SketchHex hex, Callback<UploadProgress> onProgress, Runnable onComplete)
focal_class.return: void
focal_class.signature: void programWithSketch(SketchHex hex, Callback<UploadProgress> onProgress, Runnable onComplete)
focal_class.class_method_signature: Bean.programWithFirmware(FirmwareBundle bundle, OADProfile.OADListener listener)
focal_class.full_signature: public OADProfile.OADApproval programWithFirmware(FirmwareBundle bundle, OADProfile.OADListener listener)
focal_class.identifier: programWithFirmware
focal_class.modifiers: public
focal_class.parameters: (FirmwareBundle bundle, OADProfile.OADListener listener)
focal_class.return: OADProfile.OADApproval
focal_class.signature: OADProfile.OADApproval programWithFirmware(FirmwareBundle bundle, OADProfile.OADListener listener)
focal_class.class_method_signature: Bean.firmwareUpdateInProgress()
focal_class.full_signature: public boolean firmwareUpdateInProgress()
focal_class.identifier: firmwareUpdateInProgress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean firmwareUpdateInProgress()
focal_class.class_method_signature: Bean.describeContents()
focal_class.full_signature: @Override public int describeContents()
focal_class.identifier: describeContents
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int describeContents()
focal_class.class_method_signature: Bean.writeToParcel(Parcel dest, int flags)
focal_class.full_signature: @Override public void writeToParcel(Parcel dest, int flags)
focal_class.identifier: writeToParcel
focal_class.modifiers: @Override public
focal_class.parameters: (Parcel dest, int flags)
focal_class.return: void
focal_class.signature: void writeToParcel(Parcel dest, int flags)
focal_method.body: public void readFirmwareVersion(final Callback<String> callback) {
          gattClient.getDeviceProfile().getFirmwareVersion(new DeviceProfile.VersionCallback() {
              @Override
              public void onComplete(String version) {
                  callback.onResult(version);
              }
          });
      }
focal_method.class_method_signature: Bean.readFirmwareVersion(final Callback<String> callback)
focal_method.full_signature: public void readFirmwareVersion(final Callback<String> callback)
focal_method.identifier: readFirmwareVersion
focal_method.invocations: getFirmwareVersion getDeviceProfile onResult
focal_method.modifiers: public
focal_method.parameters: (final Callback<String> callback)
focal_method.return: void
focal_method.signature: void readFirmwareVersion(final Callback<String> callback)