The Alameda Sheriff's Work Alternative Program (SWAP) permits certain Santa Rita Jail inmates to live at home and work eight-10 hours a day in lieu of jail. SWAP does not accept convicted felons or registered sex offenders. Your loved one must be referred to SWAP by the court. Their defense attorney can ask the judge to refer them.