Permalink
Browse files

new samples plus updated project properties for r14 tools

  • Loading branch information...
Mark Murphy
Mark Murphy committed Oct 22, 2011
1 parent 43ac63c commit 401892eb35f1572c78d8c2fb9c5700694dd16d3d
Showing with 2,378 additions and 20 deletions.
  1. +1 −1 CPU-Java/AIDLOverhead/Client/.classpath
  2. +1 −1 CPU-Java/AIDLOverhead/Client/{default.properties → project.properties}
  3. +1 −1 CPU-Java/AIDLOverhead/RemoteService/.classpath
  4. +1 −1 CPU-Java/AIDLOverhead/RemoteService/{default.properties → project.properties}
  5. +1 −1 CPU-Java/GoAsync/.classpath
  6. +1 −1 CPU-Java/GoAsync/{default.properties → project.properties}
  7. +1 −1 CPU-Java/PrefsPersist/.classpath
  8. +1 −1 CPU-Java/PrefsPersist/{default.properties → project.properties}
  9. +7 −0 MAT/LeakedThread/.classpath
  10. +33 −0 MAT/LeakedThread/.project
  11. +18 −0 MAT/LeakedThread/AndroidManifest.xml
  12. +40 −0 MAT/LeakedThread/proguard.cfg
  13. +1 −1 Traceview/default.properties → MAT/LeakedThread/project.properties
  14. BIN MAT/LeakedThread/res/drawable-hdpi/icon.png
  15. BIN MAT/LeakedThread/res/drawable-ldpi/icon.png
  16. BIN MAT/LeakedThread/res/drawable-mdpi/icon.png
  17. +12 −0 MAT/LeakedThread/res/layout/main.xml
  18. +5 −0 MAT/LeakedThread/res/values/strings.xml
  19. +35 −0 MAT/LeakedThread/src/com/commonsware/android/tuning/mat/LeakedThreadActivity.java
  20. +7 −0 MAT/NonConfigWidget/.classpath
  21. +33 −0 MAT/NonConfigWidget/.project
  22. +18 −0 MAT/NonConfigWidget/AndroidManifest.xml
  23. +40 −0 MAT/NonConfigWidget/proguard.cfg
  24. +3 −3 NDK/WeakBench/default.properties → MAT/NonConfigWidget/project.properties
  25. BIN MAT/NonConfigWidget/res/drawable-hdpi/icon.png
  26. BIN MAT/NonConfigWidget/res/drawable-ldpi/icon.png
  27. BIN MAT/NonConfigWidget/res/drawable-mdpi/icon.png
  28. +5 −0 MAT/NonConfigWidget/res/layout/main.xml
  29. +5 −0 MAT/NonConfigWidget/res/values/strings.xml
  30. +35 −0 MAT/NonConfigWidget/src/com/commonsware/android/tuning/mat/NonConfigWidgetActivity.java
  31. +7 −0 MAT/RandomAppOfCrap/.classpath
  32. +33 −0 MAT/RandomAppOfCrap/.project
  33. +22 −0 MAT/RandomAppOfCrap/AndroidManifest.xml
  34. +67 −0 MAT/RandomAppOfCrap/build.xml
  35. +36 −0 MAT/RandomAppOfCrap/proguard.cfg
  36. +12 −0 MAT/RandomAppOfCrap/project.properties
  37. BIN MAT/RandomAppOfCrap/res/drawable/cw.png
  38. BIN MAT/RandomAppOfCrap/res/drawable/eject.png
  39. BIN MAT/RandomAppOfCrap/res/drawable/mail_generic.png
  40. +6 −0 MAT/RandomAppOfCrap/res/layout/main.xml
  41. +5 −0 MAT/RandomAppOfCrap/res/values/strings.xml
  42. +45 −0 MAT/RandomAppOfCrap/src/com/commonsware/android/weather/Forecast.java
  43. +126 −0 MAT/RandomAppOfCrap/src/com/commonsware/android/weather/WeatherBinder.java
  44. +172 −0 MAT/RandomAppOfCrap/src/com/commonsware/android/weather/WeatherDemo.java
  45. +22 −0 MAT/RandomAppOfCrap/src/com/commonsware/android/weather/WeatherListener.java
  46. +33 −0 MAT/RandomAppOfCrap/src/com/commonsware/android/weather/WeatherService.java
  47. +7 −0 MAT/Spinners/.classpath
  48. +33 −0 MAT/Spinners/.project
  49. +24 −0 MAT/Spinners/AndroidManifest.xml
  50. +20 −0 MAT/Spinners/build.properties
  51. +67 −0 MAT/Spinners/build.xml
  52. +40 −0 MAT/Spinners/proguard.cfg
  53. +1 −1 TrafficMonitor/default.properties → MAT/Spinners/project.properties
  54. BIN MAT/Spinners/res/drawable-mdpi/cw.png
  55. BIN MAT/Spinners/res/drawable/cw.png
  56. +18 −0 MAT/Spinners/res/layout/main.xml
  57. +4 −0 MAT/Spinners/res/values/strings.xml
  58. +66 −0 MAT/Spinners/src/com/commonsware/android/contacts/spinners/ContactSpinners.java
  59. +37 −0 MAT/Spinners/src/com/commonsware/android/contacts/spinners/ContactsAdapterBridge.java
  60. +85 −0 MAT/Spinners/src/com/commonsware/android/contacts/spinners/NewContactsAdapterBridge.java
  61. +86 −0 MAT/Spinners/src/com/commonsware/android/contacts/spinners/OldContactsAdapterBridge.java
  62. +7 −0 MAT/Spinners/tests/.classpath
  63. +33 −0 MAT/Spinners/tests/.project
  64. +23 −0 MAT/Spinners/tests/AndroidManifest.xml
  65. +18 −0 MAT/Spinners/tests/build.properties
  66. +71 −0 MAT/Spinners/tests/build.xml
  67. +40 −0 MAT/Spinners/tests/proguard.cfg
  68. +11 −0 MAT/Spinners/tests/project.properties
  69. +2 −0 MAT/Spinners/tests/run
  70. +53 −0 MAT/Spinners/tests/src/com/commonsware/android/contacts/spinners/ContactsDemoBaseTest.java
  71. +48 −0 MAT/Spinners/tests/src/com/commonsware/android/contacts/spinners/ContactsDemoTest.java
  72. +27 −0 MAT/Spinners/tests/src/com/commonsware/android/contacts/spinners/FullSuite.java
  73. +36 −0 MAT/Spinners/tests/src/com/commonsware/android/contacts/spinners/HprofTestRunner.java
  74. +35 −0 MAT/Spinners/tests/src/com/commonsware/android/contacts/spinners/SillyTest.java
  75. +7 −0 MAT/StaticWidget/.classpath
  76. +33 −0 MAT/StaticWidget/.project
  77. +18 −0 MAT/StaticWidget/AndroidManifest.xml
  78. +40 −0 MAT/StaticWidget/proguard.cfg
  79. +11 −0 MAT/StaticWidget/project.properties
  80. BIN MAT/StaticWidget/res/drawable-hdpi/icon.png
  81. BIN MAT/StaticWidget/res/drawable-ldpi/icon.png
  82. BIN MAT/StaticWidget/res/drawable-mdpi/icon.png
  83. +8 −0 MAT/StaticWidget/res/layout/main.xml
  84. +5 −0 MAT/StaticWidget/res/values/strings.xml
  85. +32 −0 MAT/StaticWidget/src/com/commonsware/android/tuning/mat/StaticWidgetActivity.java
  86. +1 −1 NDK/LuaInterpreter/.classpath
  87. +1 −1 NDK/WeakBench/.classpath
  88. +4 −0 NDK/WeakBench/AndroidManifest.xml
  89. +7 −0 Power/Downloader/.classpath
  90. +33 −0 Power/Downloader/.project
  91. +24 −0 Power/Downloader/AndroidManifest.xml
  92. +17 −0 Power/Downloader/build.properties
  93. +67 −0 Power/Downloader/build.xml
  94. +40 −0 Power/Downloader/proguard.cfg
  95. +11 −0 Power/Downloader/project.properties
  96. BIN Power/Downloader/res/drawable/cw.png
  97. BIN Power/Downloader/res/drawable/eject.png
  98. BIN Power/Downloader/res/drawable/ic_menu_add.png
  99. BIN Power/Downloader/res/drawable/ic_menu_info_details.png
  100. BIN Power/Downloader/res/drawable/ic_menu_refresh.png
  101. +9 −0 Power/Downloader/res/layout/main.xml
  102. +4 −0 Power/Downloader/res/values/strings.xml
  103. +44 −0 Power/Downloader/src/com/commonsware/android/tuning/downloader/ByteArrayResponseHandler.java
  104. +102 −0 Power/Downloader/src/com/commonsware/android/tuning/downloader/Downloader.java
  105. +61 −0 Power/Downloader/src/com/commonsware/android/tuning/downloader/DownloaderDemo.java
  106. +1 −1 Traceview/.classpath
  107. +11 −0 Traceview/project.properties
  108. +1 −1 TrafficMonitor/.classpath
  109. +3 −3 NDK/LuaInterpreter/default.properties → TrafficMonitor/project.properties
