Home
last modified time | relevance | path

Searched refs:tiltXAngle (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/services/inputflinger/reader/mapper/
DTouchInputMapper.cpp2163 float tiltXAngle = (in.tiltX - mTiltXCenter) * mTiltXScale; in cookPointerData() local
2165 orientation = atan2f(-sinf(tiltXAngle), sinf(tiltYAngle)); in cookPointerData()
2166 tilt = acosf(cosf(tiltXAngle) * cosf(tiltYAngle)); in cookPointerData()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp4122 float tiltXAngle = (rawTiltX - tiltCenter) * tiltScale; in TEST_F() local
4124 float orientation = atan2f(-sinf(tiltXAngle), sinf(tiltYAngle)); in TEST_F()
4125 float tilt = acosf(cosf(tiltXAngle) * cosf(tiltYAngle)); in TEST_F()