UidHealthStats 类

定义

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

[Android.Runtime.Register("android/os/health/UidHealthStats", ApiSince=24, DoNotGenerateAcw=true)]
public sealed class UidHealthStats : Java.Lang.Object
[<Android.Runtime.Register("android/os/health/UidHealthStats", ApiSince=24, DoNotGenerateAcw=true)>]
type UidHealthStats = class
    inherit Object
继承
UidHealthStats
属性

注解

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

适用于 . 的 android.os.health.UidHealthStatsJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

字段

MeasurementBluetoothIdleMs

蓝牙控制器处于空闲状态,但代表此 uid 打开的用于测量毫秒数的键。

MeasurementBluetoothPowerMams

此 uid 用于蓝牙的估计 mA*ms 的度量键,即表示该时间段内 mA 当前活动时间的毫秒数。

MeasurementBluetoothRxBytes

用于测量蓝牙无线电为此 uid 接收的字节数的度量键。

MeasurementBluetoothRxMs

蓝牙发射器接收此 uid 数据时测量的毫秒数的关键。

MeasurementBluetoothRxPackets

用于测量蓝牙无线电为此 uid 接收的数据包数的度量键。

MeasurementBluetoothTxBytes

用于测量蓝牙无线电为此 uid 传输的字节数的密钥。

MeasurementBluetoothTxMs

蓝牙发射机为此 uid 传输数据,用于测量毫秒数的关键。

MeasurementBluetoothTxPackets

用于测量蓝牙无线电为此 uid 传输的数据包数的密钥。

MeasurementButtonUserActivityCount

由于 UID 造成的物理按钮按下,用于度量用户活动事件数的键。

MeasurementCpuPowerMams

估计此 uid 使用的 milliamp-microsend 的数量。

MeasurementMobileIdleMs

移动无线电控制器处于空闲状态,但代表此 uid 打开的单位数的度量键。

MeasurementMobilePowerMams

此 uid 用于移动数据的估计 mA*ms 的度量键,即表示在此期间 mA 当前活动时间的毫秒数。

MeasurementMobileRxBytes

用于测量移动无线电为此 uid 接收的字节数的键。

MeasurementMobileRxMs

移动无线电发射机接收此 uid 数据的关键是测量毫秒数。

MeasurementMobileRxPackets

用于测量移动无线电为此 uid 接收的数据包数的度量键。

MeasurementMobileTxBytes

用于测量移动无线电为此 uid 传输的字节数的键。

MeasurementMobileTxMs

移动无线电发射机为此 uid 传输数据的关键是测量毫秒数。

MeasurementMobileTxPackets

用于测量移动无线电为此 uid 传输的数据包数的密钥。

MeasurementOtherUserActivityCount

用于度量 UID 导致的软件生成用户活动事件数的键。

MeasurementRealtimeBatteryMs

当设备处于电池状态时,此统计信息报告涵盖的毫秒数(包括屏幕打开时间和屏幕关闭时间)。

MeasurementRealtimeScreenOffBatteryMs

此统计信息报告涵盖的毫秒数(以时钟时间为单位),而设备处于电池状态,包括仅屏幕关闭时间。

MeasurementSystemCpuTimeMs

用于度量此 uid 的 CPU 运行内核代码所花费的毫秒数的密钥。

MeasurementTouchUserActivityCount

由于 UID 导致的触摸事件,测量用户活动事件数的键。

MeasurementUptimeBatteryMs

此统计信息报告涵盖设备处于电池状态(包括屏幕打开和屏幕关闭时间)时 CPU 正在运行的毫秒数。

MeasurementUptimeScreenOffBatteryMs

此统计信息报告涵盖设备处于电池状态时 CPU 正在运行的毫秒数,包括仅屏幕关闭时间。

MeasurementUserCpuTimeMs

用于测量此 uid 的 CPU 运行用户空间代码所花费的毫秒数的度量键。

MeasurementWifiFullLockMs

用于测量此 uid 持有完整 wifi 锁的毫秒数的键。

MeasurementWifiIdleMs

用于测量 wifi 控制器空闲的毫秒数的键,但代表此 uid 打开。

MeasurementWifiMulticastMs

衡量此 uid 正在执行多播 wifi 流量的毫秒数的度量关键。

