diff options
| author | 2015-08-12 22:30:07 +0000 | |
|---|---|---|
| committer | 2015-08-12 22:30:07 +0000 | |
| commit | 5f5a0e0ffd89c98742ddedaf01fa13220a542272 (patch) | |
| tree | 4b9f98fe510268b64bc82cc473bd0ece91da0d30 | |
| parent | 1efe1bdde9baf40741febbf965ce01a4168a7860 (diff) | |
| parent | 6071da7ef84c60645572654504813d492b8b21d5 (diff) | |
Merge "Lose HAVE_ANDROID_OS from frameworks/native."
| -rw-r--r-- | include/input/Input.h | 6 | ||||
| -rw-r--r-- | include/input/KeyCharacterMap.h | 4 | ||||
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 4 | ||||
| -rw-r--r-- | libs/input/Input.cpp | 6 | ||||
| -rw-r--r-- | libs/input/KeyCharacterMap.cpp | 4 | ||||
| -rw-r--r-- | opengl/libagl/context.h | 4 | ||||
| -rw-r--r-- | opengl/libagl/egl.cpp | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/include/input/Input.h b/include/input/Input.h index 96b6885091..428fb44238 100644 --- a/include/input/Input.h +++ b/include/input/Input.h @@ -134,7 +134,7 @@ struct AInputDevice { namespace android { -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ class Parcel; #endif @@ -217,7 +217,7 @@ struct PointerCoords { return getAxisValue(AMOTION_EVENT_AXIS_Y); } -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ status_t readFromParcel(Parcel* parcel); status_t writeToParcel(Parcel* parcel) const; #endif @@ -548,7 +548,7 @@ public: // Matrix is in row-major form and compatible with SkMatrix. void transform(const float matrix[9]); -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ status_t readFromParcel(Parcel* parcel); status_t writeToParcel(Parcel* parcel) const; #endif diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h index e70666ab28..111139be15 100644 --- a/include/input/KeyCharacterMap.h +++ b/include/input/KeyCharacterMap.h @@ -19,7 +19,7 @@ #include <stdint.h> -#if HAVE_ANDROID_OS +#ifdef __ANDROID__ #include <binder/IBinder.h> #endif @@ -124,7 +124,7 @@ public: * the mapping in some way. */ status_t mapKey(int32_t scanCode, int32_t usageCode, int32_t* outKeyCode) const; -#if HAVE_ANDROID_OS +#ifdef __ANDROID__ /* Reads a key map from a parcel. */ static sp<KeyCharacterMap> readFromParcel(Parcel* parcel); diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 9f68aa8a07..18a4e0d716 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -831,7 +831,7 @@ status_t IPCThreadState::talkWithDriver(bool doReceive) IF_LOG_COMMANDS() { alog << "About to read/write, write size = " << mOut.dataSize() << endl; } -#if defined(HAVE_ANDROID_OS) +#if defined(__ANDROID__) if (ioctl(mProcess->mDriverFD, BINDER_WRITE_READ, &bwr) >= 0) err = NO_ERROR; else @@ -1137,7 +1137,7 @@ void IPCThreadState::threadDestructor(void *st) IPCThreadState* const self = static_cast<IPCThreadState*>(st); if (self) { self->flushCommands(); -#if defined(HAVE_ANDROID_OS) +#if defined(__ANDROID__) if (self->mProcess->mDriverFD > 0) { ioctl(self->mProcess->mDriverFD, BINDER_THREAD_EXIT, 0); } diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp index 3a7afe9cb6..69a6432b85 100644 --- a/libs/input/Input.cpp +++ b/libs/input/Input.cpp @@ -23,7 +23,7 @@ #include <input/Input.h> #include <input/InputEventLabels.h> -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ #include <binder/Parcel.h> #endif @@ -144,7 +144,7 @@ void PointerCoords::applyOffset(float xOffset, float yOffset) { setAxisValue(AMOTION_EVENT_AXIS_Y, getY() + yOffset); } -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ status_t PointerCoords::readFromParcel(Parcel* parcel) { bits = parcel->readInt64(); @@ -417,7 +417,7 @@ void MotionEvent::transform(const float matrix[9]) { } } -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ status_t MotionEvent::readFromParcel(Parcel* parcel) { size_t pointerCount = parcel->readInt32(); size_t sampleCount = parcel->readInt32(); diff --git a/libs/input/KeyCharacterMap.cpp b/libs/input/KeyCharacterMap.cpp index b03e01effb..732ebd032a 100644 --- a/libs/input/KeyCharacterMap.cpp +++ b/libs/input/KeyCharacterMap.cpp @@ -19,7 +19,7 @@ #include <stdlib.h> #include <string.h> -#if HAVE_ANDROID_OS +#ifdef __ANDROID__ #include <binder/Parcel.h> #endif @@ -557,7 +557,7 @@ void KeyCharacterMap::addLockedMetaKey(Vector<KeyEvent>& outEvents, } } -#if HAVE_ANDROID_OS +#ifdef __ANDROID__ sp<KeyCharacterMap> KeyCharacterMap::readFromParcel(Parcel* parcel) { sp<KeyCharacterMap> map = new KeyCharacterMap(); map->mType = parcel->readInt32(); diff --git a/opengl/libagl/context.h b/opengl/libagl/context.h index c599a55aaf..d23f43568e 100644 --- a/opengl/libagl/context.h +++ b/opengl/libagl/context.h @@ -21,7 +21,7 @@ #include <stddef.h> #include <sys/types.h> #include <pthread.h> -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ #include <bionic_tls.h> #endif @@ -579,7 +579,7 @@ private: // state // ---------------------------------------------------------------------------- -#ifdef HAVE_ANDROID_OS +#ifdef __ANDROID__ // We have a dedicated TLS slot in bionic inline void setGlThreadSpecific(ogles_context_t *value) { __get_tls()[TLS_SLOT_OPENGL] = value; diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index 593d0c2d05..980a3895e8 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -64,7 +64,7 @@ const unsigned int NUM_DISPLAYS = 1; static pthread_mutex_t gInitMutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t gErrorKeyMutex = PTHREAD_MUTEX_INITIALIZER; static pthread_key_t gEGLErrorKey = -1; -#ifndef HAVE_ANDROID_OS +#ifndef __ANDROID__ namespace gl { pthread_key_t gGLKey = -1; }; // namespace gl @@ -1403,7 +1403,7 @@ using namespace android; EGLDisplay eglGetDisplay(NativeDisplayType display) { -#ifndef HAVE_ANDROID_OS +#ifndef __ANDROID__ // this just needs to be done once if (gGLKey == -1) { pthread_mutex_lock(&gInitMutex); |