Skip to content
Permalink
Browse files

Migrate project to Android Studio.

  • Loading branch information...
pmarks-net committed Mar 29, 2015
1 parent 5ca34f9 commit 565c0f751db950723d342722d3a9feec024a0f33
Showing with 501 additions and 20 deletions.
  1. +7 −0 .gitignore
  2. +1 −0 .idea/.name
  3. +23 −0 .idea/compiler.xml
  4. +3 −0 .idea/copyright/profiles_settings.xml
  5. +5 −0 .idea/encodings.xml
  6. +18 −0 .idea/gradle.xml
  7. +7 −0 .idea/misc.xml
  8. +10 −0 .idea/modules.xml
  9. +5 −0 .idea/scopes/scope_settings.xml
  10. +7 −0 .idea/vcs.xml
  11. +93 −0 app/app.iml
  12. +24 −0 app/build.gradle
  13. 0 proguard-project.txt → app/proguard-rules.txt
  14. +0 −4 { → app/src/main}/AndroidManifest.xml
  15. 0 {src → app/src/main/java}/com/mobeta/android/dslv/DragSortController.java
  16. 0 {src → app/src/main/java}/com/mobeta/android/dslv/DragSortCursorAdapter.java
  17. 0 {src → app/src/main/java}/com/mobeta/android/dslv/DragSortItemView.java
  18. 0 {src → app/src/main/java}/com/mobeta/android/dslv/DragSortItemViewCheckable.java
  19. 0 {src → app/src/main/java}/com/mobeta/android/dslv/DragSortListView.java
  20. 0 {src → app/src/main/java}/com/mobeta/android/dslv/ResourceDragSortCursorAdapter.java
  21. 0 {src → app/src/main/java}/com/mobeta/android/dslv/SimpleDragSortCursorAdapter.java
  22. 0 {src → app/src/main/java}/com/mobeta/android/dslv/SimpleFloatViewManager.java
  23. 0 {src → app/src/main/java}/edu/emory/mathcs/jtransforms/dct/FloatDCT_1D.java
  24. 0 {src → app/src/main/java}/edu/emory/mathcs/utils/ConcurrencyUtils.java
  25. 0 {src → app/src/main/java}/net/pmarks/chromadoze/AboutFragment.java
  26. 0 {src → app/src/main/java}/net/pmarks/chromadoze/AudioFocusHelper.java
  27. 0 {src → app/src/main/java}/net/pmarks/chromadoze/AudioParams.java
  28. 0 {src → app/src/main/java}/net/pmarks/chromadoze/CheckableLinearLayout.java
  29. 0 {src → app/src/main/java}/net/pmarks/chromadoze/ChromaDoze.java
  30. 0 {src → app/src/main/java}/net/pmarks/chromadoze/EqualizerView.java
  31. 0 {src → app/src/main/java}/net/pmarks/chromadoze/EqualizerViewLite.java
  32. 0 {src → app/src/main/java}/net/pmarks/chromadoze/FragmentIndex.java
  33. 0 {src → app/src/main/java}/net/pmarks/chromadoze/MainFragment.java
  34. 0 {src → app/src/main/java}/net/pmarks/chromadoze/MediaButtonReceiver.java
  35. 0 {src → app/src/main/java}/net/pmarks/chromadoze/MemoryArrayAdapter.java
  36. 0 {src → app/src/main/java}/net/pmarks/chromadoze/MemoryFragment.java
  37. 0 {src → app/src/main/java}/net/pmarks/chromadoze/NoiseService.java
  38. 0 {src → app/src/main/java}/net/pmarks/chromadoze/OptionsFragment.java
  39. 0 {src → app/src/main/java}/net/pmarks/chromadoze/Phonon.java
  40. 0 {src → app/src/main/java}/net/pmarks/chromadoze/PhononMutable.java
  41. 0 {src → app/src/main/java}/net/pmarks/chromadoze/SampleGenerator.java
  42. 0 {src → app/src/main/java}/net/pmarks/chromadoze/SampleGeneratorState.java
  43. 0 {src → app/src/main/java}/net/pmarks/chromadoze/SampleShuffler.java
  44. 0 {src → app/src/main/java}/net/pmarks/chromadoze/SpectrumData.java
  45. 0 {src → app/src/main/java}/net/pmarks/chromadoze/TrackedPosition.java
  46. 0 {src → app/src/main/java}/net/pmarks/chromadoze/UIState.java
  47. 0 {src → app/src/main/java}/net/pmarks/chromadoze/XORShiftRandom.java
  48. BIN { → app/src/main}/res/drawable-hdpi-v11/ic_stat_bars.png
  49. BIN { → app/src/main}/res/drawable-hdpi-v9/ic_stat_bars.png
  50. BIN { → app/src/main}/res/drawable-hdpi/action_lock.png
  51. BIN { → app/src/main}/res/drawable-hdpi/action_unlock.png
  52. BIN { → app/src/main}/res/drawable-hdpi/av_play.png
  53. BIN { → app/src/main}/res/drawable-hdpi/av_stop.png
  54. BIN { → app/src/main}/res/drawable-hdpi/btn_default_disabled_focused_holo_dark.9.png
  55. BIN { → app/src/main}/res/drawable-hdpi/btn_default_disabled_holo_dark.9.png
  56. BIN { → app/src/main}/res/drawable-hdpi/btn_default_focused_holo_dark.9.png
  57. BIN { → app/src/main}/res/drawable-hdpi/btn_default_normal_holo_dark.9.png
  58. BIN { → app/src/main}/res/drawable-hdpi/btn_default_pressed_holo_dark.9.png
  59. BIN { → app/src/main}/res/drawable-hdpi/grip_dots.png
  60. BIN { → app/src/main}/res/drawable-hdpi/ic_menu_save_disabled.png
  61. BIN { → app/src/main}/res/drawable-hdpi/ic_menu_save_normal.png
  62. BIN { → app/src/main}/res/drawable-hdpi/ic_stat_bars.png
  63. BIN { → app/src/main}/res/drawable-ldpi-v11/ic_stat_bars.png
  64. BIN { → app/src/main}/res/drawable-ldpi-v9/ic_stat_bars.png
  65. BIN { → app/src/main}/res/drawable-ldpi/wave_amplitude.png
  66. BIN { → app/src/main}/res/drawable-ldpi/wave_period.png
  67. BIN { → app/src/main}/res/drawable-mdpi-v11/ic_stat_bars.png
  68. BIN { → app/src/main}/res/drawable-mdpi-v9/ic_stat_bars.png
  69. BIN { → app/src/main}/res/drawable-mdpi/btn_default_disabled_focused_holo_dark.9.png
  70. BIN { → app/src/main}/res/drawable-mdpi/btn_default_disabled_holo_dark.9.png
  71. BIN { → app/src/main}/res/drawable-mdpi/btn_default_focused_holo_dark.9.png
  72. BIN { → app/src/main}/res/drawable-mdpi/btn_default_normal_holo_dark.9.png
  73. BIN { → app/src/main}/res/drawable-mdpi/btn_default_pressed_holo_dark.9.png
  74. BIN { → app/src/main}/res/drawable-mdpi/chromadoze_icon.png
  75. BIN { → app/src/main}/res/drawable-mdpi/ic_stat_bars.png
  76. BIN { → app/src/main}/res/drawable-xhdpi/btn_default_disabled_focused_holo_dark.9.png
  77. BIN { → app/src/main}/res/drawable-xhdpi/btn_default_disabled_holo_dark.9.png
  78. BIN { → app/src/main}/res/drawable-xhdpi/btn_default_focused_holo_dark.9.png
  79. BIN { → app/src/main}/res/drawable-xhdpi/btn_default_normal_holo_dark.9.png
  80. BIN { → app/src/main}/res/drawable-xhdpi/btn_default_pressed_holo_dark.9.png
  81. BIN { → app/src/main}/res/drawable-xhdpi/chromadoze_icon.png
  82. +1 −1 { → app/src/main}/res/drawable/btn_default_holo_dark.xml
  83. +1 −1 { → app/src/main}/res/drawable/ic_menu_save.xml
  84. BIN { → app/src/main}/res/drawable/spectrum.png
  85. 0 { → app/src/main}/res/layout-v11/notification_with_stop_button.xml
  86. 0 { → app/src/main}/res/layout-v11/spinner_dropdown.xml
  87. 0 { → app/src/main}/res/layout/about_fragment.xml
  88. 0 { → app/src/main}/res/layout/main.xml
  89. 0 { → app/src/main}/res/layout/main_fragment.xml
  90. 0 { → app/src/main}/res/layout/memory_list.xml
  91. 0 { → app/src/main}/res/layout/memory_list_divider.xml
  92. 0 { → app/src/main}/res/layout/memory_list_item.xml
  93. 0 { → app/src/main}/res/layout/memory_list_item_common.xml
  94. 0 { → app/src/main}/res/layout/memory_list_item_top.xml
  95. 0 { → app/src/main}/res/layout/options_fragment.xml
  96. 0 { → app/src/main}/res/layout/spinner_dropdown.xml
  97. 0 { → app/src/main}/res/layout/spinner_title.xml
  98. 0 { → app/src/main}/res/values/colors.xml
  99. +1 −1 { → app/src/main}/res/values/dslv_attrs.xml
  100. 0 { → app/src/main}/res/values/ids.xml
  101. 0 { → app/src/main}/res/values/strings.xml
  102. 0 { → app/src/main}/res/values/themes.xml
  103. +15 −0 build.gradle
  104. +19 −0 chromadoze.iml
  105. +0 −13 default.properties
  106. BIN gradle/wrapper/gradle-wrapper.jar
  107. +6 −0 gradle/wrapper/gradle-wrapper.properties
  108. +164 −0 gradlew
  109. +90 −0 gradlew.bat
  110. +1 −0 settings.gradle
