当前位置: 首页 > news >正文

厦门在哪个网站做用工报备万能网站浏览器

厦门在哪个网站做用工报备,万能网站浏览器,企业网站一般多少钱,丹东 网站开发1.源码路径: frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationListener.java​ 2.NotificationListener类是负责处理监听通知更新并将其传递给向用户显示的NotificationPresenter,也就是SystemUI中监听到系统通知的起点. public class No…1.源码路径: frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/NotificationListener.java​ 2.NotificationListener类是负责处理监听通知更新并将其传递给向用户显示的NotificationPresenter,也就是SystemUI中监听到系统通知的起点. public class NotificationListener extends NotificationListenerWithPlugins {private static final String TAG NotificationListener;private static final boolean DEBUG StatusBar.DEBUG;private final Context mContext;private final NotificationManager mNotificationManager;private final Handler mMainHandler;private final ListNotificationHandler mNotificationHandlers new ArrayList();private final ArrayListNotificationSettingsListener mSettingsListeners new ArrayList();public NotificationListener(Context context,NotificationManager notificationManager,Main Handler mainHandler) {mContext context;mNotificationManager notificationManager;mMainHandler mainHandler;}public void addNotificationHandler(NotificationHandler handler) {if (mNotificationHandlers.contains(handler)) {throw new IllegalArgumentException(Listener is already added);}mNotificationHandlers.add(handler);}public void addNotificationSettingsListener(NotificationSettingsListener listener) {mSettingsListeners.add(listener);}Overridepublic void onListenerConnected() {if (DEBUG) Log.d(TAG, onListenerConnected);onPluginConnected();final StatusBarNotification[] notifications getActiveNotifications();if (notifications null) {Log.w(TAG, onListenerConnected unable to get active notifications.);return;}final RankingMap currentRanking getCurrentRanking();mMainHandler.post(() - {final ListRanking newRankings new ArrayList();for (StatusBarNotification sbn : notifications) {newRankings.add(getRankingOrTemporaryStandIn(currentRanking, sbn.getKey()));}final RankingMap completeMap new RankingMap(newRankings.toArray(new Ranking[0]));for (StatusBarNotification sbn : notifications) {for (NotificationHandler listener : mNotificationHandlers) {listener.onNotificationPosted(sbn, completeMap);}}for (NotificationHandler listener : mNotificationHandlers) {listener.onNotificationsInitialized();}});onSilentStatusBarIconsVisibilityChanged(mNotificationManager.shouldHideSilentStatusBarIcons());}Overridepublic void onNotificationPosted(final StatusBarNotification sbn,final RankingMap rankingMap) {if (DEBUG) Log.d(TAG, onNotificationPosted: sbn);/* 1.当收到通知时,会调用该方法,然后把通知Handler更新界面,所以可以在这个屏蔽通知的显示,可以通过参数设置,或者通过设置系统参数,这样可以通过配置参数就可以自由控制通知的显示,如下面,设置android_statusbar_visible参数,默认值为false,即不显示通知,if(!SystemProperties.getBoolean(android_statusbar_visible,false)) return;*/if (sbn ! null !onPluginNotificationPosted(sbn, rankingMap)) {mMainHandler.post(() - {processForRemoteInput(sbn.getNotification(), mContext);for (NotificationHandler handler : mNotificationHandlers) {handler.onNotificationPosted(sbn, rankingMap);}});}}Overridepublic void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap,int reason) {if (DEBUG) Log.d(TAG, onNotificationRemoved: sbn reason: reason);/* 2. 当通知被移除时,也需要坐下过滤if(!SystemProperties.getBoolean(android_statusbar_visible,false)) return;*/if (sbn ! null !onPluginNotificationRemoved(sbn, rankingMap)) {mMainHandler.post(() - {for (NotificationHandler handler : mNotificationHandlers) {handler.onNotificationRemoved(sbn, rankingMap, reason);}});}}Overridepublic void onNotificationRemoved(StatusBarNotification sbn, RankingMap rankingMap) {onNotificationRemoved(sbn, rankingMap, UNDEFINED_DISMISS_REASON);}Overridepublic void onNotificationRankingUpdate(final RankingMap rankingMap) {if (DEBUG) Log.d(TAG, onRankingUpdate);/* 3.这里是更新通知在通知列表上的排列,通知也需要坐下过滤if(!SystemProperties.getBoolean(android_statusbar_visible,false)) return;*/if (rankingMap ! null) {RankingMap r onPluginRankingUpdate(rankingMap);mMainHandler.post(() - {for (NotificationHandler handler : mNotificationHandlers) {handler.onNotificationRankingUpdate(r);}});}}...... }
http://www.zqtcl.cn/news/308125/

相关文章:

  • 网站虚拟空间更新缓存php外贸网站建设
  • 河南省建设执业资格注册中心网站门户定制网站建设公司
  • 网站开发比较厉害wordpress中文 插件
  • 文化投资的微网站怎么做个人微信公众号如何推广
  • 单位的网站怎样设计才美观网页设计图片的代码
  • 长沙专业做网站排名济南手机网站定制费用
  • 西安专题门户响应式网站建设系统网站有哪些
  • 山东省建设局网站监理员考试asp.net mvc6电商网站开发实践
  • 做网站需要提供什么资料网站备案是什么意思
  • 河南网站建设及推广东莞百度代做网站联系方式
  • 大型企业网站制作浦东新区做网站
  • 简单大气网站源码织梦怎么用框架实现在浏览器的地址栏只显示网站的域名而不显示出文件名
  • 电子商务型网站建设线上推广营销策划
  • 网站建设管理工作情况的通报网站开发vs设计报告
  • 嘉定网站网站建设公司官网制作
  • 做旅游广告在哪个网站做效果好财经网站建设
  • 网站样式下载网站地图定位用什么技术做
  • 自己做网站怎么做的百中搜优化软件
  • 南宁建站平台与网站建设相关的论文题目
  • 足球网站建设意义做股权众筹的网站
  • 北京网站建设设计一流的锦州网站建设
  • 专业手机移动网站建设什么网站可以做期刊封面
  • cms建站系统哪个好网站建设 柳州
  • 安徽省住房与城乡建设部网站八戒电影在线观看免费7
  • 江苏省建设考试网站准考证打印佛山网站建设锐艺a068
  • 展示型网站功能如何设计网站风格
  • wordpress图床网站网站什么时候做等保
  • 怎么创办网站浅谈博物馆网站建设的意义
  • 如何做擦边球网站网站seo规划
  • 建站知乎做网站销售工资