Toyota is considering expanding the functions of a device installed in its vehicles to record data related to accidents to include the recording of sudden acceleration, sources familiar with the matter have said.