Re: [android-developers] Reusing bitmaps for BitmapFactory.decodeFile and BitmapFactory.Options.inBitmap

2013-08-24 Thread Romain Guy
and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed

Re: [android-developers] SurfaceView crash in 4.3 - SurfaceHolder.unlockCanvasAndPost(canvas) IllegalArgumentException

2013-08-12 Thread Romain Guy
with perhaps a low-FPS View-based renderer as a fall-back from SurfaceView, so at least 4.3 users can use the application, albeit with poor user experience. Since the Canvas used by Views is hardware accelerated and since redraws are v-sync'd you may actually get better framerate. -- Romain

Re: [android-developers] No patcher for Android Studio?!?

2013-08-04 Thread Romain Guy
Some IntelliJ updates are downloaded as patches while some require a full download. I don't know what the difference is but it's been like this for a few years. On Aug 3, 2013 1:25 PM, rmz76 jeremy.de...@gmail.com wrote: From the website it appears there is not patch utility for Android Studio,

Re: [android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Romain Guy
to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group

Re: [android-developers] Bizarre OpenGL ES rendering artifact on Nexus 7 with Android 4.3

2013-07-31 Thread Romain Guy
format to RGB_888 instead? Yes, that will fix your problem and improve perfornance. Regards, Thomas On Wednesday, July 31, 2013 12:13:51 PM UTC-5, Romain Guy (Google) wrote: Is your SurfaceView marked with the transparent pixel format? If so, what you are seeing would be expected. If your

Re: [android-developers] Rendering 24 bit RGB using Android Bitmap

2013-07-18 Thread Romain Guy
: what if I want to create mutable 24 bit Bitmap? Is there way? Thanks a lot, On Thursday, December 9, 2010 10:20:33 AM UTC+2, Romain Guy wrote: Hi, Just use the ARGB_ configuration and make sure all your pixels are opaque. On Wed, Dec 8, 2010 at 11:54 PM, KK krishnakumar

Re: [android-developers] Runnable to View.PostDelayed vs Handler.PostDelayed

2013-07-09 Thread Romain Guy
this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you

Re: [android-developers] Re: canvas.drawCircle broken with hardware acceleration on 4.1?

2013-06-23 Thread Romain Guy
-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] canvas.drawCircle broken with hardware acceleration on 4.1?

2013-06-21 Thread Romain Guy
to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain

Re: [android-developers] Call glGetShaderPrecisionFormat before GLSurfaceView created

2013-06-17 Thread Romain Guy
this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain

Re: [android-developers] Help XFermode

2013-05-28 Thread Romain Guy
an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers

Re: [android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values

2013-05-24 Thread Romain Guy
The UI doesn't use these values. We use the density field instead so that the conversion factor is the same on both axis. On May 24, 2013 2:56 AM, Rick rsmo...@gmail.com wrote: I was just being hti by this problem as I'm working on my own UI engine and I need to calculate my own device

Re: [android-developers] Re: DisplayMetrics xdpi and ydpi returning incorrect values

2013-05-24 Thread Romain Guy
clarification! I'll use the density(Dpi) field so my resolution result should be on par with the native UI. Should be good enough. Best regards, Rick On Friday, 24 May 2013 17:34:40 UTC+2, Romain Guy (Google) wrote: The UI doesn't use these values. We use the density field instead so

Re: [android-developers] rendering international text into GL texture with correct line breaks

2013-05-20 Thread Romain Guy
fails in the same way so the result should at least follow the principle of least surprise. Again, thanks a *lot* for your help Romain! On Mon, May 20, 2013 at 2:13 AM, Romain Guy romain...@android.com wrote: It's pretty easy. If you want the text to break, use the MeasureSpec AT_MOST X px

Re: [android-developers] ListView with selected state does not work when list item view has a background

2013-05-20 Thread Romain Guy
it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] ListView with selected state does not work when list item view has a background

