public PackageResourceTable newFrameworkResourceTable ( ResourcePath resourcePath ) { return PerfStatsCollector . getInstance ( ) . measure ( "load legacy framework resources" , ( ) -> { PackageResourceTable resourceTable = new PackageResourceTable ( "android" ) ; if ( resourcePath . getRClass ( ) != null ) { addRClassValues ( resourceTable , resourcePath . getRClass ( ) ) ; addMissingStyleableAttributes ( resourceTable , resourcePath . getRClass ( ) ) ; } if ( resourcePath . getInternalRClass ( ) != null ) { addRClassValues ( resourceTable , resourcePath . getInternalRClass ( ) ) ; addMissingStyleableAttributes ( resourceTable , resourcePath . getInternalRClass ( ) ) ; } parseResourceFiles ( resourcePath , resourceTable ) ; return resourceTable ; } ) ; }
Builds an Android framework resource table in the android package space .