am 9035e206: reconcile froyo-release into gingerbread
Merge commit '9035e206b3700928bc268b7c1ece34506e0a4f28' into gingerbread-plus-aosp
* commit '9035e206b3700928bc268b7c1ece34506e0a4f28':
Add an option to hide the Voice Search icon.
Add BT test instrumentation for reboot tests.
DO NOT MERGE Separate utility methods into utility class.
Improve logging and flexibility of BT stress tests.
Remove @LargeTest annotations
Checkin initial bluetooth stress tests.
Change CDMAPhone.getDeviceId to return MEID or ESN.
Make the default backup configuration "disabled; local transport selected"
make android_id random seed depend on time as well as ro.serialno
Continue trying to make the turn off quickly after call feature work.
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index 163b2db..460b74f 100644
--- a/opengl/libagl/egl.cpp
+++ b/opengl/libagl/egl.cpp
@@ -480,13 +480,13 @@
copybit_device_t* const copybit = blitengine;
if (copybit) {
copybit_image_t simg;
- simg.w = src->width;
+ simg.w = src->stride;
simg.h = src->height;
simg.format = src->format;
simg.handle = const_cast<native_handle_t*>(src->handle);
copybit_image_t dimg;
- dimg.w = dst->width;
+ dimg.w = dst->stride;
dimg.h = dst->height;
dimg.format = dst->format;
dimg.handle = const_cast<native_handle_t*>(dst->handle);
diff --git a/opengl/tests/gl_jni/jni/gl_code.cpp b/opengl/tests/gl_jni/jni/gl_code.cpp
index f031c79..ef66841 100644
--- a/opengl/tests/gl_jni/jni/gl_code.cpp
+++ b/opengl/tests/gl_jni/jni/gl_code.cpp
@@ -181,4 +181,3 @@
{
background = 1.0f - background;
}
-
diff --git a/services/surfaceflinger/LayerBuffer.cpp b/services/surfaceflinger/LayerBuffer.cpp
index 0240748..fdf9abc 100644
--- a/services/surfaceflinger/LayerBuffer.cpp
+++ b/services/surfaceflinger/LayerBuffer.cpp
@@ -495,7 +495,7 @@
const ISurface::BufferHeap& buffers(mBufferHeap);
uint32_t w = mLayer.mTransformedBounds.width();
uint32_t h = mLayer.mTransformedBounds.height();
- if (buffers.w * h != buffers.h * w) {
+ if (mLayer.getOrientation() & (Transform::ROT_90 | Transform::ROT_270)) {
int t = w; w = h; h = t;
}