Skip to content

Commit 9aa2c61

Browse files
committed
Initial commit.
0 parents  commit 9aa2c61

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1448
-0
lines changed

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# .gitignore template initially copied from:
2+
# https://github.com/github/gitignore
3+
# -> Android.gitignore, Eclipse.gitignore
4+
5+
# built application files
6+
*.apk
7+
*.ap_
8+
9+
# files for the dex VM
10+
*.dex
11+
12+
# Java class files
13+
*.class
14+
15+
# generated files
16+
bin/
17+
gen/
18+
19+
# Local configuration file (sdk path, etc)
20+
local.properties
21+
22+
# Eclipse stuff.
23+
.project
24+
.classpath
25+
.settings/

AndroidManifest.xml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="ch.epfl.hello"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk android:minSdkVersion="10" />
8+
<uses-permission android:name="android.permission.WAKE_LOCK" />
9+
10+
<application
11+
android:name=".UnisonApp"
12+
android:icon="@drawable/ic_launcher"
13+
android:label="@string/app_name" >
14+
<activity
15+
android:name=".Hello"
16+
android:label="@string/app_name" >
17+
<intent-filter>
18+
<action android:name="android.intent.action.MAIN" />
19+
<category android:name="android.intent.category.LAUNCHER" />
20+
</intent-filter>
21+
</activity>
22+
<activity android:name=".MusicList" android:label="@string/titleMusicList" />
23+
<activity android:name=".RoomsActivity" android:label="@string/titleRooms" />
24+
<activity android:name=".MusicPlayerActivity" android:label="@string/titlePlayer"
25+
android:theme="@android:style/Theme.NoTitleBar" />
26+
<activity android:name=".StatsActivity" android:label="@string/titleStats"
27+
android:theme="@android:style/Theme.NoTitleBar" />
28+
<activity android:name=".MainActivity" android:label="@string/titleMain"
29+
android:theme="@android:style/Theme.NoTitleBar" />
30+
<service android:exported="false" android:name=".MusicService">
31+
<intent-filter>
32+
<action android:name="ch.epfl.unison.action.TOGGLE_PLAYBACK" />
33+
<action android:name="ch.epfl.unison.action.PLAY" />
34+
<action android:name="ch.epfl.unison.action.PAUSE" />
35+
<action android:name="ch.epfl.unison.action.STOP" />
36+
37+
</intent-filter>
38+
<intent-filter>
39+
<action android:name="ch.epfl.unison.action.LOAD" />
40+
<!-- This has been copied from the default android music app. -->
41+
<data android:mimeType="audio/*"/>
42+
<data android:mimeType="application/ogg"/>
43+
<data android:mimeType="application/x-ogg"/>
44+
<data android:mimeType="application/itunes"/>
45+
</intent-filter>
46+
</service>
47+
</application>
48+
49+
</manifest>

proguard.cfg

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
-optimizationpasses 5
2+
-dontusemixedcaseclassnames
3+
-dontskipnonpubliclibraryclasses
4+
-dontpreverify
5+
-verbose
6+
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
7+
8+
-keep public class * extends android.app.Activity
9+
-keep public class * extends android.app.Application
10+
-keep public class * extends android.app.Service
11+
-keep public class * extends android.content.BroadcastReceiver
12+
-keep public class * extends android.content.ContentProvider
13+
-keep public class * extends android.app.backup.BackupAgentHelper
14+
-keep public class * extends android.preference.Preference
15+
-keep public class com.android.vending.licensing.ILicensingService
16+
17+
-keepclasseswithmembernames class * {
18+
native <methods>;
19+
}
20+
21+
-keepclasseswithmembers class * {
22+
public <init>(android.content.Context, android.util.AttributeSet);
23+
}
24+
25+
-keepclasseswithmembers class * {
26+
public <init>(android.content.Context, android.util.AttributeSet, int);
27+
}
28+
29+
-keepclassmembers class * extends android.app.Activity {
30+
public void *(android.view.View);
31+
}
32+
33+
-keepclassmembers enum * {
34+
public static **[] values();
35+
public static ** valueOf(java.lang.String);
36+
}
37+
38+
-keep class * implements android.os.Parcelable {
39+
public static final android.os.Parcelable$Creator *;
40+
}

project.properties

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system use,
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
10+
# Project target.
11+
target=android-10

res/drawable-hdpi/ic_launcher.png

4.05 KB
Loading
1.72 KB
Loading

res/drawable-hdpi/ic_media_play.png

1.07 KB
Loading

res/drawable-hdpi/ic_menu_cc.png

2.47 KB
Loading
3.61 KB
Loading
3.03 KB
Loading

res/drawable-hdpi/ic_menu_star.png

2 KB
Loading
1.71 KB
Loading
2.54 KB
Loading
1.15 KB
Loading
1.56 KB
Loading

