Apple Inc won sanctions against Samsung Electronics Co for its failure to produce source code in a patent-infringement case in federal court in San Jose, California. US Magistrate Judge Paul S. Grewal wrote in his order that Samsung “plainly violated” a court order requiring it to turn over code to Apple, and ruled that Samsung won’t be able to offer evidence in the case about its efforts to “design- around” three patents at issue in the case. In its lawsuit, Apple claims that Samsung’s 4G smartphone and Galaxy Tab 10.1 tablet computer infringe its patents.