@@ -0,0 +1,7 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/app/build
@@ -0,0 +1 @@
chromadoze
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>

@@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="" />
</component>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
</project>

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/chromadoze.iml" filepath="$PROJECT_DIR$/chromadoze.iml" />
</modules>
</component>
</project>

@@ -0,0 +1,5 @@
<component name="DependencyValidationManager">
<state>
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</state>
</component>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="chromadoze" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":app" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="debug" />
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
<option name="SOURCE_GEN_TASK_NAME" value="generateDebugSources" />
<option name="TEST_SOURCE_GEN_TASK_NAME" value="generateDebugAndroidTestSources" />
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
<output-test url="file://$MODULE_DIR$/build/intermediates/classes/androidTest/debug" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/debug" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/build/generated/res/generated/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/coverage-instrumented-classes" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/libs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/ndk" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/proguard" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
<excludeFolder url="file://$MODULE_DIR$/build/outputs" />
<excludeFolder url="file://$MODULE_DIR$/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 22 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="support-v4-22.0.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-22.0.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-22.0.0" level="project" />
</component>
</module>

@@ -0,0 +1,24 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"

defaultConfig {
applicationId "net.pmarks.chromadoze"
minSdkVersion 7
targetSdkVersion 22
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile 'com.android.support:support-v4:+'
compile "com.android.support:appcompat-v7:+"
}
File renamed without changes.
@@ -4,10 +4,6 @@
android:versionCode="16"
android:versionName="3.5" >

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="21" />

<uses-permission android:name="android.permission.WAKE_LOCK" />

<application
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android">
<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_window_focused="false" android:drawable="@drawable/btn_default_normal_holo_dark" android:state_enabled="true"></item>
<item android:state_window_focused="false" android:drawable="@drawable/btn_default_disabled_holo_dark" android:state_enabled="false"></item>
<item android:drawable="@drawable/btn_default_pressed_holo_dark" android:state_pressed="true"></item>
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_menu_save_disabled" android:state_enabled="false"/>
<item android:drawable="@drawable/ic_menu_save_normal"/>
Diff not rendered.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<declare-styleable name="DragSortListView">
<attr name="collapsed_height" format="dimension" />
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
}

allprojects {
repositories {
jcenter()
}
}
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

This file was deleted.