Merge "Use isKeyguardLocked to determine whether to resume." into pi-dev