カスタマイズされた広告機プロジェクトでは、動画を途切れることなく再生し、画面に操作がない場合でも動画を再生し続ける必要があります。この機能で
は、アプリでonTouchイベントを使用して、その後のカウントダウンを決定できます。ジェスチャを上げて、10秒ビデオの操作がないときに再生しますが、システムが画面が動作しているかどうかを判断するのは困難です
情報を確認し、他の大物にPowerManagerService.javaの操作画面の記録時間があることを知ってもらいます。
/**
* Updates the value of mUserActivitySummary to summarize the user requested
* state of the system such as whether the screen should be bright or dim.
* Note that user activity is ignored when the system is asleep.
*
* This function must have no other side-effects.
*/
private void updateUserActivitySummaryLocked(long now, int dirty) {
// Update the status of the user activity timeout timer.
if