android-source

Unexpected pixel data layout when reading from GraphicBuffer

白昼怎懂夜的黑 提交于 2019-12-09 22:17:04
问题 I am currently working on a platform in the native Android framework where I use GraphicBuffer to allocate memory and then create an EGLImage from it. This is then used as a texture in OpenGL which I render to (with a simple fullscreen quad). The problem is when I read the rendered pixel data from the GraphicBuffer, I expect it to be in a linear RGBA format in memory but the result is a texture which contains three parallell smaller clones of the image and with overlapping pixels. Maybe that

How to show special characters in Android?

戏子无情 提交于 2019-12-09 13:13:35
问题 I am developing a native app which consists of some mathematical formulas. Formulas will be like......... I want to display such formulas in my application, but i don't how to use these special characters in Android. I want to display each formula individually in a list view...... If i am copying formula & if i am setting text to text view means it is showing like txtv.setText("\\cos^2\\theta + \\sin^2\\theta = 1\\! "); and getting output in the same pattern. So, can anyone help me how to use

How can I find the source for Android 2.3.3 Platform?

☆樱花仙子☆ 提交于 2019-12-09 10:34:18
问题 When in debug mode I get a source not found message for the android stuff. I am using Andorid-10 to match my device. In the 'android-sdk\sources' I have android-14 and Android-15. How and where can I get the Andorid-10 source tree. I have looked at http://developer.android.com/sdk/android-2.3.3.html but I can't find a source to download. 回答1: The best answer for me is going to http://code.google.com/p/adt-addons/ and downloading the Eclipse plugin for Android Sources . To get the plugin, in

Android source code download

爷,独闯天下 提交于 2019-12-09 10:34:07
问题 I have a few questions regarding android source code download, repo / git. This page says that The source download is approximately 6GB in size, but when I downloaded my directory size is 11GB. What did I do wrong? I downloaded the source code using repo init -u https://android.googlesource.com/platform/manifest Does it download source code for all versions of Android? If so, I don't see separate directories for different versions. How to check/list all available versions? And what would have

Install Google Apps on AOSP Build

╄→гoц情女王★ 提交于 2019-12-09 10:31:04
问题 I have installed android-6.0.1_r72 AOSP Rom on a Nexus 5 device. The rom doesn't come with Google Apps . I've tried to install from the following site, but after the installation I get Unfortunately, Google Play services has stopped Is there a special version of Google App s that I have to install? UPDATE: I found this error in logcat: 01-17 11:14:52.750 3525 5402 E AndroidRuntime: FATAL EXCEPTION: GoogleLocationService 01-17 11:14:52.750 3525 5402 E AndroidRuntime: Process: com.google

Writing to framebuffer directly on Android

情到浓时终转凉″ 提交于 2019-12-09 07:14:19
问题 I've a rooted phone with Android 4.2.2. I'd like to use minui API used (source here) in bootloader code to draw stuff on the screen. minui is much simpler than native OpenGL and I don't need any complex functionality exposed by OpenGL. The problem is that I can't write stuff directly to fb0 device. FBIOPUT_VSCREENINFO fails for unknown reason. How can I draw directly to fb0 on Android, or how can I use minui outside the bootloader mode? 回答1: device node:/dev/graphics/fb0 you can build in

Android Navigation Bar on side by editing AOSP

廉价感情. 提交于 2019-12-09 06:22:14
问题 I want to put the Navigation Bar (has system soft keys like back, home and menu. not Navigation Drawer!) on the (right) side, like below, by editing AOSP. +-------------------------------------------------+---+ | Status bar (always) | | +-------------------------------------------------+ N | | (Layout with background drawable) | a | | +---------------------------------------------+ | v | | | Title/Action bar (optional) | | | | +---------------------------------------------+ | B | | | Content,

What does @ mean in this clang command in AOSP build log?

笑着哭i 提交于 2019-12-09 03:56:07
问题 In AOSP9.0.0_r30 's build log, there are clang commands like this: prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++ /OpenSource/Build/Android/9.0.0_r30/soong/.intermediates/bionic/libc/crtbegin_so/android_x86_64_core/crtbegin_so.o @/OpenSource/Build/Android/9.0.0_r30/soong/.intermediates/bionic/libm/libm/android_x86_64_core_shared/libm.so.rsp ...... FYI, it is a linking commmand. In short, it is like: clang++ path_to_file1 @path_to_file2 ...... What does the " @ " mean here? 来源: https

Where can i browse the Android 2.2 Froyo source of java.lang.String? [closed]

大城市里の小女人 提交于 2019-12-08 12:24:32
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I would like to browse it online. The official Google one is always preferred. In particular, i want to access https://android.googlesource.com/platform/libcore/+/froyo/luni/src/main/java/java/lang/String.java But as you can see in the list here , only gingerbread and later releases are available. https://android.googlesource.com/platform/libcore/+/gingerbread/luni/src/main/java/java/lang/String.java If there is

Add a make rule to the main make of AOSP

穿精又带淫゛_ 提交于 2019-12-08 11:14:45
问题 I've added a new C++ subproject at frameworks/base/cmds/myproject and it has its own Android.mk file. When I run make myproject , it'll compile well and no problem. However I want to add make myproject to the main make . I mean, when someone runs make at the root of AOSP, my project to be included as well. What should I do? 回答1: You need your Android.mk file to be called. There are various ways to do so, depending on your needs. If you want your myproyect to be compiled for several of the