Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowFrameTests.java326 final Rect policyCrop = new Rect(); in testCalculatePolicyCrop() local
329 w.calculatePolicyCrop(policyCrop); in testCalculatePolicyCrop()
332 w.calculatePolicyCrop(policyCrop); in testCalculatePolicyCrop()
333 assertRect(policyCrop, 0, 0, logicalWidth, logicalHeight); in testCalculatePolicyCrop()
338 w.calculatePolicyCrop(policyCrop); in testCalculatePolicyCrop()
339 assertRect(policyCrop, 0, 0, logicalWidth, logicalHeight); in testCalculatePolicyCrop()
352 w.calculatePolicyCrop(policyCrop); in testCalculatePolicyCrop()
355 assertRect(policyCrop, 0, 0, logicalWidth / 2, logicalHeight / 2); in testCalculatePolicyCrop()
358 w.calculatePolicyCrop(policyCrop); in testCalculatePolicyCrop()
361 assertRect(policyCrop, 0, 0, in testCalculatePolicyCrop()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java4247 void calculatePolicyCrop(Rect policyCrop) { in calculatePolicyCrop() argument
4255 policyCrop.set(0, 0, mCompatFrame.width(), mCompatFrame.height()); in calculatePolicyCrop()
4256 policyCrop.intersect(-mCompatFrame.left, -mCompatFrame.top, in calculatePolicyCrop()
4261 policyCrop.set(0, 0, mCompatFrame.width(), mCompatFrame.height()); in calculatePolicyCrop()
4264 policyCrop.set(0, 0, mCompatFrame.width(), mCompatFrame.height()); in calculatePolicyCrop()
4267 calculateSystemDecorRect(policyCrop); in calculatePolicyCrop()