Permalink
Browse files

iodroid tool

  • Loading branch information...
1 parent 0d169d7 commit a02ea55c9a1bc5ba08d111183af9380077e70b6d @bradfitz committed May 20, 2010
View
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
@@ -0,0 +1,8 @@
+*~
+*.apk
+bin
+gen
+local.properties
+src/com/google/iodroid/IIODroidService.java
+src/com/google/iodroid/IServiceCallback.java
+src/com/google/iodroid/R.java
@@ -0,0 +1,5 @@
+#Sun Aug 09 17:35:43 PDT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.source=1.5
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.google.android.iodroid"
+ android:versionCode="1" android:versionName="0.1">
+
+<uses-sdk android:minSdkVersion="4" />
+
+ <application android:label="@string/app_name">
+ <activity android:name=".IODroidActivity"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ <service android:exported="false" android:label="IODroid Service"
+ android:name=".IODroidService">
+ </service>
+
+ </application>
+
+</manifest>
View
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name=".IODroidActivity" default="help">
+
+ <!-- The local.properties file is created and updated by the 'android' tool.
+ It contain the path to the SDK. It should *NOT* be checked in in Version
+ Control Systems. -->
+ <property file="local.properties"/>
+
+ <!-- The build.properties file can be created by you and is never touched
+ by the 'android' tool. This is the place to change some of the default property values
+ used by the Ant rules.
+ Here are some properties you may want to change/update:
+
+ application-package
+ the name of your application package as defined in the manifest. Used by the
+ 'uninstall' rule.
+ source-folder
+ the name of the source folder. Default is 'src'.
+ out-folder
+ the name of the output folder. Default is 'bin'.
+
+ Properties related to the SDK location or the project target should be updated
+ using the 'android' tool with the 'update' action.
+
+ This file is an integral part of the build system for your application and
+ should be checked in in Version Control Systems.
+
+ -->
+ <property file="build.properties"/>
+
+ <!-- The default.properties file is created and updated by the 'android' tool, as well
+ as ADT.
+ This file is an integral part of the build system for your application and
+ should be checked in in Version Control Systems. -->
+ <property file="default.properties"/>
+
+ <!-- Custom Android task to deal with the project target, and import the proper rules.
+ This requires ant 1.6.0 or above. -->
+ <path id="android.antlibs">
+ <pathelement path="${sdk-location}/tools/lib/anttasks.jar" />
+ <pathelement path="${sdk-location}/tools/lib/sdklib.jar" />
+ <pathelement path="${sdk-location}/tools/lib/androidprefs.jar" />
+ <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" />
+ <pathelement path="${sdk-location}/tools/lib/jarutils.jar" />
+ </path>
+
+ <taskdef name="setup"
+ classname="com.android.ant.SetupTask"
+ classpathref="android.antlibs"/>
+
+ <!-- Execute the Android Setup task that will setup some properties specific to the target,
+ and import the rules files.
+ To customize the rules, copy/paste them below the task, and disable import by setting
+ the import attribute to false:
+ <setup import="false" />
+
+ This will ensure that the properties are setup correctly but that your customized
+ targets are used.
+ -->
+ <setup />
+</project>
View
@@ -0,0 +1,11 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Project target.
+target=android-3
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="vertical"
+ android:id="@+id/root_layout"
+ >
+
+ <TextView android:id="@+id/status"
+ android:text="IODroid"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:textStyle="bold"
+ android:layout_gravity="center_vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="22sp"
+ android:padding="3sp"
+ />
+
+ <LinearLayout android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:gravity="center_horizontal"
+ >
+
+ <Button android:id="@+id/read_button"
+ android:text="Read"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="15sp"
+ android:textSize="30sp"
+ />
+
+ <Button android:id="@+id/write_button"
+ android:text="Write"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="15sp"
+ android:textSize="30sp"
+ />
+ </LinearLayout>
+
+ <TextView android:text="Options"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:padding="3sp"
+ />
+
+ <CheckBox android:id="@+id/background_reads"
+ android:text="Background reads"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:padding="3sp"
+ />
+
+ <CheckBox android:id="@+id/background_writes"
+ android:text="Background writes"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:padding="3sp"
+ />
+
+ <CheckBox android:id="@+id/background_nice"
+ android:text="Background low-priority"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:padding="3sp"
+ />
+
+ <TextView android:id="@+id/bg_status"
+ android:text="Background status: (not running)"
+ android:singleLine="true"
+ android:ellipsize="end"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textSize="18sp"
+ android:padding="3sp"
+ />
+
+</LinearLayout>
+
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2009 Brad Fitzpatrick <brad@danga.com>
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item
+ android:icon="@android:drawable/ic_menu_info_details"
+ android:id="@+id/menu_item_about"
+ android:title="About"
+ android:alphabeticShortcut="a" />
+ <item
+ android:icon="@android:drawable/ic_menu_preferences"
+ android:id="@+id/menu_item_settings"
+ android:title="Settings"
+ android:alphabeticShortcut="p" />
+</menu>
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">IODroid</string>
+</resources>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2009 Brad Fitzpatrick <brad@danga.com>
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ android:key="first_preferencescreen">
+
+ <CheckBoxPreference
+ android:key="squeezer.autodiscover"
+ android:title="Auto-discover server"
+ android:summary="NOTDONE Auto-scan for the squeeze server."
+ android:persistent="true" />
+
+ <EditTextPreference
+ android:key="iodroid.foo"
+ android:title="Foo"
+ android:summary="bar the foo"
+ android:persistent="true" />
+
+</PreferenceScreen>
@@ -0,0 +1,15 @@
+// -*-java-*-
+
+package com.google.android.iodroid;
+
+import com.google.android.iodroid.IServiceCallback;
+
+interface IIODroidService {
+ // For the activity to register itself with the service:
+ void registerCallback(IServiceCallback callback);
+ void unregisterCallback(IServiceCallback callback);
+
+ void setMaxOutstandingWrites(int value);
+ void setMaxOutstandingReads(int value);
+}
+
Oops, something went wrong.

0 comments on commit a02ea55

Please sign in to comment.