前言:之前主要梳理了WiFi开启扫描连接的流程,现在梳理下WiFi 热点 的开启流程。

时序图mdj样式:https://download.csdn.net/download/sinat_20059415/10542186

1. wifi热点简介

wifi热点是将手机接收的GPRS、3G或4G信号转化为wifi信号发出去的技术,手机必须有无线AP功能,才能当做热点。有些系统自带建热点这个功能比如 IOS(比如 iPhone 4s)。

如果你把你的iPhone当做热点,那么像TOUCH,PAD这样有WIFI功能的,都可以搜索到你手机建立的WIFI网络,连接上以后,TOUCH等使用WIFI产生的流量上网都是消耗的乐WIFI里的手机卡的GPRS或3G流量,所以iphone里最好放一张包大流量的上网卡。还有,把手机当做热点很费电,最好用的时候插上充电器。

2. WiFi热点开启流程梳理

2.1 Settings

Android O的Settings引入了PreferenceController这个包装类来实现对Preference的精细化控制,让代码结构更加地鲜明,很好地体现了单一职责原则,以前的Preference都是一大坨代码冗余在一起,看的都头疼。

TetherSettings->WifiTetherPreferenceController->WifiTetherSwitchBarController

TetherSettings是WiFi热点对应的界面,WifiTetherSwitchBarController是用来负责热点开关的相关逻辑处理的。

/packages/apps/Settings/src/com/android/settings/wifi/tether/WifiTetherSwitchBarController.java

public class WifiTetherSwitchBarController implements SwitchWidgetController.OnSwitchChangeListener,LifecycleObserver, OnStart, OnStop {
...@Overridepublic boolean onSwitchToggled(boolean isChecked) {if (isChecked) {startTether();} else {stopTether();}return true;}void stopTether() {mSwitchBar.setEnabled(false);mConnectivityManager.stopTethering(TETHERING_WIFI);}void startTether() {mSwitchBar.setEnabled(false);mConnectivityManager.startTethering(TETHERING_WIFI, true /* showProvisioningUi */,NoOpOnStartTetheringCallback.newInstance(), new Handler(Looper.getMainLooper()));}

可以看到WiFi热点代开是通过ConnectivityManager的startTethering方法。

1) callback(抽象类直接new出来的,内部实现还没有。。。)

class NoOpOnStartTetheringCallback {public static ConnectivityManager.OnStartTetheringCallback newInstance() {return new ConnectivityManager.OnStartTetheringCallback() {};}
}
    /*** Callback for use with {@link #startTethering} to find out whether tethering succeeded.* @hide*/@SystemApipublic static abstract class OnStartTetheringCallback {/*** Called when tethering has been successfully started.*/public void onTetheringStarted() {}/*** Called when starting tethering failed.*/public void onTetheringFailed() {}}

2)状态监听:

    private final BroadcastReceiver mReceiver = new BroadcastReceiver() {@Overridepublic void onReceive(Context context, Intent intent) {String action = intent.getAction();if (WifiManager.WIFI_AP_STATE_CHANGED_ACTION.equals(action)) {final int state = intent.getIntExtra(WifiManager.EXTRA_WIFI_AP_STATE, WifiManager.WIFI_AP_STATE_FAILED);handleWifiApStateChanged(state);} else if (Intent.ACTION_AIRPLANE_MODE_CHANGED.equals(action)) {enableWifiSwitch();}}};  private void handleWifiApStateChanged(int state) {switch (state) {case WifiManager.WIFI_AP_STATE_ENABLING:mSwitchBar.setEnabled(false);break;case WifiManager.WIFI_AP_STATE_ENABLED:if (!mSwitchBar.isChecked()) {mSwitchBar.setChecked(true);}enableWifiSwitch();break;case WifiManager.WIFI_AP_STATE_DISABLING:if (mSwitchBar.isChecked()) {mSwitchBar.setChecked(false);}mSwitchBar.setEnabled(false);break;case WifiManager.WIFI_AP_STATE_DISABLED:mSwitchBar.setChecked(false);enableWifiSwitch();break;default:mSwitchBar.setChecked(false);enableWifiSwitch();break;}}   private void enableWifiSwitch() {boolean isAirplaneMode = Settings.Global.getInt(mContext.getContentResolver(),Settings.Global.AIRPLANE_MODE_ON, 0) != 0;if (!isAirplaneMode) {mSwitchBar.setEnabled(!mDataSaverBackend.isDataSaverEnabled());} else {mSwitchBar.setEnabled(false);}}

