summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-01-15 16:12:10 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-01-15 16:12:10 -0800
commit9266c558bf1d21ff647525ff99f7dadbca417309 (patch)
tree1630b1ba80f4793caf39d865528e662bdb1037fe /include/ui
parentb798689749c64baba81f02e10cf2157c747d6b46 (diff)
downloadframeworks_base-9266c558bf1d21ff647525ff99f7dadbca417309.zip
frameworks_base-9266c558bf1d21ff647525ff99f7dadbca417309.tar.gz
frameworks_base-9266c558bf1d21ff647525ff99f7dadbca417309.tar.bz2
auto import from //branches/cupcake/...@126645
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/EventHub.h5
-rw-r--r--include/ui/Overlay.h6
-rw-r--r--include/ui/Surface.h1
-rw-r--r--include/ui/SurfaceComposerClient.h2
4 files changed, 8 insertions, 6 deletions
diff --git a/include/ui/EventHub.h b/include/ui/EventHub.h
index 101a920..017c145 100644
--- a/include/ui/EventHub.h
+++ b/include/ui/EventHub.h
@@ -50,8 +50,9 @@ public:
// bit fields for classes of devices.
enum {
CLASS_KEYBOARD = 0x00000001,
- CLASS_TOUCHSCREEN = 0x00000002,
- CLASS_TRACKBALL = 0x00000004
+ CLASS_ALPHAKEY = 0x00000002,
+ CLASS_TOUCHSCREEN = 0x00000004,
+ CLASS_TRACKBALL = 0x00000008
};
uint32_t getDeviceClasses(int32_t deviceId) const;
diff --git a/include/ui/Overlay.h b/include/ui/Overlay.h
index 23cdee8..9c7bc47 100644
--- a/include/ui/Overlay.h
+++ b/include/ui/Overlay.h
@@ -54,7 +54,7 @@ private:
virtual ~OverlayRef();
overlay_handle_t const *mOverlayHandle;
- sp<IOverlay> mOverlayChanel;
+ sp<IOverlay> mOverlayChannel;
uint32_t mWidth;
uint32_t mHeight;
int32_t mFormat;
@@ -77,10 +77,10 @@ public:
overlay_handle_t const* getHandleRef() const;
/* blocks until an overlay buffer is available and return that buffer. */
- overlay_buffer_t dequeueBuffer();
+ status_t dequeueBuffer(overlay_buffer_t* buffer);
/* release the overlay buffer and post it */
- int queueBuffer(overlay_buffer_t buffer);
+ status_t queueBuffer(overlay_buffer_t buffer);
/* returns the address of a given buffer if supported, NULL otherwise. */
void* getBufferAddress(overlay_buffer_t buffer);
diff --git a/include/ui/Surface.h b/include/ui/Surface.h
index 2e24f86..33953a9 100644
--- a/include/ui/Surface.h
+++ b/include/ui/Surface.h
@@ -92,6 +92,7 @@ private:
friend class MediaRecorder;
// mediaplayer needs access to ISurface for display
friend class MediaPlayer;
+ friend class Test;
const sp<ISurface>& getISurface() const { return mSurface; }
// can't be copied
diff --git a/include/ui/SurfaceComposerClient.h b/include/ui/SurfaceComposerClient.h
index 3b875be..5d9222d 100644
--- a/include/ui/SurfaceComposerClient.h
+++ b/include/ui/SurfaceComposerClient.h
@@ -72,7 +72,7 @@ public:
);
// ------------------------------------------------------------------------
- // Composer paramters
+ // Composer parameters
// All composer parameters must be changed within a transaction
// several surfaces can be updated in one transaction, all changes are
// committed at once when the transaction is closed.