This subchapter applies to a district court or a statutory county court that hears criminal cases.