OSDN Git Service

Do not make strong reference to Resources.
authorBryce Lee <brycelee@google.com>
Thu, 6 Apr 2017 17:27:53 +0000 (10:27 -0700)
committergitbuildkicker <android-build@google.com>
Fri, 7 Apr 2017 20:13:19 +0000 (13:13 -0700)
commita6a3d3f75f4cdbc0328744fe830ed36b15539108
tree76d129f59c602f121e549fe4b41269069d2c2f89
parent048d9e218065f0d21584e11ce2c9b5de697629db
Do not make strong reference to Resources.

This CL removes the strong reference added for mapping display ids
and Resources to Displays. Instead, the key pair is now the display
id and ResourcesKey, and the mapping is pruned when key is
invalidated.

Change-Id: I60d767b52de7bbf769f6761f5a3301dd7aff6ddf
Fixes: 36625868
Test: make -j32 cts; cts-tradefed; run cts --module CtsAppTestCases --test android.app.cts.DisplayTest#testRotation
(cherry picked from commit 2d2315a66d81d29896e6a0ffedbfbbed3981b9ed)
core/java/android/app/ResourcesManager.java