2013-05-20 Thread Romain Guy
The selected state is used when the item is focused using a keyboard. It has nothing to do with the choice mode. On May 20, 2013 12:32 PM, Miha Valencic miha.valen...@gmail.com wrote: On Mon, May 20, 2013 at 9:23 PM, Miha Valencic miha.valen...@gmail.com wrote: Am I misunderstanding this

Re: [android-developers] rendering international text into GL texture with correct line breaks

2013-05-19 Thread Romain Guy
to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain

Re: [android-developers] rendering international text into GL texture with correct line breaks

2013-05-19 Thread Romain Guy
. I hoped there would be a way to leverage somehow the standard View machinery. I couldn't find it as admittedly, I'm not very experienced with the standard UI toolkit. On Sun, May 19, 2013 at 9:27 PM, Romain Guy romain...@android.com wrote: One way to do this is to create a TextView, call

Re: [android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-16 Thread Romain Guy
: private static final int MAXMIMUM_BITMAP_SIZE = 32766; * public int getMaximumBitmapWidth() {* * return MAXMIMUM_BITMAP_SIZE;* * }* Am I missing something? Thanks. On Tuesday, May 14, 2013 3:58:05 PM UTC-5, Romain Guy (Google) wrote: You can query the maximum size

Re: [android-developers] Too large bitmap to be uploaded into a texture - Getting max texture size.

2013-05-14 Thread Romain Guy
and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed

Re: [android-developers] setEGLConfigChooser

2013-05-13 Thread Romain Guy
Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com

Re: [android-developers] Children of LinearLayout can't have @+id/something

2013-05-09 Thread Romain Guy
Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain

Re: [android-developers] LayoutInflater

2013-05-08 Thread Romain Guy
. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Switching between GLES2.0 and native Canvas rendering on the fly works in 2.3.6 but no in 4.2.2

2013-05-07 Thread Romain Guy
1. There is no drawing with GLES and Canvas at the same time I understand but that is not supported. Once you've rendered in a Surface with OpenGL it cannot be used with Canvas. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] drawing horizontally flipped Bitmap

2013-05-07 Thread Romain Guy
emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google

Re: [android-developers] HWUI

2013-05-06 Thread Romain Guy
The library called libhwui is responsible for rendering Android UIs using OpenGL. There are no documents available explaining the code architecture but you can refer to my Google I/O 2011 session entitled Android Accelerated Rendering for more information. On May 6, 2013 3:35 AM, chandra

Re: [android-developers] GridView inside ListView giving OutOfMemoryError

2013-05-06 Thread Romain Guy
to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] How does Hierarchy Viewer tool measure Draw time?

2013-04-30 Thread Romain Guy
to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer

Re: [android-developers] Switching between GLES2.0 and native Canvas rendering on the fly works in 2.3.6 but no in 4.2.2

2013-04-26 Thread Romain Guy
...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

Re: [android-developers] AvoidXfermode is deprecated since API 16, is there a replacement?

2013-04-21 Thread Romain Guy
. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] Re: Optimise drawing speed

2013-03-31 Thread Romain Guy
On Mar 31, 2013 12:15 PM, Jason jason.poli...@gmail.com wrote: My first reaction is that if you really want render speed then you need to be leveraging the GPU which is going to be most reliable with OpenGL (as I understanding it more recent versions of Android will actually hardware accelerate

Re: [android-developers] Text dissapears when view is rotated in getChildStaticTransformation (4.x / maybe also honeycomb)

2013-03-18 Thread Romain Guy
with 4.2. Can't test on more. If nobody else has feedback on this, I would submit the bug anyways (?). Am Montag, 18. März 2013 06:56:50 UTC+1 schrieb Romain Guy (Google): Does it happen on all 4.x versions? (4.0, 4.1 and 4.2?) If so, please file a bug at b.android.com. On Sun, Mar 17

Re: [android-developers] Text dissapears when view is rotated in getChildStaticTransformation (4.x / maybe also honeycomb)

2013-03-17 Thread Romain Guy
group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received

Re: [android-developers] Eclipse or Intellij.. what's the verdict?

2013-03-12 Thread Romain Guy
. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message

Re: [android-developers] Eclipse or Intellij.. what's the verdict?

2013-03-12 Thread Romain Guy
;) On Tue, Mar 12, 2013 at 12:33 AM, Romain Guy romain...@android.comwrote: I use IntelliJ for all my Android framework development work and I have used it to work on apps such as the stock Launcher and a couple of personal apps. I can live without ADT since the most critical tools are available

