Fix libandroidfw in integer sanitized builds.

Refactors compare functions to avoid unsigned integer overflows in
ResourceTypes.cpp which were causing errors on integer sanitized builds.

Bug: 30969751
Test: Compiled and booted an integer sanitized build.

Change-Id: I0190aca2cee0689f7f5d142097917afbeae7dda9
1 file changed