2.2 ConnectivityManager

    /*** Runs tether provisioning for the given type if needed and then starts tethering if* the check succeeds. If no carrier provisioning is required for tethering, tethering is* enabled immediately. If provisioning fails, tethering will not be enabled. It also* schedules tether provisioning re-checks if appropriate.** @param type The type of tethering to start. Must be one of*         {@link ConnectivityManager.TETHERING_WIFI},*         {@link ConnectivityManager.TETHERING_USB}, or*         {@link ConnectivityManager.TETHERING_BLUETOOTH}.* @param showProvisioningUi a boolean indicating to show the provisioning app UI if there*         is one. This should be true the first time this function is called and also any time*         the user can see this UI. It gives users information from their carrier about the*         check failing and how they can sign up for tethering if possible.* @param callback an {@link OnStartTetheringCallback} which will be called to notify the caller*         of the result of trying to tether.* @param handler {@link Handler} to specify the thread upon which the callback will be invoked.* @hide*/@SystemApi@RequiresPermission(android.Manifest.permission.TETHER_PRIVILEGED)public void startTethering(int type, boolean showProvisioningUi,final OnStartTetheringCallback callback, Handler handler) {Preconditions.checkNotNull(callback, "OnStartTetheringCallback cannot be null.");ResultReceiver wrappedCallback = new ResultReceiver(handler) {@Overrideprotected void onReceiveResult(int resultCode, Bundle resultData) {if (resultCode == TETHER_ERROR_NO_ERROR) {callback.onTetheringStarted();} else {callback.onTetheringFailed();}}};try {String pkgName = mContext.getOpPackageName();Log.i(TAG, "startTethering caller:" + pkgName);mService.startTethering(type, wrappedCallback, showProvisioningUi, pkgName);} catch (RemoteException e) {Log.e(TAG, "Exception trying to start tethering.", e);wrappedCallback.send(TETHER_ERROR_SERVICE_UNAVAIL, null);}}

至于mService:

        mConnectivityManager =(ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);

SystemServiceRegistry:

        registerService(Context.CONNECTIVITY_SERVICE, ConnectivityManager.class,new StaticApplicationContextServiceFetcher<ConnectivityManager>() {@Overridepublic ConnectivityManager createService(Context context) throws ServiceNotFoundException {IBinder b = ServiceManager.getServiceOrThrow(Context.CONNECTIVITY_SERVICE);IConnectivityManager service = IConnectivityManager.Stub.asInterface(b);return new ConnectivityManager(context, service);}});
    /*** {@hide}*/public ConnectivityManager(Context context, IConnectivityManager service) {mContext = Preconditions.checkNotNull(context, "missing context");mService = Preconditions.checkNotNull(service, "missing IConnectivityManager");sInstance = this;}

SystemServer:

                traceBeginAndSlog("StartConnectivityService");try {connectivity = new ConnectivityService(context, networkManagement, networkStats, networkPolicy);ServiceManager.addService(Context.CONNECTIVITY_SERVICE, connectivity);networkStats.bindConnectivityManager(connectivity);networkPolicy.bindConnectivityManager(connectivity);} catch (Throwable e) {reportWtf("starting Connectivity Service", e);}traceEnd();

所以mService是ConnectivityService。

2.3 ConnectivityService

    @Overridepublic void startTethering(int type, ResultReceiver receiver, boolean showProvisioningUi,String callerPkg) {ConnectivityManager.enforceTetherChangePermission(mContext, callerPkg);if (!isTetheringSupported()) {receiver.send(ConnectivityManager.TETHER_ERROR_UNSUPPORTED, null);return;}mTethering.startTethering(type, receiver, showProvisioningUi);}

2.4 Tethering

    public void startTethering(int type, ResultReceiver receiver, boolean showProvisioningUi) {if (!isTetherProvisioningRequired()) {enableTetheringInternal(type, true, receiver);return;}if (showProvisioningUi) {runUiTetherProvisioningAndEnable(type, receiver);} else {runSilentTetherProvisioningAndEnable(type, receiver);}}