Re: [android-developers] Eclipse or Intellij.. what's the verdict?

2013-03-12 Thread Romain Guy
an ant file. There are a couple of C++ plugins for IntelliJ. I haven't used them, but it's hard to imagine them being worse for NDK work than Eclipse CDT ;-) On Tuesday, March 12, 2013 8:35:37 AM UTC-7, Romain Guy (Google) wrote: We use make internally but I used ant on personal apps. You can map

Re: [android-developers] Eclipse or Intellij.. what's the verdict?

2013-03-12 Thread Romain Guy
+ ADT as a black box for build config! Kris On Tue, Mar 12, 2013 at 3:33 AM, Romain Guy romain...@android.com wrote: I use IntelliJ for all my Android framework development work and I have used it to work on apps such as the stock Launcher and a couple of personal apps. I can live without ADT

Re: [android-developers] Re: Eclipse or Intellij.. what's the verdict?

2013-03-12 Thread Romain Guy
and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed

Re: [android-developers] When and how are LayoutParams examined, aside from onLayout and onMeasure

2013-03-03 Thread Romain Guy
You call measureChildren() which in turns call measureChild() which looks at the LayoutParams of each child. On Mar 1, 2013 10:12 PM, momo dun...@gmail.com wrote: I have a custom ViewGroup that's only ever managing the size and position of one child. I've override onMeasure and onLayout so

Re: [android-developers] When and how are LayoutParams examined, aside from onLayout and onMeasure

2013-03-03 Thread Romain Guy
this works: @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(mWidth, mHeight); } On Sun, Mar 3, 2013 at 11:52 AM, Romain Guy romain...@android.com wrote: You call measureChildren() which in turns call measureChild() which looks

Re: [android-developers] ListView background

2013-02-28 Thread Romain Guy
it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: libGLES_Trace server how to connect

2013-02-13 Thread Romain Guy
because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy

Re: [android-developers] ydpi != xdpi

2013-02-05 Thread Romain Guy
. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

Re: [android-developers] Disable Triple Buffering In 4.1?

2013-02-04 Thread Romain Guy
...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Disable Triple Buffering In 4.1?

2013-02-01 Thread Romain Guy
No it cannot be disabled. What issue is it causing? On Feb 1, 2013 1:16 AM, muleskinner ja...@bitbull.com wrote: Hi, Is there any way to disable Jelly Bean triple buffering from within my app? It's causing me issues and the easiest way to fix would be to disable it... Help much

Re: [android-developers] Canvas efficiency

2013-02-01 Thread Romain Guy
are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework

Re: [android-developers] Canvas 101 question

2013-01-31 Thread Romain Guy
://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] simple matrix question

2013-01-31 Thread Romain Guy
options, visit https://groups.google.com/groups/opt_out. -- Romain Guy Android framework engineer romain...@android.com -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

Re: [android-developers] using Paint to draw text with specified locale on pre-API 17

2013-01-19 Thread Romain Guy
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain

Re: [android-developers] GLUtils.texImage2D

2013-01-14 Thread Romain Guy
Don't flip the bitmap, flip your texture coordinates. It's easier and less work for the device. On Jan 14, 2013 7:03 AM, bob b...@coolfone.comze.com wrote: Has anyone else noticed that GLUtils.texImage2D seems to want the image to be upside down? GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0,

Re: [android-developers] OpenGL 1.0 or 1.1?