@@ -3,5 +3,5 @@
<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"/>
+ <classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -4,7 +4,7 @@
# 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
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
@@ -3,5 +3,5 @@
<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"/>
+ <classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -4,7 +4,7 @@
# 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
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
@@ -3,5 +3,5 @@
<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"/>
+ <classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -4,7 +4,7 @@
# 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
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
@@ -3,5 +3,5 @@
<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"/>
+ <classpathentry kind="output" path="bin/classes"/>
</classpath>
@@ -4,7 +4,7 @@
# 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
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
@@ -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/classes"/>
+</classpath>
View
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>LeakedThread</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.commonsware.android.tuning.mat"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <uses-sdk android:minSdkVersion="7" />
+
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".LeakedThreadActivity"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ </application>
+</manifest>
@@ -0,0 +1,40 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers class * extends android.app.Activity {
+ public void *(android.view.View);
+}
+
+-keepclassmembers enum * {
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+ public static final android.os.Parcelable$Creator *;
+}
@@ -4,7 +4,7 @@
# 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
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<TextView
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/hello"
+ />
+</LinearLayout>
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, LeakedThreadActivity!</string>
+ <string name="app_name">LeakedThread</string>
+</resources>
@@ -0,0 +1,35 @@
+/***
+ Copyright (c) 2008-2011 CommonsWare, LLC
+ 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.
+
+ From _Tuning Android Applications_
+ http://commonsware.com/AndTuning
+*/
+
+package com.commonsware.android.tuning.mat;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.os.SystemClock;
+
+public class LeakedThreadActivity extends Activity {
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ new Thread() {
+ public void run() {
+ while(true) {
+ SystemClock.sleep(100);
+ }
+ }
+ }.start();
+ }
+}
@@ -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/classes"/>
+</classpath>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>NonConfigWidget</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.commonsware.android.tuning.mat"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <uses-sdk android:minSdkVersion="7" />
+
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".NonConfigWidgetActivity"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ </application>
+</manifest>
@@ -0,0 +1,40 @@
+-optimizationpasses 5
+-dontusemixedcaseclassnames
+-dontskipnonpubliclibraryclasses
+-dontpreverify
+-verbose
+-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
+
+-keep public class * extends android.app.Activity
+-keep public class * extends android.app.Application
+-keep public class * extends android.app.Service
+-keep public class * extends android.content.BroadcastReceiver
+-keep public class * extends android.content.ContentProvider
+-keep public class * extends android.app.backup.BackupAgentHelper
+-keep public class * extends android.preference.Preference
+-keep public class com.android.vending.licensing.ILicensingService
+
+-keepclasseswithmembernames class * {
+ native <methods>;
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet);
+}
+
+-keepclasseswithmembers class * {
+ public <init>(android.content.Context, android.util.AttributeSet, int);
+}
+
+-keepclassmembers class * extends android.app.Activity {
+ public void *(android.view.View);
+}
+
+-keepclassmembers enum * {
+ public static **[] values();
+ public static ** valueOf(java.lang.String);
+}
+
+-keep class * implements android.os.Parcelable {
+ public static final android.os.Parcelable$Creator *;
+}
@@ -1,10 +1,10 @@
# 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
+# "ant.properties", and override values to adapt the script to your
# project structure.
# Project target.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Button xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent" android:layout_height="wrap_content"
+ android:text="Bet you can't click me!" android:enabled="true"
+ android:onClick="btnClick" android:id="@+id/non_config" />
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, NonConfigWidgetActivity!</string>
+ <string name="app_name">NonConfigWidget</string>
+</resources>
Oops, something went wrong.

0 comments on commit 401892e

Please sign in to comment.