Permalink
Browse files

push the sources

  • Loading branch information...
AChep committed Feb 10, 2014
1 parent 74e915c commit 1151074ef5724a36f9c07ede4153016141b15e72
Showing with 10,508 additions and 0 deletions.
  1. +7 −0 .gitignore
  2. +4 −0 project/.gitignore
  3. +1 −0 project/ActiveDisplay/.gitignore
  4. +67 −0 project/ActiveDisplay/build.gradle
  5. +17 −0 project/ActiveDisplay/proguard-rules.txt
  6. +98 −0 project/ActiveDisplay/src/main/AndroidManifest.xml
  7. BIN project/ActiveDisplay/src/main/ic_launcher-web.png
  8. BIN project/ActiveDisplay/src/main/ic_launcher-web2.png
  9. +303 −0 project/ActiveDisplay/src/main/java/android/support/v4/content/LocalBroadcastManager.java
  10. +135 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/Config.java
  11. +76 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/DebugLayerView.java
  12. +63 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/DialogHelper.java
  13. +28 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/NotificationIds.java
  14. +30 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/Operator.java
  15. +34 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/Project.java
  16. +113 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/Timeout.java
  17. +444 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/activities/ActiveDisplayActivity.java
  18. +220 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/activities/MainActivity.java
  19. +35 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/activities/SettingsActivity.java
  20. +55 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/admin/AdminReceiver.java
  21. +168 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/blacklist/SharedList.java
  22. +77 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/cryptocoin/Bitcoin.java
  23. +74 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/cryptocoin/Coin.java
  24. +124 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/fragments/AboutDialog.java
  25. +106 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/fragments/BlacklistFragment.java
  26. +90 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/fragments/DonateDialog.java
  27. +67 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/fragments/MyFragment.java
  28. +373 −0 ...eDisplay/src/main/java/com/achep/activedisplay/fragments/activedisplay/ActiveDisplayFragment.java
  29. +112 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/fragments/activedisplay/Helper.java
  30. +189 −0 ...veDisplay/src/main/java/com/achep/activedisplay/fragments/activedisplay/NotificationFragment.java
  31. +151 −0 .../ActiveDisplay/src/main/java/com/achep/activedisplay/fragments/activedisplay/PreviewFragment.java
  32. +33 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/legacy/INotificationParser.java
  33. +599 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/legacy/MainActivity.java
  34. +270 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/legacy/NotificationParser.java
  35. +73 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/Blacklist.java
  36. +33 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/NotificationData.java
  37. +95 −0 .../ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/NotificationHandleService.java
  38. +53 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/NotificationHelper.java
  39. +443 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/NotificationPresenter.java
  40. +68 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/NotificationUtils.java
  41. +75 −0 .../ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/OpenStatusBarNotification.java
  42. +68 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/notifications/Parser.java
  43. +117 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/sensor/SensorMonitorService.java
  44. +55 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/AccessUtils.java
  45. +44 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/ButtonUtils.java
  46. +56 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/CoordsUtils.java
  47. +98 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/LogUtils.java
  48. +34 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/MathUtils.java
  49. +37 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/PendingIntentUtils.java
  50. +45 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/PowerUtils.java
  51. +67 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/utils/ViewUtils.java
  52. +101 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/widgets/DateView.java
  53. +71 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/widgets/NotificationPreviewLayout.java
  54. +56 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/widgets/NotificationRadioButton.java
  55. +32 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/widgets/NotificationView.java
  56. +211 −0 project/ActiveDisplay/src/main/java/com/achep/activedisplay/widgets/WaveView.java
  57. +691 −0 project/ActiveDisplay/src/main/java/de/passsy/holocircularprogressbar/HoloCircularProgressBar.java
  58. +608 −0 project/ActiveDisplay/src/main/java/org/apache/commons/lang/builder/EqualsBuilder.java
  59. +608 −0 project/ActiveDisplay/src/main/java/org/apache/commons/lang/builder/HashCodeBuilder.java
  60. +40 −0 project/ActiveDisplay/src/main/res/anim/card_flip_in_from_bottom.xml
  61. +40 −0 project/ActiveDisplay/src/main/res/anim/card_flip_in_from_top.xml
  62. BIN project/ActiveDisplay/src/main/res/drawable-hdpi/ic_bitcoin.png
  63. BIN project/ActiveDisplay/src/main/res/drawable-hdpi/ic_overflow.png
  64. BIN project/ActiveDisplay/src/main/res/drawable-hdpi/stat_lock.png
  65. BIN project/ActiveDisplay/src/main/res/drawable-hdpi/stat_notify_chat.png
  66. BIN project/ActiveDisplay/src/main/res/drawable-hdpi/stat_test.png
  67. BIN project/ActiveDisplay/src/main/res/drawable-hdpi/stat_unlock.png
  68. BIN project/ActiveDisplay/src/main/res/drawable-mdpi/ic_bitcoin.png
  69. BIN project/ActiveDisplay/src/main/res/drawable-mdpi/ic_overflow.png
  70. BIN project/ActiveDisplay/src/main/res/drawable-mdpi/stat_lock.png
  71. BIN project/ActiveDisplay/src/main/res/drawable-mdpi/stat_notify_chat.png
  72. BIN project/ActiveDisplay/src/main/res/drawable-mdpi/stat_test.png
  73. BIN project/ActiveDisplay/src/main/res/drawable-mdpi/stat_unlock.png
  74. BIN project/ActiveDisplay/src/main/res/drawable-xhdpi/ic_bitcoin.png
  75. BIN project/ActiveDisplay/src/main/res/drawable-xhdpi/ic_overflow.png
  76. BIN project/ActiveDisplay/src/main/res/drawable-xhdpi/stat_lock.png
  77. BIN project/ActiveDisplay/src/main/res/drawable-xhdpi/stat_notify_chat.png
  78. BIN project/ActiveDisplay/src/main/res/drawable-xhdpi/stat_test.png
  79. BIN project/ActiveDisplay/src/main/res/drawable-xhdpi/stat_unlock.png
  80. BIN project/ActiveDisplay/src/main/res/drawable-xxhdpi/ic_bitcoin.png
  81. BIN project/ActiveDisplay/src/main/res/drawable-xxhdpi/ic_overflow.png
  82. BIN project/ActiveDisplay/src/main/res/drawable-xxhdpi/stat_lock.png
  83. BIN project/ActiveDisplay/src/main/res/drawable-xxhdpi/stat_notify_chat.png
  84. BIN project/ActiveDisplay/src/main/res/drawable-xxhdpi/stat_test.png
  85. BIN project/ActiveDisplay/src/main/res/drawable-xxhdpi/stat_unlock.png
  86. BIN project/ActiveDisplay/src/main/res/drawable-xxxhdpi/ic_bitcoin.png
  87. +30 −0 project/ActiveDisplay/src/main/res/drawable/btn_radio_notify.xml
  88. +30 −0 project/ActiveDisplay/src/main/res/drawable/btn_radio_notify_on_dark.xml
  89. +29 −0 project/ActiveDisplay/src/main/res/drawable/btn_radio_notify_pressed_dark.xml
  90. +30 −0 project/ActiveDisplay/src/main/res/drawable/list_oval_dark.xml
  91. +25 −0 project/ActiveDisplay/src/main/res/drawable/list_oval_disabled_dark.xml
  92. +29 −0 project/ActiveDisplay/src/main/res/drawable/list_oval_focused_dark.xml
  93. +25 −0 project/ActiveDisplay/src/main/res/drawable/list_oval_longpressed_dark.xml
  94. +25 −0 project/ActiveDisplay/src/main/res/drawable/list_oval_pressed_dark.xml
  95. +23 −0 project/ActiveDisplay/src/main/res/drawable/list_oval_transition_holo_dark.xml
  96. +45 −0 project/ActiveDisplay/src/main/res/layout-land/layout_main_content.xml
  97. +92 −0 project/ActiveDisplay/src/main/res/layout-ldrtl/fragment_ad.xml
  98. +121 −0 project/ActiveDisplay/src/main/res/layout-sw600dp/activity_active_display.xml
  99. +45 −0 project/ActiveDisplay/src/main/res/layout-sw600dp/dialog_base_message.xml
  100. +122 −0 project/ActiveDisplay/src/main/res/layout/activity_active_display.xml
  101. +41 −0 project/ActiveDisplay/src/main/res/layout/activity_main.xml
  102. +45 −0 project/ActiveDisplay/src/main/res/layout/dialog_base_message.xml
  103. +114 −0 project/ActiveDisplay/src/main/res/layout/fragment_ad.xml
  104. +103 −0 project/ActiveDisplay/src/main/res/layout/fragment_ad_notification.xml
  105. +27 −0 project/ActiveDisplay/src/main/res/layout/fragment_ad_preview_list.xml
  106. +48 −0 project/ActiveDisplay/src/main/res/layout/item_ad_preview.xml
  107. +26 −0 project/ActiveDisplay/src/main/res/layout/layout_ab_switch.xml
  108. +95 −0 project/ActiveDisplay/src/main/res/layout/layout_main_access_help.xml
  109. +46 −0 project/ActiveDisplay/src/main/res/layout/layout_main_content.xml
  110. +21 −0 project/ActiveDisplay/src/main/res/layout/list_blacklist_item.xml
  111. +26 −0 project/ActiveDisplay/src/main/res/layout/radio_notification_icon.xml
  112. +33 −0 project/ActiveDisplay/src/main/res/menu/ad_overflow.xml
  113. +43 −0 project/ActiveDisplay/src/main/res/menu/main.xml
  114. BIN project/ActiveDisplay/src/main/res/mipmap-hdpi/ic_launcher.png
  115. BIN project/ActiveDisplay/src/main/res/mipmap-mdpi/ic_launcher.png
  116. BIN project/ActiveDisplay/src/main/res/mipmap-xhdpi/ic_launcher.png
  117. BIN project/ActiveDisplay/src/main/res/mipmap-xxhdpi/ic_launcher.png
  118. BIN project/ActiveDisplay/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  119. +42 −0 project/ActiveDisplay/src/main/res/values-de/strings.xml
  120. +24 −0 project/ActiveDisplay/src/main/res/values-de/strings_cryptocoins.xml
  121. +46 −0 project/ActiveDisplay/src/main/res/values-de/strings_dialogs.xml
  122. +22 −0 project/ActiveDisplay/src/main/res/values-large/layout.xml
  123. +42 −0 project/ActiveDisplay/src/main/res/values-pl/strings.xml
  124. +24 −0 project/ActiveDisplay/src/main/res/values-pl/strings_cryptocoins.xml
  125. +46 −0 project/ActiveDisplay/src/main/res/values-pl/strings_dialogs.xml
  126. +42 −0 project/ActiveDisplay/src/main/res/values-ra/strings.xml
  127. +24 −0 project/ActiveDisplay/src/main/res/values-ra/strings_cryptocoins.xml
  128. +46 −0 project/ActiveDisplay/src/main/res/values-ra/strings_dialogs.xml
  129. +25 −0 project/ActiveDisplay/src/main/res/values-w820dp/dimens.xml
  130. +42 −0 project/ActiveDisplay/src/main/res/values/attrs.xml
  131. +25 −0 project/ActiveDisplay/src/main/res/values/colors.xml
  132. +37 −0 project/ActiveDisplay/src/main/res/values/dimens.xml
  133. +25 −0 project/ActiveDisplay/src/main/res/values/drawables.xml
  134. +47 −0 project/ActiveDisplay/src/main/res/values/strings.xml
  135. +24 −0 project/ActiveDisplay/src/main/res/values/strings_cryptocoins.xml
  136. +49 −0 project/ActiveDisplay/src/main/res/values/strings_dialogs.xml
  137. +151 −0 project/ActiveDisplay/src/main/res/values/styles.xml
  138. +24 −0 project/ActiveDisplay/src/main/res/xml/device_admin.xml
  139. +1 −0 project/build.gradle
  140. +18 −0 project/gradle.properties
  141. BIN project/gradle/wrapper/gradle-wrapper.jar
  142. +6 −0 project/gradle/wrapper/gradle-wrapper.properties
  143. +164 −0 project/gradlew
  144. +90 −0 project/gradlew.bat
  145. +1 −0 project/settings.gradle
