Door Courtesy Switch Circuit: Description
WARNING: This page is about a different car, the 2011 Toyota Matrix. However, it is still accessible from the selected car via links, so may be relevant.
The main body ECU detects the condition of the door courtesy switches.