summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorKoji Fukui <koji.fukui@sonymobile.com>2015-12-16 19:43:01 +0900
committerAkira Numata <akira.numata@sonymobile.com>2016-02-04 10:56:24 +0900
commit27b33306e69052f17b63c5de3dee7688fec2606e (patch)
treeac12284be349ef2007b2dc4f97efc03abe86bc4b /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent026a58476ba219bcc08608c2e6156683c9158d5d (diff)
Transit to correct state after alarm is fired
Symptom: When AlarmClock fires in IDLE, state is changed to ACTIVE. But the ACTIVE state continues under some conditions. Root cause: Transition from IDLE state to ACTIVE state when AlarmClock fires 1. Send ACTION_STEP_IDLE_STATE intent 2. Calles onReceive() in BroadcastReceiver 3. Calles stepIdleStateLocked() 4. Calles becomeActiveLocked()  Check point (1) to change from ACTIVE state to INACTIVE (Display On -> Off) 1. onDisplayChanged() 2. updateDisplayLocked() 3. becomeInactiveIfAppropriateLocked() Check point (2) to change from ACTIVE state to INACTIVE (charging -> not charging) 1. ACTION_BATTERY_CHANGED 2. updateChargingLocked() 3. becomeInactiveIfAppropriateLocked() There are only two check points to change from ACTIVE to INACTIVE. If state transition, from IDLE to ACTIVE, happened by AlarmClock when display is off and not charging, ACTIVE state will be kept and never changes to INACTIVE state. Change-Id: I93398366307f529b9c0074ac58b19ad6e4695790
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions