Merge "Fix InlineFilteringTest#testFiltering_filtersByPrefix" into tm-dev
This commit is contained in:
@@ -140,9 +140,9 @@ class RemoteAccessibilityController {
|
|||||||
return mConnectionWrapper;
|
return mConnectionWrapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setWindowMatrix(Matrix m) {
|
void setWindowMatrix(Matrix m, boolean force) {
|
||||||
// If the window matrix is identity or doesn't change, do nothing.
|
// If the window matrix doesn't change, do nothing.
|
||||||
if (m.isIdentity() || m.equals(mWindowMatrixForEmbeddedHierarchy)) {
|
if (!force && m.equals(mWindowMatrixForEmbeddedHierarchy)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -848,7 +848,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyTransactionOnVriDraw(surfaceUpdateTransaction);
|
applyTransactionOnVriDraw(surfaceUpdateTransaction);
|
||||||
updateEmbeddedAccessibilityMatrix();
|
updateEmbeddedAccessibilityMatrix(false);
|
||||||
|
|
||||||
mSurfaceFrame.left = 0;
|
mSurfaceFrame.left = 0;
|
||||||
mSurfaceFrame.top = 0;
|
mSurfaceFrame.top = 0;
|
||||||
@@ -1750,7 +1750,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
|||||||
mRemoteAccessibilityController.assosciateHierarchy(connection,
|
mRemoteAccessibilityController.assosciateHierarchy(connection,
|
||||||
getViewRootImpl().mLeashToken, getAccessibilityViewId());
|
getViewRootImpl().mLeashToken, getAccessibilityViewId());
|
||||||
|
|
||||||
updateEmbeddedAccessibilityMatrix();
|
updateEmbeddedAccessibilityMatrix(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void notifySurfaceDestroyed() {
|
private void notifySurfaceDestroyed() {
|
||||||
@@ -1778,7 +1778,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateEmbeddedAccessibilityMatrix() {
|
void updateEmbeddedAccessibilityMatrix(boolean force) {
|
||||||
if (!mRemoteAccessibilityController.connected()) {
|
if (!mRemoteAccessibilityController.connected()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1792,7 +1792,7 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall
|
|||||||
mTmpMatrix.setTranslate(mTmpRect.left, mTmpRect.top);
|
mTmpMatrix.setTranslate(mTmpRect.left, mTmpRect.top);
|
||||||
mTmpMatrix.postScale(mScreenRect.width() / (float) mSurfaceWidth,
|
mTmpMatrix.postScale(mScreenRect.width() / (float) mSurfaceWidth,
|
||||||
mScreenRect.height() / (float) mSurfaceHeight);
|
mScreenRect.height() / (float) mSurfaceHeight);
|
||||||
mRemoteAccessibilityController.setWindowMatrix(mTmpMatrix);
|
mRemoteAccessibilityController.setWindowMatrix(mTmpMatrix, force);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user