Device coordinate frame and a piezoelectric accelemoreter. (wikipedia and developes.google.com)