android

package
v0.0.0-...-14435e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PROC_NET_STATS = "/proc/net/xt_qtaguid/stats"
)

Functions

func FPS

func FPS() (v float64, err error)

func IsRoot

func IsRoot() bool

check if android rooted

Types

type NetStat

type NetStat struct {
	Index            int
	Interface        string
	SocketTag        string
	Uid              int
	IsBackground     bool
	RecvBytes        uint64
	RecvPackets      uint64
	SendBytes        uint64
	SendPackets      uint64
	RecvTcpBytes     uint64
	RecvTcpPackets   uint64
	RecvUdpBytes     uint64
	RecvUdpPackets   uint64
	RecvOtherBytes   uint64
	RecvOtherPackets uint64
	SendTcpBytes     uint64
	SendTcpPackets   uint64
	SendUdpBytes     uint64
	SendUdpPackets   uint64
	SendOtherBytes   uint64
	SendOtherPackets uint64
}

func NetworkStats

func NetworkStats() (nss []NetStat, err error)

http://stackoverflow.com/questions/15163549/interpreting-android-xt-qtaguid-stats here RecvBytes include tcp header

type ScreenStat

type ScreenStat struct {
	Width    int
	Height   int
	Rotation int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL