Sensor
文章平均质量分 73
xieshsh_8756
android显示系统
展开
-
SensorService流程分析
SensorService是用来管理底层sensor的服务; 首先来看下它的启动,在SystemServer中的run()中有: // Initialize native services. System.loadLibrary("android_servers"); nativeInit();static void android_server_SystemServer_na原创 2017-01-23 11:58:10 · 2267 阅读 · 0 评论 -
setting中打开自动旋转功能和接收sensor数据分析
在设置中,有个自动旋转屏幕的开关功能。随系统选装的话,我们先要在手机设置中选择显示项,设备旋转时自动旋转。最终会调用RotationPolicy.setRotationLockForAccessibility函数,我们先来看下这个函数:/*** Enables or disables rotation lock from the system UI toggle.*/publi原创 2017-01-23 13:42:49 · 1377 阅读 · 0 评论