2013-01-08 Thread Romain Guy
No you cannot choose at such a fine level. Just don't use OpenGL ES 1.1 features. Out of curiosity, why? (I would even recommend you used OpenGL ES 2.0 :) On Jan 8, 2013 7:50 AM, bob b...@coolfone.comze.com wrote: Is there a way to tell Android whether you want to use OpenGL 1.0 or 1.1? I

Re: [android-developers] OpenGL ES 2.0 glDrawElements() context switches for long time

2013-01-07 Thread Romain Guy
-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

Re: [android-developers] Reading from another app - resources/assets (Take 2!)

2013-01-02 Thread Romain Guy
Using the package name and a resource ID you can load resources from another APK. That's how Launcher loads icons, strings and widget resources for instance. All the APIs you need are in the Resources class if I recall properly. On Jan 1, 2013 5:25 PM, Russell Wheeler russellpeterwhee...@gmail.com

Re: [android-developers] tessellation shaders

2012-12-14 Thread Romain Guy
at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

Re: [android-developers] give uniform variables an initial value

2012-12-11 Thread Romain Guy
No, you have to bind the value from your code. On Dec 11, 2012 12:52 PM, bob b...@coolfone.comze.com wrote: Anyone know if there is a way to give uniform variables an initial value in an Android OpenGL shader? Thanks. -- You received this message because you are subscribed to the Google

Re: [android-developers] cleaner shaders

2012-12-10 Thread Romain Guy
at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

Re: [android-developers] Re: [ICS] Did Canvas / drawBitmap change in ICS ?

2012-12-09 Thread Romain Guy
to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com

Re: [android-developers] Re: [ICS] Did Canvas / drawBitmap change in ICS ?

2012-12-09 Thread Romain Guy
:15:05 PM UTC-8, Romain Guy (Google) wrote: Instead of writing a loop like this you can just call Bitmap.eraseColor(). It's much more efficient. On Sun, Dec 9, 2012 at 11:55 AM, GJTorikian gjtor...@gmail.com wrote: All right, so after days I finally figured it out. After creating my bitmap

Re: [android-developers] EffectFactory effects under the hood

2012-12-07 Thread Romain Guy
It's exactly what they are :) On Dec 6, 2012 7:50 AM, bob b...@coolfone.comze.com wrote: Does anyone know what most of the EffectFactory effects are like under the hood? Are they basically GLSL shaders? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] How can I be assigned a task/bug on the issues list?

2012-12-03 Thread Romain Guy
to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] setting the TextView alpha color value in pre api11

2012-12-03 Thread Romain Guy
to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] how to play a video on an OpenGL texture

2012-11-29 Thread Romain Guy
to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com

Re: [android-developers] canvas.drawBitmap draws over screen image instead of replacing screen image

2012-11-25 Thread Romain Guy
. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android

Re: [android-developers] canvas.drawBitmap draws over screen image instead of replacing screen image

2012-11-25 Thread Romain Guy
)); canvas.drawPaint(paint); On Monday, November 26, 2012 11:31:12 AM UTC+11, Romain Guy (Google) wrote: Surfaces are double (or even triple) buffered. You are indeed not getting in your canvas what's currently on screen but what was on screen a frame ago. The easiest way to clear the surface

Re: [android-developers] Re: In search of Nexus 10 ADB drivers

2012-11-23 Thread Romain Guy
this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed

Re: [android-developers] Re: In search of Nexus 10 ADB drivers

2012-11-23 Thread Romain Guy
Ah, good old works on my machine(TM), right? ;-) More like I've never heard of this issue before :) I'll ask around in the office on Monday to see if it's a known issue. -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed

Re: [android-developers] SurfaceView

2012-11-21 Thread Romain Guy
-- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers

Re: [android-developers] SurfaceView

2012-11-21 Thread Romain Guy
/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group

Re: [android-developers] OOM with heap enough

