and5.1powermanagerservice深入分析(二)powermanager中各函数.docVIP

  • 61
  • 0
  • 约2.59万字
  • 约 16页
  • 2017-08-08 发布于浙江
  • 举报

and5.1powermanagerservice深入分析(二)powermanager中各函数.doc

and5.1powermanagerservice深入分析(二)powermanager中各函数

and5.1PowerManagerService深入分析(二)PowerManager中各函数 今天主要从PowerManager中的接口入手去分析PowerManagerService. 先分析PowerManager中的一个内部类WakeLock,可以使用这个类持睡眠锁。 下面是PowerManager中WakeLock内部类来里面的代码: [java] view plain copy public void acquire() { synchronized (mToken) { acquireLocked(); } } /** * Acquires the wake lock with a timeout. * p * Ensures that the device is on at the level requested when * the wake lock was created. The lock will be released after the given timeout * expires. * /p * * @param timeout The timeout after which to release the wake lock, i

文档评论(0)

1亿VIP精品文档

相关文档