View
@@ -213,3 +213,10 @@ pip-log.txt
#Mr Developer
.mr.developer.cfg
#Idea
*.iml
.idea/
#gradle
.gradle/
View
@@ -0,0 +1,4 @@
.gradle
/local.properties
/.idea/workspace.xml
.DS_Store
@@ -0,0 +1 @@
/build
@@ -0,0 +1,67 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion "19.0.1"
defaultConfig {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
final Console console = System.console();
if (console != null) {
signingConfigs {
release {
storeFile file(console.readLine("Enter keystore path: ")
storePassword console.readLine("Enter keystore password: ")
keyAlias console.readLine("Enter alias key: ")
keyPassword console.readLine("Enter key password: ")
}
}
} else {
signingConfigs {
release {
}
}
}
buildTypes {
debug {
zipAlign true
buildConfigField "boolean", "MY_DEBUG", "true"
packageNameSuffix '.debug'
versionNameSuffix '-debug'
}
release {
zipAlign true
runProguard true
proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
signingConfig signingConfigs.release
buildConfigField "boolean", "MY_DEBUG", "false"
}
}
productFlavors {
defaultFlavor {
proguardFile 'proguard-rules.txt'
}
}
}
dependencies {
}
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in F:/Android/android-studio/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013-2014 AChep@xda <artemchep@gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.achep.activedisplay"
android:versionCode="4"
android:versionName="1.1">
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<permission android:name="android.permission.STATUS_BAR_SERVICE" />
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme">
<activity
android:name=".activities.MainActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:uiOptions="splitActionBarWhenNarrow">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.SettingsActivity"
android:label="@string/settings"
android:launchMode="singleInstance" />
<activity
android:name=".activities.ActiveDisplayActivity"
android:label="@string/app_name"
android:launchMode="singleInstance"
android:screenOrientation="nosensor"
android:configChanges="keyboardHidden"
android:excludeFromRecents="true"
android:theme="@style/ActiveDisplayTheme"/>
<!-- Notification listener service -->
<service
android:name=".notifications.NotificationHandleService"
android:label="@string/app_name"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>
<!-- Sensor listener service -->
<service
android:name=".sensor.SensorMonitorService"
android:label="@string/app_name">
</service>
<!-- Device admin rights -->
<receiver
android:name=".admin.AdminReceiver"
android:label="@string/device_admin"
android:description="@string/device_admin_description"
android:permission="android.permission.BIND_DEVICE_ADMIN">
<meta-data
android:name="android.app.device_admin"
android:resource="@xml/device_admin" />
<intent-filter>
<action android:name="android.app.action.DEVICE_ADMIN_ENABLED" />
</intent-filter>
</receiver>
</application>
</manifest>
Binary file not shown.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 1151074

Please sign in to comment.