[3-4/4] TRDS 3.0 Native theme engine preparation

[3/4] Port from: https://github.com/SlimRoms/frameworks_native/commit/78c3e04e00b47d6d4c215211d1c02d201815276e

 NEEDS BE ADDED MANUALLY ???
[4/4] Port from: https://github.com/SlimRoms/android_development/commit/756ab1219f22331399da5c900ba90e4b570db945
I placed two commits because I got error trying pac-review in development foler in my source... idk why? anyone can explain me?

Change-Id: I09aec2065769fd51de53a35af07a332356cdc7d4