protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.servos); PreferenceManager.setDefaultValues((Context) this, (int) R.xml.preferences, (boolean) false); this.a = new Utility((Activity) this); RobotLog.writeLogcatToDisk((Context) this, (int) 1024); this.d = (EditText) this.findViewById(R.id.servocontroller_name); LinearLayout linearLayout = (LinearLayout) this.findViewById(R.id.linearLayout_servo1); this.e = this.getLayoutInflater().inflate(R.layout.servo, (ViewGroup) linearLayout, true); TextView textView = (TextView) this.e.findViewById(R.id.port_number_servo); textView.setText((CharSequence) "1"); LinearLayout linearLayout2 = (LinearLayout) this.findViewById(R.id.linearLayout_servo2); this.f = this.getLayoutInflater().inflate(R.layout.servo, (ViewGroup) linearLayout2, true); TextView textView2 = (TextView) this.f.findViewById(R.id.port_number_servo); textView2.setText((CharSequence) "2"); LinearLayout linearLayout3 = (LinearLayout) this.findViewById(R.id.linearLayout_servo3); this.g = this.getLayoutInflater().inflate(R.layout.servo, (ViewGroup) linearLayout3, true); TextView textView3 = (TextView) this.g.findViewById(R.id.port_number_servo); textView3.setText((CharSequence) "3"); LinearLayout linearLayout4 = (LinearLayout) this.findViewById(R.id.linearLayout_servo4); this.h = this.getLayoutInflater().inflate(R.layout.servo, (ViewGroup) linearLayout4, true); TextView textView4 = (TextView) this.h.findViewById(R.id.port_number_servo); textView4.setText((CharSequence) "4"); LinearLayout linearLayout5 = (LinearLayout) this.findViewById(R.id.linearLayout_servo5); this.i = this.getLayoutInflater().inflate(R.layout.servo, (ViewGroup) linearLayout5, true); TextView textView5 = (TextView) this.i.findViewById(R.id.port_number_servo); textView5.setText((CharSequence) "5"); LinearLayout linearLayout6 = (LinearLayout) this.findViewById(R.id.linearLayout_servo6); this.j = this.getLayoutInflater().inflate(R.layout.servo, (ViewGroup) linearLayout6, true); TextView textView6 = (TextView) this.j.findViewById(R.id.port_number_servo); textView6.setText((CharSequence) "6"); }
protected void onCreate(Bundle var1) { super.onCreate(var1); this.setContentView(R.layout.digital_devices); PreferenceManager.setDefaultValues(this, R.xml.preferences, false); this.a = new Utility(this); RobotLog.writeLogcatToDisk(this, 1024); LinearLayout var2 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device0); this.b = this.getLayoutInflater().inflate(R.layout.digital_device, var2, true); ((TextView) this.b.findViewById(R.id.port_number_digital_device)).setText("0"); LinearLayout var3 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device1); this.c = this.getLayoutInflater().inflate(R.layout.digital_device, var3, true); ((TextView) this.c.findViewById(R.id.port_number_digital_device)).setText("1"); LinearLayout var4 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device2); this.d = this.getLayoutInflater().inflate(R.layout.digital_device, var4, true); ((TextView) this.d.findViewById(R.id.port_number_digital_device)).setText("2"); LinearLayout var5 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device3); this.e = this.getLayoutInflater().inflate(R.layout.digital_device, var5, true); ((TextView) this.e.findViewById(R.id.port_number_digital_device)).setText("3"); LinearLayout var6 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device4); this.f = this.getLayoutInflater().inflate(R.layout.digital_device, var6, true); ((TextView) this.f.findViewById(R.id.port_number_digital_device)).setText("4"); LinearLayout var7 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device5); this.g = this.getLayoutInflater().inflate(R.layout.digital_device, var7, true); ((TextView) this.g.findViewById(R.id.port_number_digital_device)).setText("5"); LinearLayout var8 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device6); this.h = this.getLayoutInflater().inflate(R.layout.digital_device, var8, true); ((TextView) this.h.findViewById(R.id.port_number_digital_device)).setText("6"); LinearLayout var9 = (LinearLayout) this.findViewById(R.id.linearLayout_digital_device7); this.i = this.getLayoutInflater().inflate(R.layout.digital_device, var9, true); ((TextView) this.i.findViewById(R.id.port_number_digital_device)).setText("7"); }
@Override protected void onStart() { super.onStart(); // save 4MB of logcat to the SD card RobotLog.writeLogcatToDisk(this, 4 * 1024); Intent intent = new Intent(this, FtcRobotControllerService.class); bindService(intent, connection, Context.BIND_AUTO_CREATE); utility.updateHeader( Utility.NO_FILE, R.string.pref_hardware_config_filename, R.id.active_filename, R.id.included_header); callback.wifiDirectUpdate(WifiDirectAssistant.Event.DISCONNECTED); entireScreenLayout.setOnTouchListener( new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { dimmer.handleDimTimer(); return false; } }); wifiLock.acquire(); }
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.motors); PreferenceManager.setDefaultValues(this, R.xml.preferences, false); this.f184a = new Utility(this); RobotLog.writeLogcatToDisk(this, 1024); this.f189f = (EditText) findViewById(R.id.controller_name); this.f192i = (CheckBox) findViewById(R.id.checkbox_port7); this.f193j = (CheckBox) findViewById(R.id.checkbox_port6); this.f194k = (EditText) findViewById(R.id.editTextResult_analogInput7); this.f195l = (EditText) findViewById(R.id.editTextResult_analogInput6); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.motors); PreferenceManager.setDefaultValues(this, R.xml.preferences, false); utility = new Utility(this); RobotLog.writeLogcatToDisk(this, 1024); controller_name = (EditText) findViewById(R.id.controller_name); checkbox_motor1 = (CheckBox) findViewById(R.id.checkbox_port1); checkbox_motor2 = (CheckBox) findViewById(R.id.checkbox_port2); motor1_name = (EditText) findViewById(R.id.editTextResult_motor1); motor2_name = (EditText) findViewById(R.id.editTextResult_motor2); }
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.analog_outputs); PreferenceManager.setDefaultValues(this, R.xml.preferences, false); this.f121a = new Utility(this); RobotLog.writeLogcatToDisk(this, 1024); this.f122b = getLayoutInflater() .inflate( R.layout.analog_output_device, (LinearLayout) findViewById(R.id.linearLayout_analogOutput0), true); ((TextView) this.f122b.findViewById(R.id.port_number_analogOutput)).setText("0"); this.f123c = getLayoutInflater() .inflate( R.layout.analog_output_device, (LinearLayout) findViewById(R.id.linearLayout_analogOutput1), true); ((TextView) this.f123c.findViewById(R.id.port_number_analogOutput)).setText("1"); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_ftc_configuration); RobotLog.writeLogcatToDisk(this, 1024); this.context = this; utility = new Utility(this); scanButton = (Button) findViewById(R.id.scanButton); buildInfoButtons(); try { deviceManager = new ModernRoboticsDeviceManager(context, null); // deviceManager = new MockDeviceManager(context, null); } catch (RobotCoreException e) { utility.complainToast("Failed to open the Device Manager", context); DbgLog.error("Failed to open deviceManager: " + e.toString()); DbgLog.logStacktrace(e); } preferences = PreferenceManager.getDefaultSharedPreferences(this); }
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.matrices); PreferenceManager.setDefaultValues(this, R.xml.preferences, false); this.f169a = new Utility(this); RobotLog.writeLogcatToDisk(this, 1024); this.f173e = (EditText) findViewById(R.id.matrixcontroller_name); this.f174f = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix1), true); ((TextView) this.f174f.findViewById(R.id.port_number_matrix)).setText("1"); this.f175g = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix2), true); ((TextView) this.f175g.findViewById(R.id.port_number_matrix)).setText("2"); this.f176h = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix3), true); ((TextView) this.f176h.findViewById(R.id.port_number_matrix)).setText("3"); this.f177i = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix4), true); ((TextView) this.f177i.findViewById(R.id.port_number_matrix)).setText("4"); this.f178j = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix5), true); ((TextView) this.f178j.findViewById(R.id.port_number_matrix)).setText("1"); this.f179k = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix6), true); ((TextView) this.f179k.findViewById(R.id.port_number_matrix)).setText("2"); this.f180l = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix7), true); ((TextView) this.f180l.findViewById(R.id.port_number_matrix)).setText("3"); this.f181m = getLayoutInflater() .inflate( R.layout.matrix_devices, (LinearLayout) findViewById(R.id.linearLayout_matrix8), true); ((TextView) this.f181m.findViewById(R.id.port_number_matrix)).setText("4"); }