如何分析是那个应用导致状态栏消失
来源:互联网 发布:淘宝饰品店店铺介绍 编辑:程序博客网 时间:2024/05/16 02:03
如何分析是那个应用导致状态栏消失
状态栏主要的几个控制类中需要增加log如下,再根据pid去查是那个进程.
StatusBarManager.java
public void disable(int what) {
try {
final IStatusBarService svc = getService();
if (svc != null) {
if ( (what & DISABLE_EXPAND) != 0 ) {
Slog.d("StatusBarManager", "disable status bar , call from" , new RuntimeException("disable"));
}
svc.disable(what, mToken, mContext.getPackageName());
}
} catch (RemoteException ex) {
// system process is dead anyway.
throw new RuntimeException(ex);
}
}
StatusBarManagerService.java
private void disableLocked(int userId, int what, IBinder token, String pkg) {
// It's important that the the callback and the call to mBar get done
// in the same order when multiple threads are calling this function
// so they are paired correctly. The messages on the handler will be
// handled in the order they were enqueued, but will be outside the lock.
manageDisableListLocked(userId, what, token, pkg);
// Ensure state for the current user is applied, even if passed a non-current user.
final int net = gatherDisableActionsLocked(mCurrentUserId);
if (net != mDisabled) {
mDisabled = net;
mHandler.post(new Runnable() {
public void run() {
mNotificationDelegate.onSetDisabled(net);
}
});
if (mBar != null) {
try {
/// M:[ALPS01673960] Fix User cannot drag down the notification bar.
Slog.d(TAG, "disable statusbar calling PID = " + Binder.getCallingPid());
mBar.disable(net);
} catch (RemoteException ex) {
}
}
}
}
0 0
- 如何分析是那个应用导致状态栏消失
- 那个革新的中国电信,是如何英雄气短
- Linux下应用进程消失原因分析
- ubuntu状态栏消失
- SubLCD上状态栏消失
- 如何获得select选中的是那个option
- 请问在C#中如何将最小化后的窗口从Windows的状态栏上消失?
- android 如何让dialog不消失,即使是用户按了返回键dialog也不消失
- android 如何让dialog不消失,即使是用户按了返回键dialog也不消失
- gridview如何实现单选的功能,(选中哪一个,那个颜色就改变。上一个的消失。)
- 如何设置隐藏Android应用的标题栏和状态栏
- 如何写一个覆盖状态栏的全屏的QML应用
- Ubuntu 13.04 系统更新后状态栏消失
- 调用系统相册 发现 状态栏消失
- ios调用相机之后状态栏消失
- 调用完系统相机,状态栏消失
- linux桌面 任务栏,状态栏消失恢复
- 贫血领域模型是如何导致糟糕的软件产生
- 如何分析按power键熄屏时屏幕又被唤醒了
- Kafka简介
- 又断更了。。。为什么呢?
- javascript数组(五)
- sql之函数(Function)
- 如何分析是那个应用导致状态栏消失
- 在APACHE去除index.php 支持thinkphp和yii
- android之View坐标系(view获取自身坐标的方法和点击事件中坐标的获取)
- 几种数据可视化框架分析
- 【项目中】关于android:windowNoTitle不起作用的解决办法
- Android 手机获取手机号实现方法
- Java泛型
- 让我怎能过大年
- Linux/Windows ssh公私钥访问