GitHub PushEvent at 2014-04-29 14:46:46
Repository: android_frameworks_base
Actor: cristianomatos
Payload: {"shas":[["f813935e426cddcf0e8a227e661dab65b371e74e","a961f99f764a56d8f8c25c4e8e4ae3ba785ef322@gmail.com","PEEK [1/2]\nSensors are fully disabled when screen is on. When you turn the screen off,\nit will start polling both gyroscope and proximity sensor values. If it detects\nusing the gyroscope sensor that device is lying on a table, it disables proximity\npolling. If it detects with proximity sensor that it is in your pocket, it disables\ngyroscope polling. This way, we save some battery from the beginning. Later, when you\nreceive a notification, it enables a partial wakelock (CPU on but at low frequency),\nand starts listening for movement, either from getting it out your pocket or lifting\noff from the table. If it detects those events, it will turn on screen and show the notification.\nWakelock timeouts on 10 secs, so if you receive a notification and there is no movement in that time,\nsensors will stop polling after that time, disabling peek interaction until a new notification comes.\nPeek doesn't process low and min priority notifications.\n\nhttps://plus.google.com/+ParanoidAndroidCorner/posts/3wppxakBSVR\n\nContributors:\n@D4rKn3sSyS\n@Anu6is\n@BigBrother1984\n\nChange-Id: I995d17fde5a256f23fe37f35e43a0ee7e52663fb\nSigned-off-by: Jesus David <jesdga95@gmail.com>\nSigned-off-by: Curtis Mayers <curtis.mayers@gmail.com>\nSigned-off-by: Carlo Savignano <stevewatersy@gmail.com>","D4rKn3sSyS",true]],"size":1,"ref":"refs/heads/test","head":"f813935e426cddcf0e8a227e661dab65b371e74e"}