UML
2017-01-11 11:56:38 0 举报
UML(Unified Modeling Language,统一建模语言)是一种用于软件系统分析和设计的可视化建模语言。它通过图形化的方式表示系统中的类、对象、关系和流程,帮助开发人员更好地理解、设计和实现复杂的软件系统。UML包括多种图类型,如类图、对象图、用例图、顺序图、状态图等,每种图都有其特定的用途和表达方式。通过使用UML,开发人员可以更容易地进行需求分析、设计、编程和维护等工作,提高软件开发的效率和质量。
作者其他创作
大纲/内容
getconfig from Dialog to WifiConfiguration
tether wifi I/F to upstream I/F
tether()
get eth0 configuration
setHttpProxy
dnsmasq
Framework
onclik save button
ebtable/iptable
kernel space
set mac filter
Start
ip mode
change usb to ethernet
/data/misc/ethernet/eth1.conf
setICMPallow
set eth0 IP (dynamic/static)
wifi ap enabled
4
5
Y
dynamic
SetIPaddress
SoftApstartedState
eth1
fork()-exec()
other
L2
NetworkManagementService
Tether
1. Enable NAT2. set ip_forward3. set DHCP (dnsmasq)4. set DNS5. set UpStreamInterface
lan
Tethering
netd
set eth1 IP (dynamic/static)
3
client
write ap config to \"/misc/wifi/softap.conf\"
registerReceiver
usb interface state
1
libnetutils
network state
wifi mode
off
CMD_TETHER_STATE_CHANGE
enable new network combination
WifiController
WifiService :: setWifiApConfiguration
onclik ok button
disable
End
N
manual ip
wan
STA
6
EtherService:: SetWanEnable
ethernet
load wifi driver
modem/bt
get IP address
on
load driver and firmware(sta)
EtherService::SwitchUsbToEthernet
usb
kernel tcp/ip
VPNManagerService::StopLastNetwork
socket
Automatic VPN on/off
2
WifiStateMachine
wifiStatemachine
generate hostapd.conf
startTethering
enable
AP
NetworkManagementServce
WifiService::setWifiEnabled
ACTION_TETHER_STATE_CHANGE
ethernet
onEvent()
EtherService:: SetLanEnable
/data/misc/ethernet/eth0.conf
WifiStatemachine::setWifiApConfiguration
application-interface sel
Native layer
WifiManager ::setWifiApConfiguration
get usb state
interfaceAdded()
setMacFilter
WifiConfiguration add member:channeldhcp ip poolmac filter
VPNManagerService::NetworkSwitch
notification interface add
eth0
new
Kernel layer
start wpa_supplicant
1. add channel set2. add hidden ssid set3. add mac filter set
static
clear pre-select nework
ethernet mode
WifiService
settings-network interface -LAN wlan0
libnetutils
WifiApConfigStore::writeApConfiguration
NetFilter Router
start hostpapd
ap
interface name
P2PSettings::check parameters policy
start VPN Program
wifi
VPNManagerService::SetInterfaceCom
TetherInterfaceSM
initstate
Driver
get eth1 configuration
CMD_SET_AP_CONFIG
hostapd
load driver and firmware(ap)
WifiService::SetApEnable
0 条评论
回复 删除
下一页