Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
android_packages_apps_Eleven
Commits
71810ebb
Commit
71810ebb
authored
Nov 20, 2014
by
linus_lee
Browse files
Update Eleven headers and namespace for open source
Change-Id: I82caf2ebf991998e67f546ff2ac7eaf2b30dc6be
parent
f199f983
Changes
256
Hide whitespace changes
Inline
Side-by-side
Android.mk
View file @
71810ebb
...
...
@@ -3,7 +3,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS
:=
optional
LOCAL_SRC_FILES
:=
src/com/cy
ngn
/eleven/IElevenService.aidl
LOCAL_SRC_FILES
:=
src/com/cy
anogenmod
/eleven/IElevenService.aidl
LOCAL_SRC_FILES
+=
$(
call
all-java-files-under, src
)
LOCAL_STATIC_JAVA_LIBRARIES
:=
\
...
...
AndroidManifest.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -14,7 +15,7 @@
limitations under the License.
-->
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.cy
ngn
.eleven"
package=
"com.cy
anogenmod
.eleven"
android:versionCode=
"2"
android:versionName=
"1.1"
>
...
...
@@ -49,14 +50,14 @@
<uses-permission
android:name=
"android.permission.MODIFY_AUDIO_SETTINGS"
/>
<application
android:name=
".ElevenApplication"
android:name=
"
com.cyanogenmod.eleven
.ElevenApplication"
android:allowBackup=
"true"
android:allowTaskReparenting=
"true"
android:hardwareAccelerated=
"@bool/config_hardwareAccelerated"
android:icon=
"@drawable/ic_launcher"
android:label=
"@string/app_name"
android:largeHeap=
"@bool/config_largeHeap"
android:taskAffinity=
"com.cy
ngn
.eleven.task"
android:taskAffinity=
"com.cy
anogenmod
.eleven.task"
android:theme=
"@style/Eleven.Theme"
>
<!-- Searchable -->
...
...
@@ -65,7 +66,7 @@
android:value=
".ui.activities.SearchActivity"
/>
<!-- Main activity -->
<activity
android:name=
".ui.activities.HomeActivity"
android:name=
"
com.cyanogenmod.eleven
.ui.activities.HomeActivity"
android:windowSoftInputMode=
"adjustPan"
android:launchMode=
"singleTop"
android:exported=
"true"
...
...
@@ -124,7 +125,7 @@
<data
android:mimeType=
"vnd.android.cursor.dir/artists"
/>
</intent-filter>
<intent-filter>
<action
android:name=
"com.cy
ngn
.eleven.AUDIO_PLAYER"
/>
<action
android:name=
"com.cy
anogenmod
.eleven.AUDIO_PLAYER"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
</intent-filter>
...
...
@@ -138,7 +139,7 @@
<!-- Search interface -->
<activity
android:name=
".ui.activities.SearchActivity"
android:name=
"
com.cyanogenmod.eleven
.ui.activities.SearchActivity"
android:windowSoftInputMode=
"adjustResize"
android:exported=
"true"
android:theme=
"@style/Theme.ActionBarIcon"
...
...
@@ -156,12 +157,12 @@
</activity>
<!-- Used to set options -->
<activity
android:name=
".ui.activities.SettingsActivity"
android:name=
"
com.cyanogenmod.eleven
.ui.activities.SettingsActivity"
android:label=
"@string/menu_settings"
android:screenOrientation=
"portrait"
/>
<!-- 4x1 App Widget -->
<receiver
android:name=
"com.cy
ngn
.eleven.appwidgets.AppWidgetSmall"
android:name=
"com.cy
anogenmod
.eleven.appwidgets.AppWidgetSmall"
android:exported=
"false"
android:label=
"@string/app_widget_small"
>
<intent-filter>
...
...
@@ -174,7 +175,7 @@
</receiver>
<!-- 4x2 App Widget -->
<receiver
android:name=
"com.cy
ngn
.eleven.appwidgets.AppWidgetLarge"
android:name=
"com.cy
anogenmod
.eleven.appwidgets.AppWidgetLarge"
android:exported=
"false"
android:label=
"@string/app_widget_large"
>
<intent-filter>
...
...
@@ -187,7 +188,7 @@
</receiver>
<!-- 4x2 alternate App Widget -->
<receiver
android:name=
"com.cy
ngn
.eleven.appwidgets.AppWidgetLargeAlternate"
android:name=
"com.cy
anogenmod
.eleven.appwidgets.AppWidgetLargeAlternate"
android:exported=
"false"
android:label=
"@string/app_widget_large_alt"
>
<intent-filter>
...
...
@@ -199,7 +200,7 @@
android:resource=
"@xml/app_widget_large_alternate"
/>
</receiver>
<!-- Media button receiver -->
<receiver
android:name=
".MediaButtonIntentReceiver"
>
<receiver
android:name=
"
com.cyanogenmod.eleven
.MediaButtonIntentReceiver"
>
<intent-filter>
<action
android:name=
"android.intent.action.MEDIA_BUTTON"
/>
<action
android:name=
"android.media.AUDIO_BECOMING_NOISY"
/>
...
...
@@ -207,7 +208,7 @@
</receiver>
<!-- Music service -->
<service
android:name=
".MusicPlaybackService"
android:name=
"
com.cyanogenmod.eleven
.MusicPlaybackService"
android:label=
"@string/app_name"
android:process=
":main"
/>
</application>
...
...
res/drawable/action_bar.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/drawable/audio_player_pager_container.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/drawable/audio_player_seekbar.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/drawable/bottom_shadow.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/drawable/circular_drawable.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Cyanogen, Inc.
Copyright (C) 2014 The CyanogenMod Project
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.
-->
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
res/drawable/circular_drawable_background.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Cyanogen, Inc.
Copyright (C) 2014 The CyanogenMod Project
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.
-->
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
res/drawable/now_playing_progress.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Cyanogen, Inc.
Copyright (C) 2014 The CyanogenMod Project
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.
-->
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
res/drawable/now_playing_progress_background.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Cyanogen, Inc.
Copyright (C) 2014 The CyanogenMod Project
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.
-->
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
res/drawable/right_shadow.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/drawable/tpi_background.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/layout-v16/notification_template_expanded_base.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/layout/activity_base.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
@@ -19,7 +20,7 @@
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<com.cy
ngn
.eleven.slidinguppanel.SlidingUpPanelLayout
<com.cy
anogenmod
.eleven.slidinguppanel.SlidingUpPanelLayout
xmlns:sothree=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/sliding_layout"
android:layout_width=
"match_parent"
...
...
@@ -37,7 +38,7 @@
android:layout_height=
"match_parent"
android:paddingTop=
"?android:attr/actionBarSize"
/>
<com.cy
ngn
.eleven.slidinguppanel.SlidingUpPanelLayout
<com.cy
anogenmod
.eleven.slidinguppanel.SlidingUpPanelLayout
xmlns:sothree=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/sliding_layout2"
android:background=
"@color/background_color"
...
...
@@ -69,7 +70,7 @@
<fragment
android:id=
"@+id/audioPlayerFragment"
class=
"com.cy
ngn
.eleven.ui.fragments.AudioPlayerFragment"
class=
"com.cy
anogenmod
.eleven.ui.fragments.AudioPlayerFragment"
android:layout_width=
"match_parent"
android:layout_height=
"0dip"
android:layout_weight=
"1"
/>
...
...
@@ -101,11 +102,11 @@
<fragment
android:id=
"@+id/queueFragment"
class=
"com.cy
ngn
.eleven.ui.fragments.QueueFragment"
class=
"com.cy
anogenmod
.eleven.ui.fragments.QueueFragment"
android:layout_width=
"match_parent"
android:layout_height=
"0dip"
android:layout_weight=
"1"
/>
</LinearLayout>
</com.cy
ngn
.eleven.slidinguppanel.SlidingUpPanelLayout>
</com.cy
ngn
.eleven.slidinguppanel.SlidingUpPanelLayout>
</com.cy
anogenmod
.eleven.slidinguppanel.SlidingUpPanelLayout>
</com.cy
anogenmod
.eleven.slidinguppanel.SlidingUpPanelLayout>
</LinearLayout>
\ No newline at end of file
res/layout/activity_player_fragment.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
...
...
@@ -24,10 +25,10 @@
android:id=
"@+id/audio_player_header"
layout=
"@layout/audio_player_header_bar"
/>
<com.cy
ngn
.eleven.widgets.SquareFrame
<com.cy
anogenmod
.eleven.widgets.SquareFrame
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<com.cy
ngn
.eleven.widgets.SquareViewPager
<com.cy
anogenmod
.eleven.widgets.SquareViewPager
android:id=
"@+id/audio_player_album_art_viewpager"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
...
...
@@ -40,7 +41,7 @@
android:background=
"@drawable/equalizer_background"
android:layout_gravity=
"bottom"
/>
<com.cy
ngn
.eleven.widgets.EqualizerView
<com.cy
anogenmod
.eleven.widgets.EqualizerView
android:id=
"@+id/equalizerView"
android:gravity=
"bottom"
android:layout_gravity=
"bottom"
...
...
@@ -64,12 +65,12 @@
android:background=
"@color/lyrics_background_color"
android:textColor=
"@color/white"
android:textSize=
"@dimen/text_size_small"
/>
</com.cy
ngn
.eleven.widgets.SquareFrame>
</com.cy
anogenmod
.eleven.widgets.SquareFrame>
<RelativeLayout
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
>
<com.cy
ngn
.eleven.widgets.PlayPauseProgressButton
<com.cy
anogenmod
.eleven.widgets.PlayPauseProgressButton
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/playPauseProgressButton"
android:layout_width=
"@dimen/audio_player_controls_main_button_width"
...
...
@@ -77,7 +78,7 @@
android:layout_centerInParent=
"true"
>
<!-- TODO: Figure out why scaleType: centerInside isn't properly scaling up -->
<com.cy
ngn
.eleven.widgets.PlayPauseButton
<com.cy
anogenmod
.eleven.widgets.PlayPauseButton
android:id=
"@+id/action_button_play"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
...
...
@@ -107,7 +108,7 @@
android:indeterminate=
"false"
android:max=
"100"
android:progressDrawable=
"@drawable/now_playing_progress"
/>
</com.cy
ngn
.eleven.widgets.PlayPauseProgressButton>
</com.cy
anogenmod
.eleven.widgets.PlayPauseProgressButton>
<!-- TODO: Figure out why scaleType: centerInside isn't properly scaling up -->
<!-- ANSWER: two issues (a) centerInside doesn't scale up, only down, use
...
...
@@ -133,7 +134,7 @@
android:textSize=
"@dimen/audio_player_time_text_size"
android:textStyle=
"bold"
/>
<com.cy
ngn
.eleven.widgets.RepeatingImageButton
<com.cy
anogenmod
.eleven.widgets.RepeatingImageButton
android:id=
"@+id/action_button_previous"
android:layout_width=
"@dimen/audio_player_controls_end_button_width"
android:layout_height=
"@dimen/audio_player_controls_end_button_height"
...
...
@@ -162,7 +163,7 @@
android:layout_below=
"@id/audio_player_current_time"
android:background=
"@color/now_playing_divider"
/>
<com.cy
ngn
.eleven.widgets.BrowseButton
<com.cy
anogenmod
.eleven.widgets.BrowseButton
android:id=
"@+id/action_button_browse"
android:layout_width=
"@dimen/audio_player_controls_end_button_width"
android:layout_height=
"@dimen/audio_player_controls_end_button_height"
...
...
@@ -175,7 +176,7 @@
android:scaleType=
"fitCenter"
android:src=
"@drawable/btn_playback_browse"
/>
<com.cy
ngn
.eleven.widgets.ShuffleButton
<com.cy
anogenmod
.eleven.widgets.ShuffleButton
android:id=
"@+id/action_button_shuffle"
android:layout_width=
"@dimen/audio_player_controls_end_button_width"
android:layout_height=
"@dimen/audio_player_controls_end_button_height"
...
...
@@ -207,7 +208,7 @@
android:textSize=
"@dimen/audio_player_time_text_size"
android:textStyle=
"bold"
/>
<com.cy
ngn
.eleven.widgets.RepeatingImageButton
<com.cy
anogenmod
.eleven.widgets.RepeatingImageButton
android:id=
"@+id/action_button_next"
android:layout_width=
"@dimen/audio_player_controls_end_button_width"
android:layout_height=
"@dimen/audio_player_controls_end_button_height"
...
...
@@ -236,7 +237,7 @@
android:layout_below=
"@id/audio_player_total_time"
android:background=
"@color/now_playing_divider"
/>
<com.cy
ngn
.eleven.widgets.QueueButton
<com.cy
anogenmod
.eleven.widgets.QueueButton
android:id=
"@+id/action_button_queue"
android:layout_width=
"@dimen/audio_player_controls_end_button_width"
android:layout_height=
"@dimen/audio_player_controls_end_button_height"
...
...
@@ -249,7 +250,7 @@
android:scaleType=
"fitCenter"
android:src=
"@drawable/btn_queue_icon"
/>
<com.cy
ngn
.eleven.widgets.RepeatButton
<com.cy
anogenmod
.eleven.widgets.RepeatButton
android:id=
"@+id/action_button_repeat"
android:layout_width=
"@dimen/audio_player_controls_end_button_width"
android:layout_height=
"@dimen/audio_player_controls_end_button_height"
...
...
res/layout/activity_search.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Cyanogen, Inc.
Copyright (C) 2014 The CyanogenMod Project
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.
-->
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
...
...
res/layout/album_art_fragment.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Cyanogen, Inc.
Copyright (C) 2014 The CyanogenMod Project
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.
-->
<FrameLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<com.cy
ngn
.eleven.widgets.SquareImageView
<com.cy
anogenmod
.eleven.widgets.SquareImageView
android:id=
"@+id/audio_player_album_art"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
...
...
res/layout/album_detail_song.xml
View file @
71810ebb
...
...
@@ -18,7 +18,7 @@
android:src=
"@drawable/now_playing_icon"
android:visibility=
"gone"
/>
<com.cy
ngn
.eleven.widgets.PopupMenuButton
<com.cy
anogenmod
.eleven.widgets.PopupMenuButton
android:id=
"@+id/overflow"
android:layout_width=
"@dimen/overflow_width"
android:layout_height=
"@dimen/overflow_height"
...
...
res/layout/app_widget_large.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
res/layout/app_widget_large_alternate.xml
View file @
71810ebb
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012 Andrew Neal
Copyright (C) 2014 The CyanogenMod Project
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
...
...
Prev
1
2
3
4
5
…
13
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment