summaryrefslogtreecommitdiffstats
path: root/simulator/app
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:04:04 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:04:04 -0800
commite943f2fd8e7623ba3ea12bb65294d30446db4174 (patch)
treeeda2f24648d61fb33f3fa754d9fb4b5693517e0c /simulator/app
parent5c11852110eeb03dc5a69111354b383f98d15336 (diff)
downloadandroid_development-e943f2fd8e7623ba3ea12bb65294d30446db4174.tar.gz
android_development-e943f2fd8e7623ba3ea12bb65294d30446db4174.tar.bz2
android_development-e943f2fd8e7623ba3ea12bb65294d30446db4174.zip
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'simulator/app')
-rw-r--r--simulator/app/Android.mk4
-rw-r--r--simulator/app/DeviceManager.cpp8
-rw-r--r--simulator/app/DeviceWindow.cpp4
-rw-r--r--simulator/app/LogWindow.cpp2
-rw-r--r--simulator/app/PropertyServer.cpp4
5 files changed, 12 insertions, 10 deletions
diff --git a/simulator/app/Android.mk b/simulator/app/Android.mk
index 59c147c9e..c6e1d1440 100644
--- a/simulator/app/Android.mk
+++ b/simulator/app/Android.mk
@@ -1,7 +1,7 @@
# Copyright 2005 The Android Open Source Project
#
-ifneq ($(TARGET_ARCH),arm)
+ifeq ($(TARGET_SIMULATOR),true)
LOCAL_PATH := $(call my-dir)
@@ -127,4 +127,4 @@ $(LOCAL_INSTALLED_MODULE): | $(asset_target)
ALL_DEFAULT_INSTALLED_MODULES += $(asset_target)
-endif
+endif # $(TARGET_SIMULATOR) == true
diff --git a/simulator/app/DeviceManager.cpp b/simulator/app/DeviceManager.cpp
index 1f65d9955..a859c63f1 100644
--- a/simulator/app/DeviceManager.cpp
+++ b/simulator/app/DeviceManager.cpp
@@ -61,7 +61,7 @@ DeviceManager::~DeviceManager(void)
printf("Sim: Waiting for old runtime thread..."); fflush(stdout);
code = mThread->Wait(); // join the old thread
- printf("done (code=%d)\n", (int) code);
+ printf("done (code=%ld)\n", (long) code);
}
delete mThread;
mThread = NULL;
@@ -187,7 +187,7 @@ bool DeviceManager::StartRuntime(android::Pipe* reader, android::Pipe* writer)
// clean up old thread
printf("Sim: Waiting for old runtime thread..."); fflush(stdout);
code = mThread->Wait(); // join the old thread
- printf("done (code=%d)\n", (int) code);
+ printf("done (code=%ld)\n", (long) code);
delete mThread;
mThread = NULL;
@@ -916,13 +916,13 @@ void* DeviceManager::DeviceThread::Entry(void)
* Right now we're just shipping a big binary blob over.
*/
assert(android::Simulator::kValuesPerDisplay >= 5);
- long buf[1 + 1 + mpDeviceManager->GetNumDisplays() *
+ int buf[1 + 1 + mpDeviceManager->GetNumDisplays() *
android::Simulator::kValuesPerDisplay];
buf[0] = android::Simulator::kDisplayConfigMagic;
buf[1] = mpDeviceManager->GetNumDisplays();
for (int i = 0; i < mpDeviceManager->GetNumDisplays(); i++) {
DeviceManager::Display* pDisplay = mpDeviceManager->GetDisplay(i);
- long* pBuf = &buf[2 + android::Simulator::kValuesPerDisplay * i];
+ int* pBuf = &buf[2 + android::Simulator::kValuesPerDisplay * i];
pBuf[0] = pDisplay->GetWidth();
pBuf[1] = pDisplay->GetHeight();
diff --git a/simulator/app/DeviceWindow.cpp b/simulator/app/DeviceWindow.cpp
index 619a614c6..a15b03ba1 100644
--- a/simulator/app/DeviceWindow.cpp
+++ b/simulator/app/DeviceWindow.cpp
@@ -140,9 +140,9 @@ void DeviceWindow::ClampMouse(wxMouseEvent* pEvent)
void DeviceWindow::OnUserEvent(UserEvent& event)
{
wxBitmap* pBitmap;
- int displayIndex;
+ long displayIndex;
- displayIndex = (int) event.GetData();
+ displayIndex = (long) event.GetData();
//printf("GOT UAE %d\n", displayIndex);
diff --git a/simulator/app/LogWindow.cpp b/simulator/app/LogWindow.cpp
index 53ba9d07e..b19debbea 100644
--- a/simulator/app/LogWindow.cpp
+++ b/simulator/app/LogWindow.cpp
@@ -423,7 +423,7 @@ void LogWindow::OnLogLevel(wxCommandEvent& event)
selection = event.GetInt();
wxComboBox* pCombo = (wxComboBox*) FindWindow(IDC_LOG_LEVEL);
- priority = (android_LogPriority) (int)pCombo->GetClientData(event.GetInt());
+ priority = (android_LogPriority) (long)pCombo->GetClientData(event.GetInt());
printf("Sim: log level selected: %d (%s)\n", (int) priority,
(const char*) gLogLevels[selection].name.ToAscii());
diff --git a/simulator/app/PropertyServer.cpp b/simulator/app/PropertyServer.cpp
index ee1765719..565cc0991 100644
--- a/simulator/app/PropertyServer.cpp
+++ b/simulator/app/PropertyServer.cpp
@@ -129,10 +129,12 @@ void PropertyServer::SetDefaultProperties(void)
{ "app.setupwizard.disable", "1" },
/* Dalvik options, set by AndroidRuntime */
- { "dalvik.vm.execution-mode", "int:portable" },
+ { "dalvik.vm.stack-trace-file", "/data/anr/traces.txt" },
+ //{ "dalvik.vm.execution-mode", "int:portable" },
{ "dalvik.vm.enableassertions", "all" }, // -ea
{ "dalvik.vm.verify-bytecode", "false" }, // -Xverify
{ "dalvik.vm.deadlock-predict", "off" }, // -Xdeadlockpredict
+ //{ "dalvik.vm.jniopts", "forcecopy" }, // -Xjniopts
{ "log.redirect-stdio", "false" }, // -Xlog-stdio
/* SurfaceFlinger options */