private void m133a(MotorConfiguration motorConfiguration, CheckBox checkBox) {
   if (motorConfiguration.getName().equals("NO DEVICE ATTACHED")
       || motorConfiguration.getType() == ConfigurationType.NOTHING) {
     checkBox.setChecked(true);
     checkBox.performClick();
     return;
   }
   checkBox.setChecked(true);
 }
 private void handleDisabledMotor(MotorConfiguration motor, CheckBox checkbox) {
   if (motor.getName().equals(DeviceConfiguration.DISABLED_DEVICE_NAME)
       || motor.getType() == DeviceConfiguration.ConfigurationType.NOTHING) {
     checkbox.setChecked(true); // kind of a hack. Sets the checkbox to true, so
     // when performing the click programmatically,
     // the checkbox becomes "unclicked" which does the right thing.
     checkbox.performClick();
   } else {
     checkbox.setChecked(true);
   }
 }
 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();
   }
 }
  @Override
  public void onItemClick(AdapterView<?> arg0, View v, int arg2, long arg3) {
    // TODO Auto-generated method stub
    CheckBox cb = (CheckBox) v.findViewById(R.id.checkBox1);
    TextView tv = (TextView) v.findViewById(R.id.textView1);
    pi = (PackageInfo) arg0.getItemAtPosition(arg2);
    cb.performClick();
    if (cb.isChecked()) {
      checkedValue.add(pi.packageName);
      checkedValue1.add(tv.getText().toString());

    } else {
      checkedValue.remove(pi.packageName);
      checkedValue1.remove(tv.getText().toString());
    }
  }
 /**
  * Called when an entry of item is clicked.
  *
  * @param parent The AdapterView where the click happened.
  * @param view The view that was clicked on. It must contain the enable component checkbox.
  * @param position The position of a component in this adapter which should handle the click
  *     event.
  * @param id The row id of the item that was clicked.
  */
 @Override
 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
   CheckBox enableComponentCheckbox = (CheckBox) view.findViewById(R.id.enable_component_checkbox);
   enableComponentCheckbox.performClick();
 }