MeasurementWifiPowerMams

此 uid for wifi 使用的估计 mA*ms 数的度量键,即该时间段内 mA 当前时间的 wifi 活动时间的毫秒数。

MeasurementWifiRunningMs

用于测量 wifi 控制器代表此 uid 处于活动状态的毫秒数的键。

MeasurementWifiRxBytes

用于度量 wifi 无线电接收的此 uid 的字节数的键。

MeasurementWifiRxMs

用于测量 wifi 发射器接收此 uid 的数据的毫秒数的关键。

MeasurementWifiRxPackets

用于测量 wifi 无线电为此 uid 接收的数据包数的度量键。

MeasurementWifiTxBytes

用于度量由 wifi 无线电传送的此 uid 的字节数的键。

MeasurementWifiTxMs

用于测量 wifi 发射器为此 uid 传输数据的关键秒数。

MeasurementWifiTxPackets

用于测量由 wifi 无线电传送的此 uid 的数据包数的密钥。

StatsPackages

HealthStats 的密钥,其中包含 PackageHealthStats 共享此 uid 的每个 APK 的密钥。

StatsPids

HealthStats 的密钥,其中包含 PidHealthStats 此 uid 当前正在运行的每个进程的键。

StatsProcesses

HealthStats 的键,其中包含 ProcessHealthStats 此 uid 的每个命名进程的键。

TimerAudio

此 uid 完成的音频播放计数和持续时间的计时器键。

TimerBluetoothScan

计时器的键,用于此 uid 执行蓝牙扫描时的计数和持续时间。

TimerCamera

此 uid 打开相机的计数和持续时间的计时器键。

TimerFlashlight

此 uid 打开手电筒的计数和持续时间的计时器键。

TimerForegroundActivity

计时器的键,其计数和持续时间来自此 uid 的活动是前台 activitiy。

TimerGpsSensor

应用程序使用 GPS 传感器的计时器键。

TimerMobileRadioActive

此 uid 打开移动无线电的计数和持续时间的计时器键。

TimerProcessStateBackgroundMs

此 uid 处于“后台”进程状态的计数和持续时间的计时器键。

TimerProcessStateCachedMs

此 uid 处于“缓存”进程状态的计数和持续时间的计时器键。

TimerProcessStateForegroundMs

此 uid 处于“前台”进程状态的计时器的计数和持续时间的键。

TimerProcessStateForegroundServiceMs

此 uid 处于“前台服务”进程状态的计时器计数和持续时间的键。

TimerProcessStateTopMs

此 uid 处于“顶部”进程状态的计数和持续时间的计时器键。

TimerProcessStateTopSleepingMs

此 uid 处于“最高睡眠”进程状态的计数和持续时间的计时器键。

TimersJobs

此 uid 作业 android.app.job.JobScheduler 的计时器映射的键。

TimersSensors

此 uid 的传感器使用情况地图的键。

TimersSyncs

为此 uid 执行的同步适配器同步的计时器映射的键。

TimersWakelocksDraw

获取系统定义的唤醒锁时 TimerStat 的键,以允许应用程序在其他情况下无法绘制时(e.

TimersWakelocksFull

计时器统计信息的键 android.os.PowerManager#FULL_WAKE_LOCK full wake lock 已为此 uid 获取。

TimersWakelocksPartial

计时器统计信息的键 android.os.PowerManager#PARTIAL_WAKE_LOCK partial wake lock 已为此 uid 获取。

TimersWakelocksWindow

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

TimerVibrator

此 uid 打开振动器的计数和持续时间的计时器键。

TimerVideo

此 uid 完成的视频播放计数和持续时间的计时器键。

TimerWifiScan

此 uid 执行的 wifi 扫描计数和持续时间的计时器键。

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
JniPeerMembers

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

PeerReference

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

(继承自 Object)
ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

(继承自 Object)

方法

Clone()

创建并返回此对象的副本。

(继承自 Object)
Dispose()

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
Dispose(Boolean)

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>()

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
Wait()

使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<><

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed()

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
IJavaPeerable.Finalized()

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
IJavaPeerable.JniManagedPeerState

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32)

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference)

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

GetJniTypeName(IJavaPeerable)

HealthStats返回的SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()键,以及SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])

适用于