private void a(EditText var1, DeviceConfiguration var2) {
   if (var1.getText().toString().equalsIgnoreCase("NO DEVICE ATTACHED")) {
     var1.setText("");
     var2.setName("");
   } else {
     var1.setText(var2.getName());
   }
 }
 private void m87a(EditText editText, DeviceConfiguration deviceConfiguration) {
   if (editText.getText().toString().equalsIgnoreCase("NO DEVICE ATTACHED")) {
     editText.setText(BuildConfig.VERSION_NAME);
     deviceConfiguration.setName(BuildConfig.VERSION_NAME);
     return;
   }
   editText.setText(deviceConfiguration.getName());
 }
 private void b(View var1, DeviceConfiguration var2) {
   EditText var3 = (EditText) var1.findViewById(R.id.editTextResult_digital_device);
   if (var2.isEnabled()) {
     var3.setText(var2.getName());
     var3.setEnabled(true);
   } else {
     var3.setText("NO DEVICE ATTACHED");
     var3.setEnabled(false);
   }
 }
 private void m92b(View view, DeviceConfiguration deviceConfiguration) {
   EditText editText = (EditText) view.findViewById(R.id.editTextResult_analogOutput);
   if (deviceConfiguration.isEnabled()) {
     editText.setText(deviceConfiguration.getName());
     editText.setEnabled(true);
     return;
   }
   editText.setText("NO DEVICE ATTACHED");
   editText.setEnabled(false);
 }
 private void m86a(View view, DeviceConfiguration deviceConfiguration) {
   Spinner spinner = (Spinner) view.findViewById(R.id.choiceSpinner_analogOutput);
   ArrayAdapter arrayAdapter = (ArrayAdapter) spinner.getAdapter();
   if (deviceConfiguration.isEnabled()) {
     spinner.setSelection(arrayAdapter.getPosition(deviceConfiguration.getType().toString()));
   } else {
     spinner.setSelection(0);
   }
   spinner.setOnItemSelectedListener(this.f125e);
 }
  private void a(View var1, DeviceConfiguration var2) {
    Spinner var3 = (Spinner) var1.findViewById(R.id.choiceSpinner_digital_device);
    ArrayAdapter var4 = (ArrayAdapter) var3.getAdapter();
    if (var2.isEnabled()) {
      var3.setSelection(var4.getPosition(var2.getType().toString()));
    } else {
      var3.setSelection(0);
    }

    var3.setOnItemSelectedListener(this.k);
  }
 private void a(LinearLayout var1, String var2) {
   int var3 =
       Integer.parseInt(
           ((TextView) var1.findViewById(R.id.port_number_digital_device)).getText().toString());
   EditText var4 = (EditText) var1.findViewById(R.id.editTextResult_digital_device);
   var4.setEnabled(true);
   DeviceConfiguration var5 = (DeviceConfiguration) this.j.get(var3);
   var5.setType(var5.typeFromString(var2));
   var5.setEnabled(true);
   this.a(var4, var5);
 }
 private void m127a(int i, View view, ArrayList<DeviceConfiguration> arrayList) {
   CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkbox_port_matrix);
   DeviceConfiguration deviceConfiguration = (DeviceConfiguration) arrayList.get(i - 1);
   if (deviceConfiguration.isEnabled()) {
     checkBox.setChecked(true);
     ((EditText) view.findViewById(R.id.editTextResult_matrix))
         .setText(deviceConfiguration.getName());
     return;
   }
   checkBox.setChecked(true);
   checkBox.performClick();
 }
 private void b(int n) {
   View view = this.d(n);
   CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkbox_port_servo);
   DeviceConfiguration deviceConfiguration = this.c.get(n - 1);
   if (deviceConfiguration.isEnabled()) {
     checkBox.setChecked(true);
     EditText editText = (EditText) view.findViewById(R.id.editTextResult_servo);
     editText.setText((CharSequence) deviceConfiguration.getName());
   } else {
     checkBox.setChecked(true);
     checkBox.performClick();
   }
 }
 private void m89a(LinearLayout linearLayout, String str) {
   int parseInt =
       Integer.parseInt(
           ((TextView) linearLayout.findViewById(R.id.port_number_analogOutput))
               .getText()
               .toString());
   EditText editText = (EditText) linearLayout.findViewById(R.id.editTextResult_analogOutput);
   editText.setEnabled(true);
   DeviceConfiguration deviceConfiguration = (DeviceConfiguration) this.f124d.get(parseInt);
   deviceConfiguration.setType(deviceConfiguration.typeFromString(str));
   deviceConfiguration.setEnabled(true);
   m87a(editText, deviceConfiguration);
 }
 public void afterTextChanged(Editable editable) {
   DeviceConfiguration deviceConfiguration =
       (DeviceConfiguration) EditServoControllerActivity.this.c.get(this.b - 1);
   String string = editable.toString();
   deviceConfiguration.setName(string);
 }