暂时先认为打开tethering需要provision吧,继续往下看。

   /*** Check if the device requires a provisioning check in order to enable tethering.** @return a boolean - {@code true} indicating tether provisioning is required by the carrier.*/@VisibleForTestingprotected boolean isTetherProvisioningRequired() {final TetheringConfiguration cfg = mConfig;if (mSystemProperties.getBoolean(DISABLE_PROVISIONING_SYSPROP_KEY, false)|| cfg.provisioningApp.length == 0) {return false;}if (carrierConfigAffirmsEntitlementCheckNotRequired()) {return false;}return (cfg.provisioningApp.length == 2);}

shouProvisioningUi由设置传入,是true

    private void runUiTetherProvisioningAndEnable(int type, ResultReceiver receiver) {ResultReceiver proxyReceiver = getProxyReceiver(type, receiver);sendUiTetherProvisionIntent(type, proxyReceiver);}
    /*** Creates a proxy {@link ResultReceiver} which enables tethering if the provisioning result* is successful before firing back up to the wrapped receiver.** @param type The type of tethering being enabled.* @param receiver A ResultReceiver which will be called back with an int resultCode.* @return The proxy receiver.*/private ResultReceiver getProxyReceiver(final int type, final ResultReceiver receiver) {ResultReceiver rr = new ResultReceiver(null) {@Overrideprotected void onReceiveResult(int resultCode, Bundle resultData) {// If provisioning is successful, enable tethering, otherwise just send the error.if (resultCode == TETHER_ERROR_NO_ERROR) {enableTetheringInternal(type, true, receiver);} else {sendTetherResult(receiver, resultCode);}}};// The following is necessary to avoid unmarshalling issues when sending the receiver// across processes.Parcel parcel = Parcel.obtain();rr.writeToParcel(parcel,0);parcel.setDataPosition(0);ResultReceiver receiverForSending = ResultReceiver.CREATOR.createFromParcel(parcel);parcel.recycle();return receiverForSending;}
    private void sendUiTetherProvisionIntent(int type, ResultReceiver receiver) {Intent intent = new Intent(Settings.ACTION_TETHER_PROVISIONING);intent.putExtra(EXTRA_ADD_TETHER_TYPE, type);intent.putExtra(EXTRA_PROVISION_CALLBACK, receiver);intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);final long ident = Binder.clearCallingIdentity();try {mContext.startActivityAsUser(intent, UserHandle.CURRENT);} finally {Binder.restoreCallingIdentity(ident);}}

Settings有如下类会接收并处理消息

        <activity android:name="TetherProvisioningActivity"android:exported="true"android:permission="android.permission.TETHER_PRIVILEGED"android:excludeFromRecents="true"android:theme="@style/Theme.ProvisioningActivity"><intent-filter android:priority="1"><action android:name="android.settings.TETHER_PROVISIONING_UI" /><category android:name="android.intent.category.DEFAULT" /></intent-filter></activity>
/*** Activity which acts as a proxy to the tether provisioning app for sanity checks and permission* restrictions. Specifically, the provisioning apps require* {@link android.permission.CONNECTIVITY_INTERNAL}, while this activity can be started by a caller* with {@link android.permission.TETHER_PRIVILEGED}.*/
public class TetherProvisioningActivity extends Activity {private static final int PROVISION_REQUEST = 0;private static final String TAG = "TetherProvisioningAct";private static final String EXTRA_TETHER_TYPE = "TETHER_TYPE";private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);private ResultReceiver mResultReceiver;@Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);mResultReceiver = (ResultReceiver)getIntent().getParcelableExtra(ConnectivityManager.EXTRA_PROVISION_CALLBACK);int tetherType = getIntent().getIntExtra(ConnectivityManager.EXTRA_ADD_TETHER_TYPE,ConnectivityManager.TETHERING_INVALID);String[] provisionApp = getResources().getStringArray(com.android.internal.R.array.config_mobile_hotspot_provision_app);Intent intent = new Intent(Intent.ACTION_MAIN);intent.setClassName(provisionApp[0], provisionApp[1]);intent.putExtra(EXTRA_TETHER_TYPE, tetherType);if (DEBUG) {Log.d(TAG, "Starting provisioning app: " + provisionApp[0] + "." + provisionApp[1]);}if (getPackageManager().queryIntentActivities(intent,PackageManager.MATCH_DEFAULT_ONLY).isEmpty()) {Log.e(TAG, "Provisioning app is configured, but not available.");mResultReceiver.send(ConnectivityManager.TETHER_ERROR_PROVISION_FAILED, null);finish();return;}startActivityForResultAsUser(intent, PROVISION_REQUEST, UserHandle.CURRENT);}   @Overridepublic void onActivityResult(int requestCode, int resultCode, Intent intent) {super.onActivityResult(requestCode, resultCode, intent);if (requestCode == PROVISION_REQUEST) {if (DEBUG) Log.d(TAG, "Got result from app: " + resultCode);int result = resultCode == Activity.RESULT_OK ?ConnectivityManager.TETHER_ERROR_NO_ERROR :ConnectivityManager.TETHER_ERROR_PROVISION_FAILED;mResultReceiver.send(result, null);finish();}}
}