2012-11-21 Thread Romain Guy
As of 3.0 Bitmaps are allocated on Dalvik's heap. On Nov 21, 2012 10:23 AM, b0b pujos.mich...@gmail.com wrote: Bitmap data is not allocated in the Java heap but in a much smaller area of native memory. So you can have several MB of Java Heap free and still have Bitmap OOM. Bitmaps are a

Re: [android-developers] OOM with heap enough

2012-11-21 Thread Romain Guy
And they were not allocated in a smaller area. They used to be allocated on the native heap but they counted against the Dalvik heap's usage (which is why you would get OOM anyway.) On Nov 21, 2012 10:23 AM, b0b pujos.mich...@gmail.com wrote: Bitmap data is not allocated in the Java heap but in

Re: [android-developers] Disabling DisplayList creation by Views

2012-11-20 Thread Romain Guy
No you cannot disable DisplayLists. They are required by the UI toolkit. 2MB if display lists seems excessive. Apps like Launcher use in the order of 15 kB. On Nov 20, 2012 7:22 AM, hanni hann...@gmail.com wrote: I've created a bunch of custom views that draw themselves really fast, especially

Re: [android-developers] You fixed google voice, now what?

2012-11-19 Thread Romain Guy
-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received

Re: [android-developers] Are Layouts Reusable?

2012-10-30 Thread Romain Guy
to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer

Re: [android-developers] 2048 pixels limit of hardware acceleration

2012-10-25 Thread Romain Guy
The limit varies from GPU to GPU. 2048 is the minimum maximum but it can/will be higher on different GPUs. The limit can be queried using Canvas.getMaxBitmapWidth/Height(). On Oct 25, 2012 6:04 AM, Chi Ho Kwok chk...@digibites.nl wrote: So I ran into this limit a while ago on one of the views on

Re: [android-developers] android.view.MotionEvent

2012-10-25 Thread Romain Guy
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy

Re: [android-developers] How come LinearLayout doesn't seem to measure wrap_content properly

2012-10-22 Thread Romain Guy
-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

Re: [android-developers] How come LinearLayout doesn't seem to measure wrap_content properly

2012-10-22 Thread Romain Guy
for your help. It saved me hours of agony that I am about to jump into ... Satya On Mon, Oct 22, 2012 at 5:40 PM, Romain Guy romain...@android.com wrote: LinearLayout is doing the right thing. wrap_content results in an AT_MOST MeasureSpec. If you are writing a custom view that extends the base

Re: [android-developers] Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?

2012-10-21 Thread Romain Guy
(origin change but not size). will that result in using the cached results of the previous draw? On Sat, Oct 20, 2012 at 4:19 PM, Romain Guy romain...@android.com wrote: requestLayout() itself does not lead to a draw pass but some views might react to a Layout change by calling invalidate

Re: [android-developers] Does an onDraw() get called if I don't do invalidate() but did the requestLayout()?

2012-10-20 Thread Romain Guy
requestLayout() itself does not lead to a draw pass but some views might react to a Layout change by calling invalidate. On Oct 20, 2012 12:59 PM, Satya Komatineni satya.komatin...@gmail.com wrote: For a UI action in the same thread: //On my view I call requestLayout() ViewRoot schedules a

Re: [android-developers] Extending LinearLayout / #getVirtualChild*

2012-10-16 Thread Romain Guy
group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android

Re: [android-developers] GPU Acceleration - still not worth using on 4.1.1?

2012-10-16 Thread Romain Guy
into hardware acceleration related bugs, please file bugs at http://b.android.com so I can fix them. -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] GPU Acceleration - still not worth using on 4.1.1?

2012-10-16 Thread Romain Guy
.) -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers

Re: [android-developers] GPU Acceleration - still not worth using on 4.1.1?

2012-10-16 Thread Romain Guy
code is not working 100%. I got the impression before that you are aware of these, but should we be submitting bugs if they don't seem to be getting fixed ? :) We've improved this recently, post Android 4.1.2. -- Romain Guy Android framework engineer romain...@android.com -- You received