res/drawable-hdpi/next.png

1.46 KB
Loading

res/drawable-hdpi/next_pressed.png

4.79 KB
Loading

res/drawable-hdpi/pause.png

1.16 KB
Loading

res/drawable-hdpi/pause_pressed.png

3.84 KB
Loading

res/drawable-hdpi/play.png

1.45 KB
Loading

res/drawable-hdpi/play_pressed.png

3.96 KB
Loading

res/drawable-hdpi/prev.png

1.7 KB
Loading

res/drawable-hdpi/prev_pressed.png

4.87 KB
Loading

res/drawable-ldpi/ic_launcher.png

1.68 KB
Loading

res/drawable-mdpi/ic_launcher.png

2.51 KB
Loading

res/drawable/btn_next.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed="true" android:drawable="@drawable/next_pressed" />
4+
<item android:state_focused="true" android:drawable="@drawable/next_pressed" />
5+
<item android:drawable="@drawable/next" />
6+
</selector>

res/drawable/btn_pause.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed="true" android:drawable="@drawable/pause_pressed" />
4+
<item android:state_focused="true" android:drawable="@drawable/pause_pressed" />
5+
<item android:drawable="@drawable/pause" />
6+
</selector>

res/drawable/btn_play.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed="true" android:drawable="@drawable/play_pressed" />
4+
<item android:state_focused="true" android:drawable="@drawable/play_pressed" />
5+
<item android:drawable="@drawable/play" />
6+
</selector>

res/drawable/btn_prev.xml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:state_pressed="true" android:drawable="@drawable/prev_pressed" />
4+
<item android:state_focused="true" android:drawable="@drawable/prev_pressed" />
5+
<item android:drawable="@drawable/prev" />
6+
</selector>

res/drawable/ic_tab_music.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<!-- When selected, use white -->
4+
<item android:drawable="@drawable/ic_tab_music_white"
5+
android:state_selected="true" />
6+
<!-- When not selected, use grey-->
7+
<item android:drawable="@drawable/ic_tab_music_grey" />
8+
</selector>

res/drawable/ic_tab_stats.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
3+
<!-- When selected, use white -->
4+
<item android:drawable="@drawable/ic_tab_stats_white"
5+
android:state_selected="true" />
6+
<!-- When not selected, use grey-->
7+
<item android:drawable="@drawable/ic_tab_stats_grey" />
8+
</selector>

res/layout/dummy.xml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:orientation="vertical" >
6+
7+
8+
9+
<RadioGroup
10+
android:id="@+id/radioGroup1"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content" >
13+
14+
<RadioButton
15+
android:id="@+id/radio0"
16+
android:layout_width="wrap_content"
17+
android:layout_height="wrap_content"
18+
android:checked="true"
19+
android:text="RadioButton" />
20+
21+
<RadioButton
22+
android:id="@+id/radio1"
23+
android:layout_width="wrap_content"
24+
android:layout_height="wrap_content"
25+
android:text="RadioButton" />
26+
27+
<RadioButton
28+
android:id="@+id/radio2"
29+
android:layout_width="wrap_content"
30+
android:layout_height="wrap_content"
31+
android:text="RadioButton" />
32+
</RadioGroup>
33+
34+
<CheckBox
35+
android:id="@+id/checkBox1"
36+
android:layout_width="wrap_content"
37+
android:layout_height="wrap_content"
38+
android:text="CheckBox" />
39+
40+
</LinearLayout>

res/layout/main.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:orientation="vertical" >
6+
7+
<TextView
8+
android:layout_width="fill_parent"
9+
android:layout_height="wrap_content"
10+
android:text="@string/hello" />
11+
12+
</LinearLayout>

res/layout/musiclist_basic.xml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="match_parent"
4+
android:layout_height="match_parent"
5+
android:orientation="vertical">
6+
7+
<LinearLayout android:orientation="horizontal"
8+
android:layout_width="fill_parent" android:layout_height="wrap_content"
9+
android:padding="10dp"
10+
android:gravity="center"
11+
android:background="#3FFF">
12+
13+
<CheckBox
14+
android:id="@+id/checkBox1"
15+
android:layout_width="0dp"
16+
android:layout_weight="1"
17+
android:layout_height="wrap_content"
18+
android:text="Show only unrated" />
19+
20+
<TextView android:layout_width="0dp"
21+
android:layout_height="wrap_content"
22+
android:layout_weight="1"
23+
android:text="Rating songs improves Unison's effectiveness."/>
24+
25+
</LinearLayout>
26+
27+
28+
29+
<!-- Text output wrapper -->
30+
<ListView
31+
android:layout_height="match_parent"
32+
android:layout_width="match_parent"
33+
android:id="@+id/listMusicList" />
34+
35+
36+
</LinearLayout>

0 commit comments

Comments
 (0)