具体provision app需要vendor具体配置,看framework/base/core/res/res是空的

./values/config.xml:407:    <string-array translatable="false" name="config_mobile_hotspot_provision_app">
./values/config.xml-408-    <!--
./values/config.xml-409-        <item>com.example.provisioning</item>
./values/config.xml-410-        <item>com.example.provisioning.Activity</item>
./values/config.xml-411-    -->
./values/config.xml-412-    </string-array>

完成后回调onActivityResult,发送ConnectivityManager.TETHER_ERROR_NO_ERROR,继续调用enableTetheringInternal方法。

        ResultReceiver rr = new ResultReceiver(null) {@Overrideprotected void onReceiveResult(int resultCode, Bundle resultData) {// If provisioning is successful, enable tethering, otherwise just send the error.if (resultCode == TETHER_ERROR_NO_ERROR) {enableTetheringInternal(type, true, receiver);} else {sendTetherResult(receiver, resultCode);}}};
   /*** Enables or disables tethering for the given type. This should only be called once* provisioning has succeeded or is not necessary. It will also schedule provisioning rechecks* for the specified interface.*/private void enableTetheringInternal(int type, boolean enable, ResultReceiver receiver) {boolean isProvisioningRequired = enable && isTetherProvisioningRequired();int result;switch (type) {case TETHERING_WIFI:result = setWifiTethering(enable);if (isProvisioningRequired && result == TETHER_ERROR_NO_ERROR) {scheduleProvisioningRechecks(type);}sendTetherResult(receiver, result);break;case TETHERING_USB:result = setUsbTethering(enable);if (isProvisioningRequired && result == TETHER_ERROR_NO_ERROR) {scheduleProvisioningRechecks(type);}sendTetherResult(receiver, result);break;case TETHERING_BLUETOOTH:setBluetoothTethering(enable, receiver);break;default:Log.w(TAG, "Invalid tether type.");sendTetherResult(receiver, TETHER_ERROR_UNKNOWN_IFACE);}}

可以看到tethering不特指WiFi热点,总体包含蓝牙WiFi热点和Usb。

我们还是走不需要provision的流程把。。。

    private int setWifiTethering(final boolean enable) {int rval = TETHER_ERROR_MASTER_ERROR;final long ident = Binder.clearCallingIdentity();try {synchronized (mPublicSync) {mWifiTetherRequested = enable;final WifiManager mgr = getWifiManager();if ((enable && mgr.startSoftAp(null /* use existing wifi config */)) ||(!enable && mgr.stopSoftAp())) {rval = TETHER_ERROR_NO_ERROR;}}} finally {Binder.restoreCallingIdentity(ident);}return rval;}

这边会走到WifiManager里去,wifi config为空表示使用已有的WiFi config。后面的senTetherResult就是回调之前的receiver通知执行结果。

2.5 WifiManager

    /*** Start SoftAp mode with the specified configuration.* Note that starting in access point mode disables station* mode operation* @param wifiConfig SSID, security and channel details as*        part of WifiConfiguration* @return {@code true} if the operation succeeds, {@code false} otherwise** @hide*/public boolean startSoftAp(@Nullable WifiConfiguration wifiConfig) {try {return mService.startSoftAp(wifiConfig);} catch (RemoteException e) {throw e.rethrowFromSystemServer();}}

2.6 WifiServiceImpl

    /*** see {@link android.net.wifi.WifiManager#startSoftAp(WifiConfiguration)}* @param wifiConfig SSID, security and channel details as part of WifiConfiguration* @return {@code true} if softap start was triggered* @throws SecurityException if the caller does not have permission to start softap*/@Overridepublic boolean startSoftAp(WifiConfiguration wifiConfig) {// NETWORK_STACK is a signature only permission.enforceNetworkStackPermission();mLog.info("startSoftAp uid=%").c(Binder.getCallingUid()).flush();synchronized (mLocalOnlyHotspotRequests) {// If a tethering request comes in while we have LOHS running (or requested), call stop// for softap mode and restart softap with the tethering config.if (!mLocalOnlyHotspotRequests.isEmpty()) {stopSoftApInternal();}return startSoftApInternal(wifiConfig, WifiManager.IFACE_IP_MODE_TETHERED);}}
    /*** Internal method to start softap mode. Callers of this method should have already checked* proper permissions beyond the NetworkStack permission.*/private boolean startSoftApInternal(WifiConfiguration wifiConfig, int mode) {mLog.trace("startSoftApInternal uid=% mode=%").c(Binder.getCallingUid()).c(mode).flush();// null wifiConfig is a meaningful input for CMD_SET_APif (wifiConfig == null || isValid(wifiConfig)) {SoftApModeConfiguration softApConfig = new SoftApModeConfiguration(mode, wifiConfig);mWifiController.sendMessage(CMD_SET_AP, 1, 0, softApConfig);return true;}Slog.e(TAG, "Invalid WifiConfiguration");return false;}

这边对空的wificonfig包装成了SoftApModeConfiguration接由WifiController处理。

    /*** Enqueue a message to this state machine.** Message is ignored if state machine has quit.*/public void sendMessage(int what, int arg1, int arg2, Object obj) {// mSmHandler can be null if the state machine has quit.SmHandler smh = mSmHandler;if (smh == null) return;smh.sendMessage(obtainMessage(what, arg1, arg2, obj));}

2.7 WifiController

ApStaDisabledState会对该消息进行对应的处理

                case CMD_SET_AP:if (msg.arg1 == 1) {if (msg.arg2 == 0) { // previous wifi state has not been saved yetmSettingsStore.setWifiSavedState(WifiSettingsStore.WIFI_DISABLED);}mWifiStateMachine.setHostApRunning((SoftApModeConfiguration) msg.obj,true);transitionTo(mApEnabledState);}break;

2.8 WifiStateMachine

    /*** TODO: doc*/public void setHostApRunning(SoftApModeConfiguration wifiConfig, boolean enable) {if (enable) {sendMessage(CMD_START_AP, wifiConfig);} else {sendMessage(CMD_STOP_AP);}}

看了一圈只有InitialState对该消息有正确响应

                case CMD_START_AP:transitionTo(mSoftApState);break;

InitialState exit()方法为空,看下SoftApState的enter方法

    class SoftApState extends State {private SoftApManager mSoftApManager;private String mIfaceName;private int mMode;private class SoftApListener implements SoftApManager.Listener {@Overridepublic void onStateChanged(int state, int reason) {if (state == WIFI_AP_STATE_DISABLED) {sendMessage(CMD_AP_STOPPED);} else if (state == WIFI_AP_STATE_FAILED) {sendMessage(CMD_START_AP_FAILURE);}setWifiApState(state, reason, mIfaceName, mMode);}}@Overridepublic void enter() {final Message message = getCurrentMessage();if (message.what != CMD_START_AP) {throw new RuntimeException("Illegal transition to SoftApState: " + message);}SoftApModeConfiguration config = (SoftApModeConfiguration) message.obj;mMode = config.getTargetMode();IApInterface apInterface = null;Pair<Integer, IApInterface> statusAndInterface = mWifiNative.setupForSoftApMode();if (statusAndInterface.first == WifiNative.SETUP_SUCCESS) {apInterface = statusAndInterface.second;} else {incrementMetricsForSetupFailure(statusAndInterface.first);}if (apInterface == null) {setWifiApState(WIFI_AP_STATE_FAILED,WifiManager.SAP_START_FAILURE_GENERAL, null, mMode);/*** Transition to InitialState to reset the* driver/HAL back to the initial state.*/transitionTo(mInitialState);return;}try {mIfaceName = apInterface.getInterfaceName();} catch (RemoteException e) {// Failed to get the interface name. The name will not be available for// the enabled broadcast, but since we had an error getting the name, we most likely// won't be able to fully start softap mode.}checkAndSetConnectivityInstance();mSoftApManager = mWifiInjector.makeSoftApManager(mNwService,new SoftApListener(),apInterface,config.getWifiConfiguration());mSoftApManager.start();mWifiStateTracker.updateState(WifiStateTracker.SOFT_AP);}
这边的调用流程和WiFi的启动流程有点类似。先梳理到这,后面应该是硬菜。。。

3. 总结

(七十一)Android O WiFi热点 开启流程梳理相关推荐

  1. (九十七)Android O WiFi热点 开启流程梳理续(二)

    前言:从之前WiFi的连接流程可以知道WiFi最后一步会和服务端进行dhcp以获取ip地址,那么WiFi热点开启的时候应该也要配置相关dhcp属性,以供后续WiFi连接的时候ip分配,根据这块流程继续 ...

  2. Android9.0Wifi热点开启流程梳理

    如果你也是年轻的程序员,关注我一起学习探讨 Android9.0中对热点做了较大改动,将热点很大程度从Wifi中剥离出来了. 下面我们看一下热点是怎么开启的. 首先是在WifiTetherSettin ...

  3. (一百四十四)Android P WiFi 上网校验流程梳理

    前言:本文采用倒叙梳理,之前梳理流程没记下来忘了,现在再来一遍,所以说梳理什么的还是做个备忘比较好. 1.ConnectivityService 看网络校验相关log经常能看到如下log打印 log( ...

  4. Android R WiFi热点流程浅析

    Android R WiFi热点流程浅析 Android上的WiFi SoftAp功能是用户常用的功能之一,它能让我们分享手机的网络给其他设备使用. 那Android系统是如何实现SoftAp的呢,这 ...

  5. Android11 热点开启流程

    Android11 热点开启流程 文章目录 Android11 热点开启流程 一.应用中热点开启和关闭的代码: 二.系统源码追踪 1.ConnectivityManager.startTetherin ...

  6. 树莓派4B安装ubuntu18.04 Wifi热点开启

    树莓派4B安装ubuntu18.04 Wifi热点开启 最近开发需要以树莓派为主机开启Wifi热点,经过网上搜寻,采用create_ap 来开启,遇到了些坑,在这里和大家一起分享一下: 首先,需要安装 ...

  7. android手机WiFi热点名修改

    1.android手机WiFi热点名修改 frameworks/base/core/res/res/values/strings.xml ... <string name="wifi_ ...

  8. 【转】Android 设置Wifi热点、打开与关闭的监听

    原文地址:http://blog.csdn.net/u011520181/article/details/46496377 用过360的面对面快传,快牙的朋友应该都知道,它们在两台设备间实现文件传输都 ...

  9. Android 设置Wifi热点、打开与关闭的监听

    用过360的面对面快传,快牙的朋友应该都知道,它们在两台设备间实现文件传输都是通过WiFi热点实现的,下面我们就来探讨一下如何设置热点名和密码,并自动创建一个wifi热点吧,以及如何监听热点的打开与关 ...

最新文章

  1. OpenStack Keystone架构一:Keystone基础
  2. 我在兰亭这三年之我接触的郭去疾
  3. 附加没有日志文件的数据库方法
  4. python3根据地址批量获取百度地图经纬度
  5. Spring Boot——基于spring-boot-starter-mail发送邮件的 Service 服务类DEMO
  6. python基本模块中的对象_Python 学习笔记 -- OS模块的常用对象方法
  7. 二级缓存使用步骤_Mybatis的一级缓存和二级缓存的理解以及用法
  8. 【LuoguP5289】[十二省联考2019] 皮配
  9. mysql命中索引规律
  10. Kubernetes (federation)联邦机制介绍
  11. 微信小程序-制作购物车
  12. 数论入门(python)
  13. java中 字符串的补位
  14. java 随机生成常用汉字_Java代码实现随机生成汉字的方法
  15. 八股总结(二)计算机网络与网络编程
  16. 计算机01无法纯随机,玄不救非,氪不改命 如何分清游戏中的“真随机”和“伪随机”?...
  17. 微信小程序背景图片不显示
  18. 【行人轨迹预测数据集——ETH、UCY】
  19. AM2120单总线温湿度传感器移植与应用
  20. eclipse 更换国内镜像

热门文章

  1. 页面的table直接转excel并下载(不需要经过后台)
  2. Java网络爬虫讲解
  3. 赤金烈焰显示与服务器断开,赤金烈焰单职业迷失版
  4. java-php-python-ssm信息工程学院办公经费管理系统服务端计算机毕业设计
  5. 页面引入JS的四种方式
  6. java 字符串分词_Java实现的双向匹配分词算法示例
  7. 【亲测有效】一键解决PotPlayer 启动超级缓慢,无法正常播放视频
  8. SecureCRT 登录连接后自动执行命令
  9. springboot maven 打包失败 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2
  10. 服务器BMC知识介绍