银监会加大2018年考核力度 明确三农和扶贫金融服务目标
百度 诗歌到底意味着什么?高晓松那句生活不止眼前的苟且,还有诗和远方的田野,曾令许多生活在当下的人陷入思考。
public
final
class
CarWatchdogManager
extends Object
java.lang.Object | |
↳ | android.car.watchdog.CarWatchdogManager |
CarWatchdogManager enables applications to track and manage system resource usage.
It allows applications to collect latest system resource overuse statistics, add listener for resource overuse notifications, and update resource overuse configurations.
Summary
Nested classes | ||||
---|---|---|---|---|
interface |
CarWatchdogManager.ResourceOveruseListener
Listener to get resource overuse notifications. |
Constants | |
---|---|
int |
FLAG_RESOURCE_OVERUSE_IO
Constants that define the type of resource overuse. |
int |
STATS_PERIOD_CURRENT_DAY
Constants that define the stats period in days. |
int |
STATS_PERIOD_PAST_15_DAYS
The stats period for the past 15 days |
int |
STATS_PERIOD_PAST_30_DAYS
The stats period for the past 30 days |
int |
STATS_PERIOD_PAST_3_DAYS
The stats period for the past 3 days. |
int |
STATS_PERIOD_PAST_7_DAYS
The stats period for the past 7 days |
Public methods | |
---|---|
void
|
addResourceOveruseListener(Executor executor, int resourceOveruseFlag, CarWatchdogManager.ResourceOveruseListener listener)
Adds the |
ResourceOveruseStats
|
getResourceOveruseStats(int resourceOveruseFlag, int maxStatsPeriod)
Returns resource overuse stats for the calling package. |
void
|
removeResourceOveruseListener(CarWatchdogManager.ResourceOveruseListener listener)
Removes the |
Inherited methods | |
---|---|
Constants
FLAG_RESOURCE_OVERUSE_IO
public static final int FLAG_RESOURCE_OVERUSE_IO
Constants that define the type of resource overuse.
Constant Value: 1 (0x00000001)
STATS_PERIOD_CURRENT_DAY
public static final int STATS_PERIOD_CURRENT_DAY
Constants that define the stats period in days.
The following constants represent the stats period for the past N days, It is used to specify that the stats should be gathered for the last N days, including today and the N-1 previous days.
The stats period for the current day.
Constant Value: 1 (0x00000001)
STATS_PERIOD_PAST_15_DAYS
public static final int STATS_PERIOD_PAST_15_DAYS
The stats period for the past 15 days
Constant Value: 4 (0x00000004)
STATS_PERIOD_PAST_30_DAYS
public static final int STATS_PERIOD_PAST_30_DAYS
The stats period for the past 30 days
Constant Value: 5 (0x00000005)
STATS_PERIOD_PAST_3_DAYS
public static final int STATS_PERIOD_PAST_3_DAYS
The stats period for the past 3 days.
Constant Value: 2 (0x00000002)
STATS_PERIOD_PAST_7_DAYS
public static final int STATS_PERIOD_PAST_7_DAYS
The stats period for the past 7 days
Constant Value: 3 (0x00000003)
Public methods
addResourceOveruseListener
public void addResourceOveruseListener (Executor executor, int resourceOveruseFlag, CarWatchdogManager.ResourceOveruseListener listener)
Adds the ResourceOveruseListener
for the calling package.
Resource overuse notifications are sent only for the calling package's resource overuse.
Parameters | |
---|---|
executor |
Executor |
resourceOveruseFlag |
int : Flag to indicate the types of resource overuses to listen.
Value is either 0 or FLAG_RESOURCE_OVERUSE_IO |
listener |
CarWatchdogManager.ResourceOveruseListener : Listener implementing ResourceOveruseListener interface. |
Throws | |
---|---|
IllegalStateException |
if listener is already added. |
getResourceOveruseStats
public ResourceOveruseStats getResourceOveruseStats (int resourceOveruseFlag, int maxStatsPeriod)
Returns resource overuse stats for the calling package. Returns null
, if no stats.
Parameters | |
---|---|
resourceOveruseFlag |
int : Flag to indicate the types of resource overuse stats to return.
Value is either 0 or FLAG_RESOURCE_OVERUSE_IO |
maxStatsPeriod |
int : Maximum period to aggregate the resource overuse stats.
Value is STATS_PERIOD_CURRENT_DAY , STATS_PERIOD_PAST_3_DAYS , STATS_PERIOD_PAST_7_DAYS , STATS_PERIOD_PAST_15_DAYS , or STATS_PERIOD_PAST_30_DAYS |
Returns | |
---|---|
ResourceOveruseStats |
Resource overuse stats for the calling package. If the calling package has no stats
for a specified resource overuse type, null value is returned for the corresponding
resource overuse stats. If the calling package doesn't have sufficient stats for
maxStatsPeriod for a specified resource overuse type, the stats are returned
only for the period returned in the individual resource overuse stats. |
removeResourceOveruseListener
public void removeResourceOveruseListener (CarWatchdogManager.ResourceOveruseListener listener)
Removes the ResourceOveruseListener
for the calling package.
Parameters | |
---|---|
listener |
CarWatchdogManager.ResourceOveruseListener : Listener implementing ResourceOveruseListener interface. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
夜场是什么工作 | fwb是什么意思 | 梦见在水里游泳是什么意思 | 心律不齐是什么意思 | 污垢是什么意思 |
为什么会怀孕 | 痘痘肌肤适合用什么牌子的护肤品 | 外阴瘙痒用什么效果好 | 仙女下凡是什么生肖 | 胃溃疡适合吃什么食物 |
术是什么意思 | 吃什么降羊水最快 | 挂科是什么意思 | 晏字五行属什么的 | 肺结节是什么病严重吗 |
uin是什么意思 | 海参吃了有什么好处 | 公务员干什么工作 | 我想长胖点有什么办法 | 世界上最难的字是什么 |
规律是什么意思96micro.com | 吃什么东西对肺部好yanzhenzixun.com | 果子狸携带什么病毒hcv7jop7ns1r.cn | 男属兔和什么属相最配hcv8jop7ns3r.cn | 毒瘤是什么意思shenchushe.com |
起居是什么意思hcv8jop0ns8r.cn | 连坐是什么意思hcv8jop4ns0r.cn | 诸君是什么意思hcv9jop3ns3r.cn | 总胆红素偏高吃什么药hcv8jop1ns9r.cn | 什么是结缔组织病hcv8jop7ns9r.cn |
wdf是什么意思xinjiangjialails.com | conch是什么牌子hcv8jop8ns7r.cn | 外围是什么hcv8jop5ns2r.cn | 舟状腹见于什么疾病hcv7jop6ns6r.cn | 我还是什么0297y7.com |
冬枣是什么季节的水果520myf.com | 料理是什么意思ff14chat.com | 经常头疼什么原因hcv7jop5ns4r.cn | 孕妇为什么不能吃桃子hcv9jop0ns7r.cn | 马克华菲属于什么档次hcv8jop5ns6r.cn |