The nine patches were not drawn correctly if they were not positioned at the top left corner of the canvas. Bug: http://b.android.com/29959 Change-Id: Icfed522ea07322a3ee9f3955067d3da26c4b0b5b (cherry-picked from 5bb3414d148f1309dade9333fe9b89c8d1c2f308)