Merge "Lose HAVE_ANDROID_OS from frameworks/base."
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
#include <utils/String8.h>
|
#include <utils/String8.h>
|
||||||
#include <utils/threads.h>
|
#include <utils/threads.h>
|
||||||
#include <utils/Timers.h>
|
#include <utils/Timers.h>
|
||||||
#ifdef HAVE_ANDROID_OS
|
#ifdef __ANDROID__
|
||||||
#include <cutils/trace.h>
|
#include <cutils/trace.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
_rc; })
|
_rc; })
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ANDROID_OS
|
#ifdef __ANDROID__
|
||||||
#define MY_TRACE_BEGIN(x) ATRACE_BEGIN(x)
|
#define MY_TRACE_BEGIN(x) ATRACE_BEGIN(x)
|
||||||
#define MY_TRACE_END() ATRACE_END()
|
#define MY_TRACE_END() ATRACE_END()
|
||||||
#else
|
#else
|
||||||
@@ -229,7 +229,7 @@ bool AssetManager::addAssetPath(const String8& path, int32_t* cookie)
|
|||||||
*cookie = static_cast<int32_t>(mAssetPaths.size());
|
*cookie = static_cast<int32_t>(mAssetPaths.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ANDROID_OS
|
#ifdef __ANDROID__
|
||||||
// Load overlays, if any
|
// Load overlays, if any
|
||||||
asset_path oap;
|
asset_path oap;
|
||||||
for (size_t idx = 0; mZipSet.getOverlay(ap.path, idx, &oap); idx++) {
|
for (size_t idx = 0; mZipSet.getOverlay(ap.path, idx, &oap); idx++) {
|
||||||
@@ -657,7 +657,7 @@ bool AssetManager::appendPathToResTable(const asset_path& ap) const {
|
|||||||
ALOGV("Creating shared resources for %s", ap.path.string());
|
ALOGV("Creating shared resources for %s", ap.path.string());
|
||||||
sharedRes = new ResTable();
|
sharedRes = new ResTable();
|
||||||
sharedRes->add(ass, idmap, nextEntryIdx + 1, false);
|
sharedRes->add(ass, idmap, nextEntryIdx + 1, false);
|
||||||
#ifdef HAVE_ANDROID_OS
|
#ifdef __ANDROID__
|
||||||
const char* data = getenv("ANDROID_DATA");
|
const char* data = getenv("ANDROID_DATA");
|
||||||
LOG_ALWAYS_FATAL_IF(data == NULL, "ANDROID_DATA not set");
|
LOG_ALWAYS_FATAL_IF(data == NULL, "ANDROID_DATA not set");
|
||||||
String8 overlaysListPath(data);
|
String8 overlaysListPath(data);
|
||||||
|
|||||||
@@ -721,7 +721,7 @@ const char16_t* ResStringPool::stringAt(size_t idx, size_t* u16len) const
|
|||||||
AutoMutex lock(mDecodeLock);
|
AutoMutex lock(mDecodeLock);
|
||||||
|
|
||||||
if (mCache == NULL) {
|
if (mCache == NULL) {
|
||||||
#ifndef HAVE_ANDROID_OS
|
#ifndef __ANDROID__
|
||||||
if (kDebugStringPoolNoisy) {
|
if (kDebugStringPoolNoisy) {
|
||||||
ALOGI("CREATING STRING CACHE OF %zu bytes",
|
ALOGI("CREATING STRING CACHE OF %zu bytes",
|
||||||
mHeader->stringCount*sizeof(char16_t**));
|
mHeader->stringCount*sizeof(char16_t**));
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ int doList(Bundle* bundle)
|
|||||||
goto bail;
|
goto bail;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_ANDROID_OS
|
#ifdef __ANDROID__
|
||||||
static const bool kHaveAndroidOs = true;
|
static const bool kHaveAndroidOs = true;
|
||||||
#else
|
#else
|
||||||
static const bool kHaveAndroidOs = false;
|
static const bool kHaveAndroidOs = false;
|
||||||
@@ -633,7 +633,7 @@ int doDump(Bundle* bundle)
|
|||||||
Asset* asset = NULL;
|
Asset* asset = NULL;
|
||||||
|
|
||||||
if (strcmp("resources", option) == 0) {
|
if (strcmp("resources", option) == 0) {
|
||||||
#ifndef HAVE_ANDROID_OS
|
#ifndef __ANDROID__
|
||||||
res.print(bundle->getValues());
|
res.print(bundle->getValues());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user