应用无响应 - AOSP [英] Application Not Responding - AOSP

查看:265
本文介绍了应用无响应 - AOSP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,在Android源$ C ​​$ c,其中的ANR时间配置?

I want to know that in android source code , where is ANR time is configured?

我已搜查源$ C ​​$ C,但我找不到了。

I have searched in source code, but still I couldn't find out.

任何帮助将AP preciated。

Any help will be appreciated.

推荐答案

的ANR超时在文件InputDispatcher.cpp(框架\\基地\\库\\ UI)定义。复制和粘贴的那件低于code。

The ANR Timeout is defined in File InputDispatcher.cpp (frameworks\base\libs\ui) . Copying and pasting that piece of code below.

// Default input dispatching timeout if there is no focused application or paused window
// from which to determine an appropriate dispatching timeout.
const nsecs_t DEFAULT_INPUT_DISPATCHING_TIMEOUT = 5000 * 1000000LL; // 5 sec

这篇关于应用无响应 - AOSP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