本文整理汇总了Java中com.qualcomm.ftccommon.FtcRobotControllerService类的典型用法代码示例。如果您正苦于以下问题:Java FtcRobotControllerService类的具体用法?Java FtcRobotControllerService怎么用?Java FtcRobotControllerService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FtcRobotControllerService类属于com.qualcomm.ftccommon包,在下文中一共展示了FtcRobotControllerService类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onServiceBind
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(final FtcRobotControllerService service) {
RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=bound", TAG);
controllerService = service;
updateUI.setControllerService(controllerService);
updateUIAndRequestRobotSetup();
programmingWebHandlers.setState(new FtcRobotControllerServiceState() {
@NonNull
@Override
public WebServer getWebServer() {
return service.getWebServer();
}
@Override
public EventLoopManager getEventLoopManager() {
return service.getRobot().eventLoopManager;
}
});
}
示例2: onStart
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@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();
}
示例3: onStart
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@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;
}
});
}
示例4: onStart
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@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;
}
});
}
示例5: onServiceBind
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=bound", TAG);
controllerService = service;
updateUI.setControllerService(controllerService);
updateUIAndRequestRobotSetup();
}
示例6: onServiceBind
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
DbgLog.msg("Bound to Ftc Controller Service");
controllerService = service;
updateUI.setControllerService(controllerService);
callback.wifiDirectUpdate(controllerService.getWifiDirectStatus());
callback.robotUpdate(controllerService.getRobotStatus());
requestRobotSetup();
}
示例7: onServiceBind
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=bound", TAG);
controllerService = service;
updateUI.setControllerService(controllerService);
updateUIAndRequestRobotSetup();
}
示例8: onServiceBind
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
public void onServiceBind(FtcRobotControllerService service) {
DbgLog.msg("Bound to Ftc Controller Service");
controllerService = service;
updateUI.setControllerService(controllerService);
callback.wifiDirectUpdate(controllerService.getWifiDirectStatus());
callback.robotUpdate(controllerService.getRobotStatus());
requestRobotSetup();
}
示例9: onServiceDisconnected
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
@Override
public void onServiceDisconnected(ComponentName name) {
RobotLog.vv(FtcRobotControllerService.TAG, "%s.controllerService=null", TAG);
controllerService = null;
}
示例10: bindToService
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
protected void bindToService() {
readNetworkType(NETWORK_TYPE_FILENAME);
Intent intent = new Intent(this, FtcRobotControllerService.class);
intent.putExtra(NetworkConnectionFactory.NETWORK_CONNECTION_TYPE, networkType);
bindService(intent, connection, Context.BIND_AUTO_CREATE);
}
示例11: bindToService
import com.qualcomm.ftccommon.FtcRobotControllerService; //导入依赖的package包/类
protected void bindToService() {
readNetworkType();
Intent intent = new Intent(this, FtcRobotControllerService.class);
intent.putExtra(NetworkConnectionFactory.NETWORK_CONNECTION_TYPE, networkType);
bindService(intent, connection, Context.BIND_AUTO_CREATE);
}