写在20111114:DeskClock功能Map

本文详细介绍了闹钟应用内部架构及各个组件的功能,包括Alarm定义、Alert操作、数据库交互、界面设置等内容,为理解闹钟应用的工作原理提供全面视角。
Alarm 定义闹钟的一系列属性(时间、重复、铃声、标签)
AlarmAlert 以广播接收器接收闹钟id和内容
AlarmAlertFullScreen 闹钟开始弹出时AlarmAlertFullScreen,其中执行响铃、点亮、解锁屏幕等操作
AlarmAlertWakeLock 当闹钟响铃时点亮解锁屏幕
AlarmClock Alarm页面的设置
AlarmInitReceiver 手机重启后闹钟初始化
AlarmKlaxon BroadCastReceiver从此处接收广播,唯一的集成服务的类,通过监听电话状态实现对闹钟的操作
AlarmPrefrence 对闹钟闹铃之后的操作,获得铃声、URL等
AlarmProvider 对数据库的操作,对闹钟的增删改查
AlarmReceiver 接收闹铃之后的动作
Alarms 包括对闹钟的增删改查的具体实现和一些对闹钟时间的获取和设置
DeskClock 应用程序的主界面设置
DigitalClock 设置数字时钟的显示格式
DontPressWithParentLayout
Log 对闹钟的输出日志的控制
RepeatPrefrence 对闹钟重复属性的设置
SetAlarm 通过监听Prefrence状态的改变对单个闹钟的属性的设置
SettingActivity 用四个Prefrence控制闹钟的音量、再响间隔、侧边键功能
SWAP_AK : appLruQueue: [com.taobao.taobao, com.d2956987215.mow, com.jingdong.app.mall, com.huawei.wallet, com.netease.cloudmusic, com.haier.uhome.uplus, com.huawei.photos, com.lingan.seeyou, com.xunmeng.pinduoduo, com.eg.android.AlipayGphone, com.phoenix.read, com.huawei.android.totemweather, com.huawei.magazine, com.sinovatech.unicom.ui, com.huawei.deskclock, com.huawei.calculator, com.ss.android.ugc.aweme, com.huawei.contacts ... 行 13496: 10-16 19:09:53.824 1889 2996 I system_server: com.huawei.photos 行 13623: 10-16 19:09:53.868 3419 4032 I PG_ash : pkg com.huawei.camera calling: com.huawei.photos, pid: -1 ,type: acquire_provider 行 13624: 10-16 19:09:53.868 3419 4032 I PG_ash : com.huawei.photos is called by front app, H to R 行 13625: 10-16 19:09:53.868 1889 13682 I ContentProviderHelper: Successfully start provider ContentProviderRecord{9d93e0a u0 com.huawei.photos/com.huawei.gallery.provider.GalleryProviderForCamera} launchingApp=ProcessRecord{c5a4e75 815:com.huawei.photos/u0a190} caller pid= 775 行 13625: 10-16 19:09:53.868 1889 13682 I ContentProviderHelper: Successfully start provider ContentProviderRecord{9d93e0a u0 com.huawei.photos/com.huawei.gallery.provider.GalleryProviderForCamera} launchingApp=ProcessRecord{c5a4e75 815:com.huawei.photos/u0a190} caller pid= 775 行 13626: 10-16 19:09:53.868 3419 4032 I ash_trans: com.huawei.photos { hibernation duration=117278 Uptime=73567 } transition to: running reason:be_called_acquire_provider 行 13630: 10-16 19:09:53.868 1889 2825 I AppStateTracker: mRunAnyRestrictedPackages.indexOf return = -6,uid = 10190,packageName = com.huawei.photos 行 13632: 10-16 19:09:53.868 1889 2825 I AppStateTracker: mRunAnyRestrictedPackages.indexOf return = -6,uid = 10190,packageName = com.huawei.photos 行 13641: 10-16 19:09:53.872 3419 4032 I PG_ash : CancelNetworkRestrict >> com.huawei.photos, uids : [10190] 行 13647: 10-16 19:09:53.876 3419 4032 I PGServer: report state:6 event type:2 pid:0 uid:10190 pkg:com.huawei.photos to pid: 1889 行 13649: 10-16 19:09:53.877 3419 4032 I PG_ash : unF_Z com.huawei.photos OK ! 行 13650: 10-16 19:09:53.877 1889 2857 I SWAP_Scene: Entering notifySceneData notifySceneData. EventType:UNFREEZE pkg:com.huawei.photos uid:10190 pid:0 proc: activity:null 行 13651: 10-16 19:09:53.878 1889 2857 I PGManagerService: proxyBroadcast:[com.huawei.photos] proxy:false 行 13656: 10-16 19:09:53.881 3419 4032 I PG_ash : unP_BC com.huawei.photos OK ! 行 13659: 10-16 19:09:53.882 3419 4032 I PG_ash : cancel unified HB com.huawei.photos pkgs: [com.huawei.photos] 行 13659: 10-16 19:09:53.882 3419 4032 I PG_ash : cancel unified HB com.huawei.photos pkgs: [com.huawei.photos] 行 13662: 10-16 19:09:53.883 3419 4032 I PG_ash : cancel unified com.huawei.photos H_B reason: left H 行 13663: 10-16 19:09:53.883 3419 4032 I PG_ash : Unpending H_B com.huawei.photos pkgs: [com.huawei.photos] 行 13663: 10-16 19:09:53.883 3419 4032 I PG_ash : Unpending H_B com.huawei.photos pkgs: [com.huawei.photos] 行 13666: 10-16 19:09:53.884 3419 4032 I PG_ash : Unpending com.huawei.photos H_B OK ! 行 13670: 10-16 19:09:53.884 815 815 I 00800/Gallery2_Common_WidgetPhotoManager: launcher visibility:0data change:false 行 13672: 10-16 19:09:53.884 1889 2857 I 00400/GpsFreezeProc: removeFreezeProcess packageName:com.huawei.photos 行 13678: 10-16 19:09:53.885 1889 2857 I PGManagerService: unproxy gps com.huawei.photos 10190 success 行 13680: 10-16 19:09:53.885 3419 4032 I PG_ash : unP_gps com.huawei.photos OK ! 行 13684: 10-16 19:09:53.885 3419 4032 I PG_ash : running package: com.huawei.photos, visible: false 行 13688: 10-16 19:09:53.885 3419 4032 I PG_ash : com.huawei.photos BinderCallState: true, nextBinderCallTriggeringTime:117063843 行 13699: 10-16 19:09:53.891 815 815 I 00800/Gallery2_Common_WidgetPhotoManager: launcher visibility:0data change:false 行 13738: 10-16 19:09:53.908 775 775 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13739: 10-16 19:09:53.908 775 775 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13740: 10-16 19:09:53.912 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13741: 10-16 19:09:53.912 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13779: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13780: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13781: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 13782: 10-16 19:09:53.925 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14083: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14084: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14085: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14086: 10-16 19:09:53.963 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14114: 10-16 19:09:53.971 775 797 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14115: 10-16 19:09:53.971 775 797 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14141: 10-16 19:09:53.974 775 5753 W MemoryScene: report error when openCameraWithPhotoMode by scene 0, map is null 行 14336: 10-16 19:09:53.993 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 14337: 10-16 19:09:53.993 775 5760 W CameraUtilHelper: getLivePhotoEnhanceResolutionSupport result is null 行 15293: 10-16 19:09:54.391 815 815 I 00800/Gallery2_Common_WidgetPhotoManager: handleMessage what:54 bucketId:null 行 15675: 10-16 19:09:54.886 3419 4032 I PG_ash : com.huawei.photos not check download condition with no dl requisites 行 15676: 10-16 19:09:54.886 3419 4032 I AppManager: ignore audio by app type, app : com.huawei.photos, type : 16 行 15677: 10-16 19:09:54.886 3419 4032 I PG_ash : cannot care audio: com.huawei.photos 行 15678: 10-16 19:09:54.886 3419 4032 I ash_trans: com.huawei.photos { running duration=1001 Uptime=1001 } transition to: doze reason:app_type_gallery unknown_state 行 15679: 10-16 19:09:54.886 3419 4032 I APwPowerPolicy: one day not front to ignore gps: com.huawei.photos 行 15680: 10-16 19:09:54.886 3419 4032 I PG_ash : perform_nap P_GPS : com.huawei.photos 行 15681: 10-16 19:09:54.886 3419 4032 I PG_ash : perform_nap set bgcheck : com.huawei.photos 行 15683: 10-16 19:09:54.887 1889 14378 I 00400/GpsFreezeProc: addFreezeProcess packageName:com.huawei.photos 行 15684: 10-16 19:09:54.889 1889 14378 I PGManagerService: proxy gps com.huawei.photos 10190 success 行 15685: 10-16 19:09:54.889 3419 4032 I PG_ash : P_GPS com.huawei.photos OK ! 行 15686: 10-16 19:09:54.889 3419 4032 I PG_ash : set bgcheck com.huawei.photos OK ! 行 15687: 10-16 19:09:54.889 3419 4032 I PG_ash : nap package: com.huawei.photos, visible: false, bgTime: 198748, scrOff: false 根据这段日志分析,为什么手机相机点击了无响应,不拍照,重新亮灭屏一次之后就好了
最新发布
10-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值