Regarding gcov using arm-eabi toolchain

by Manish Sharma » Wed, 08 Dec 2010 16:28:03 GMT

Sponsored Links
 Dear All,

We have developed an application for which we would like to check the code
We have used gcov available in android toolchain.

In our file we have added the following LOCAL_FLAGS and included
the libgcov static library.

LOCAL_CFLAGS:= -fprofile-arcs -ftest-coverage


We got some compilation issues which was resolved by copying the libgcov
library from
using BUILD_PREBUILT make rules.

The output executable size is also increased with this and in out folder was
can see *.gcno files getting created.

When we execute the test *.gcda files are generated on target but when we
try to take the code coverage using lcov it is not generating the code
coverage report.

lcov --directory code_coverage/ --capture --output-file ./
genhtml -o code_coverage/ ./

We have tested the same setup with arm-linux toolchain and it works fine.

Please provide some pointer which we can look into.



Other Threads

1. Showing ellipsis in a TextView?


I have a normal TextView which has multiple lines. I set its max
number of lines to 3. I'd like it to show an ellipsis at the end if
the text is too long:

  TextView tv = new TextView(context);
  tv.setText("some really long text...");

I tried the set ellipsis calls but it doesn't seem to do anything -
the text appears the same way. How do we get this to work?



2. 绛斿: hiding a forcibly o pened soft keyboard...

InputMethodManager m_inputManager = null;
//show input
                m_inputManager = (InputMethodManager) 
this.getCurrentFocus(),InputMethodManager.SHOW_FORCED );

//hide input
        private boolean hideInputMethod( )
                boolean bHideIM = 
m_inputManager.hideSoftInputFromWindow(name.getWindowToken(), 0); //hide Input 
                if( false == bHideIM )
                        Log.e( TAG, "hide InputMethod is error!" ); 
                return bHideIM;

 sdphil [] 
€ 20091210:43
 Android Developers
: [android-developers] Re: hiding a forcibly opened soft keyboard...

What flag is that?  All I see documented are --

int     HIDE_IMPLICIT_ONLY      Flag for hideSoftInputFromWindow(IBinder,
int) to indicate that the soft input window should only be hidden if
it was not explicitly shown by the user.
int     HIDE_NOT_ALWAYS         Flag for hideSoftInputFromWindow(IBinder, int)
to indicate that the soft input window should normally be hidden,
unless it was originally shown with SHOW_FORCED.


> > 

3. hiding a forcibly opened soft keyboard...

4. Picture say a thousand word

5. question on scanObject()

6. The loosers got notice :)

7. LG Eve emulator skin now available for Android 2.0 SDK