Re: [android-developers] GPU Acceleration - still not worth using on 4.1.1?

2012-10-16 Thread Romain Guy
, Romain Guy (Google) wrote: Will the correct drawing of line caps (currently missing?) be implemented in the future? Yes, but no ETA. There also seems to be bugs with canvas.drawLines() and gaps appearing between lines at the joins (where an individual for loop to canvas.drawLine

Re: [android-developers] TextureView saving

2012-10-15 Thread Romain Guy
Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy

Re: [android-developers] invalidate() painting method

2012-10-14 Thread Romain Guy
into experimenting and figuring out how I can trigger or not trigger the throttling. Adam On Thursday, October 11, 2012 5:41:08 PM UTC-4, Romain Guy (Google) wrote: There is an implicit throttling mechanism as of 4.1 but even then it's bad. If you don't need to draw, don't draw. You're going to waste

Re: [android-developers] WebView setRotateX()/Y() glitch

2012-10-12 Thread Romain Guy
A way to do this is to set a hardware layer on your WebView. On Oct 12, 2012 1:40 AM, Avetik Kazhoyan kazho...@gmail.com wrote: Hi, I'm trying to rotate WebViews with setRotateX()/Y(). The view rotates but web page contents get cropped / messed up. Are setRotate methods applicable to

Re: [android-developers] ANR on android.view.GLES20Canvas.nDrawDisplayList(Native Method)

2012-10-12 Thread Romain Guy
@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received

Re: [android-developers] invalidate() painting method

2012-10-11 Thread Romain Guy
/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

Re: [android-developers] What are arbitrary units in the javadoc for computeVerticalScrollOffset?

2012-10-07 Thread Romain Guy
ListView sometimes uses the item unit (total number of items, first visible item, etc) instead of pixels because it cannot always know the exact pixel height of all items. You can also use units that come from your dataset (a map could very well use meters for instance, a graph could use time or

Re: [android-developers] TextureView canvas drawing problems

2012-10-03 Thread Romain Guy
, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain

Re: [android-developers] TextureView canvas drawing problems

2012-10-03 Thread Romain Guy
Here is a fully working example of Canvas TextureView: http://pastebin.com/J4uDgrZ8 On Wed, Oct 3, 2012 at 3:01 PM, Romain Guy romain...@android.com wrote: The problem is that you are calling updateTexImage() yourself. Do *not* do this. You are interfering with TextureView, preventing

Re: [android-developers] TextureView Canvas

2012-10-01 Thread Romain Guy
, Romain Guy (Google) wrote: Hi, If you were using SurfaceView's onDraw() method then you were not getting any benefit. You have to use lockCanvas()/unlockCanvasAndPost() and post on the underlying Surface. TextureView works in a similar way: you can call lockCanvas()/unlockCanvasAndPost

Re: [android-developers] Re: Hardware acceleration and drawPath problem

2012-09-29 Thread Romain Guy
I have never seen this problem. On Sat, Sep 29, 2012 at 6:22 AM, thibault thiba...@gmvhdl.com wrote: Do you have any ideas about paths being displayed at certain positions but not others? On Saturday, September 29, 2012 2:51:02 AM UTC, Romain Guy (Google) wrote: You are running into a well

Re: [android-developers] TextureView Canvas

2012-09-29 Thread Romain Guy
@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because

Re: [android-developers] Android and Z-Order

2012-09-29 Thread Romain Guy
...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Re: Hardware acceleration and drawPath problem

2012-09-28 Thread Romain Guy
to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Matrix. setPolyToPoly

2012-09-25 Thread Romain Guy
this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed

Re: [android-developers] [scaling_governor] How can I overwite scaling_governor on Java framework codes?

2012-09-02 Thread Romain Guy
, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain

Re: [android-developers] Path or Canvas changes in API-Level 14 / Problems on Nexus 7

2012-08-31 Thread Romain Guy
/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

  1   2   3   4   5   6   7   8   9   10   >