emulation

Modeling embedded hardware in Rust and how to have multiple mutable references cleanly?

此生再无相见时 提交于 2019-12-10 15:55:46
问题 I'm modeling a system that has a CPU, GPU, MMU, APU, and maybe other things. The CPU will have mutable references to the GPU, MMU, and APU. I also would like the MMU to have a way to be able to call specific functions on the GPU and APU. Where this comes into play is when I'm mapping memory to different locations. The MMU takes care of that, and will dispatch to GPU or APU if the memory request is in those devices. Here is how I modeled it using Arc and Mutex . I was wondering if there is a

Android 2.3 Hebrew fonts in Webview

左心房为你撑大大i 提交于 2019-12-10 15:42:46
问题 I am porting an app that displays Hebrew to Android 2.3. The 2.3 emulator displays the strings correctly when in a TextView, but when I try to put the strings in a WebView, the webview just displays gibberish. This tells me that the Hebrew fonts are available in the emulator but the webview code has something missing. This is the code: WebView mWebView = (WebView) findViewById(R.id.webview); mWebView.loadData("<html><body>"+temp1 +"</body></html>", "text/html", "UTF-8"); Any ideas on how to

getAvailableBlocksLong() * getBlockSizeLong() VS getAvailableBytes()

一曲冷凌霜 提交于 2019-12-10 15:36:57
问题 [EDIT] I did make a stupid mistake on my testing. I asked a question here without knowing it. The answer is, both are the same. But I leave my post here for others. What is the difference between getAvailableBlocksLong() * getBlockSizeLong() and getAvailableBytes() ? I tested myself and got a really strange result on Genymotion. The values from getAvailableBlocksLong() * getBlockSizeLong() and getAvailableBytes() are different! I literally don't get what is happening here. Does it have

How to record touches and emulate them later on real devices (with ROOT if needed)?

ⅰ亾dé卋堺 提交于 2019-12-10 15:08:36
问题 Background the monkeyRunner (and monkey) is a nice tool to test out apps. I have an idea of using it (or something similar) to record & emulate touches (and keys). The problem The tool itself has some disadvantages: needs to be run on an emulator or on a device that is connected to a PC. needs adb. it needs that you type it exactly what to do , which requires a lot of patience and trial&error in order to find out what to write. has limitations on how many devices to run (since it needs to be

Android emulator platform 4.0 startup problems

≡放荡痞女 提交于 2019-12-10 13:54:26
问题 i ve just migrated to Ice cream sandwich emulator 4.0, and i have many difficulties startign it up.. Sometimes i get database connection existed error, and wont start, then something like thread 52 violation, now the emulator loaded but when i tried to unlocked it i got some policyviolation error and it frozed. I am really frustrated, anyone else has the same problems ? If so , were they fixed, and how, otherwise i see no other way but migrating back to 3.2 ... Bdw i am using ubuntu 11.04

Android M (preview) Doze mode and AlarmManager

只愿长相守 提交于 2019-12-10 13:33:54
问题 I'm trying to test the behavior of our Android app when the OS goes in Doze mode. I'm using an emulator running Android API 23 (Revision 1). The application launches a Service through the AlarmManager using the method setInexactRepeating with type ELAPSED_REALTIME_WAKEUP. I set the alarm to fire approximately every three minutes (only for testing purposes). After several attempts (the official guide is very unclear) I succeed to put the emulator in IDLE state by locking the screen of the

Sensors in android emulator?

寵の児 提交于 2019-12-10 13:18:09
问题 I wanna create an app by using acceleration sensor.But I don't know how can I test it in emulator? 回答1: I don't think the Android emulators support the acceleration sensor nicely by default. However, you can download SensorSimulator from Google, which lets you give the Android emulator simulated sensor data with the mouse. Just follow the instructions on the website and you should be good to go. Update (4/5/2016): As Maks kindly pointed out, OpenIntents SensorSimulator has moved here: http:/

Can't find android sdk 2.3.4 in SDK manager

雨燕双飞 提交于 2019-12-10 12:59:04
问题 I'm having problems finding the 2.3.4 sdk in the Android SDK Manager download list. I updated the SDK tools to r11 and my platform-tools to r5 but 2.3.4 won't show up. Is there something I'm missing? 回答1: Check out Android 2.3.4 API Level "The Android 2.3.4 platform does not increment the API level — it uses the same API level as Android 2.3.3, API level 10. To use APIs introduced in API level 10 in your application, you need compile the application against the Android library that is

What browser does the Samsung Galaxy use?

人走茶凉 提交于 2019-12-10 12:32:40
问题 Looking to check a site on a Samsung Galaxy, what browser does it use out the box and where can I emulate it - either online or on OSX? Reason I am asking is a few CSS properties do not work and need to find a fix. 回答1: The Browser app that is present on TouchWiz (Galaxy) devices is not the stock Android (AOSP) Browser. The Samsung Browser has customizations on top of the stock browser (such as the functionality for OS/Browser-controlled elements i.e. select fields). The bad news is that it

Using char as an unsigned 16 bit value in Java?

こ雲淡風輕ζ 提交于 2019-12-10 11:37:06
问题 I need an unsigned 8 bit integer in Java, and char seems to be the only thing close to that. Although it's double the size, it's unsigned which makes it practical for what I want to use it for (writing a basic emulator which requires unsigned bytes). The problem is that I've heard other programmers say that one shouldn't use char in that manner and should just use int or so. Is this true, and why so? 回答1: If you need an unsigned 8 bit integer then use byte . It's easy to make it unsigned in