Change cookie to int32_t.

Change-Id: Ic76692bc1092c86babf042dda928324b459be98f
Use std::sort instead of qsort_r wrapper.

The HAVE_(BSD|GNU)_QSORT_R in AndroidConfig.h has never worked, and we
should just be using something standard anyway.

Change-Id: I784d6212f6c890a11c4af2f83d1ce2d279708652
Frameworks/base: Fix AAPT warnings

Turn on -Wall -Werror. Fix warnings.

Change-Id: I287fb3c1e851c654479bcf9ea8c73bd354a6b2a1

Conflicts:
	tools/aapt/Images.cpp
	tools/aapt/ResourceTable.cpp
Don't check for null references.

The address of a reference will never be null in well formed C++ code.
The function returning the value being checked simply returns a
dereferenced pointer (which is just going to segfault if it is null!).

Change-Id: I3a4eb6adfc003c63ebf21b81d46088d52154d99d
Frameworks/base: Fix more aapt issues

Change-Id: I6da7dc674e9f9e3b0886a3cfd1e3194d6b5ac948
Revert "Skip resource files for locales en-XA and ar-XB"

This reverts commit e61a3162bf203707909d67157c6c1efc35e26a38.
Fix Aapt Assets Compilation

Change-Id: I6b1abbd3f4f27826d20fc27f1d88ca5dff8979b2
Fix unused variable error

Change-Id: Idfd555a19e0bb511a153afccfbcb829aa73a6ea2