SAN FRANCISCO — A consumer suit over alleged defects in two HP printer models is blocked by a four-year statute of limitations, a lawyer for Hewlett-Packard Co. argues in a motion to dismiss.

Ferranti v. Hewlett-Packard, 13-3847, alleges that the Palo Alto-based tech manufacturer violated federal and state business and consumer laws with its sale of some OfficeJet Pro Wireless All-in-One printers. The complaint accuses HP of breaching its own warranty because it “routinely refuses” to provide replacements or refunds for faulty printers despite knowing about the defects since 2009.