diff options
author | Christian Mehlmauer <FireFart@gmail.com> | 2010-07-23 20:04:44 +0200 |
---|---|---|
committer | Christian Mehlmauer <FireFart@gmail.com> | 2010-07-23 20:04:44 +0200 |
commit | 19319aa7a6bce108cac72511585d006e4c44cc34 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
parent | 062d863a156a3564a839ab5a718f31500298635f (diff) | |
download | AlarmClock-tools_r7.tar.gz |
Removed all AlarmClock files because it is replaced by DeskClockandroid-sdk-tools_r7android-adt-0.9.9android-adt-0.9.8tools_r9tools_r8tools_r7froyo-plus-aosp
Change-Id: I8b375e8c7187d93702a37a70785bf08cb6358f75
119 files changed, 0 insertions, 6980 deletions
diff --git a/Android.mk b/Android.mk deleted file mode 100644 index 7dba7b5..0000000 --- a/Android.mk +++ /dev/null @@ -1,12 +0,0 @@ -LOCAL_PATH:= $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE_TAGS := optional - -LOCAL_SRC_FILES := $(call all-subdir-java-files) - -LOCAL_PACKAGE_NAME := AlarmClock - -LOCAL_PROGUARD_ENABLED := full - -include $(BUILD_PACKAGE) diff --git a/AndroidManifest.xml b/AndroidManifest.xml deleted file mode 100644 index 76a4cca..0000000 --- a/AndroidManifest.xml +++ /dev/null @@ -1,93 +0,0 @@ -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.android.alarmclock"> - - <original-package android:name="com.android.alarmclock" /> - - <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> - <uses-permission android:name="android.permission.WAKE_LOCK"/> - <uses-permission android:name="android.permission.VIBRATE"/> - <uses-permission android:name="android.permission.WRITE_SETTINGS" /> - <uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> - <uses-permission android:name="android.permission.READ_PHONE_STATE" /> - - <application android:label="@string/app_label" - android:icon="@drawable/ic_launcher_alarmclock"> - - <provider android:name="AlarmProvider" android:authorities="com.android.alarmclock" /> - - <activity android:name="AlarmClock" android:label="@string/app_label" - android:configChanges="orientation|keyboardHidden|keyboard|navigation"> - <intent-filter> - <action android:name="android.intent.action.MAIN" /> - <category android:name="android.intent.category.DEFAULT" /> - <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - - <activity android:name="SettingsActivity" android:label="@string/settings"> - <intent-filter> - <action android:name="android.intent.action.MAIN" /> - </intent-filter> - </activity> - - <activity android:name="SetAlarm" android:label="@string/set_alarm" - android:configChanges="orientation|keyboardHidden|keyboard|navigation" /> - - <activity android:name="AlarmAlert" - android:excludeFromRecents="true" - android:theme="@style/alarm_alert" - android:launchMode="singleInstance" - android:taskAffinity="" - android:configChanges="orientation|keyboardHidden|keyboard|navigation"/> - - <!-- This activity is basically the same as AlarmAlert but with a more - generic theme. It also shows as full screen (with status bar) but - with the wallpaper background. --> - <activity android:name="AlarmAlertFullScreen" - android:excludeFromRecents="true" - android:theme="@android:style/Theme.Wallpaper.NoTitleBar" - android:launchMode="singleInstance" - android:taskAffinity="" - android:configChanges="orientation|keyboardHidden|keyboard|navigation"/> - - <activity android:name="ClockPicker" /> - - <receiver android:name="AlarmReceiver"> - <intent-filter> - <action android:name="com.android.alarmclock.ALARM_ALERT" /> - <action android:name="alarm_killed" /> - <action android:name="cancel_snooze" /> - </intent-filter> - </receiver> - - <!-- This service receives the same intent as AlarmReceiver but it does - not respond to the same broadcast. The AlarmReceiver will receive - the alert broadcast and will start this service with the same - intent. The service plays the alarm alert and vibrates the device. - This allows the alert to continue playing even if another activity - causes the AlarmAlert activity to pause. --> - <service android:name="AlarmKlaxon"> - <intent-filter> - <action android:name="com.android.alarmclock.ALARM_ALERT" /> - </intent-filter> - </service> - - <receiver android:name="AlarmInitReceiver"> - <intent-filter> - <action android:name="android.intent.action.BOOT_COMPLETED" /> - <action android:name="android.intent.action.TIME_SET" /> - <action android:name="android.intent.action.TIMEZONE_CHANGED" /> - <action android:name="android.intent.action.LOCALE_CHANGED" /> - </intent-filter> - </receiver> - - <receiver android:name="AnalogAppWidgetProvider" android:label="@string/analog_gadget" - android:icon="@drawable/ic_widget_analog_clock"> - <intent-filter> - <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> - </intent-filter> - <meta-data android:name="android.appwidget.provider" android:resource="@xml/analog_appwidget" /> - </receiver> - </application> -</manifest> - diff --git a/CleanSpec.mk b/CleanSpec.mk deleted file mode 100644 index b84e1b6..0000000 --- a/CleanSpec.mk +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (C) 2007 The Android Open Source 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. -# - -# If you don't need to do a full clean build but would like to touch -# a file or delete some intermediate files, add a clean step to the end -# of the list. These steps will only be run once, if they haven't been -# run before. -# -# E.g.: -# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) -# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) -# -# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with -# files that are missing or have been moved. -# -# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. -# Use $(OUT_DIR) to refer to the "out" directory. -# -# If you need to re-do something that's already mentioned, just copy -# the command and add it to the bottom of the list. E.g., if a change -# that you made last week required touching a file and a change you -# made today requires touching the same file, just copy the old -# touch step and add it to the end of the list. -# -# ************************************************ -# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST -# ************************************************ - -# For example: -#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) -#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) -#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) -#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) - -# ************************************************ -# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST -# ************************************************ diff --git a/MODULE_LICENSE_APACHE2 b/MODULE_LICENSE_APACHE2 deleted file mode 100644 index e69de29..0000000 --- a/MODULE_LICENSE_APACHE2 +++ /dev/null @@ -1,190 +0,0 @@ - - Copyright (c) 2005-2008, The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - - 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. - - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - diff --git a/res/drawable-hdpi/appwidget_clock_dial.png b/res/drawable-hdpi/appwidget_clock_dial.png Binary files differdeleted file mode 100644 index d004264..0000000 --- a/res/drawable-hdpi/appwidget_clock_dial.png +++ /dev/null diff --git a/res/drawable-hdpi/appwidget_clock_hour.png b/res/drawable-hdpi/appwidget_clock_hour.png Binary files differdeleted file mode 100644 index d60a34c..0000000 --- a/res/drawable-hdpi/appwidget_clock_hour.png +++ /dev/null diff --git a/res/drawable-hdpi/appwidget_clock_minute.png b/res/drawable-hdpi/appwidget_clock_minute.png Binary files differdeleted file mode 100644 index 487296c..0000000 --- a/res/drawable-hdpi/appwidget_clock_minute.png +++ /dev/null diff --git a/res/drawable-hdpi/circle0.png b/res/drawable-hdpi/circle0.png Binary files differdeleted file mode 100644 index 95b199e..0000000 --- a/res/drawable-hdpi/circle0.png +++ /dev/null diff --git a/res/drawable-hdpi/circle1.png b/res/drawable-hdpi/circle1.png Binary files differdeleted file mode 100644 index 2312efb..0000000 --- a/res/drawable-hdpi/circle1.png +++ /dev/null diff --git a/res/drawable-hdpi/circle2.png b/res/drawable-hdpi/circle2.png Binary files differdeleted file mode 100644 index 0e3e8ce..0000000 --- a/res/drawable-hdpi/circle2.png +++ /dev/null diff --git a/res/drawable-hdpi/circle3.png b/res/drawable-hdpi/circle3.png Binary files differdeleted file mode 100644 index 809d614..0000000 --- a/res/drawable-hdpi/circle3.png +++ /dev/null diff --git a/res/drawable-hdpi/clock_dial.png b/res/drawable-hdpi/clock_dial.png Binary files differdeleted file mode 100644 index f175a5b..0000000 --- a/res/drawable-hdpi/clock_dial.png +++ /dev/null diff --git a/res/drawable-hdpi/clock_hour.png b/res/drawable-hdpi/clock_hour.png Binary files differdeleted file mode 100644 index 65076c3..0000000 --- a/res/drawable-hdpi/clock_hour.png +++ /dev/null diff --git a/res/drawable-hdpi/clock_minute.png b/res/drawable-hdpi/clock_minute.png Binary files differdeleted file mode 100644 index 95c0ffc..0000000 --- a/res/drawable-hdpi/clock_minute.png +++ /dev/null diff --git a/res/drawable-hdpi/clockdroid2_dial.png b/res/drawable-hdpi/clockdroid2_dial.png Binary files differdeleted file mode 100644 index 8efc022..0000000 --- a/res/drawable-hdpi/clockdroid2_dial.png +++ /dev/null diff --git a/res/drawable-hdpi/clockdroid2_hour.png b/res/drawable-hdpi/clockdroid2_hour.png Binary files differdeleted file mode 100644 index af381bb..0000000 --- a/res/drawable-hdpi/clockdroid2_hour.png +++ /dev/null diff --git a/res/drawable-hdpi/clockdroid2_minute.png b/res/drawable-hdpi/clockdroid2_minute.png Binary files differdeleted file mode 100644 index 554a393..0000000 --- a/res/drawable-hdpi/clockdroid2_minute.png +++ /dev/null diff --git a/res/drawable-hdpi/clockdroids_dial.png b/res/drawable-hdpi/clockdroids_dial.png Binary files differdeleted file mode 100644 index 0db5af5..0000000 --- a/res/drawable-hdpi/clockdroids_dial.png +++ /dev/null diff --git a/res/drawable-hdpi/clockdroids_hour.png b/res/drawable-hdpi/clockdroids_hour.png Binary files differdeleted file mode 100644 index 27b2cbf..0000000 --- a/res/drawable-hdpi/clockdroids_hour.png +++ /dev/null diff --git a/res/drawable-hdpi/clockdroids_minute.png b/res/drawable-hdpi/clockdroids_minute.png Binary files differdeleted file mode 100644 index c4acc0d..0000000 --- a/res/drawable-hdpi/clockdroids_minute.png +++ /dev/null diff --git a/res/drawable-hdpi/clockgoog_dial.png b/res/drawable-hdpi/clockgoog_dial.png Binary files differdeleted file mode 100644 index 2d2140e..0000000 --- a/res/drawable-hdpi/clockgoog_dial.png +++ /dev/null diff --git a/res/drawable-hdpi/clockgoog_hour.png b/res/drawable-hdpi/clockgoog_hour.png Binary files differdeleted file mode 100644 index c6af09f..0000000 --- a/res/drawable-hdpi/clockgoog_hour.png +++ /dev/null diff --git a/res/drawable-hdpi/clockgoog_minute.png b/res/drawable-hdpi/clockgoog_minute.png Binary files differdeleted file mode 100644 index b04f3e5..0000000 --- a/res/drawable-hdpi/clockgoog_minute.png +++ /dev/null diff --git a/res/drawable-hdpi/dialog.9.png b/res/drawable-hdpi/dialog.9.png Binary files differdeleted file mode 100644 index 16ca7e6..0000000 --- a/res/drawable-hdpi/dialog.9.png +++ /dev/null diff --git a/res/drawable-hdpi/ic_launcher_alarmclock.png b/res/drawable-hdpi/ic_launcher_alarmclock.png Binary files differdeleted file mode 100644 index 99764c6..0000000 --- a/res/drawable-hdpi/ic_launcher_alarmclock.png +++ /dev/null diff --git a/res/drawable-hdpi/ic_menu_clock_face.png b/res/drawable-hdpi/ic_menu_clock_face.png Binary files differdeleted file mode 100644 index b6e7d1b..0000000 --- a/res/drawable-hdpi/ic_menu_clock_face.png +++ /dev/null diff --git a/res/drawable-hdpi/ic_widget_analog_clock.png b/res/drawable-hdpi/ic_widget_analog_clock.png Binary files differdeleted file mode 100644 index 99764c6..0000000 --- a/res/drawable-hdpi/ic_widget_analog_clock.png +++ /dev/null diff --git a/res/drawable-hdpi/stat_notify_alarm.png b/res/drawable-hdpi/stat_notify_alarm.png Binary files differdeleted file mode 100644 index 64f583f..0000000 --- a/res/drawable-hdpi/stat_notify_alarm.png +++ /dev/null diff --git a/res/drawable-mdpi/appwidget_clock_dial.png b/res/drawable-mdpi/appwidget_clock_dial.png Binary files differdeleted file mode 100644 index eda3d17..0000000 --- a/res/drawable-mdpi/appwidget_clock_dial.png +++ /dev/null diff --git a/res/drawable-mdpi/appwidget_clock_hour.png b/res/drawable-mdpi/appwidget_clock_hour.png Binary files differdeleted file mode 100644 index fcfd948..0000000 --- a/res/drawable-mdpi/appwidget_clock_hour.png +++ /dev/null diff --git a/res/drawable-mdpi/appwidget_clock_minute.png b/res/drawable-mdpi/appwidget_clock_minute.png Binary files differdeleted file mode 100644 index afc0a3f..0000000 --- a/res/drawable-mdpi/appwidget_clock_minute.png +++ /dev/null diff --git a/res/drawable-mdpi/circle0.png b/res/drawable-mdpi/circle0.png Binary files differdeleted file mode 100644 index 1386ed4..0000000 --- a/res/drawable-mdpi/circle0.png +++ /dev/null diff --git a/res/drawable-mdpi/circle1.png b/res/drawable-mdpi/circle1.png Binary files differdeleted file mode 100644 index fed0190..0000000 --- a/res/drawable-mdpi/circle1.png +++ /dev/null diff --git a/res/drawable-mdpi/circle2.png b/res/drawable-mdpi/circle2.png Binary files differdeleted file mode 100644 index 9712976..0000000 --- a/res/drawable-mdpi/circle2.png +++ /dev/null diff --git a/res/drawable-mdpi/circle3.png b/res/drawable-mdpi/circle3.png Binary files differdeleted file mode 100644 index 056bb45..0000000 --- a/res/drawable-mdpi/circle3.png +++ /dev/null diff --git a/res/drawable-mdpi/clock_dial.png b/res/drawable-mdpi/clock_dial.png Binary files differdeleted file mode 100644 index 734e361..0000000 --- a/res/drawable-mdpi/clock_dial.png +++ /dev/null diff --git a/res/drawable-mdpi/clock_hour.png b/res/drawable-mdpi/clock_hour.png Binary files differdeleted file mode 100644 index 023faa4..0000000 --- a/res/drawable-mdpi/clock_hour.png +++ /dev/null diff --git a/res/drawable-mdpi/clock_minute.png b/res/drawable-mdpi/clock_minute.png Binary files differdeleted file mode 100644 index 104e2a2..0000000 --- a/res/drawable-mdpi/clock_minute.png +++ /dev/null diff --git a/res/drawable-mdpi/clockdroid2_dial.png b/res/drawable-mdpi/clockdroid2_dial.png Binary files differdeleted file mode 100644 index 0996f09..0000000 --- a/res/drawable-mdpi/clockdroid2_dial.png +++ /dev/null diff --git a/res/drawable-mdpi/clockdroid2_hour.png b/res/drawable-mdpi/clockdroid2_hour.png Binary files differdeleted file mode 100644 index cf6268d..0000000 --- a/res/drawable-mdpi/clockdroid2_hour.png +++ /dev/null diff --git a/res/drawable-mdpi/clockdroid2_minute.png b/res/drawable-mdpi/clockdroid2_minute.png Binary files differdeleted file mode 100644 index a4fe782..0000000 --- a/res/drawable-mdpi/clockdroid2_minute.png +++ /dev/null diff --git a/res/drawable-mdpi/clockdroids_dial.png b/res/drawable-mdpi/clockdroids_dial.png Binary files differdeleted file mode 100644 index 45e86d0..0000000 --- a/res/drawable-mdpi/clockdroids_dial.png +++ /dev/null diff --git a/res/drawable-mdpi/clockdroids_hour.png b/res/drawable-mdpi/clockdroids_hour.png Binary files differdeleted file mode 100644 index 898d44d..0000000 --- a/res/drawable-mdpi/clockdroids_hour.png +++ /dev/null diff --git a/res/drawable-mdpi/clockdroids_minute.png b/res/drawable-mdpi/clockdroids_minute.png Binary files differdeleted file mode 100644 index 4e59764..0000000 --- a/res/drawable-mdpi/clockdroids_minute.png +++ /dev/null diff --git a/res/drawable-mdpi/clockgoog_dial.png b/res/drawable-mdpi/clockgoog_dial.png Binary files differdeleted file mode 100644 index a83b7b8..0000000 --- a/res/drawable-mdpi/clockgoog_dial.png +++ /dev/null diff --git a/res/drawable-mdpi/clockgoog_hour.png b/res/drawable-mdpi/clockgoog_hour.png Binary files differdeleted file mode 100644 index 7eff3c2..0000000 --- a/res/drawable-mdpi/clockgoog_hour.png +++ /dev/null diff --git a/res/drawable-mdpi/clockgoog_minute.png b/res/drawable-mdpi/clockgoog_minute.png Binary files differdeleted file mode 100644 index b1eaebd..0000000 --- a/res/drawable-mdpi/clockgoog_minute.png +++ /dev/null diff --git a/res/drawable-mdpi/dialog.9.png b/res/drawable-mdpi/dialog.9.png Binary files differdeleted file mode 100644 index 2305be4..0000000 --- a/res/drawable-mdpi/dialog.9.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_launcher_alarmclock.png b/res/drawable-mdpi/ic_launcher_alarmclock.png Binary files differdeleted file mode 100644 index bd660e1..0000000 --- a/res/drawable-mdpi/ic_launcher_alarmclock.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_menu_clock_face.png b/res/drawable-mdpi/ic_menu_clock_face.png Binary files differdeleted file mode 100644 index 678af24..0000000 --- a/res/drawable-mdpi/ic_menu_clock_face.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_widget_analog_clock.png b/res/drawable-mdpi/ic_widget_analog_clock.png Binary files differdeleted file mode 100644 index bd660e1..0000000 --- a/res/drawable-mdpi/ic_widget_analog_clock.png +++ /dev/null diff --git a/res/drawable-mdpi/stat_notify_alarm.png b/res/drawable-mdpi/stat_notify_alarm.png Binary files differdeleted file mode 100644 index 6012575..0000000 --- a/res/drawable-mdpi/stat_notify_alarm.png +++ /dev/null diff --git a/res/drawable/animate_circle.xml b/res/drawable/animate_circle.xml deleted file mode 100644 index a07b8cf..0000000 --- a/res/drawable/animate_circle.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<!-- Chewie... the hyperdrive ain't working --> -<animation-list xmlns:android="http://schemas.android.com/apk/res/android" - android:oneshot="false" android:visible="true"> - <item android:drawable="@drawable/circle0_drawable" android:duration="80" /> - <item android:drawable="@drawable/circle1_drawable" android:duration="80" /> - <item android:drawable="@drawable/circle2_drawable" android:duration="80" /> - <item android:drawable="@drawable/circle3_drawable" android:duration="80" /> -</animation-list> - - - diff --git a/res/drawable/circle0_drawable.xml b/res/drawable/circle0_drawable.xml deleted file mode 100644 index 0137d4a..0000000 --- a/res/drawable/circle0_drawable.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> -<bitmap xmlns:android="http://schemas.android.com/apk/res/android" - android:oneshot="false" android:src="@drawable/circle0" - android:gravity="center"/> diff --git a/res/drawable/circle1_drawable.xml b/res/drawable/circle1_drawable.xml deleted file mode 100644 index 1272c4b..0000000 --- a/res/drawable/circle1_drawable.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> -<bitmap xmlns:android="http://schemas.android.com/apk/res/android" - android:oneshot="false" android:src="@drawable/circle1" - android:gravity="center"/> diff --git a/res/drawable/circle2_drawable.xml b/res/drawable/circle2_drawable.xml deleted file mode 100644 index d1b492d..0000000 --- a/res/drawable/circle2_drawable.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> -<bitmap xmlns:android="http://schemas.android.com/apk/res/android" - android:oneshot="false" android:src="@drawable/circle2" - android:gravity="center"/> diff --git a/res/drawable/circle3_drawable.xml b/res/drawable/circle3_drawable.xml deleted file mode 100644 index 1060a32..0000000 --- a/res/drawable/circle3_drawable.xml +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> -<bitmap xmlns:android="http://schemas.android.com/apk/res/android" - android:oneshot="false" android:src="@drawable/circle3" - android:gravity="center"/> diff --git a/res/layout-land/alarm_clock.xml b/res/layout-land/alarm_clock.xml deleted file mode 100644 index 2422278..0000000 --- a/res/layout-land/alarm_clock.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/base_layout" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center_vertical"> - - <FrameLayout - android:id="@+id/clock_layout" - android:layout_width="208dip" - android:layout_height="match_parent"/> - - <ListView - android:id="@+id/alarms_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> - -</LinearLayout> diff --git a/res/layout/alarm_alert.xml b/res/layout/alarm_alert.xml deleted file mode 100644 index 40cb864..0000000 --- a/res/layout/alarm_alert.xml +++ /dev/null @@ -1,84 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:gravity="center"> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="center" - android:gravity="center_horizontal" - android:background="@drawable/dialog" - android:orientation="vertical"> - - <TextView android:id="@+id/alertTitle" - style="?android:attr/textAppearanceLarge" - android:singleLine="true" - android:ellipsize="end" - android:gravity="center" - android:layout_width="match_parent" - android:layout_height="wrap_content" /> - <ImageView - android:layout_width="match_parent" - android:layout_height="1dip" - android:scaleType="fitXY" - android:gravity="fill_horizontal" - android:src="@*android:drawable/dialog_divider_horizontal_light" - android:layout_marginLeft="10dip" - android:layout_marginRight="10dip"/> - - <LinearLayout - android:id="@+id/clockView" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:layout_gravity="fill_vertical|center"/> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - style="@android:style/ButtonBar"> - - <Button - android:id="@+id/snooze" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="3" - android:text="@string/alarm_alert_snooze_text" /> - - <!-- blank stretchable view --> - <View - android:layout_width="2dip" - android:layout_height="2dip" - android:layout_gravity="fill_horizontal" - android:layout_weight="1"/> - - <Button - android:id="@+id/dismiss" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="3" - android:text="@string/alarm_alert_dismiss_text" /> - - </LinearLayout> - - </LinearLayout> - -</LinearLayout> diff --git a/res/layout/alarm_clock.xml b/res/layout/alarm_clock.xml deleted file mode 100644 index 48a0f2c..0000000 --- a/res/layout/alarm_clock.xml +++ /dev/null @@ -1,35 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/base_layout" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_marginTop="6dip" - android:orientation="vertical"> - - <LinearLayout - android:id="@+id/clock_layout" - android:layout_width="match_parent" - android:layout_height="192dip"/> - - <ListView - android:id="@+id/alarms_list" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="1" /> - -</LinearLayout> diff --git a/res/layout/alarm_time.xml b/res/layout/alarm_time.xml deleted file mode 100644 index 98bc953..0000000 --- a/res/layout/alarm_time.xml +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:paddingLeft="5dip" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <!-- A layout that displays the time. Shows time, am/pm (if 12-hour), - and an optional line below, used for day/days of week --> - - <com.android.alarmclock.DigitalClock android:id="@+id/digitalClock" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_weight="1" - android:gravity="center_vertical" - android:orientation="vertical" - android:paddingLeft="8dip" - android:paddingRight="8dip"> - - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <TextView android:id="@+id/timeDisplay" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textSize="30sp" - android:textColor="@color/white"/> - - <LinearLayout android:id="@+id/am_pm" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_marginLeft="4dip" - android:orientation="vertical"> - - <TextView android:id="@+id/am" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:gravity="bottom" - android:layout_weight=".5" - android:includeFontPadding="false" - android:textSize="12sp"/> - - <TextView android:id="@+id/pm" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:gravity="top" - android:layout_weight=".5" - android:includeFontPadding="false" - android:textSize="12sp"/> - - </LinearLayout> - </LinearLayout> - - <TextView android:id="@+id/daysOfWeek" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="10sp" - android:textColor="@color/ltgrey"/> - - <TextView android:id="@+id/label" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:textSize="12sp" - android:textColor="@color/ltgrey" - android:textStyle="bold|italic" - android:singleLine="true"/> - - </com.android.alarmclock.DigitalClock> - - <CheckBox android:id="@+id/alarmButton" - android:focusable="false" - android:layout_width="60dip" - android:layout_height="76dip" - android:layout_gravity="center_vertical"/> - -</LinearLayout> diff --git a/res/layout/analog_appwidget.xml b/res/layout/analog_appwidget.xml deleted file mode 100644 index d2becb3..0000000 --- a/res/layout/analog_appwidget.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<AnalogClock xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/analog_appwidget" - android:dial="@drawable/appwidget_clock_dial" - android:hand_hour="@drawable/appwidget_clock_hour" - android:hand_minute="@drawable/appwidget_clock_minute" - android:layout_width="match_parent" - android:layout_height="match_parent" /> diff --git a/res/layout/clock_basic_bw.xml b/res/layout/clock_basic_bw.xml deleted file mode 100644 index ba316c1..0000000 --- a/res/layout/clock_basic_bw.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<AnalogClock xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/clock" - style="@style/clock" - android:dial="@drawable/clock_dial" - android:hand_hour="@drawable/clock_hour" - android:hand_minute="@drawable/clock_minute"/> diff --git a/res/layout/clock_droid2.xml b/res/layout/clock_droid2.xml deleted file mode 100644 index a2eff4e..0000000 --- a/res/layout/clock_droid2.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<AnalogClock xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/clock" - style="@style/clock" - android:dial="@drawable/clockdroid2_dial" - android:hand_hour="@drawable/clockdroid2_hour" - android:hand_minute="@drawable/clockdroid2_minute"/> diff --git a/res/layout/clock_droids.xml b/res/layout/clock_droids.xml deleted file mode 100644 index 8676d27..0000000 --- a/res/layout/clock_droids.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<AnalogClock xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/clock" - style="@style/clock" - android:dial="@drawable/clockdroids_dial" - android:hand_hour="@drawable/clockdroids_hour" - android:hand_minute="@drawable/clockdroids_minute"/> diff --git a/res/layout/clock_googly.xml b/res/layout/clock_googly.xml deleted file mode 100644 index 63dcd70..0000000 --- a/res/layout/clock_googly.xml +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<AnalogClock xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/clock" - style="@style/clock" - android:dial="@drawable/clockgoog_dial" - android:hand_hour="@drawable/clockgoog_hour" - android:hand_minute="@drawable/clockgoog_minute"/> diff --git a/res/layout/clockpicker.xml b/res/layout/clockpicker.xml deleted file mode 100644 index 781fecf..0000000 --- a/res/layout/clockpicker.xml +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="match_parent"> - - <TextView - android:id="@+id/instructions" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:padding="5dip" - android:background="#70000000" - android:text="@string/clock_instructions" - android:layout_alignParentTop="true" - android:layout_centerHorizontal="true" - /> - <LinearLayout - android:id="@+id/clock_layout" - android:layout_width="match_parent" - android:layout_below="@+id/instructions" - android:layout_height="208dip" - android:gravity="center"/> - - <Gallery android:id="@+id/gallery" - android:background="#70000000" - android:layout_width="match_parent" - android:layout_height="80dip" - android:layout_alignParentBottom="true" - android:layout_alignParentLeft="true" - android:gravity="center_vertical" - android:spacing="16dp" - /> - -</RelativeLayout> - diff --git a/res/layout/context_menu_header.xml b/res/layout/context_menu_header.xml deleted file mode 100644 index 55846f5..0000000 --- a/res/layout/context_menu_header.xml +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> - -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="6dip" - android:paddingBottom="9dip" - android:paddingLeft="10dip" - android:paddingRight="10dip"> - - <ImageView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="top" - android:paddingTop="6dip" - android:paddingRight="10dip" - android:src="@*android:drawable/ic_dialog_time"/> - - <TextView android:id="@+id/header_time" - style="?android:attr/textAppearanceLarge" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:singleLine="true" - android:gravity="center_vertical" - android:ellipsize="none"/> - - <TextView android:id="@+id/header_label" - style="?android:attr/textAppearanceLarge" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_marginLeft="20dip" - android:singleLine="true" - android:gravity="right|center_vertical" - android:ellipsize="end"/> - -</LinearLayout> - diff --git a/res/layout/digital_clock.xml b/res/layout/digital_clock.xml deleted file mode 100644 index 132cb19..0000000 --- a/res/layout/digital_clock.xml +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<com.android.alarmclock.DigitalClock android:id="@+id/clock" - xmlns:android="http://schemas.android.com/apk/res/android" - style="@style/clock" - android:gravity="center"> - - <!-- Includes vertical padding so animated background doesn't - stretch much --> - <TextView android:id="@+id/timeDisplay" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="center" - android:textSize="64sp" - android:textColor="@color/white"/> - - <LinearLayout android:id="@+id/am_pm" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:layout_marginLeft="4dip" - android:orientation="vertical"> - - <TextView android:id="@+id/am" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:gravity="bottom" - android:layout_weight=".5" - android:includeFontPadding="false" - android:textSize="28sp"/> - <TextView android:id="@+id/pm" - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:gravity="top" - android:layout_weight=".5" - android:includeFontPadding="false" - android:textSize="28sp"/> - </LinearLayout> -</com.android.alarmclock.DigitalClock> diff --git a/res/layout/save_cancel_alarm.xml b/res/layout/save_cancel_alarm.xml deleted file mode 100644 index 242b69f..0000000 --- a/res/layout/save_cancel_alarm.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> - -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - style="@android:style/ButtonBar"> - - <Button android:id="@+id/alarm_save" - android:focusable="true" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="1" - android:text="@string/done"/> - - <Button android:id="@+id/alarm_cancel" - android:focusable="true" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:layout_weight="1" - android:text="@string/revert"/> - -</LinearLayout> diff --git a/res/menu/context_menu.xml b/res/menu/context_menu.xml deleted file mode 100644 index 25a62be..0000000 --- a/res/menu/context_menu.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> - -<menu xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:id="@+id/enable_alarm" - android:title="@string/enable_alarm"/> - <item android:id="@+id/delete_alarm" - android:title="@string/delete_alarm"/> -</menu> - - diff --git a/res/menu/main_menu.xml b/res/menu/main_menu.xml deleted file mode 100644 index 5821195..0000000 --- a/res/menu/main_menu.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> - -<menu xmlns:android="http://schemas.android.com/apk/res/android"> - <item android:id="@+id/menu_add_alarm" - android:title="@string/add_alarm" - android:icon="@android:drawable/ic_menu_add"/> - <item android:id="@+id/menu_toggle_clock" - android:title="@string/hide_clock" - android:icon="@drawable/ic_menu_clock_face"/> - <item android:id="@+id/menu_settings" - android:title="@string/settings" - android:icon="@android:drawable/ic_menu_preferences"/> -</menu> - - diff --git a/res/raw/in_call_alarm.ogg b/res/raw/in_call_alarm.ogg Binary files differdeleted file mode 100644 index 9d80037..0000000 --- a/res/raw/in_call_alarm.ogg +++ /dev/null diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml deleted file mode 100644 index 26a6b1e..0000000 --- a/res/values-cs/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Budík"</string> - <string name="add_alarm" msgid="5976616107390962899">"Přidat upozornění"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Smazat budík"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Aktivovat budík"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Deaktivovat budík"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Tento budík bude smazán."</string> - <string name="show_clock" msgid="8358759982675616915">"Zobrazit hodiny"</string> - <string name="hide_clock" msgid="3217727306480505694">"Skrýt hodiny"</string> - <string name="label" msgid="162189613902857319">"Štítek"</string> - <string name="default_label" msgid="5590025289805630372">"Budík"</string> - <string name="set_alarm" msgid="9148359866152726808">"Nastavit upozornění"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrace"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Opakovat"</string> - <string name="alert" msgid="6539852766423700221">"Vyzváněcí tón"</string> - <string name="time" msgid="8067216534232296518">"Čas"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Zavřít"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Upozornění ztišeno po uplynutí <xliff:g id="MINUTES">%d</xliff:g> min."</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Odložit"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Upozornění odloženo o <xliff:g id="MINUTES">%d</xliff:g> min."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Tento budík se spustí za méně než 1 minutu."</item> - <item msgid="7110525731259629055">"Tento budík se spustí za několik dní: <xliff:g id="DAYS">%1$s</xliff:g>"</item> - <item msgid="7003982794086186185">"Tento budík se spustí za <xliff:g id="HOURS">%2$s</xliff:g> hod."</item> - <item msgid="7311021123230077742">"Tento budík se spustí za: <xliff:g id="DAYS">%1$s</xliff:g> d. <xliff:g id="HOURS">%2$s</xliff:g> hod."</item> - <item msgid="8431715191823114872">"Tento budík se spustí za <xliff:g id="MINUTES">%3$s</xliff:g> min."</item> - <item msgid="3244151088673185428">"Tento budík se spustí za <xliff:g id="DAYS">%1$s</xliff:g> hod. a <xliff:g id="MINUTES">%3$s</xliff:g> min."</item> - <item msgid="3663661342600168814">"Tento budík se spustí za <xliff:g id="HOURS">%2$s</xliff:g> hod. a <xliff:g id="MINUTES">%3$s</xliff:g> min."</item> - <item msgid="7779544127785487304">"Tento budík se spustí za: <xliff:g id="DAYS">%1$s</xliff:g> d. <xliff:g id="HOURS">%2$s</xliff:g> hod. <xliff:g id="MINUTES">%3$s</xliff:g> min."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 den"</string> - <string name="days" msgid="2070509222727852210">"dní: <xliff:g id="DAYS">%s</xliff:g>"</string> - <string name="hour" msgid="2546819039651509323">"1 hodina"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> hod."</string> - <string name="minute" msgid="2486157997434653710">"1 minuta"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> min"</string> - <string name="every_day" msgid="1058994798884544691">"Každý den"</string> - <string name="never" msgid="54104287800571769">"Nikdy"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Vyberte hodiny, které mají být zobrazeny."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analogové hodiny"</string> - <string name="settings" msgid="5849739030579520686">"Nastavení"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Budík v tichém režimu"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Aktivovat budík i v případě, že je telefon v tichém režimu."</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Doba odložení"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 min"</item> - <item msgid="5294206441496024610">"10 min"</item> - <item msgid="2165904039211935470">"15 min"</item> - <item msgid="7248236967714374250">"20 min"</item> - <item msgid="738394723625179423">"25 min"</item> - <item msgid="1180222611308391616">"30 min"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Hotovo"</string> - <string name="revert" msgid="9100911171235162926">"Vrátit zpět"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Hlasitost budíku"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Nastavení hlasitosti budíků"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Tichý"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Vyberte, zda budík chcete ukončit nebo odložit."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (odloženo)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Budík byl nastaven na <xliff:g id="TIME">%s</xliff:g>. Výběrem jej zrušíte."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Chování postranních tlačítek"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Umožňuje nastavit chování postranních tlačítek při vyzvánění budíku"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Nastavení výchozího vyzvánění"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Žádné"</item> - <item msgid="7111908302622811168">"Odložit"</item> - <item msgid="8573552194573068996">"Ukončit"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml deleted file mode 100644 index 1ebdf00..0000000 --- a/res/values-da/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Alarm"</string> - <string name="add_alarm" msgid="5976616107390962899">"Tilføj alarm"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Slet alarm"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Aktiver alarm"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Deaktiver alarm"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Denne alarm slettes."</string> - <string name="show_clock" msgid="8358759982675616915">"Vis ur"</string> - <string name="hide_clock" msgid="3217727306480505694">"Skjul ur"</string> - <string name="label" msgid="162189613902857319">"Etiket"</string> - <string name="default_label" msgid="5590025289805630372">"Alarm"</string> - <string name="set_alarm" msgid="9148359866152726808">"Angiv alarm"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibration"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Gentag"</string> - <string name="alert" msgid="6539852766423700221">"Ringetone"</string> - <string name="time" msgid="8067216534232296518">"Tid"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Annuller"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarm dæmpes efter <xliff:g id="MINUTES">%d</xliff:g> minutter"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Slumretilstand"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Slumrer i <xliff:g id="MINUTES">%d</xliff:g> minutter."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Alarm er indstillet til mindre end 1 minut fra nu af."</item> - <item msgid="7110525731259629055">"Alarmen er indstillet til <xliff:g id="DAYS">%1$s</xliff:g> fra nu af."</item> - <item msgid="7003982794086186185">"Alarmen er indstillet til <xliff:g id="HOURS">%2$s</xliff:g> fra nu af."</item> - <item msgid="7311021123230077742">"Alarmen er indstillet til <xliff:g id="DAYS">%1$s</xliff:g> og <xliff:g id="HOURS">%2$s</xliff:g> fra nu af."</item> - <item msgid="8431715191823114872">"Alarmen er indstillet til <xliff:g id="MINUTES">%3$s</xliff:g> fra nu af."</item> - <item msgid="3244151088673185428">"Alarmen er indstillet til <xliff:g id="DAYS">%1$s</xliff:g> og <xliff:g id="MINUTES">%3$s</xliff:g> fra nu af."</item> - <item msgid="3663661342600168814">"Alarmen er indstillet til <xliff:g id="HOURS">%2$s</xliff:g> og <xliff:g id="MINUTES">%3$s</xliff:g> fra nu af."</item> - <item msgid="7779544127785487304">"Alarmen er indstillet til <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> og <xliff:g id="MINUTES">%3$s</xliff:g> fra nu af."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dag"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dage"</string> - <string name="hour" msgid="2546819039651509323">"1 time"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> timer"</string> - <string name="minute" msgid="2486157997434653710">"1 minut"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutter"</string> - <string name="every_day" msgid="1058994798884544691">"hver dag"</string> - <string name="never" msgid="54104287800571769">"Aldrig"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Vælg det ur, der skal vises."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analogt ur"</string> - <string name="settings" msgid="5849739030579520686">"Indstillinger"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarm i lydløs tilstand"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Afspil alarm, selvom telefonen er i lydløs tilstand"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Slumretilstands varighed"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutter"</item> - <item msgid="5294206441496024610">"10 minutter"</item> - <item msgid="2165904039211935470">"15 minutter"</item> - <item msgid="7248236967714374250">"20 minutter"</item> - <item msgid="738394723625179423">"25 minutter"</item> - <item msgid="1180222611308391616">"30 minutter"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Udfør"</string> - <string name="revert" msgid="9100911171235162926">"Annuller"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Lydstyrke for alarm"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Angiv alarmernes lydstyrke"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Lydløs"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Vælg for at slumre eller annullere alarmen."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (slumretilstand)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarmen er indstillet til <xliff:g id="TIME">%s</xliff:g>. Vælg for at annullere."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Sideknapper"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Angiv ønsket adfærd for sideknapperne, når der trykkes på dem under en alarm"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Angiv standardringetone"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Ingen"</item> - <item msgid="7111908302622811168">"Slumretilstand"</item> - <item msgid="8573552194573068996">"Annuller"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml deleted file mode 100644 index e0666f6..0000000 --- a/res/values-de/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Wecker"</string> - <string name="add_alarm" msgid="5976616107390962899">"Wecker hinzufügen"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Wecker löschen"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Wecker aktivieren"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Wecker deaktivieren"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Dieser Wecker wird gelöscht."</string> - <string name="show_clock" msgid="8358759982675616915">"Uhr anzeigen"</string> - <string name="hide_clock" msgid="3217727306480505694">"Uhr ausblenden"</string> - <string name="label" msgid="162189613902857319">"Label"</string> - <string name="default_label" msgid="5590025289805630372">"Wecker"</string> - <string name="set_alarm" msgid="9148359866152726808">"Wecker einstellen"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrieren"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Wiederholen"</string> - <string name="alert" msgid="6539852766423700221">"Klingelton"</string> - <string name="time" msgid="8067216534232296518">"Uhrzeit"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Verwerfen"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Der Wecker verstummte nach <xliff:g id="MINUTES">%d</xliff:g> Minuten"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Snooze-Funktion"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Snooze-Funktion aktiviert für <xliff:g id="MINUTES">%d</xliff:g> Minuten"</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Dieser Wecker klingelt in weniger als 1 Minute."</item> - <item msgid="7110525731259629055">"Dieser Wecker klingelt in <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"Dieser Wecker klingelt in <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"Dieser Wecker klingelt in <xliff:g id="DAYS">%1$s</xliff:g> und <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"Dieser Wecker klingelt in <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"Dieser Wecker klingelt in <xliff:g id="DAYS">%1$s</xliff:g> und <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"Dieser Wecker klingelt in <xliff:g id="HOURS">%2$s</xliff:g> und <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"Dieser Wecker klingelt in <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> und <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 Tag"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> Tage"</string> - <string name="hour" msgid="2546819039651509323">"1 Stunde"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> Stunden"</string> - <string name="minute" msgid="2486157997434653710">"1 Minute"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> Minuten"</string> - <string name="every_day" msgid="1058994798884544691">"Täglich"</string> - <string name="never" msgid="54104287800571769">"Nie"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Wählen Sie die anzuzeigende Uhr aus."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analoguhr"</string> - <string name="settings" msgid="5849739030579520686">"Einstellungen"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Auch im Lautlosmodus"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Wecker klingelt auch im Lautlosmodus"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Snooze-Dauer"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 Minuten"</item> - <item msgid="5294206441496024610">"10 Minuten"</item> - <item msgid="2165904039211935470">"15 Minuten"</item> - <item msgid="7248236967714374250">"20 Minuten"</item> - <item msgid="738394723625179423">"25 Minuten"</item> - <item msgid="1180222611308391616">"30 Minuten"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Fertig"</string> - <string name="revert" msgid="9100911171235162926">"Zurücksetzen"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Lautstärke für Wecker"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Lautstärke des Weckers einstellen"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Lautlos"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Für Snooze-Funktion oder Beenden auswählen"</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (Snooze)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Wecker für <xliff:g id="TIME">%s</xliff:g> gestellt. Zum Abbrechen auswählen."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Funktion der seitlichen Tasten"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Verhalten der seitlichen Tasten während des Weckerklingelns"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Standard-Klingelton einstellen"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Keine"</item> - <item msgid="7111908302622811168">"Snooze-Funktion"</item> - <item msgid="8573552194573068996">"Beenden"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-el/strings.xml b/res/values-el/strings.xml deleted file mode 100644 index 9a7f21a..0000000 --- a/res/values-el/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Ξυπνητήρι"</string> - <string name="add_alarm" msgid="5976616107390962899">"Προσθήκη ξυπνητηριού"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Διαγραφή ξυπνητηριού"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Ενεργοποίηση ξυπνητηριού"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Απενεργοποίηση ξυπνητηριού"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Αυτό το ξυπνητήρι θα διαγραφεί."</string> - <string name="show_clock" msgid="8358759982675616915">"Εμφάνιση ρολογιού"</string> - <string name="hide_clock" msgid="3217727306480505694">"Απόκρυψη ρολογιού"</string> - <string name="label" msgid="162189613902857319">"Ετικέτα"</string> - <string name="default_label" msgid="5590025289805630372">"Ξυπνητήρι"</string> - <string name="set_alarm" msgid="9148359866152726808">"Ορισμός ξυπνητηριού"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Δόνηση"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Επανάληψη"</string> - <string name="alert" msgid="6539852766423700221">"Ήχος ξυπνητηριού"</string> - <string name="time" msgid="8067216534232296518">"Ώρα"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Παράβλεψη"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Σιγή ξυπνητηριού μετά από <xliff:g id="MINUTES">%d</xliff:g> λεπτά"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Αναβολή αφύπνισης"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Αναβολή αφύπνισης για <xliff:g id="MINUTES">%d</xliff:g> λεπτά."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Το ξυπνητήρι αυτό έχει οριστεί σε λιγότερο από 1 λεπτό από τώρα."</item> - <item msgid="7110525731259629055">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="DAYS">%1$s</xliff:g> από τώρα."</item> - <item msgid="7003982794086186185">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="HOURS">%2$s</xliff:g> από τώρα."</item> - <item msgid="7311021123230077742">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="DAYS">%1$s</xliff:g> και σε <xliff:g id="HOURS">%2$s</xliff:g> από τώρα."</item> - <item msgid="8431715191823114872">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="MINUTES">%3$s</xliff:g> από τώρα."</item> - <item msgid="3244151088673185428">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="DAYS">%1$s</xliff:g> και σε <xliff:g id="MINUTES">%3$s</xliff:g> από τώρα."</item> - <item msgid="3663661342600168814">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="HOURS">%2$s</xliff:g> και σε <xliff:g id="MINUTES">%3$s</xliff:g> από τώρα."</item> - <item msgid="7779544127785487304">"Το ξυπνητήρι αυτό έχει οριστεί σε <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g>και <xliff:g id="MINUTES">%3$s</xliff:g> από τώρα."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 ημέρα"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> ημέρες"</string> - <string name="hour" msgid="2546819039651509323">"1 ώρα"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> ώρες"</string> - <string name="minute" msgid="2486157997434653710">"1 λεπτό"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> λεπτά"</string> - <string name="every_day" msgid="1058994798884544691">"κάθε μέρα"</string> - <string name="never" msgid="54104287800571769">"Ποτέ"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Επιλογή ρολογιού για προβολή."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Αναλογικό ρολόι"</string> - <string name="settings" msgid="5849739030579520686">"Ρυθμίσεις"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Ξυπνητήρι σε αθόρυβη λειτουργία"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Αναπ/γή ήχου ξυπνητ.ακόμα και όταν το τηλ.βρίσκ.σε αθόρ.λειτ."</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Διάρκεια αναβολής αφύπνισης"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 λεπτά"</item> - <item msgid="5294206441496024610">"10 λεπτά"</item> - <item msgid="2165904039211935470">"15 λεπτά"</item> - <item msgid="7248236967714374250">"20 λεπτά"</item> - <item msgid="738394723625179423">"25 λεπτά"</item> - <item msgid="1180222611308391616">"30 λεπτά"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Τέλος"</string> - <string name="revert" msgid="9100911171235162926">"Επαναφορά"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Ένταση ήχου ξυπνητηριού"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Ορισμός της έντασης του ήχου ξυπνητηριού"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Σίγαση"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Επιλέξτε την αφύπνιση ή την παράβλεψη σε αυτό το ξυπνητήρι."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (αναβολή)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Το ξυπνητήρι ρυθμίστηκε για τις <xliff:g id="TIME">%s</xliff:g>. Επιλέξτε για να ακυρώσετε."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Συμπεριφορά πλευρικού κουμπιού"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Ορίστε την επιθυμητή συμπεριφορά των πλαϊνών κουμπιών κατά τον ήχο του ξυπνητηριού"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Ορισμός προεπιλεγμένου ήχου κλήσης"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Καμία"</item> - <item msgid="7111908302622811168">"Αφύπνιση"</item> - <item msgid="8573552194573068996">"Παράβλεψη"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-es-rUS/strings.xml b/res/values-es-rUS/strings.xml deleted file mode 100644 index 2d677d3..0000000 --- a/res/values-es-rUS/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Alarma"</string> - <string name="add_alarm" msgid="5976616107390962899">"Agregar alarma"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Eliminar alarma"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Activar alarma"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Desactivar alarma"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Esta alarma se eliminará"</string> - <string name="show_clock" msgid="8358759982675616915">"Mostrar reloj"</string> - <string name="hide_clock" msgid="3217727306480505694">"Ocultar reloj"</string> - <string name="label" msgid="162189613902857319">"Etiqueta"</string> - <string name="default_label" msgid="5590025289805630372">"Alarma"</string> - <string name="set_alarm" msgid="9148359866152726808">"Fijar alarma"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrar"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Repetir"</string> - <string name="alert" msgid="6539852766423700221">"Tono de llamada"</string> - <string name="time" msgid="8067216534232296518">"Duración"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Descartar"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarma silenciada después de <xliff:g id="MINUTES">%d</xliff:g> minutos"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Recurrente"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Recurrente a los <xliff:g id="MINUTES">%d</xliff:g> minutos."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Esta alarma se activará en menos de un minuto a partir de ahora."</item> - <item msgid="7110525731259629055">"Esta alarma se activará en <xliff:g id="DAYS">%1$s</xliff:g> a partir de ahora."</item> - <item msgid="7003982794086186185">"Esta alarma se activará en <xliff:g id="HOURS">%2$s</xliff:g> a partir de ahora."</item> - <item msgid="7311021123230077742">"Esta alarma se activará en <xliff:g id="DAYS">%1$s</xliff:g> y <xliff:g id="HOURS">%2$s</xliff:g> a partir de ahora."</item> - <item msgid="8431715191823114872">"Esta alarma se activará en <xliff:g id="MINUTES">%3$s</xliff:g> a partir de ahora."</item> - <item msgid="3244151088673185428">"Esta alarma se activará en <xliff:g id="DAYS">%1$s</xliff:g> y <xliff:g id="MINUTES">%3$s</xliff:g> a partir de ahora."</item> - <item msgid="3663661342600168814">"Esta alarma se activará en <xliff:g id="HOURS">%2$s</xliff:g> y <xliff:g id="MINUTES">%3$s</xliff:g> a partir de ahora."</item> - <item msgid="7779544127785487304">"Esta alarma se activará en <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> y <xliff:g id="MINUTES">%3$s</xliff:g> a partir de ahora."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"un día"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> días"</string> - <string name="hour" msgid="2546819039651509323">"1 hora"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> horas"</string> - <string name="minute" msgid="2486157997434653710">"1 minuto"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutos"</string> - <string name="every_day" msgid="1058994798884544691">"todos los días"</string> - <string name="never" msgid="54104287800571769">"Nunca"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Selecciona un reloj."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Reloj analógico"</string> - <string name="settings" msgid="5849739030579520686">"Config."</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarma en modo silencio"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Reproducir alarma cuando el teléfono está en modo silencioso"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Duración de recurrencia"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutos"</item> - <item msgid="5294206441496024610">"10 minutos"</item> - <item msgid="2165904039211935470">"15 minutos"</item> - <item msgid="7248236967714374250">"20 minutos"</item> - <item msgid="738394723625179423">"25 minutos"</item> - <item msgid="1180222611308391616">"30 minutos"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Finalizado"</string> - <string name="revert" msgid="9100911171235162926">"Revertir"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Volumen de la alarma"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Establecer el volumen de las alarmas"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Silencioso"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Seleccionar alarma recurrente o rechazar."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (recurrente)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Esta alarma se activará en <xliff:g id="TIME">%s</xliff:g>. Selecciona para cancelar."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Comport. del botón lateral"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Activar el comport. deseado de los botones lat. durante una alarma"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Configurar el tono predeterminado"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Ninguno"</item> - <item msgid="7111908302622811168">"Recurrente"</item> - <item msgid="8573552194573068996">"Descartar"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml deleted file mode 100644 index 1e6807e..0000000 --- a/res/values-es/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Alarma"</string> - <string name="add_alarm" msgid="5976616107390962899">"Añadir alarma"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Eliminar alarma"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Activar alarma"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Desactivar alarma"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Esta alarma se eliminará."</string> - <string name="show_clock" msgid="8358759982675616915">"Mostrar reloj"</string> - <string name="hide_clock" msgid="3217727306480505694">"Ocultar reloj"</string> - <string name="label" msgid="162189613902857319">"Etiqueta"</string> - <string name="default_label" msgid="5590025289805630372">"Alarma"</string> - <string name="set_alarm" msgid="9148359866152726808">"Establecer alarma"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibración"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Repetir"</string> - <string name="alert" msgid="6539852766423700221">"Tono"</string> - <string name="time" msgid="8067216534232296518">"Hora"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Descartar"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"La alarma se ha silenciado después de <xliff:g id="MINUTES">%d</xliff:g> minutos."</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Posponer"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"La alarma volverá a sonar en <xliff:g id="MINUTES">%d</xliff:g> minutos."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"La alarma sonará en menos de un minuto."</item> - <item msgid="7110525731259629055">"La alarma sonará en <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"La alarma sonará en <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"La alarma sonará en <xliff:g id="DAYS">%1$s</xliff:g> y <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"La alarma sonará en <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"La alarma sonará en <xliff:g id="DAYS">%1$s</xliff:g> y <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"La alarma sonará en <xliff:g id="HOURS">%2$s</xliff:g> y <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"La alarma sonará en <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> y <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 día"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> días"</string> - <string name="hour" msgid="2546819039651509323">"1 hora"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> horas"</string> - <string name="minute" msgid="2486157997434653710">"1 minuto"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutos"</string> - <string name="every_day" msgid="1058994798884544691">"todos los días"</string> - <string name="never" msgid="54104287800571769">"Nunca"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Selecciona el reloj que quieras ver."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Reloj analógico"</string> - <string name="settings" msgid="5849739030579520686">"Ajustes"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarma en modo silencio"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Reproducir alarma aunque el teléfono esté en modo silencio"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Repetición de alarmas"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutos"</item> - <item msgid="5294206441496024610">"10 minutos"</item> - <item msgid="2165904039211935470">"15 minutos"</item> - <item msgid="7248236967714374250">"20 minutos"</item> - <item msgid="738394723625179423">"25 minutos"</item> - <item msgid="1180222611308391616">"30 minutos"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Listo"</string> - <string name="revert" msgid="9100911171235162926">"Revertir"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Volumen de alarma"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Establecer el volumen de las alarmas"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Silencio"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Elige si deseas posponer o descartar esta alarma."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (pospuesta)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"La alarma sonará a las <xliff:g id="TIME">%s</xliff:g>. Seleccione la opción para cancelarla."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Comportamiento de los botones laterales"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Establecer el comportamiento deseado de los botones laterales cuando se pulsan durante una alarma"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Establecer tono predeterminado"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Ninguno"</item> - <item msgid="7111908302622811168">"Posponer"</item> - <item msgid="8573552194573068996">"Descartar"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml deleted file mode 100644 index 86334ff..0000000 --- a/res/values-fr/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Réveil"</string> - <string name="add_alarm" msgid="5976616107390962899">"Ajouter alarme"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Supprimer l\'alarme"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Activer l\'alarme"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Désactiver l\'alarme"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Cette alarme va être supprimée."</string> - <string name="show_clock" msgid="8358759982675616915">"Afficher l\'horloge"</string> - <string name="hide_clock" msgid="3217727306480505694">"Masquer l\'horloge"</string> - <string name="label" msgid="162189613902857319">"Libellé"</string> - <string name="default_label" msgid="5590025289805630372">"Alarme"</string> - <string name="set_alarm" msgid="9148359866152726808">"Régler l\'alarme"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibreur"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Répéter"</string> - <string name="alert" msgid="6539852766423700221">"Sonnerie"</string> - <string name="time" msgid="8067216534232296518">"Heure"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Quitter"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarme interrompue après <xliff:g id="MINUTES">%d</xliff:g> minutes"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Répéter"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Répétition dans <xliff:g id="MINUTES">%d</xliff:g> minutes."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Prochaine alarme dans moins d\'une minute."</item> - <item msgid="7110525731259629055">"Prochaine alarme dans <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"Prochaine alarme dans <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"Prochaine alarme dans <xliff:g id="DAYS">%1$s</xliff:g> et <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"Prochaine alarme dans <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"Prochaine alarme dans <xliff:g id="DAYS">%1$s</xliff:g> et <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"Prochaine alarme dans <xliff:g id="HOURS">%2$s</xliff:g> et <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"Prochaine alarme dans <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> et <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 jour"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> jours"</string> - <string name="hour" msgid="2546819039651509323">"1 heure"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> heures"</string> - <string name="minute" msgid="2486157997434653710">"1 minute"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutes"</string> - <string name="every_day" msgid="1058994798884544691">"Tous les jours"</string> - <string name="never" msgid="54104287800571769">"Jamais"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Sélectionnez une horloge à afficher."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Horloge analogique"</string> - <string name="settings" msgid="5849739030579520686">"Paramètres"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarme mode silencieux"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Faire sonner l\'alarme même lorsque le téléphone est en mode silencieux"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Répéter après"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutes"</item> - <item msgid="5294206441496024610">"10 minutes"</item> - <item msgid="2165904039211935470">"15 minutes"</item> - <item msgid="7248236967714374250">"20 minutes"</item> - <item msgid="738394723625179423">"25 minutes"</item> - <item msgid="1180222611308391616">"30 minutes"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Terminé"</string> - <string name="revert" msgid="9100911171235162926">"Annuler"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Volume"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Définir le volume des alarmes"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Silencieuse"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Choisissez si vous souhaitez répéter ou désactiver cette alarme."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (répétition)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Prochaine alarme dans <xliff:g id="TIME">%s</xliff:g>. Sélectionnez l\'option appropriée pour annuler."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Action du bouton latéral"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Définir les actions des boutons latéraux lors d\'une alarme"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Définir la sonnerie par défaut"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Aucun"</item> - <item msgid="7111908302622811168">"Répéter"</item> - <item msgid="8573552194573068996">"Désactiver"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml deleted file mode 100644 index d4a0a9e..0000000 --- a/res/values-it/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Sveglia"</string> - <string name="add_alarm" msgid="5976616107390962899">"Aggiungi allarme"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Elimina allarme"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Attiva allarme"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Disattiva allarme"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Questo allarme verrà eliminato."</string> - <string name="show_clock" msgid="8358759982675616915">"Mostra orologio"</string> - <string name="hide_clock" msgid="3217727306480505694">"Nascondi orologio"</string> - <string name="label" msgid="162189613902857319">"Etichetta"</string> - <string name="default_label" msgid="5590025289805630372">"Allarme"</string> - <string name="set_alarm" msgid="9148359866152726808">"Imposta allarme"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrazione"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Ripeti"</string> - <string name="alert" msgid="6539852766423700221">"Suoneria"</string> - <string name="time" msgid="8067216534232296518">"Ora"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Spegni"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Tono allarme disattivato dopo <xliff:g id="MINUTES">%d</xliff:g> minuti"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Posponi"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Sospensione per <xliff:g id="MINUTES">%d</xliff:g> minuti."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"L\'allarme sarà attivato fra meno di 1 minuto."</item> - <item msgid="7110525731259629055">"L\'allarme sarà attivato fra <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"L\'allarme sarà attivato fra <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"L\'allarme sarà attivato fra <xliff:g id="DAYS">%1$s</xliff:g> e <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"L\'allarme sarà attivato fra <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"L\'allarme sarà attivato fra <xliff:g id="DAYS">%1$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"L\'allarme sarà attivato fra <xliff:g id="HOURS">%2$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"L\'allarme sarà attivato fra <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 giorno"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> giorni"</string> - <string name="hour" msgid="2546819039651509323">"1 ora"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> ore"</string> - <string name="minute" msgid="2486157997434653710">"1 minuto"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minuti"</string> - <string name="every_day" msgid="1058994798884544691">"Ogni giorno"</string> - <string name="never" msgid="54104287800571769">"Mai"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Seleziona un orologio."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Orologio analogico"</string> - <string name="settings" msgid="5849739030579520686">"Impostazioni"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Allarme in mod. silenz."</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Riproduci allarme anche con telefono in modalità silenziosa"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Durata sospensione"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minuti"</item> - <item msgid="5294206441496024610">"10 minuti"</item> - <item msgid="2165904039211935470">"15 minuti"</item> - <item msgid="7248236967714374250">"20 minuti"</item> - <item msgid="738394723625179423">"25 minuti"</item> - <item msgid="1180222611308391616">"30 minuti"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Fine"</string> - <string name="revert" msgid="9100911171235162926">"Annulla modifiche"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Volume allarme"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Imposta il volume degli allarmi"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Silenzioso"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Seleziona per sospendere o eliminare questo allarme."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (sospeso)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"L\'allarme sarà attivato alle <xliff:g id="TIME">%s</xliff:g>. Seleziona per annullare."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Comp. pulsante laterale"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Imposta il comport. dei puls. laterali quando vengono premuti durante un allarme"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Imposta suoneria predefinita"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Nessuno"</item> - <item msgid="7111908302622811168">"Sospendi"</item> - <item msgid="8573552194573068996">"Elimina"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-ja/strings.xml b/res/values-ja/strings.xml deleted file mode 100644 index 6909681..0000000 --- a/res/values-ja/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"アラーム"</string> - <string name="add_alarm" msgid="5976616107390962899">"アラームの設定"</string> - <string name="delete_alarm" msgid="3457780990646206817">"アラームを削除"</string> - <string name="enable_alarm" msgid="7442658245797418741">"アラームON"</string> - <string name="disable_alarm" msgid="6665528499886549648">"アラームOFF"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"このアラームを削除します。"</string> - <string name="show_clock" msgid="8358759982675616915">"時計を表示"</string> - <string name="hide_clock" msgid="3217727306480505694">"時計を隠す"</string> - <string name="label" msgid="162189613902857319">"ラベル"</string> - <string name="default_label" msgid="5590025289805630372">"アラーム"</string> - <string name="set_alarm" msgid="9148359866152726808">"アラームを設定"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"バイブレーション"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"繰り返し"</string> - <string name="alert" msgid="6539852766423700221">"アラーム音"</string> - <string name="time" msgid="8067216534232296518">"時刻"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"停止"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"アラームは<xliff:g id="MINUTES">%d</xliff:g>分間鳴って止まりました"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"スヌーズ"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"<xliff:g id="MINUTES">%d</xliff:g>分後に再通知します"</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"アラームは今から1分以内に設定されています。"</item> - <item msgid="7110525731259629055">"アラームは<xliff:g id="DAYS">%1$s</xliff:g>後に設定されています。"</item> - <item msgid="7003982794086186185">"アラームは<xliff:g id="HOURS">%2$s</xliff:g>後に設定されています。"</item> - <item msgid="7311021123230077742">"アラームは<xliff:g id="DAYS">%1$s</xliff:g>と<xliff:g id="HOURS">%2$s</xliff:g>後に設定されています。"</item> - <item msgid="8431715191823114872">"アラームは<xliff:g id="MINUTES">%3$s</xliff:g>後に設定されています。"</item> - <item msgid="3244151088673185428">"アラームは<xliff:g id="DAYS">%1$s</xliff:g>と<xliff:g id="MINUTES">%3$s</xliff:g>後に設定されています。"</item> - <item msgid="3663661342600168814">"アラームは<xliff:g id="HOURS">%2$s</xliff:g><xliff:g id="MINUTES">%3$s</xliff:g>後に設定されています。"</item> - <item msgid="7779544127785487304">"アラームは<xliff:g id="DAYS">%1$s</xliff:g>と<xliff:g id="HOURS">%2$s</xliff:g><xliff:g id="MINUTES">%3$s</xliff:g>後に設定されています。"</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1日"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g>日"</string> - <string name="hour" msgid="2546819039651509323">"1時間"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g>時間"</string> - <string name="minute" msgid="2486157997434653710">"1分"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g>分"</string> - <string name="every_day" msgid="1058994798884544691">"毎日"</string> - <string name="never" msgid="54104287800571769">"繰り返しなし"</string> - <string name="day_concat" msgid="971998564991636532">"、 "</string> - <string name="clock_instructions" msgid="3118560284915857690">"表示する時計を選択してください。"</string> - <string name="analog_gadget" msgid="1670505720837152766">"アナログ時計"</string> - <string name="settings" msgid="5849739030579520686">"設定"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"マナーモード中のアラーム"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"マナーモード中もアラームを鳴らす"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"スヌーズ間隔"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5分"</item> - <item msgid="5294206441496024610">"10分"</item> - <item msgid="2165904039211935470">"15分"</item> - <item msgid="7248236967714374250">"20分"</item> - <item msgid="738394723625179423">"25分"</item> - <item msgid="1180222611308391616">"30分"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"完了"</string> - <string name="revert" msgid="9100911171235162926">"キャンセル"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"アラームの音量"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"アラームの音量を設定する"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"マナーモード"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"アラームのスヌーズ/解除を選択します。"</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g>(スヌーズ)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"アラームは<xliff:g id="TIME">%s</xliff:g>に設定されています。選択すると解除されます。"</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"サイドボタンの動作"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"アラームが鳴っているときにサイドボタンを押した場合の動作を設定します"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"デフォルトの着信音を設定"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"なし"</item> - <item msgid="7111908302622811168">"スヌーズ"</item> - <item msgid="8573552194573068996">"解除"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml deleted file mode 100644 index 4b2ecfd..0000000 --- a/res/values-ko/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"알람"</string> - <string name="add_alarm" msgid="5976616107390962899">"알람 추가"</string> - <string name="delete_alarm" msgid="3457780990646206817">"알람 삭제"</string> - <string name="enable_alarm" msgid="7442658245797418741">"알람 사용"</string> - <string name="disable_alarm" msgid="6665528499886549648">"알람 사용 중지"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"알람이 삭제됩니다."</string> - <string name="show_clock" msgid="8358759982675616915">"시계 표시"</string> - <string name="hide_clock" msgid="3217727306480505694">"시계 숨기기"</string> - <string name="label" msgid="162189613902857319">"라벨"</string> - <string name="default_label" msgid="5590025289805630372">"알람"</string> - <string name="set_alarm" msgid="9148359866152726808">"알람 설정"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"진동"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"반복"</string> - <string name="alert" msgid="6539852766423700221">"벨소리"</string> - <string name="time" msgid="8067216534232296518">"시간"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"해제"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"<xliff:g id="MINUTES">%d</xliff:g>분 후 알람이 중지됨"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"다시 울림"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"<xliff:g id="MINUTES">%d</xliff:g>분 동안 알람 일시 중지"</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"지금부터 1분 미만 후로 알람이 설정됩니다."</item> - <item msgid="7110525731259629055">"지금부터 <xliff:g id="DAYS">%1$s</xliff:g> 후로 알람이 설정됩니다."</item> - <item msgid="7003982794086186185">"지금부터 <xliff:g id="HOURS">%2$s</xliff:g> 후로 알람이 설정됩니다."</item> - <item msgid="7311021123230077742">"지금부터 <xliff:g id="DAYS">%1$s</xliff:g> <xliff:g id="HOURS">%2$s</xliff:g> 후로 알람이 설정됩니다."</item> - <item msgid="8431715191823114872">"지금부터 <xliff:g id="MINUTES">%3$s</xliff:g> 후로 알람이 설정됩니다."</item> - <item msgid="3244151088673185428">"지금부터 <xliff:g id="DAYS">%1$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g> 후로 알람이 설정됩니다."</item> - <item msgid="3663661342600168814">"지금부터 <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g> 후로 알람이 설정됩니다."</item> - <item msgid="7779544127785487304">"지금부터 <xliff:g id="DAYS">%1$s</xliff:g> <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g> 후로 알람이 설정됩니다."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1일"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g>일"</string> - <string name="hour" msgid="2546819039651509323">"1시간"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g>시간"</string> - <string name="minute" msgid="2486157997434653710">"1분"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g>분"</string> - <string name="every_day" msgid="1058994798884544691">"매일"</string> - <string name="never" msgid="54104287800571769">"반복 안함"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"표시할 시계를 선택하세요."</string> - <string name="analog_gadget" msgid="1670505720837152766">"아날로그 시계"</string> - <string name="settings" msgid="5849739030579520686">"설정"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"무음 모드에서 알람 설정"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"무음 모드에서도 알람이 울리도록 설정"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"다시 울림 간격"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5분"</item> - <item msgid="5294206441496024610">"10분"</item> - <item msgid="2165904039211935470">"15분"</item> - <item msgid="7248236967714374250">"20분"</item> - <item msgid="738394723625179423">"25분"</item> - <item msgid="1180222611308391616">"30분"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"완료"</string> - <string name="revert" msgid="9100911171235162926">"되돌리기"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"알람 볼륨"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"알람 볼륨 설정"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"무음"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"알람을 일시 중지하거나 해제하려면 선택하세요."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g>(알람 일시 중지됨)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"<xliff:g id="TIME">%s</xliff:g>으로 알람이 설정되었습니다. 취소하려면 선택하세요."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"사이드 버튼 동작"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"알람이 울리는 동안 사이드 버튼을 눌렀을 때의 동작 설정"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"기본 벨소리 설정"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"없음"</item> - <item msgid="7111908302622811168">"다시 울림"</item> - <item msgid="8573552194573068996">"취소"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-nb/strings.xml b/res/values-nb/strings.xml deleted file mode 100644 index 044d1ff..0000000 --- a/res/values-nb/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Alarm"</string> - <string name="add_alarm" msgid="5976616107390962899">"Legg til alarm"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Slett alarm"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Aktiver alarm"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Deaktiver alarm"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Denne alarmen vil bli slettet."</string> - <string name="show_clock" msgid="8358759982675616915">"Vis klokke"</string> - <string name="hide_clock" msgid="3217727306480505694">"Skjul klokke"</string> - <string name="label" msgid="162189613902857319">"Etikett"</string> - <string name="default_label" msgid="5590025289805630372">"Alarm"</string> - <string name="set_alarm" msgid="9148359866152726808">"Sett alarm"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrer"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Gjenta"</string> - <string name="alert" msgid="6539852766423700221">"Ringetone"</string> - <string name="time" msgid="8067216534232296518">"Tidspunkt"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Slå av"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarmen ble slått av etter <xliff:g id="MINUTES">%d</xliff:g> minutter"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Slumre"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Slumrer i <xliff:g id="MINUTES">%d</xliff:g> minutter."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Alarmen ringer om mindre enn ett minutt."</item> - <item msgid="7110525731259629055">"Alarmen ringer om <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"Alarmen ringer om <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"Alarmen ringer om <xliff:g id="DAYS">%1$s</xliff:g> og <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"Alarmen ringer om <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"Alarmen ringer om <xliff:g id="DAYS">%1$s</xliff:g> og <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"Alarmen ringer om <xliff:g id="HOURS">%2$s</xliff:g> og <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"Alarmen ringer om <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> og <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dag"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dager"</string> - <string name="hour" msgid="2546819039651509323">"1 time"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> timer"</string> - <string name="minute" msgid="2486157997434653710">"1 minutt"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutter"</string> - <string name="every_day" msgid="1058994798884544691">"hver dag"</string> - <string name="never" msgid="54104287800571769">"Aldri"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Velg klokken som skal vises."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analog klokke"</string> - <string name="settings" msgid="5849739030579520686">"Innstillinger"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarm i stillemodus"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Spill alarm selv når telefonen er i stillemodus"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Slumrevarighet"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutter"</item> - <item msgid="5294206441496024610">"10 minutter"</item> - <item msgid="2165904039211935470">"15 minutter"</item> - <item msgid="7248236967714374250">"20 minutter"</item> - <item msgid="738394723625179423">"25 minutter"</item> - <item msgid="1180222611308391616">"30 minutter"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"OK"</string> - <string name="revert" msgid="9100911171235162926">"Tilbakestill"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Alarmvolum"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Still inn volumet på alarmer"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Stille"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Velg å slumre eller slå av alarmen"</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (slumre)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarmen er innstilt på <xliff:g id="TIME">%s</xliff:g>. Velg for å avbryte."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Sideknappfunksjon"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Angi hvilken funksjon du vil at sideknappene skal ha når de trykkes på under en alarm"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Angi standardringetone"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Ingen"</item> - <item msgid="7111908302622811168">"Slumre"</item> - <item msgid="8573552194573068996">"Slå av"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-nl/strings.xml b/res/values-nl/strings.xml deleted file mode 100644 index 9d7b21a..0000000 --- a/res/values-nl/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Wekker"</string> - <string name="add_alarm" msgid="5976616107390962899">"Alarm toevoegen"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Alarm verwijderen"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Alarm inschakelen"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Alarm uitschakelen"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Dit alarm wordt verwijderd."</string> - <string name="show_clock" msgid="8358759982675616915">"Klok weergeven"</string> - <string name="hide_clock" msgid="3217727306480505694">"Klok verbergen"</string> - <string name="label" msgid="162189613902857319">"Label"</string> - <string name="default_label" msgid="5590025289805630372">"Alarm"</string> - <string name="set_alarm" msgid="9148359866152726808">"Alarm instellen"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Trillen"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Herhalen"</string> - <string name="alert" msgid="6539852766423700221">"Beltoon"</string> - <string name="time" msgid="8067216534232296518">"Tijd"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Negeren"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarm gaat uit na <xliff:g id="MINUTES">%d</xliff:g> minuten"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Snooze"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Snooze is ingesteld op <xliff:g id="MINUTES">%d</xliff:g> minuten."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Dit alarm is ingesteld voor minder dan 1 minuut vanaf nu."</item> - <item msgid="7110525731259629055">"Dit alarm is ingesteld voor <xliff:g id="DAYS">%1$s</xliff:g> vanaf nu."</item> - <item msgid="7003982794086186185">"Dit alarm is ingesteld voor <xliff:g id="HOURS">%2$s</xliff:g> vanaf nu."</item> - <item msgid="7311021123230077742">"Dit alarm is ingesteld voor <xliff:g id="DAYS">%1$s</xliff:g> en <xliff:g id="HOURS">%2$s</xliff:g> vanaf nu."</item> - <item msgid="8431715191823114872">"Dit alarm is ingesteld voor <xliff:g id="MINUTES">%3$s</xliff:g> vanaf nu."</item> - <item msgid="3244151088673185428">"Dit alarm is ingesteld voor <xliff:g id="DAYS">%1$s</xliff:g> en <xliff:g id="MINUTES">%3$s</xliff:g> vanaf nu."</item> - <item msgid="3663661342600168814">"Dit alarm is ingesteld voor <xliff:g id="HOURS">%2$s</xliff:g> en <xliff:g id="MINUTES">%3$s</xliff:g> vanaf nu."</item> - <item msgid="7779544127785487304">"Dit alarm is ingesteld voor <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> en <xliff:g id="MINUTES">%3$s</xliff:g> vanaf nu."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dag"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dagen"</string> - <string name="hour" msgid="2546819039651509323">"1 uur"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> uur"</string> - <string name="minute" msgid="2486157997434653710">"1 minuut"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minuten"</string> - <string name="every_day" msgid="1058994798884544691">"elke dag"</string> - <string name="never" msgid="54104287800571769">"Nooit"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Selecteer een klok die u wilt weergeven."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analoge klok"</string> - <string name="settings" msgid="5849739030579520686">"Instellingen"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarm in stille modus"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Alarm afspelen, zelfs als stille modus van telefoon is geactiveerd"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Snooze-duur"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minuten"</item> - <item msgid="5294206441496024610">"10 minuten"</item> - <item msgid="2165904039211935470">"15 minuten"</item> - <item msgid="7248236967714374250">"20 minuten"</item> - <item msgid="738394723625179423">"25 minuten"</item> - <item msgid="1180222611308391616">"30 minuten"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Gereed"</string> - <string name="revert" msgid="9100911171235162926">"Terugzetten"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Alarmvolume"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Het volume van het alarm instellen"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Stil"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Selecteer of u snooze wilt selecteren voor dit alarm of het alarm wilt negeren."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (snooze aan)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarm is ingesteld voor <xliff:g id="TIME">%s</xliff:g>. Selecteer om te annuleren."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Gedrag van zijknop"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Instellen wat deze knoppen doen wanneer erop wordt gedrukt tijdens een alarm"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Standaardbeltoon instellen"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Geen"</item> - <item msgid="7111908302622811168">"Snooze"</item> - <item msgid="8573552194573068996">"Negeren"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml deleted file mode 100644 index e39289b..0000000 --- a/res/values-pl/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Budzik"</string> - <string name="add_alarm" msgid="5976616107390962899">"Dodaj alarm"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Usuń alarm"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Włącz alarm"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Wyłącz alarm"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Ten zegar zostanie usunięty."</string> - <string name="show_clock" msgid="8358759982675616915">"Pokaż zegar"</string> - <string name="hide_clock" msgid="3217727306480505694">"Ukryj zegar"</string> - <string name="label" msgid="162189613902857319">"Etykieta"</string> - <string name="default_label" msgid="5590025289805630372">"Alarm"</string> - <string name="set_alarm" msgid="9148359866152726808">"Ustaw alarm"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Wibracje"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Powtarzanie"</string> - <string name="alert" msgid="6539852766423700221">"Dzwonek"</string> - <string name="time" msgid="8067216534232296518">"Godzina"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Wyłącz"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarm jest wyciszany po <xliff:g id="MINUTES">%d</xliff:g> min."</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Drzemka"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Drzemka przez <xliff:g id="MINUTES">%d</xliff:g> min."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Ten alarm włączy się za mniej niż 1 minutę."</item> - <item msgid="7110525731259629055">"Ten alarm włączy się za <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"Ten alarm włączy się za <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"Ten alarm włączy się za <xliff:g id="DAYS">%1$s</xliff:g> i <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"Ten alarm włączy się za <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"Ten alarm włączy się za <xliff:g id="DAYS">%1$s</xliff:g> i <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"Ten alarm włączy się za <xliff:g id="HOURS">%2$s</xliff:g> i <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"Ten alarm włączy się za <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> i <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dzień"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dni"</string> - <string name="hour" msgid="2546819039651509323">"1 godz."</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> godz."</string> - <string name="minute" msgid="2486157997434653710">"1 min"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> min"</string> - <string name="every_day" msgid="1058994798884544691">"codziennie"</string> - <string name="never" msgid="54104287800571769">"Nigdy"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Wybierz wyświetlany zegar."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Zegar analogowy"</string> - <string name="settings" msgid="5849739030579520686">"Ustawienia"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarm w trybie cichym"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Odtwórz alarm, nawet gdy telefon jest w trybie cichym"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Czas uśpienia"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minut"</item> - <item msgid="5294206441496024610">"10 minut"</item> - <item msgid="2165904039211935470">"15 minut"</item> - <item msgid="7248236967714374250">"20 minut"</item> - <item msgid="738394723625179423">"25 minut"</item> - <item msgid="1180222611308391616">"30 minut"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Gotowe"</string> - <string name="revert" msgid="9100911171235162926">"Przywróć"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Głośność alarmu"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Ustaw głośność alarmów"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Cichy"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Wybierz, czy uśpić, czy też zamknąć ten alarm."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (uśpiony)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarm ustawiony na godzinę <xliff:g id="TIME">%s</xliff:g>. Wybierz, aby anulować."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Działanie bocznego przycisku"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Ustaw żądane działanie bocznych przycisków przy naciśnięciu podczas alarmu"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Ustaw dzwonek domyślny"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Brak"</item> - <item msgid="7111908302622811168">"Uśpij"</item> - <item msgid="8573552194573068996">"Wyłącz"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-pt-rPT/strings.xml b/res/values-pt-rPT/strings.xml deleted file mode 100644 index 01b3fed..0000000 --- a/res/values-pt-rPT/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Despertador"</string> - <string name="add_alarm" msgid="5976616107390962899">"Adicionar alarme"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Eliminar alarme"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Activar alarme"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Desactivar alarme"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Este alarme será eliminado."</string> - <string name="show_clock" msgid="8358759982675616915">"Mostrar relógio"</string> - <string name="hide_clock" msgid="3217727306480505694">"Ocultar relógio"</string> - <string name="label" msgid="162189613902857319">"Etiqueta"</string> - <string name="default_label" msgid="5590025289805630372">"Alarme"</string> - <string name="set_alarm" msgid="9148359866152726808">"Definir alarme"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrar"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Repetir"</string> - <string name="alert" msgid="6539852766423700221">"Toque"</string> - <string name="time" msgid="8067216534232296518">"Hora"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Ignorar"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarme silenciado após <xliff:g id="MINUTES">%d</xliff:g> minutos."</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Suspender"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Suspenso por <xliff:g id="MINUTES">%d</xliff:g> minutos."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Este alarme dispara daqui a menos de um minuto."</item> - <item msgid="7110525731259629055">"Este alarme dispara daqui a <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"Este alarme dispara daqui a <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"Este alarme dispara daqui a <xliff:g id="DAYS">%1$s</xliff:g> e <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"Este alarme dispara daqui a <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"Este alarme dispara daqui a <xliff:g id="DAYS">%1$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"Este alarme dispara daqui a <xliff:g id="HOURS">%2$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"Este alarme dispara daqui a <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dia"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dias"</string> - <string name="hour" msgid="2546819039651509323">"1 hora"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> horas"</string> - <string name="minute" msgid="2486157997434653710">"1 minuto"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutos"</string> - <string name="every_day" msgid="1058994798884544691">"todos os dias"</string> - <string name="never" msgid="54104287800571769">"Nunca"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Seleccione um relógio para visualizar."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Relógio analógico"</string> - <string name="settings" msgid="5849739030579520686">"Definições"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarme em modo silencioso"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Fazer soar o alarme mesmo com o telefone em modo silencioso"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Duração da suspensão"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutos"</item> - <item msgid="5294206441496024610">"10 minutos"</item> - <item msgid="2165904039211935470">"15 minutos"</item> - <item msgid="7248236967714374250">"20 minutos"</item> - <item msgid="738394723625179423">"25 minutos"</item> - <item msgid="1180222611308391616">"30 minutos"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Concluído"</string> - <string name="revert" msgid="9100911171235162926">"Reverter"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Volume do alarme"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Definir o volume dos alarmes"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Silencioso"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Seleccionar suspender ou ignorar este alarme."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (suspenso)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarme definido para a(s) <xliff:g id="TIME">%s</xliff:g>. Seleccione para cancelar."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Efeito do botão lateral"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Define a acção desses botões quando premidos durante um alarme"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Definir toque predefinido"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Nenhum"</item> - <item msgid="7111908302622811168">"Suspender"</item> - <item msgid="8573552194573068996">"Ignorar"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml deleted file mode 100644 index cbec1a0..0000000 --- a/res/values-pt/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Despertador"</string> - <string name="add_alarm" msgid="5976616107390962899">"Adicionar alarme"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Excluir alarme"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Ativar alarme"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Desativar alarme"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Este alarme será excluído."</string> - <string name="show_clock" msgid="8358759982675616915">"Mostrar relógio"</string> - <string name="hide_clock" msgid="3217727306480505694">"Ocultar relógio"</string> - <string name="label" msgid="162189613902857319">"Marcador"</string> - <string name="default_label" msgid="5590025289805630372">"Alarme"</string> - <string name="set_alarm" msgid="9148359866152726808">"Definir alarme"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrar"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Repetir"</string> - <string name="alert" msgid="6539852766423700221">"Toque"</string> - <string name="time" msgid="8067216534232296518">"Horário"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Encerrar"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarme silenciado após <xliff:g id="MINUTES">%d</xliff:g> minutos"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Colocar em modo de espera"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Em espera por <xliff:g id="MINUTES">%d</xliff:g> minutos."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Este alarme está definido para menos de um minuto a partir de agora."</item> - <item msgid="7110525731259629055">"Este alarme está definido para <xliff:g id="DAYS">%1$s</xliff:g> a partir de agora."</item> - <item msgid="7003982794086186185">"Este alarme está definido para <xliff:g id="HOURS">%2$s</xliff:g> a partir de agora."</item> - <item msgid="7311021123230077742">"Este alarme está definido para <xliff:g id="DAYS">%1$s</xliff:g> e <xliff:g id="HOURS">%2$s</xliff:g> a partir de agora."</item> - <item msgid="8431715191823114872">"Este alarme está definido para <xliff:g id="MINUTES">%3$s</xliff:g> a partir de agora."</item> - <item msgid="3244151088673185428">"Este alarme está definido para <xliff:g id="DAYS">%1$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g> a partir de agora."</item> - <item msgid="3663661342600168814">"Este alarme está definido para <xliff:g id="HOURS">%2$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g> a partir de agora."</item> - <item msgid="7779544127785487304">"Este alarme está definido para <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> e <xliff:g id="MINUTES">%3$s</xliff:g> a partir de agora."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dia"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dias"</string> - <string name="hour" msgid="2546819039651509323">"1 hora"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> horas"</string> - <string name="minute" msgid="2486157997434653710">"1 minuto"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minutos"</string> - <string name="every_day" msgid="1058994798884544691">"todos os dias"</string> - <string name="never" msgid="54104287800571769">"Nunca"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Selecione um relógio para exibir."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Relógio analógico"</string> - <string name="settings" msgid="5849739030579520686">"Configurações"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Modo silencioso"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Tocar o alarme mesmo quando o telefone estiver no modo silencioso"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Modo de espera"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minutos"</item> - <item msgid="5294206441496024610">"10 minutos"</item> - <item msgid="2165904039211935470">"15 minutos"</item> - <item msgid="7248236967714374250">"20 minutos"</item> - <item msgid="738394723625179423">"25 minutos"</item> - <item msgid="1180222611308391616">"30 minutos"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Concluído"</string> - <string name="revert" msgid="9100911171235162926">"Reverter"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Volume do alarme"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Definir o volume dos alarmes"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Silencioso"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Selecione para colocar esse alarme em modo de espera ou descartá-lo."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (em modo de espera)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarme definido para <xliff:g id="TIME">%s</xliff:g>. Selecione para cancelar."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Comportamento do botão lateral"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Defina o comportamento desejado dos botões laterais quando pressionados durante um alarme"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Definir toque padrão"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Nenhum"</item> - <item msgid="7111908302622811168">"Colocar em modo de espera"</item> - <item msgid="8573552194573068996">"Descartar"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml deleted file mode 100644 index d250dbb..0000000 --- a/res/values-ru/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Будильник"</string> - <string name="add_alarm" msgid="5976616107390962899">"Добавить будильник"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Удалить будильник"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Включить будильник"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Отключить будильник"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Сигнал будет удален."</string> - <string name="show_clock" msgid="8358759982675616915">"Показать часы"</string> - <string name="hide_clock" msgid="3217727306480505694">"Спрятать часы"</string> - <string name="label" msgid="162189613902857319">"Описание"</string> - <string name="default_label" msgid="5590025289805630372">"Будильник"</string> - <string name="set_alarm" msgid="9148359866152726808">"Установить будильник"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Вибросигнал"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Дни недели"</string> - <string name="alert" msgid="6539852766423700221">"Звук сигнала"</string> - <string name="time" msgid="8067216534232296518">"Время"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Отключить"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Будильник звонил <xliff:g id="MINUTES">%d</xliff:g> мин."</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Отложить"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Повтор сигнала через <xliff:g id="MINUTES">%d</xliff:g> мин."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"До срабатывания будильника осталось меньше одной минуты."</item> - <item msgid="7110525731259629055">"Будильник зазвонит через <xliff:g id="DAYS">%1$s</xliff:g>."</item> - <item msgid="7003982794086186185">"Будильник зазвонит через <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="7311021123230077742">"Будильник зазвонит через <xliff:g id="DAYS">%1$s</xliff:g> и <xliff:g id="HOURS">%2$s</xliff:g>."</item> - <item msgid="8431715191823114872">"Будильник зазвонит через <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3244151088673185428">"Будильник зазвонит через <xliff:g id="DAYS">%1$s</xliff:g> и <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="3663661342600168814">"Будильник зазвонит через <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - <item msgid="7779544127785487304">"Будильник зазвонит через <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> и <xliff:g id="MINUTES">%3$s</xliff:g>."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 день"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> дн."</string> - <string name="hour" msgid="2546819039651509323">"за 1 час"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> ч."</string> - <string name="minute" msgid="2486157997434653710">"за 1 минуту"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> мин."</string> - <string name="every_day" msgid="1058994798884544691">"каждый день"</string> - <string name="never" msgid="54104287800571769">"Не выбрано"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Выберите вид часов."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Часы со стрелками"</string> - <string name="settings" msgid="5849739030579520686">"Настройки"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Включать всегда"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Подавать сигнал, даже если телефон работает в режиме без звука"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Интервал повтора сигнала"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 минут"</item> - <item msgid="5294206441496024610">"10 минут"</item> - <item msgid="2165904039211935470">"15 минут"</item> - <item msgid="7248236967714374250">"20 минут"</item> - <item msgid="738394723625179423">"25 минут"</item> - <item msgid="1180222611308391616">"30 минут"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Готово"</string> - <string name="revert" msgid="9100911171235162926">"Отмена"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Громкость будильника"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Настройка громкости будильника"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Без звука"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Нажмите, чтобы прервать или отключить."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (отложено)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Будильник зазвонит в <xliff:g id="TIME">%s</xliff:g>. Отменить?"</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Функции боковой кнопки"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Настройка функции боковой кнопки при ее нажатии во время звонка будильника"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Установить мелодию звонка по умолчанию"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Нет"</item> - <item msgid="7111908302622811168">"Отложить"</item> - <item msgid="8573552194573068996">"Отключить"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-sv/strings.xml b/res/values-sv/strings.xml deleted file mode 100644 index ff0e49c..0000000 --- a/res/values-sv/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Alarm"</string> - <string name="add_alarm" msgid="5976616107390962899">"Lägg till alarm"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Ta bort alarm"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Aktivera alarmet"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Inaktivera alarmet"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Alarmet tas bort."</string> - <string name="show_clock" msgid="8358759982675616915">"Visa klocka"</string> - <string name="hide_clock" msgid="3217727306480505694">"Dölj klocka"</string> - <string name="label" msgid="162189613902857319">"Etikett"</string> - <string name="default_label" msgid="5590025289805630372">"Alarm"</string> - <string name="set_alarm" msgid="9148359866152726808">"Ställ alarm"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Vibrera"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Upprepa"</string> - <string name="alert" msgid="6539852766423700221">"Ringsignal"</string> - <string name="time" msgid="8067216534232296518">"Tid"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Ignorera"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"Alarmet tystnar efter <xliff:g id="MINUTES">%d</xliff:g> minuter"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Snooze"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"Snoozar i <xliff:g id="MINUTES">%d</xliff:g> minuter."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Alarmet ringer om mindre än 1 minut från och med nu."</item> - <item msgid="7110525731259629055">"Alarmet ringer om <xliff:g id="DAYS">%1$s</xliff:g> från och med nu."</item> - <item msgid="7003982794086186185">"Alarmet ringer om <xliff:g id="HOURS">%2$s</xliff:g> från och med nu."</item> - <item msgid="7311021123230077742">"Alarmet ringer om <xliff:g id="DAYS">%1$s</xliff:g> och <xliff:g id="HOURS">%2$s</xliff:g> från och med nu."</item> - <item msgid="8431715191823114872">"Alarmet ringer om <xliff:g id="MINUTES">%3$s</xliff:g> från och med nu."</item> - <item msgid="3244151088673185428">"Alarmet ringer om <xliff:g id="DAYS">%1$s</xliff:g> och <xliff:g id="MINUTES">%3$s</xliff:g> från och med nu."</item> - <item msgid="3663661342600168814">"Alarmet ringer om <xliff:g id="HOURS">%2$s</xliff:g> och <xliff:g id="MINUTES">%3$s</xliff:g> från och med nu."</item> - <item msgid="7779544127785487304">"Alarmet ringer om <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> och <xliff:g id="MINUTES">%3$s</xliff:g> från och med nu."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 dag"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> dagar"</string> - <string name="hour" msgid="2546819039651509323">"1 timme"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> timmar"</string> - <string name="minute" msgid="2486157997434653710">"1 minut"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> minuter"</string> - <string name="every_day" msgid="1058994798884544691">"Varje dag"</string> - <string name="never" msgid="54104287800571769">"Aldrig"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Välj vilken klocka du vill visa."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analog klocka"</string> - <string name="settings" msgid="5849739030579520686">"Inställningar"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Alarm i tyst läge"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Alarm ringer även när telefonen är i tyst läge"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Längd på snooze"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 minuter"</item> - <item msgid="5294206441496024610">"10 minuter"</item> - <item msgid="2165904039211935470">"15 minuter"</item> - <item msgid="7248236967714374250">"20 minuter"</item> - <item msgid="738394723625179423">"25 minuter"</item> - <item msgid="1180222611308391616">"30 minuter"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Färdig"</string> - <string name="revert" msgid="9100911171235162926">"Återgå"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Alarmvolym"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Ställ in volym för alarmen"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Tyst"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Snooza eller ta bort alarmet permanent."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (snoozat)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"Alarmet ringer <xliff:g id="TIME">%s</xliff:g>. Välj om du vill avbryta."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Sidoknappens funktion"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Ange önskad funktion för sidoknappen under alarm"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Ställ in standardringsignal"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Ingen"</item> - <item msgid="7111908302622811168">"Snooze"</item> - <item msgid="8573552194573068996">"Ta bort permanent"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml deleted file mode 100644 index 4057a01..0000000 --- a/res/values-tr/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"Çalar Saat"</string> - <string name="add_alarm" msgid="5976616107390962899">"Alarm ekle"</string> - <string name="delete_alarm" msgid="3457780990646206817">"Alarmı sil"</string> - <string name="enable_alarm" msgid="7442658245797418741">"Alarmı etkinleştir"</string> - <string name="disable_alarm" msgid="6665528499886549648">"Alarmı devre dışı bırak"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"Bu alarm silinecek."</string> - <string name="show_clock" msgid="8358759982675616915">"Saati göster"</string> - <string name="hide_clock" msgid="3217727306480505694">"Saati gizle"</string> - <string name="label" msgid="162189613902857319">"Etiket"</string> - <string name="default_label" msgid="5590025289805630372">"Alarm"</string> - <string name="set_alarm" msgid="9148359866152726808">"Alarmı ayarla"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"Titreşim"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"Tekrarla"</string> - <string name="alert" msgid="6539852766423700221">"Zil sesi"</string> - <string name="time" msgid="8067216534232296518">"Saat"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"Kapat"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"<xliff:g id="MINUTES">%d</xliff:g> dakika sonra alarm susturuldu"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"Ertele"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"<xliff:g id="MINUTES">%d</xliff:g> dakika duraklatılıyor."</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"Bu alarm, şu andan itibaren bir dakikadan kısa süre içinde çalacaktır."</item> - <item msgid="7110525731259629055">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="DAYS">%1$s</xliff:g> var."</item> - <item msgid="7003982794086186185">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="HOURS">%2$s</xliff:g> var."</item> - <item msgid="7311021123230077742">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="DAYS">%1$s</xliff:g> ve <xliff:g id="HOURS">%2$s</xliff:g> var."</item> - <item msgid="8431715191823114872">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="MINUTES">%3$s</xliff:g> var."</item> - <item msgid="3244151088673185428">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="DAYS">%1$s</xliff:g> ve <xliff:g id="MINUTES">%3$s</xliff:g> var."</item> - <item msgid="3663661342600168814">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="HOURS">%2$s</xliff:g> ve <xliff:g id="MINUTES">%3$s</xliff:g> var."</item> - <item msgid="7779544127785487304">"Bu alarmın çalmasına şu andan itibaren <xliff:g id="DAYS">%1$s</xliff:g>, <xliff:g id="HOURS">%2$s</xliff:g> ve <xliff:g id="MINUTES">%3$s</xliff:g> var."</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 gün"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> gün"</string> - <string name="hour" msgid="2546819039651509323">"1 saat"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> saat"</string> - <string name="minute" msgid="2486157997434653710">"1 dakika"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> dakika"</string> - <string name="every_day" msgid="1058994798884544691">"her gün"</string> - <string name="never" msgid="54104287800571769">"Hiçbir zaman"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"Görüntülenecek bir saat seçin."</string> - <string name="analog_gadget" msgid="1670505720837152766">"Analog saat"</string> - <string name="settings" msgid="5849739030579520686">"Ayarlar"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"Sessiz modda alarm çal"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"Telefon sessiz moddayken bile alarm çal"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"Erteleme süresi"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 dakika"</item> - <item msgid="5294206441496024610">"10 dakika"</item> - <item msgid="2165904039211935470">"15 dakika"</item> - <item msgid="7248236967714374250">"20 dakika"</item> - <item msgid="738394723625179423">"25 dakika"</item> - <item msgid="1180222611308391616">"30 dakika"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"Bitti"</string> - <string name="revert" msgid="9100911171235162926">"Geri Döndür"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"Alarm ses düzeyi"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"Alarmların ses düzeyini ayarla"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"Sessiz"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"Ertelemek veya alarmı kapatmak için seçin."</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (ertelendi)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"<xliff:g id="TIME">%s</xliff:g> için alarm ayarlandı. İptal etmek için seçin."</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"Yan düğme işlevi"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"Alarm sırasında basıldığında istenen yan düğme işlevini ayarlayın"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"Varsayılan zil sesini ayarlayın"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"Yok"</item> - <item msgid="7111908302622811168">"Ertele"</item> - <item msgid="8573552194573068996">"Kapat"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml deleted file mode 100644 index acb5517..0000000 --- a/res/values-zh-rCN/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"闹钟"</string> - <string name="add_alarm" msgid="5976616107390962899">"添加闹钟"</string> - <string name="delete_alarm" msgid="3457780990646206817">"取消闹钟"</string> - <string name="enable_alarm" msgid="7442658245797418741">"启用闹钟"</string> - <string name="disable_alarm" msgid="6665528499886549648">"停用闹钟"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"将会取消此闹钟。"</string> - <string name="show_clock" msgid="8358759982675616915">"显示时钟"</string> - <string name="hide_clock" msgid="3217727306480505694">"隐藏时钟"</string> - <string name="label" msgid="162189613902857319">"标签"</string> - <string name="default_label" msgid="5590025289805630372">"闹钟"</string> - <string name="set_alarm" msgid="9148359866152726808">"设置闹钟"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"振动"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"重复"</string> - <string name="alert" msgid="6539852766423700221">"铃声"</string> - <string name="time" msgid="8067216534232296518">"时间"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"取消"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"闹钟响铃时间为 <xliff:g id="MINUTES">%d</xliff:g> 分钟"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"暂停再响"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"暂停 <xliff:g id="MINUTES">%d</xliff:g> 分钟。"</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"已将此闹钟设置为从现在起不到 1 分钟后提醒。"</item> - <item msgid="7110525731259629055">"已将此闹钟设置为从现在起 <xliff:g id="DAYS">%1$s</xliff:g>后再提醒。"</item> - <item msgid="7003982794086186185">"已将此闹钟设置为从现在起 <xliff:g id="HOURS">%2$s</xliff:g>后再提醒。"</item> - <item msgid="7311021123230077742">"已将此闹钟设置为从现在起 <xliff:g id="DAYS">%1$s</xliff:g> <xliff:g id="HOURS">%2$s</xliff:g>后再提醒。"</item> - <item msgid="8431715191823114872">"已将此闹钟设置为从现在起 <xliff:g id="MINUTES">%3$s</xliff:g>后再提醒。"</item> - <item msgid="3244151088673185428">"已将此闹钟设置为从现在起 <xliff:g id="DAYS">%1$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g>后再提醒。"</item> - <item msgid="3663661342600168814">"已将此闹钟设置为从现在起 <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g>后再提醒。"</item> - <item msgid="7779544127785487304">"已将该闹钟设置为从现在起 <xliff:g id="DAYS">%1$s</xliff:g> <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g>后再提醒。"</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 天"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> 天"</string> - <string name="hour" msgid="2546819039651509323">"1 小时"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> 小时"</string> - <string name="minute" msgid="2486157997434653710">"1 分钟"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> 分钟"</string> - <string name="every_day" msgid="1058994798884544691">"每天"</string> - <string name="never" msgid="54104287800571769">"一律不"</string> - <string name="day_concat" msgid="971998564991636532">", "</string> - <string name="clock_instructions" msgid="3118560284915857690">"选择要显示的时钟。"</string> - <string name="analog_gadget" msgid="1670505720837152766">"模拟时钟"</string> - <string name="settings" msgid="5849739030579520686">"设置"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"静音模式下闹钟响"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"手机处于静音模式时,闹钟仍会响"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"再响间隔"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 分钟"</item> - <item msgid="5294206441496024610">"10 分钟"</item> - <item msgid="2165904039211935470">"15 分钟"</item> - <item msgid="7248236967714374250">"20 分钟"</item> - <item msgid="738394723625179423">"25 分钟"</item> - <item msgid="1180222611308391616">"30 分钟"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"完成"</string> - <string name="revert" msgid="9100911171235162926">"还原"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"闹钟音量"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"设置闹钟音量"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"静音"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"选择暂停或关闭此闹钟。"</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g>(已暂停)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"已将闹钟设置为从现在起 <xliff:g id="TIME">%s</xliff:g>后再提醒。选中可以取消。"</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"侧边按钮功用"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"设置侧边按钮在闹钟启动时的功用"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"设置默认铃声"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"无"</item> - <item msgid="7111908302622811168">"暂停"</item> - <item msgid="8573552194573068996">"关闭"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values-zh-rTW/strings.xml b/res/values-zh-rTW/strings.xml deleted file mode 100644 index 3351772..0000000 --- a/res/values-zh-rTW/strings.xml +++ /dev/null @@ -1,100 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. - --> - -<resources xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <string name="app_label" msgid="6642875149600019623">"鬧鐘"</string> - <string name="add_alarm" msgid="5976616107390962899">"新增鬧鐘"</string> - <string name="delete_alarm" msgid="3457780990646206817">"刪除鬧鐘"</string> - <string name="enable_alarm" msgid="7442658245797418741">"啟用鬧鐘"</string> - <string name="disable_alarm" msgid="6665528499886549648">"停用鬧鐘"</string> - <string name="delete_alarm_confirm" msgid="4237696873219106907">"刪除此鬧鐘?"</string> - <string name="show_clock" msgid="8358759982675616915">"顯示時鐘"</string> - <string name="hide_clock" msgid="3217727306480505694">"隱藏時鐘"</string> - <string name="label" msgid="162189613902857319">"標籤"</string> - <string name="default_label" msgid="5590025289805630372">"鬧鐘"</string> - <string name="set_alarm" msgid="9148359866152726808">"設定鬧鐘"</string> - <string name="alarm_vibrate" msgid="3476686921490362230">"震動"</string> - <string name="alarm_repeat" msgid="7242985466344233206">"重複"</string> - <string name="alert" msgid="6539852766423700221">"鈴聲"</string> - <string name="time" msgid="8067216534232296518">"時間"</string> - <string name="alarm_alert_dismiss_text" msgid="4942914605480888820">"關閉"</string> - <string name="alarm_alert_alert_silenced" msgid="7918075929961104202">"鬧鐘 <xliff:g id="MINUTES">%d</xliff:g> 分鐘後靜音"</string> - <string name="alarm_alert_snooze_text" msgid="1774416052207651584">"貪睡"</string> - <string name="alarm_alert_snooze_set" msgid="656470966696912087">"再貪睡 <xliff:g id="MINUTES">%d</xliff:g> 分鐘。"</string> - <string-array name="alarm_set"> - <item msgid="5163476010406761625">"已將此鬧鐘設為 1 分鐘後啟動。"</item> - <item msgid="7110525731259629055">"已將此鬧鐘設為 <xliff:g id="DAYS">%1$s</xliff:g>後啟動。"</item> - <item msgid="7003982794086186185">"已將此鬧鐘設為 <xliff:g id="HOURS">%2$s</xliff:g>後啟動。"</item> - <item msgid="7311021123230077742">"已將此鬧鐘設為 <xliff:g id="DAYS">%1$s</xliff:g>又 <xliff:g id="HOURS">%2$s</xliff:g>後啟動。"</item> - <item msgid="8431715191823114872">"已將此鬧鐘設為 <xliff:g id="MINUTES">%3$s</xliff:g>後啟動。"</item> - <item msgid="3244151088673185428">"已將此鬧鐘設為 <xliff:g id="DAYS">%1$s</xliff:g>又 <xliff:g id="MINUTES">%3$s</xliff:g>後啟動。"</item> - <item msgid="3663661342600168814">"已將此鬧鐘設為 <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g>後啟動。"</item> - <item msgid="7779544127785487304">"已將此鬧鐘設為 <xliff:g id="DAYS">%1$s</xliff:g>又 <xliff:g id="HOURS">%2$s</xliff:g> <xliff:g id="MINUTES">%3$s</xliff:g>後啟動。"</item> - </string-array> - <string name="day" msgid="7984755014526510295">"1 天"</string> - <string name="days" msgid="2070509222727852210">"<xliff:g id="DAYS">%s</xliff:g> 天"</string> - <string name="hour" msgid="2546819039651509323">"1 小時"</string> - <string name="hours" msgid="2071487018566991613">"<xliff:g id="HOURS">%s</xliff:g> 小時"</string> - <string name="minute" msgid="2486157997434653710">"1 分鐘"</string> - <string name="minutes" msgid="6115838729146292526">"<xliff:g id="MINUTES">%s</xliff:g> 分鐘"</string> - <string name="every_day" msgid="1058994798884544691">"每天"</string> - <string name="never" msgid="54104287800571769">"永不"</string> - <string name="day_concat" msgid="971998564991636532">"、 "</string> - <string name="clock_instructions" msgid="3118560284915857690">"選取要顯示的時鐘。"</string> - <string name="analog_gadget" msgid="1670505720837152766">"類比時鐘"</string> - <string name="settings" msgid="5849739030579520686">"設定"</string> - <string name="alarm_in_silent_mode_title" msgid="3892612644543516705">"靜音模式下的鬧鐘"</string> - <string name="alarm_in_silent_mode_summary" msgid="6042500263899922832">"手機處於靜音模式時,鬧鐘仍會響"</string> - <string name="snooze_duration_title" msgid="1471249885139952670">"貪睡時間"</string> - <string-array name="snooze_duration_entries"> - <item msgid="8337408933053603125">"5 分鐘"</item> - <item msgid="5294206441496024610">"10 分鐘"</item> - <item msgid="2165904039211935470">"15 分鐘"</item> - <item msgid="7248236967714374250">"20 分鐘"</item> - <item msgid="738394723625179423">"25 分鐘"</item> - <item msgid="1180222611308391616">"30 分鐘"</item> - </string-array> - <string-array name="snooze_duration_values"> - <item msgid="3655014754453084122">"5"</item> - <item msgid="8939029597449573449">"10"</item> - <item msgid="3922647341176353315">"15"</item> - <item msgid="5821804105985044459">"20"</item> - <item msgid="6048861883552402852">"25"</item> - <item msgid="2740866721232379791">"30"</item> - </string-array> - <string name="done" msgid="6509722361933858451">"完成"</string> - <string name="revert" msgid="9100911171235162926">"復原"</string> - <string name="alarm_volume_title" msgid="8506245173912428522">"鬧鐘音量"</string> - <string name="alarm_volume_summary" msgid="8957440373896242438">"設定鬧鐘音量"</string> - <string name="silent_alarm_summary" msgid="8605302849408279221">"靜音"</string> - <string name="alarm_notify_text" msgid="4146350965933990093">"選取貪睡功能或關閉此鬧鐘。"</string> - <string name="alarm_notify_snooze_label" msgid="5404083762646377829">"<xliff:g id="LABEL">%s</xliff:g> (貪睡)"</string> - <string name="alarm_notify_snooze_text" msgid="8004830999152609519">"鬧鐘設定在 <xliff:g id="TIME">%s</xliff:g>,選取即可取消"</string> - <string name="volume_button_setting_title" msgid="1892885285888644234">"側邊按鈕功用"</string> - <string name="volume_button_setting_summary" msgid="1594641247799573198">"設定側邊按鈕在鬧鐘啟動時的功用"</string> - <string name="default_ringtone_setting_title" msgid="4549726190682964245">"設定預設鈴聲"</string> - <string-array name="volume_button_setting_entries"> - <item msgid="4520420953175098625">"無"</item> - <item msgid="7111908302622811168">"貪睡"</item> - <item msgid="8573552194573068996">"關閉"</item> - </string-array> - <string-array name="volume_button_setting_values"> - <item msgid="4851033050639608752">"0"</item> - <item msgid="3204893476515513084">"1"</item> - <item msgid="7687709558968154577">"2"</item> - </string-array> -</resources> diff --git a/res/values/colors.xml b/res/values/colors.xml deleted file mode 100644 index e61b6c3..0000000 --- a/res/values/colors.xml +++ /dev/null @@ -1,24 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<resources> - <color name="ampm_off">#ff404040</color> - <color name="ampm_on">#ffffffff</color> - - <color name="white">#ffffffff</color> - <color name="red">#ffee0000</color> - <color name="ltgrey">#ffe0e0e0</color> -</resources> diff --git a/res/values/strings.xml b/res/values/strings.xml deleted file mode 100644 index 47251f8..0000000 --- a/res/values/strings.xml +++ /dev/null @@ -1,226 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2007 The Android Open Source 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. ---> - -<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <!-- --> - <!-- Label shown on launcher icon --> - <string name="app_label">Alarm Clock</string> - - <!-- Menu item on Alarm Clock screen: Add alarm --> - <string name="add_alarm">Add alarm</string> - - <!-- Context Menu Item on Alarm Settings screen: Delete alarm --> - <string name="delete_alarm">Delete alarm</string> - - <!-- Context Menu Item on Alarm Settings screen: Enable alarm --> - <string name="enable_alarm">Enable alarm</string> - - <!-- Context Menu Item on Alarm Settings screen: Disable alarm --> - <string name="disable_alarm">Disable alarm</string> - - <!-- Delete alarm confirmation dialog message. --> - <string name="delete_alarm_confirm">This alarm will be deleted.</string> - - <!-- Menu item on Alarm Clock screen: Show clock --> - <string name="show_clock">Show clock</string> - - <!-- Menu item on Alarm Clock screen: Hide clock --> - <string name="hide_clock">Hide clock</string> - - <!-- Setting label on Set alarm screen: Label --> - <string name="label">Label</string> - - <!-- Default label to display for an alarm --> - <string name="default_label">Alarm</string> - - <!-- Preference category on Alarm Settings screen: Set alarm --> - <string name="set_alarm">Set alarm</string> - - <!-- Setting labels on Set alarm screen: Vibration on or off --> - <string name="alarm_vibrate">Vibrate</string> - - <!-- Setting labels on Set alarm screen: Repeat --> - <string name="alarm_repeat">Repeat</string> - - <!-- Setting labels on Set alarm screen: Select alarm ringtone --> - <string name="alert">Ringtone</string> - - <!-- Setting labels on Set alarm screen: Set time --> - <string name="time">Time</string> - - <!-- Button labels on the alarm dialog: Dismiss --> - <string name="alarm_alert_dismiss_text">Dismiss</string> - - <!-- Alarm Alert screen: this message is shown after an alarm rung - unattended for a number of minutes. It tells the user that - the alarm has been silenced.--> - <string name="alarm_alert_alert_silenced">Alarm silenced after <xliff:g id="minutes">%d</xliff:g> minutes</string> - - <!-- Button labels on the alarm dialog: Snooze --> - <string name="alarm_alert_snooze_text">Snooze</string> - - <!-- Toast that appears after Alarm is snoozed from the Alarm - dialog. Says the alarm will snooze for xxx minutes. --> - <string name="alarm_alert_snooze_set">Snoozing for <xliff:g id="minutes">%d</xliff:g> minutes.</string> - - <!-- 0: nothing - 1: days - 2: hours - 3: days hours - 4: minutes - 5: days minutes - 6: hours minutes - 7: days hours minutes - --><skip /> - - <!-- Alarm confirmation toast: Describes how long from now until - alarm fires --> - <string-array name="alarm_set"> - <item>This alarm is set for less than 1 minute from now.</item> - <item>This alarm is set for <xliff:g id="DAYS" example="2 days">%1$s</xliff:g> from now.</item> - <item>This alarm is set for <xliff:g id="HOURS" example="2 hours">%2$s</xliff:g> from now.</item> - <item>This alarm is set for <xliff:g id="DAYS" example="2 days">%1$s</xliff:g> and <xliff:g id="HOURS" example="2 hours">%2$s</xliff:g> from now.</item> - <item>This alarm is set for <xliff:g id="MINUTES" example="2 minutes">%3$s</xliff:g> from now.</item> - <item>This alarm is set for <xliff:g id="DAYS" example="2 days">%1$s</xliff:g> and <xliff:g id="MINUTES" example="2 minutes">%3$s</xliff:g> from now.</item> - <item>This alarm is set for <xliff:g id="HOURS" example="2 hours">%2$s</xliff:g> and <xliff:g id="MINUTES" example="2 minutes">%3$s</xliff:g> from now.</item> - <item>This alarm is set for <xliff:g id="DAYS" example="2 days">%1$s</xliff:g>, <xliff:g id="HOURS" example="2 hours">%2$s</xliff:g>, and <xliff:g id="MINUTES" example="2 minutes">%3$s</xliff:g> from now.</item> - </string-array> - - <!-- Alarm confirmation toast: singular day --> - <string name="day">"1 day"</string> - - <!-- Alarm confirmation toast: plural days --> - <string name="days">"<xliff:g id="days">%s</xliff:g> days"</string> - - <!-- Alarm confirmation toast: singular hour --> - <string name="hour">1 hour</string> - - <!-- Alarm confirmation toast: plural hours --> - <string name="hours"><xliff:g id="hours">%s</xliff:g> hours</string> - - <!-- Alarm confirmation toast: singular minute --> - <string name="minute">"1 minute"</string> - - <!-- Alarm confirmation toast: plural minutes --> - <string name="minutes">"<xliff:g id="minutes">%s</xliff:g> minutes"</string> - - <!-- Repeat options that appear under an alarm on main Alarm Clock - screen to identify repetition schedule: special case for when - the alarm is set to repeat every day --> - <string name="every_day">every day</string> - - <!-- Repeat options that appear under an alarm on main Alarm Clock - screen to identify repetition schedule: special case for when - the alarm is set to never repeat --> - <string name="never">Never</string> - - <!-- Repeat options that appear under an alarm on main Alarm Clock - screen to identify repetition schedule: concatenate days with - this character, i.e. "Mon, Tue, Wed" --> - <string name="day_concat">", "</string> - - <!-- Appears at the top of the Clock Picker screen: Tell user to - select a clock to display --> - <string name="clock_instructions">Select a clock to display.</string> - - <!-- Label for analog clock gadget, shown in list of all gadgets --> - <string name="analog_gadget">Analog clock</string> - - <!-- Menu item title for general Alarm Clock Settings --> - <string name="settings">Settings</string> - - <!-- Setting title for whether the alarm should play in silent mode. - Usually, silent mode only affects the ringer, but this setting - will make the alarms respect silent mode too. --> - <string name="alarm_in_silent_mode_title">Alarm in silent mode</string> - - <!-- Setting summary for whether the alarm should play in silent mode. --> - <string name="alarm_in_silent_mode_summary">Play alarm even when the phone is in silent mode</string> - - <!-- Setting title for changing the snooze duration. --> - <string name="snooze_duration_title">Snooze duration</string> - - <!-- Entries listed in the ListPreference when invoking the snooze duration - preference. --> - <string-array name="snooze_duration_entries"> - <item>5 minutes</item> - <item>10 minutes</item> - <item>15 minutes</item> - <item>20 minutes</item> - <item>25 minutes</item> - <item>30 minutes</item> - </string-array> - - <!-- Values that are retrieved from the ListPreference. These must match - the snooze_duration_entries above. --> - <string-array name="snooze_duration_values"> - <item>5</item> - <item>10</item> - <item>15</item> - <item>20</item> - <item>25</item> - <item>30</item> - </string-array> - - <!-- Done button when editing an alarm. --> - <string name="done">Done</string> - - <!-- Revert button when editing an alarm. --> - <string name="revert">Revert</string> - - <!-- Setting title for changing the alarm volume. --> - <string name="alarm_volume_title">Alarm volume</string> - - <!-- Setting summary for changing the alarm volume. --> - <string name="alarm_volume_summary">Set the volume of alarms</string> - - <!-- Summary for the alarm preference when silent is chosen. --> - <string name="silent_alarm_summary">Silent</string> - - <!-- Text to display in the small text of the notification --> - <string name="alarm_notify_text">Select to snooze or dismiss this alarm.</string> - - <!-- Text to display in the notification ticker and label --> - <string name="alarm_notify_snooze_label"><xliff:g id="label">%s</xliff:g> (snoozed)</string> - - <!-- Text to display in the notification when the alarm has been snoozed --> - <string name="alarm_notify_snooze_text">Alarm set for <xliff:g id="time">%s</xliff:g>. Select to cancel.</string> - - <!-- Title of the setting to change the volume/camera button behavior. --> - <string name="volume_button_setting_title">Side button behavior</string> - - <!-- The summary of the side button setting. --> - <string name="volume_button_setting_summary">Set the desired behavior of the side buttons when pressed during an alarm</string> - - <!-- Title of the ringtone setting. --> - <string name="default_ringtone_setting_title">Set default ringtone</string> - - <!-- Entries listed in the setting for the side-button action. --> - <string-array name="volume_button_setting_entries"> - <item>None</item> - <item>Snooze</item> - <item>Dismiss</item> - </string-array> - - <!-- Values for the side-button setting. --> - <string-array name="volume_button_setting_values"> - <item>0</item> - <item>1</item> - <item>2</item> - </string-array> -</resources> - - diff --git a/res/values/styles.xml b/res/values/styles.xml deleted file mode 100644 index 4117438..0000000 --- a/res/values/styles.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<resources> - <style name="clock"> - <item name="android:layout_width">match_parent</item> - <item name="android:layout_height">match_parent</item> - <item name="android:layout_gravity">center_horizontal</item> - </style> - - <!-- This theme is similar to the Theme.Dialog.Alert but does not rely on a - non-public resource. --> - <style name="alarm_alert" parent="android:Theme.Dialog"> - <item name="android:windowBackground">@android:color/transparent</item> - </style> -</resources> diff --git a/res/xml/alarm_prefs.xml b/res/xml/alarm_prefs.xml deleted file mode 100644 index ff672e1..0000000 --- a/res/xml/alarm_prefs.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2008 The Android Open Source 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. ---> - -<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" - android:title="@string/set_alarm"> - <Preference android:key="time" - android:persistent="false" - android:title="@string/time"/> - <com.android.alarmclock.AlarmPreference - android:key="alarm" - android:title="@string/alert" - android:ringtoneType="alarm" - android:persistent="false" - android:showDefault="false" - android:showSilent="true" /> - <CheckBoxPreference android:key="vibrate" - android:persistent="false" - android:title="@string/alarm_vibrate"/> - <com.android.alarmclock.RepeatPreference - android:persistent="false" - android:key="setRepeat" - android:title="@string/alarm_repeat" /> - <EditTextPreference android:key="label" - android:persistent="false" - android:title="@string/label" - android:dialogTitle="@string/label" /> -</PreferenceScreen> diff --git a/res/xml/analog_appwidget.xml b/res/xml/analog_appwidget.xml deleted file mode 100644 index d87b484..0000000 --- a/res/xml/analog_appwidget.xml +++ /dev/null @@ -1,23 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> - -<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" - android:minWidth="146dip" - android:minHeight="146dip" - android:updatePeriodMillis="0" - android:initialLayout="@layout/analog_appwidget" - > -</appwidget-provider> diff --git a/res/xml/settings.xml b/res/xml/settings.xml deleted file mode 100644 index e034f1d..0000000 --- a/res/xml/settings.xml +++ /dev/null @@ -1,57 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- Copyright (C) 2009 The Android Open Source 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. ---> - -<PreferenceScreen - xmlns:android="http://schemas.android.com/apk/res/android" - android:title="@string/settings"> - - <CheckBoxPreference - android:key="alarm_in_silent_mode" - android:title="@string/alarm_in_silent_mode_title" - android:summary="@string/alarm_in_silent_mode_summary" /> - - <VolumePreference - android:title="@string/alarm_volume_title" - android:summary="@string/alarm_volume_summary" - android:dialogTitle="@string/alarm_volume_title" - android:persistent="false" - android:streamType="alarm" /> - - <ListPreference - android:key="snooze_duration" - android:title="@string/snooze_duration_title" - android:entries="@array/snooze_duration_entries" - android:entryValues="@array/snooze_duration_values" - android:defaultValue="10" - android:dialogTitle="@string/snooze_duration_title" /> - - <ListPreference - android:key="volume_button_setting" - android:title="@string/volume_button_setting_title" - android:entries="@array/volume_button_setting_entries" - android:entryValues="@array/volume_button_setting_values" - android:summary="@string/volume_button_setting_summary" - android:defaultValue="2" /> - - <com.android.alarmclock.AlarmPreference - android:key="default_ringtone" - android:title="@string/default_ringtone_setting_title" - android:ringtoneType="alarm" - android:showDefault="false" - android:persistent="false" - android:showSilent="true" /> - -</PreferenceScreen> diff --git a/src/com/android/alarmclock/Alarm.java b/src/com/android/alarmclock/Alarm.java deleted file mode 100644 index 7c69686..0000000 --- a/src/com/android/alarmclock/Alarm.java +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright (C) 2009 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.Context; -import android.database.Cursor; -import android.media.RingtoneManager; -import android.net.Uri; -import android.os.Parcel; -import android.os.Parcelable; -import android.provider.BaseColumns; -import android.text.format.DateFormat; - -import java.text.DateFormatSymbols; -import java.util.Calendar; - -public final class Alarm implements Parcelable { - - ////////////////////////////// - // Parcelable apis - ////////////////////////////// - public static final Parcelable.Creator<Alarm> CREATOR - = new Parcelable.Creator<Alarm>() { - public Alarm createFromParcel(Parcel p) { - return new Alarm(p); - } - - public Alarm[] newArray(int size) { - return new Alarm[size]; - } - }; - - public int describeContents() { - return 0; - } - - public void writeToParcel(Parcel p, int flags) { - p.writeInt(id); - p.writeInt(enabled ? 1 : 0); - p.writeInt(hour); - p.writeInt(minutes); - p.writeInt(daysOfWeek.getCoded()); - p.writeLong(time); - p.writeInt(vibrate ? 1 : 0); - p.writeString(label); - p.writeParcelable(alert, flags); - p.writeInt(silent ? 1 : 0); - } - ////////////////////////////// - // end Parcelable apis - ////////////////////////////// - - ////////////////////////////// - // Column definitions - ////////////////////////////// - public static class Columns implements BaseColumns { - /** - * The content:// style URL for this table - */ - public static final Uri CONTENT_URI = - Uri.parse("content://com.android.alarmclock/alarm"); - - /** - * Hour in 24-hour localtime 0 - 23. - * <P>Type: INTEGER</P> - */ - public static final String HOUR = "hour"; - - /** - * Minutes in localtime 0 - 59 - * <P>Type: INTEGER</P> - */ - public static final String MINUTES = "minutes"; - - /** - * Days of week coded as integer - * <P>Type: INTEGER</P> - */ - public static final String DAYS_OF_WEEK = "daysofweek"; - - /** - * Alarm time in UTC milliseconds from the epoch. - * <P>Type: INTEGER</P> - */ - public static final String ALARM_TIME = "alarmtime"; - - /** - * True if alarm is active - * <P>Type: BOOLEAN</P> - */ - public static final String ENABLED = "enabled"; - - /** - * True if alarm should vibrate - * <P>Type: BOOLEAN</P> - */ - public static final String VIBRATE = "vibrate"; - - /** - * Message to show when alarm triggers - * Note: not currently used - * <P>Type: STRING</P> - */ - public static final String MESSAGE = "message"; - - /** - * Audio alert to play when alarm triggers - * <P>Type: STRING</P> - */ - public static final String ALERT = "alert"; - - /** - * The default sort order for this table - */ - public static final String DEFAULT_SORT_ORDER = - HOUR + ", " + MINUTES + " ASC"; - - // Used when filtering enabled alarms. - public static final String WHERE_ENABLED = ENABLED + "=1"; - - static final String[] ALARM_QUERY_COLUMNS = { - _ID, HOUR, MINUTES, DAYS_OF_WEEK, ALARM_TIME, - ENABLED, VIBRATE, MESSAGE, ALERT }; - - /** - * These save calls to cursor.getColumnIndexOrThrow() - * THEY MUST BE KEPT IN SYNC WITH ABOVE QUERY COLUMNS - */ - public static final int ALARM_ID_INDEX = 0; - public static final int ALARM_HOUR_INDEX = 1; - public static final int ALARM_MINUTES_INDEX = 2; - public static final int ALARM_DAYS_OF_WEEK_INDEX = 3; - public static final int ALARM_TIME_INDEX = 4; - public static final int ALARM_ENABLED_INDEX = 5; - public static final int ALARM_VIBRATE_INDEX = 6; - public static final int ALARM_MESSAGE_INDEX = 7; - public static final int ALARM_ALERT_INDEX = 8; - } - ////////////////////////////// - // End column definitions - ////////////////////////////// - - // Public fields - public int id; - public boolean enabled; - public int hour; - public int minutes; - public DaysOfWeek daysOfWeek; - public long time; - public boolean vibrate; - public String label; - public Uri alert; - public boolean silent; - - public Alarm(Cursor c) { - id = c.getInt(Columns.ALARM_ID_INDEX); - enabled = c.getInt(Columns.ALARM_ENABLED_INDEX) == 1; - hour = c.getInt(Columns.ALARM_HOUR_INDEX); - minutes = c.getInt(Columns.ALARM_MINUTES_INDEX); - daysOfWeek = new DaysOfWeek(c.getInt(Columns.ALARM_DAYS_OF_WEEK_INDEX)); - time = c.getLong(Columns.ALARM_TIME_INDEX); - vibrate = c.getInt(Columns.ALARM_VIBRATE_INDEX) == 1; - label = c.getString(Columns.ALARM_MESSAGE_INDEX); - String alertString = c.getString(Columns.ALARM_ALERT_INDEX); - if (Alarms.ALARM_ALERT_SILENT.equals(alertString)) { - if (Log.LOGV) { - Log.v("Alarm is marked as silent"); - } - silent = true; - } else { - if (alertString != null && alertString.length() != 0) { - alert = Uri.parse(alertString); - } - - // If the database alert is null or it failed to parse, use the - // default alert. - if (alert == null) { - alert = RingtoneManager.getDefaultUri( - RingtoneManager.TYPE_ALARM); - } - } - } - - public Alarm(Parcel p) { - id = p.readInt(); - enabled = p.readInt() == 1; - hour = p.readInt(); - minutes = p.readInt(); - daysOfWeek = new DaysOfWeek(p.readInt()); - time = p.readLong(); - vibrate = p.readInt() == 1; - label = p.readString(); - alert = (Uri) p.readParcelable(null); - silent = p.readInt() == 1; - } - - public String getLabelOrDefault(Context context) { - if (label == null || label.length() == 0) { - return context.getString(R.string.default_label); - } - return label; - } - - /* - * Days of week code as a single int. - * 0x00: no day - * 0x01: Monday - * 0x02: Tuesday - * 0x04: Wednesday - * 0x08: Thursday - * 0x10: Friday - * 0x20: Saturday - * 0x40: Sunday - */ - static final class DaysOfWeek { - - private static int[] DAY_MAP = new int[] { - Calendar.MONDAY, - Calendar.TUESDAY, - Calendar.WEDNESDAY, - Calendar.THURSDAY, - Calendar.FRIDAY, - Calendar.SATURDAY, - Calendar.SUNDAY, - }; - - // Bitmask of all repeating days - private int mDays; - - DaysOfWeek(int days) { - mDays = days; - } - - public String toString(Context context, boolean showNever) { - StringBuilder ret = new StringBuilder(); - - // no days - if (mDays == 0) { - return showNever ? - context.getText(R.string.never).toString() : ""; - } - - // every day - if (mDays == 0x7f) { - return context.getText(R.string.every_day).toString(); - } - - // count selected days - int dayCount = 0, days = mDays; - while (days > 0) { - if ((days & 1) == 1) dayCount++; - days >>= 1; - } - - // short or long form? - DateFormatSymbols dfs = new DateFormatSymbols(); - String[] dayList = (dayCount > 1) ? - dfs.getShortWeekdays() : - dfs.getWeekdays(); - - // selected days - for (int i = 0; i < 7; i++) { - if ((mDays & (1 << i)) != 0) { - ret.append(dayList[DAY_MAP[i]]); - dayCount -= 1; - if (dayCount > 0) ret.append( - context.getText(R.string.day_concat)); - } - } - return ret.toString(); - } - - private boolean isSet(int day) { - return ((mDays & (1 << day)) > 0); - } - - public void set(int day, boolean set) { - if (set) { - mDays |= (1 << day); - } else { - mDays &= ~(1 << day); - } - } - - public void set(DaysOfWeek dow) { - mDays = dow.mDays; - } - - public int getCoded() { - return mDays; - } - - // Returns days of week encoded in an array of booleans. - public boolean[] getBooleanArray() { - boolean[] ret = new boolean[7]; - for (int i = 0; i < 7; i++) { - ret[i] = isSet(i); - } - return ret; - } - - public boolean isRepeatSet() { - return mDays != 0; - } - - /** - * returns number of days from today until next alarm - * @param c must be set to today - */ - public int getNextAlarm(Calendar c) { - if (mDays == 0) { - return -1; - } - - int today = (c.get(Calendar.DAY_OF_WEEK) + 5) % 7; - - int day = 0; - int dayCount = 0; - for (; dayCount < 7; dayCount++) { - day = (today + dayCount) % 7; - if (isSet(day)) { - break; - } - } - return dayCount; - } - } -} diff --git a/src/com/android/alarmclock/AlarmAlert.java b/src/com/android/alarmclock/AlarmAlert.java deleted file mode 100644 index 0039ca8..0000000 --- a/src/com/android/alarmclock/AlarmAlert.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.KeyguardManager; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.os.Bundle; -import android.os.Handler; -import android.os.Message; -import android.view.WindowManager; - -/** - * Full screen alarm alert: pops visible indicator and plays alarm tone. This - * activity shows the alert as a dialog. - */ -public class AlarmAlert extends AlarmAlertFullScreen { - - // If we try to check the keyguard more than 5 times, just launch the full - // screen activity. - private int mKeyguardRetryCount; - private final int MAX_KEYGUARD_CHECKS = 5; - - private final Handler mHandler = new Handler() { - @Override - public void handleMessage(Message msg) { - handleScreenOff((KeyguardManager) msg.obj); - } - }; - - private final BroadcastReceiver mScreenOffReceiver = - new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - KeyguardManager km = - (KeyguardManager) context.getSystemService( - Context.KEYGUARD_SERVICE); - handleScreenOff(km); - } - }; - - @Override - protected void onCreate(Bundle icicle) { - super.onCreate(icicle); - - // Listen for the screen turning off so that when the screen comes back - // on, the user does not need to unlock the phone to dismiss the alarm. - registerReceiver(mScreenOffReceiver, - new IntentFilter(Intent.ACTION_SCREEN_OFF)); - } - - @Override - public void onDestroy() { - super.onDestroy(); - unregisterReceiver(mScreenOffReceiver); - // Remove any of the keyguard messages just in case - mHandler.removeMessages(0); - } - - @Override - public void onBackPressed() { - finish(); - } - - private boolean checkRetryCount() { - if (mKeyguardRetryCount++ >= MAX_KEYGUARD_CHECKS) { - Log.e("Tried to read keyguard status too many times, bailing..."); - return false; - } - return true; - } - - private void handleScreenOff(final KeyguardManager km) { - if (!km.inKeyguardRestrictedInputMode() && checkRetryCount()) { - if (checkRetryCount()) { - mHandler.sendMessageDelayed(mHandler.obtainMessage(0, km), 500); - } - } else { - // Launch the full screen activity but do not turn the screen on. - Intent i = new Intent(this, AlarmAlertFullScreen.class); - i.putExtra(Alarms.ALARM_INTENT_EXTRA, mAlarm); - i.putExtra(SCREEN_OFF, true); - startActivity(i); - finish(); - } - } -} diff --git a/src/com/android/alarmclock/AlarmAlertFullScreen.java b/src/com/android/alarmclock/AlarmAlertFullScreen.java deleted file mode 100644 index d9cf687..0000000 --- a/src/com/android/alarmclock/AlarmAlertFullScreen.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright (C) 2009 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.Activity; -import android.app.Notification; -import android.app.NotificationManager; -import android.app.PendingIntent; -import android.content.Context; -import android.content.BroadcastReceiver; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.SharedPreferences; -import android.content.res.Configuration; -import android.os.Bundle; -import android.preference.PreferenceManager; -import android.view.KeyEvent; -import android.view.View; -import android.view.ViewGroup; -import android.view.LayoutInflater; -import android.view.Window; -import android.view.WindowManager; -import android.widget.Button; -import android.widget.Toast; -import android.widget.TextView; - -import java.util.Calendar; - -/** - * Alarm Clock alarm alert: pops visible indicator and plays alarm - * tone. This activity is the full screen version which shows over the lock - * screen with the wallpaper as the background. - */ -public class AlarmAlertFullScreen extends Activity { - - // These defaults must match the values in res/xml/settings.xml - private static final String DEFAULT_SNOOZE = "10"; - private static final String DEFAULT_VOLUME_BEHAVIOR = "2"; - protected static final String SCREEN_OFF = "screen_off"; - - protected Alarm mAlarm; - private int mVolumeBehavior; - - // Receives the ALARM_KILLED action from the AlarmKlaxon. - private BroadcastReceiver mReceiver = new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - Alarm alarm = intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA); - if (alarm != null && mAlarm.id == alarm.id) { - dismiss(true); - } - } - }; - - @Override - protected void onCreate(Bundle icicle) { - super.onCreate(icicle); - - mAlarm = getIntent().getParcelableExtra(Alarms.ALARM_INTENT_EXTRA); - - // Get the volume/camera button behavior setting - final String vol = - PreferenceManager.getDefaultSharedPreferences(this) - .getString(SettingsActivity.KEY_VOLUME_BEHAVIOR, - DEFAULT_VOLUME_BEHAVIOR); - mVolumeBehavior = Integer.parseInt(vol); - - requestWindowFeature(android.view.Window.FEATURE_NO_TITLE); - - final Window win = getWindow(); - win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED - | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); - // Turn on the screen unless we are being launched from the AlarmAlert - // subclass. - if (!getIntent().getBooleanExtra(SCREEN_OFF, false)) { - win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON - | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); - } - - updateLayout(); - - // Register to get the alarm killed intent. - registerReceiver(mReceiver, new IntentFilter(Alarms.ALARM_KILLED)); - } - - private void setTitle() { - String label = mAlarm.getLabelOrDefault(this); - TextView title = (TextView) findViewById(R.id.alertTitle); - title.setText(label); - } - - private void updateLayout() { - LayoutInflater inflater = LayoutInflater.from(this); - - setContentView(inflater.inflate(R.layout.alarm_alert, null)); - - /* set clock face */ - SharedPreferences settings = - getSharedPreferences(AlarmClock.PREFERENCES, 0); - int face = settings.getInt(AlarmClock.PREF_CLOCK_FACE, 0); - if (face < 0 || face >= AlarmClock.CLOCKS.length) { - face = 0; - } - ViewGroup clockView = (ViewGroup) findViewById(R.id.clockView); - inflater.inflate(AlarmClock.CLOCKS[face], clockView); - View clockLayout = findViewById(R.id.clock); - if (clockLayout instanceof DigitalClock) { - ((DigitalClock) clockLayout).setAnimate(); - } - - /* snooze behavior: pop a snooze confirmation view, kick alarm - manager. */ - Button snooze = (Button) findViewById(R.id.snooze); - snooze.requestFocus(); - snooze.setOnClickListener(new Button.OnClickListener() { - public void onClick(View v) { - snooze(); - } - }); - - /* dismiss button: close notification */ - findViewById(R.id.dismiss).setOnClickListener( - new Button.OnClickListener() { - public void onClick(View v) { - dismiss(false); - } - }); - - /* Set the title from the passed in alarm */ - setTitle(); - } - - // Attempt to snooze this alert. - private void snooze() { - final String snooze = - PreferenceManager.getDefaultSharedPreferences(this) - .getString(SettingsActivity.KEY_ALARM_SNOOZE, DEFAULT_SNOOZE); - int snoozeMinutes = Integer.parseInt(snooze); - - final long snoozeTime = System.currentTimeMillis() - + (1000 * 60 * snoozeMinutes); - Alarms.saveSnoozeAlert(AlarmAlertFullScreen.this, mAlarm.id, - snoozeTime); - - // Get the display time for the snooze and update the notification. - final Calendar c = Calendar.getInstance(); - c.setTimeInMillis(snoozeTime); - - // Append (snoozed) to the label. - String label = mAlarm.getLabelOrDefault(this); - label = getString(R.string.alarm_notify_snooze_label, label); - - // Notify the user that the alarm has been snoozed. - Intent cancelSnooze = new Intent(this, AlarmReceiver.class); - cancelSnooze.setAction(Alarms.CANCEL_SNOOZE); - cancelSnooze.putExtra(Alarms.ALARM_ID, mAlarm.id); - PendingIntent broadcast = - PendingIntent.getBroadcast(this, mAlarm.id, cancelSnooze, 0); - NotificationManager nm = getNotificationManager(); - Notification n = new Notification(R.drawable.stat_notify_alarm, - label, 0); - n.setLatestEventInfo(this, label, - getString(R.string.alarm_notify_snooze_text, - Alarms.formatTime(this, c)), broadcast); - n.flags |= Notification.FLAG_AUTO_CANCEL - | Notification.FLAG_ONGOING_EVENT; - nm.notify(mAlarm.id, n); - - String displayTime = getString(R.string.alarm_alert_snooze_set, - snoozeMinutes); - // Intentionally log the snooze time for debugging. - Log.v(displayTime); - - // Display the snooze minutes in a toast. - Toast.makeText(AlarmAlertFullScreen.this, displayTime, - Toast.LENGTH_LONG).show(); - stopService(new Intent(Alarms.ALARM_ALERT_ACTION)); - finish(); - } - - private NotificationManager getNotificationManager() { - return (NotificationManager) getSystemService(NOTIFICATION_SERVICE); - } - - // Dismiss the alarm. - private void dismiss(boolean killed) { - // The service told us that the alarm has been killed, do not modify - // the notification or stop the service. - if (!killed) { - // Cancel the notification and stop playing the alarm - NotificationManager nm = getNotificationManager(); - nm.cancel(mAlarm.id); - stopService(new Intent(Alarms.ALARM_ALERT_ACTION)); - } - finish(); - } - - /** - * this is called when a second alarm is triggered while a - * previous alert window is still active. - */ - @Override - protected void onNewIntent(Intent intent) { - super.onNewIntent(intent); - - if (Log.LOGV) Log.v("AlarmAlert.OnNewIntent()"); - - mAlarm = intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA); - - setTitle(); - } - - @Override - protected void onStop() { - super.onStop(); - if (!isFinishing()) { - // Don't hang around. - finish(); - } - } - - @Override - public void onDestroy() { - super.onDestroy(); - if (Log.LOGV) Log.v("AlarmAlert.onDestroy()"); - // No longer care about the alarm being killed. - unregisterReceiver(mReceiver); - } - - @Override - public boolean dispatchKeyEvent(KeyEvent event) { - // Do this on key down to handle a few of the system keys. - boolean up = event.getAction() == KeyEvent.ACTION_UP; - switch (event.getKeyCode()) { - // Volume keys and camera keys dismiss the alarm - case KeyEvent.KEYCODE_VOLUME_UP: - case KeyEvent.KEYCODE_VOLUME_DOWN: - case KeyEvent.KEYCODE_CAMERA: - case KeyEvent.KEYCODE_FOCUS: - if (up) { - switch (mVolumeBehavior) { - case 1: - snooze(); - break; - - case 2: - dismiss(false); - break; - - default: - break; - } - } - return true; - default: - break; - } - return super.dispatchKeyEvent(event); - } - - @Override - public void onBackPressed() { - // Don't allow back to dismiss. This method is overriden by AlarmAlert - // so that the dialog is dismissed. - return; - } -} diff --git a/src/com/android/alarmclock/AlarmAlertWakeLock.java b/src/com/android/alarmclock/AlarmAlertWakeLock.java deleted file mode 100644 index 8cbcd94..0000000 --- a/src/com/android/alarmclock/AlarmAlertWakeLock.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.Context; -import android.os.PowerManager; - -/** - * Hold a wakelock that can be acquired in the AlarmReceiver and - * released in the AlarmAlert activity - */ -class AlarmAlertWakeLock { - - private static PowerManager.WakeLock sCpuWakeLock; - - static void acquireCpuWakeLock(Context context) { - Log.v("Acquiring cpu wake lock"); - if (sCpuWakeLock != null) { - return; - } - - PowerManager pm = - (PowerManager) context.getSystemService(Context.POWER_SERVICE); - - sCpuWakeLock = pm.newWakeLock( - PowerManager.PARTIAL_WAKE_LOCK | - PowerManager.ACQUIRE_CAUSES_WAKEUP | - PowerManager.ON_AFTER_RELEASE, Log.LOGTAG); - sCpuWakeLock.acquire(); - } - - static void releaseCpuLock() { - Log.v("Releasing cpu wake lock"); - if (sCpuWakeLock != null) { - sCpuWakeLock.release(); - sCpuWakeLock = null; - } - } -} diff --git a/src/com/android/alarmclock/AlarmClock.java b/src/com/android/alarmclock/AlarmClock.java deleted file mode 100644 index 5a4caa2..0000000 --- a/src/com/android/alarmclock/AlarmClock.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.Activity; -import android.app.AlertDialog; -import android.content.Context; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.SharedPreferences; -import android.content.res.Configuration; -import android.database.Cursor; -import android.net.Uri; -import android.os.Bundle; -import android.os.Handler; -import android.view.ContextMenu; -import android.view.ContextMenu.ContextMenuInfo; -import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuItem; -import android.view.View; -import android.view.View.OnClickListener; -import android.view.ViewGroup; -import android.widget.AdapterView; -import android.widget.AdapterView.AdapterContextMenuInfo; -import android.widget.AdapterView.OnItemClickListener; -import android.widget.CheckBox; -import android.widget.CursorAdapter; -import android.widget.ListView; -import android.widget.TextView; - -import java.text.DateFormatSymbols; -import java.util.Calendar; - -/** - * AlarmClock application. - */ -public class AlarmClock extends Activity implements OnItemClickListener { - - static final String PREFERENCES = "AlarmClock"; - static final String PREF_CLOCK_FACE = "face"; - static final String PREF_SHOW_CLOCK = "show_clock"; - - /** Cap alarm count at this number */ - static final int MAX_ALARM_COUNT = 12; - - /** This must be false for production. If true, turns on logging, - test code, etc. */ - static final boolean DEBUG = false; - - private SharedPreferences mPrefs; - private LayoutInflater mFactory; - private ViewGroup mClockLayout; - private View mClock = null; - private ListView mAlarmsList; - private Cursor mCursor; - - private String mAm, mPm; - - /** - * Which clock face to show - */ - private int mFace = -1; - - /* - * TODO: it would be nice for this to live in an xml config file. - */ - static final int[] CLOCKS = { - R.layout.clock_basic_bw, - R.layout.clock_googly, - R.layout.clock_droid2, - R.layout.clock_droids, - R.layout.digital_clock - }; - - private class AlarmTimeAdapter extends CursorAdapter { - public AlarmTimeAdapter(Context context, Cursor cursor) { - super(context, cursor); - } - - public View newView(Context context, Cursor cursor, ViewGroup parent) { - View ret = mFactory.inflate(R.layout.alarm_time, parent, false); - - ((TextView) ret.findViewById(R.id.am)).setText(mAm); - ((TextView) ret.findViewById(R.id.pm)).setText(mPm); - - DigitalClock digitalClock = - (DigitalClock) ret.findViewById(R.id.digitalClock); - digitalClock.setLive(false); - return ret; - } - - public void bindView(View view, Context context, Cursor cursor) { - final Alarm alarm = new Alarm(cursor); - - CheckBox onButton = (CheckBox) view.findViewById(R.id.alarmButton); - onButton.setChecked(alarm.enabled); - onButton.setOnClickListener(new OnClickListener() { - public void onClick(View v) { - boolean isChecked = ((CheckBox) v).isChecked(); - Alarms.enableAlarm(AlarmClock.this, alarm.id, - isChecked); - if (isChecked) { - SetAlarm.popAlarmSetToast(AlarmClock.this, - alarm.hour, alarm.minutes, alarm.daysOfWeek); - } - } - }); - - DigitalClock digitalClock = - (DigitalClock) view.findViewById(R.id.digitalClock); - - // set the alarm text - final Calendar c = Calendar.getInstance(); - c.set(Calendar.HOUR_OF_DAY, alarm.hour); - c.set(Calendar.MINUTE, alarm.minutes); - digitalClock.updateTime(c); - - // Set the repeat text or leave it blank if it does not repeat. - TextView daysOfWeekView = - (TextView) digitalClock.findViewById(R.id.daysOfWeek); - final String daysOfWeekStr = - alarm.daysOfWeek.toString(AlarmClock.this, false); - if (daysOfWeekStr != null && daysOfWeekStr.length() != 0) { - daysOfWeekView.setText(daysOfWeekStr); - daysOfWeekView.setVisibility(View.VISIBLE); - } else { - daysOfWeekView.setVisibility(View.GONE); - } - - // Display the label - TextView labelView = - (TextView) digitalClock.findViewById(R.id.label); - if (alarm.label != null && alarm.label.length() != 0) { - labelView.setText(alarm.label); - labelView.setVisibility(View.VISIBLE); - } else { - labelView.setVisibility(View.GONE); - } - } - }; - - @Override - public boolean onContextItemSelected(final MenuItem item) { - final AdapterContextMenuInfo info = - (AdapterContextMenuInfo) item.getMenuInfo(); - final int id = (int) info.id; - switch (item.getItemId()) { - case R.id.delete_alarm: - // Confirm that the alarm will be deleted. - new AlertDialog.Builder(this) - .setTitle(getString(R.string.delete_alarm)) - .setMessage(getString(R.string.delete_alarm_confirm)) - .setPositiveButton(android.R.string.ok, - new DialogInterface.OnClickListener() { - public void onClick(DialogInterface d, - int w) { - Alarms.deleteAlarm(AlarmClock.this, id); - } - }) - .setNegativeButton(android.R.string.cancel, null) - .show(); - return true; - - case R.id.enable_alarm: - final Cursor c = (Cursor) mAlarmsList.getAdapter() - .getItem(info.position); - final Alarm alarm = new Alarm(c); - Alarms.enableAlarm(this, alarm.id, !alarm.enabled); - if (!alarm.enabled) { - SetAlarm.popAlarmSetToast(this, alarm.hour, alarm.minutes, - alarm.daysOfWeek); - } - return true; - - default: - break; - } - return super.onContextItemSelected(item); - } - - @Override - protected void onCreate(Bundle icicle) { - super.onCreate(icicle); - - String[] ampm = new DateFormatSymbols().getAmPmStrings(); - mAm = ampm[0]; - mPm = ampm[1]; - - mFactory = LayoutInflater.from(this); - mPrefs = getSharedPreferences(PREFERENCES, 0); - mCursor = Alarms.getAlarmsCursor(getContentResolver()); - - updateLayout(); - setClockVisibility(mPrefs.getBoolean(PREF_SHOW_CLOCK, true)); - } - - private final Handler mHandler = new Handler(); - - @Override - public void onConfigurationChanged(Configuration newConfig) { - super.onConfigurationChanged(newConfig); - // Send a message to avoid a possible ANR. - mHandler.post(new Runnable() { - public void run() { - updateLayout(); - inflateClock(); - setClockVisibility(mPrefs.getBoolean(PREF_SHOW_CLOCK, true)); - } - }); - } - - private void updateLayout() { - setContentView(R.layout.alarm_clock); - mAlarmsList = (ListView) findViewById(R.id.alarms_list); - mAlarmsList.setAdapter(new AlarmTimeAdapter(this, mCursor)); - mAlarmsList.setVerticalScrollBarEnabled(true); - mAlarmsList.setOnItemClickListener(this); - mAlarmsList.setOnCreateContextMenuListener(this); - - mClockLayout = (ViewGroup) findViewById(R.id.clock_layout); - mClockLayout.setOnClickListener(new View.OnClickListener() { - public void onClick(View v) { - final Intent intent = - new Intent(AlarmClock.this, ClockPicker.class); - intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - startActivity(intent); - } - }); - } - - @Override - protected void onResume() { - super.onResume(); - - int face = mPrefs.getInt(PREF_CLOCK_FACE, 0); - if (mFace != face) { - if (face < 0 || face >= AlarmClock.CLOCKS.length) { - mFace = 0; - } else { - mFace = face; - } - inflateClock(); - } - } - - @Override - protected void onDestroy() { - super.onDestroy(); - ToastMaster.cancelToast(); - mCursor.deactivate(); - } - - protected void inflateClock() { - if (mClock != null) { - mClockLayout.removeView(mClock); - } - - LayoutInflater.from(this).inflate(CLOCKS[mFace], mClockLayout); - mClock = findViewById(R.id.clock); - - TextView am = (TextView) findViewById(R.id.am); - TextView pm = (TextView) findViewById(R.id.pm); - - if (am != null) { - am.setText(mAm); - } - if (pm != null) { - pm.setText(mPm); - } - } - - @Override - public boolean onCreateOptionsMenu(Menu menu) { - // Inflate our menu. - getMenuInflater().inflate(R.menu.main_menu, menu); - - return super.onCreateOptionsMenu(menu); - } - - @Override - public void onCreateContextMenu(ContextMenu menu, View view, - ContextMenuInfo menuInfo) { - // Inflate the menu from xml. - getMenuInflater().inflate(R.menu.context_menu, menu); - - // Use the current item to create a custom view for the header. - final AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo; - final Cursor c = - (Cursor) mAlarmsList.getAdapter().getItem((int) info.position); - final Alarm alarm = new Alarm(c); - - // Construct the Calendar to compute the time. - final Calendar cal = Calendar.getInstance(); - cal.set(Calendar.HOUR_OF_DAY, alarm.hour); - cal.set(Calendar.MINUTE, alarm.minutes); - final String time = Alarms.formatTime(this, cal); - - // Inflate the custom view and set each TextView's text. - final View v = mFactory.inflate(R.layout.context_menu_header, null); - TextView textView = (TextView) v.findViewById(R.id.header_time); - textView.setText(time); - textView = (TextView) v.findViewById(R.id.header_label); - textView.setText(alarm.label); - - // Set the custom view on the menu. - menu.setHeaderView(v); - // Change the text to "disable" if the alarm is already enabled. - if (alarm.enabled) { - menu.findItem(R.id.enable_alarm).setTitle(R.string.disable_alarm); - } - } - - public void onItemClick(AdapterView parent, View v, int pos, long id) { - Intent intent = new Intent(this, SetAlarm.class); - intent.putExtra(Alarms.ALARM_ID, (int) id); - startActivity(intent); - } - - /** - * Only allow user to add a new alarm if there are fewer than - * MAX_ALARM_COUNT - */ - @Override - public boolean onPrepareOptionsMenu(Menu menu) { - menu.findItem(R.id.menu_add_alarm).setVisible( - mAlarmsList.getAdapter().getCount() < MAX_ALARM_COUNT); - menu.findItem(R.id.menu_toggle_clock).setTitle( - getClockVisibility() ? R.string.hide_clock - : R.string.show_clock); - return super.onPrepareOptionsMenu(menu); - } - - @Override - public boolean onOptionsItemSelected(MenuItem item) { - switch (item.getItemId()) { - case R.id.menu_add_alarm: - Uri uri = Alarms.addAlarm(getContentResolver()); - // TODO: Create new alarm _after_ SetAlarm so the user has the - // chance to cancel alarm creation. - String segment = uri.getPathSegments().get(1); - int newId = Integer.parseInt(segment); - if (Log.LOGV) { - Log.v("In AlarmClock, new alarm id = " + newId); - } - Intent intent = new Intent(this, SetAlarm.class); - intent.putExtra(Alarms.ALARM_ID, newId); - startActivity(intent); - return true; - - case R.id.menu_toggle_clock: - setClockVisibility(!getClockVisibility()); - saveClockVisibility(); - return true; - - case R.id.menu_settings: - startActivity(new Intent(this, SettingsActivity.class)); - return true; - } - - return super.onOptionsItemSelected(item); - } - - - private boolean getClockVisibility() { - return mClockLayout.getVisibility() == View.VISIBLE; - } - - private void setClockVisibility(boolean visible) { - mClockLayout.setVisibility(visible ? View.VISIBLE : View.GONE); - } - - private void saveClockVisibility() { - mPrefs.edit().putBoolean(PREF_SHOW_CLOCK, getClockVisibility()).commit(); - } -} diff --git a/src/com/android/alarmclock/AlarmInitReceiver.java b/src/com/android/alarmclock/AlarmInitReceiver.java deleted file mode 100644 index 8657e03..0000000 --- a/src/com/android/alarmclock/AlarmInitReceiver.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.Context; -import android.content.Intent; -import android.content.BroadcastReceiver; - -public class AlarmInitReceiver extends BroadcastReceiver { - - /** - * Sets alarm on ACTION_BOOT_COMPLETED. Resets alarm on - * TIME_SET, TIMEZONE_CHANGED - */ - @Override - public void onReceive(Context context, Intent intent) { - String action = intent.getAction(); - if (Log.LOGV) Log.v("AlarmInitReceiver" + action); - - if (context.getContentResolver() == null) { - Log.e("AlarmInitReceiver: FAILURE unable to get content resolver. Alarms inactive."); - return; - } - if (action.equals(Intent.ACTION_BOOT_COMPLETED)) { - Alarms.saveSnoozeAlert(context, -1, -1); - Alarms.disableExpiredAlarms(context); - } - Alarms.setNextAlert(context); - } -} diff --git a/src/com/android/alarmclock/AlarmKlaxon.java b/src/com/android/alarmclock/AlarmKlaxon.java deleted file mode 100644 index a8891c1..0000000 --- a/src/com/android/alarmclock/AlarmKlaxon.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.Service; -import android.content.Context; -import android.content.Intent; -import android.content.res.AssetFileDescriptor; -import android.content.res.Resources; -import android.media.AudioManager; -import android.media.MediaPlayer; -import android.media.MediaPlayer.OnErrorListener; -import android.media.RingtoneManager; -import android.net.Uri; -import android.os.Bundle; -import android.os.Handler; -import android.os.IBinder; -import android.os.Message; -import android.os.Vibrator; -import android.telephony.PhoneStateListener; -import android.telephony.TelephonyManager; - -/** - * Manages alarms and vibe. Runs as a service so that it can continue to play - * if another activity overrides the AlarmAlert dialog. - */ -public class AlarmKlaxon extends Service { - - /** Play alarm up to 10 minutes before silencing */ - private static final int ALARM_TIMEOUT_SECONDS = 10 * 60; - - private static final long[] sVibratePattern = new long[] { 500, 500 }; - - private boolean mPlaying = false; - private Vibrator mVibrator; - private MediaPlayer mMediaPlayer; - private Alarm mCurrentAlarm; - private long mStartTime; - private TelephonyManager mTelephonyManager; - private int mInitialCallState; - - // Internal messages - private static final int KILLER = 1000; - private Handler mHandler = new Handler() { - public void handleMessage(Message msg) { - switch (msg.what) { - case KILLER: - if (Log.LOGV) { - Log.v("*********** Alarm killer triggered ***********"); - } - sendKillBroadcast((Alarm) msg.obj); - stopSelf(); - break; - } - } - }; - - private PhoneStateListener mPhoneStateListener = new PhoneStateListener() { - @Override - public void onCallStateChanged(int state, String ignored) { - // The user might already be in a call when the alarm fires. When - // we register onCallStateChanged, we get the initial in-call state - // which kills the alarm. Check against the initial call state so - // we don't kill the alarm during a call. - if (state != TelephonyManager.CALL_STATE_IDLE - && state != mInitialCallState) { - sendKillBroadcast(mCurrentAlarm); - stopSelf(); - } - } - }; - - @Override - public void onCreate() { - mVibrator = new Vibrator(); - // Listen for incoming calls to kill the alarm. - mTelephonyManager = - (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); - mTelephonyManager.listen( - mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); - AlarmAlertWakeLock.acquireCpuWakeLock(this); - } - - @Override - public void onDestroy() { - stop(); - // Stop listening for incoming calls. - mTelephonyManager.listen(mPhoneStateListener, 0); - AlarmAlertWakeLock.releaseCpuLock(); - } - - @Override - public IBinder onBind(Intent intent) { - return null; - } - - @Override - public int onStartCommand(Intent intent, int flags, int startId) { - // No intent, tell the system not to restart us. - if (intent == null) { - stopSelf(); - return START_NOT_STICKY; - } - - final Alarm alarm = intent.getParcelableExtra( - Alarms.ALARM_INTENT_EXTRA); - - if (alarm == null) { - Log.v("AlarmKlaxon failed to parse the alarm from the intent"); - stopSelf(); - return START_NOT_STICKY; - } - - if (mCurrentAlarm != null) { - sendKillBroadcast(mCurrentAlarm); - } - - play(alarm); - mCurrentAlarm = alarm; - // Record the initial call state here so that the new alarm has the - // newest state. - mInitialCallState = mTelephonyManager.getCallState(); - - return START_STICKY; - } - - private void sendKillBroadcast(Alarm alarm) { - long millis = System.currentTimeMillis() - mStartTime; - int minutes = (int) Math.round(millis / 60000.0); - Intent alarmKilled = new Intent(Alarms.ALARM_KILLED); - alarmKilled.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm); - alarmKilled.putExtra(Alarms.ALARM_KILLED_TIMEOUT, minutes); - sendBroadcast(alarmKilled); - } - - // Volume suggested by media team for in-call alarms. - private static final float IN_CALL_VOLUME = 0.125f; - - private void play(Alarm alarm) { - // stop() checks to see if we are already playing. - stop(); - - if (Log.LOGV) { - Log.v("AlarmKlaxon.play() " + alarm.id + " alert " + alarm.alert); - } - - if (!alarm.silent) { - Uri alert = alarm.alert; - // Fall back on the default alarm if the database does not have an - // alarm stored. - if (alert == null) { - alert = RingtoneManager.getDefaultUri( - RingtoneManager.TYPE_ALARM); - if (Log.LOGV) { - Log.v("Using default alarm: " + alert.toString()); - } - } - - // TODO: Reuse mMediaPlayer instead of creating a new one and/or use - // RingtoneManager. - mMediaPlayer = new MediaPlayer(); - mMediaPlayer.setOnErrorListener(new OnErrorListener() { - public boolean onError(MediaPlayer mp, int what, int extra) { - Log.e("Error occurred while playing audio."); - mp.stop(); - mp.release(); - mMediaPlayer = null; - return true; - } - }); - - try { - // Check if we are in a call. If we are, use the in-call alarm - // resource at a low volume to not disrupt the call. - if (mTelephonyManager.getCallState() - != TelephonyManager.CALL_STATE_IDLE) { - Log.v("Using the in-call alarm"); - mMediaPlayer.setVolume(IN_CALL_VOLUME, IN_CALL_VOLUME); - setDataSourceFromResource(getResources(), mMediaPlayer, - R.raw.in_call_alarm); - } else { - mMediaPlayer.setDataSource(this, alert); - } - startAlarm(mMediaPlayer); - } catch (Exception ex) { - Log.v("Using the fallback ringtone"); - // The alert may be on the sd card which could be busy right - // now. Use the fallback ringtone. - try { - // Must reset the media player to clear the error state. - mMediaPlayer.reset(); - setDataSourceFromResource(getResources(), mMediaPlayer, - com.android.internal.R.raw.fallbackring); - startAlarm(mMediaPlayer); - } catch (Exception ex2) { - // At this point we just don't play anything. - Log.e("Failed to play fallback ringtone", ex2); - } - } - } - - /* Start the vibrator after everything is ok with the media player */ - if (alarm.vibrate) { - mVibrator.vibrate(sVibratePattern, 0); - } else { - mVibrator.cancel(); - } - - enableKiller(alarm); - mPlaying = true; - mStartTime = System.currentTimeMillis(); - } - - // Do the common stuff when starting the alarm. - private void startAlarm(MediaPlayer player) - throws java.io.IOException, IllegalArgumentException, - IllegalStateException { - final AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); - // do not play alarms if stream volume is 0 - // (typically because ringer mode is silent). - if (audioManager.getStreamVolume(AudioManager.STREAM_ALARM) != 0) { - player.setAudioStreamType(AudioManager.STREAM_ALARM); - player.setLooping(true); - player.prepare(); - player.start(); - } - } - - private void setDataSourceFromResource(Resources resources, - MediaPlayer player, int res) throws java.io.IOException { - AssetFileDescriptor afd = resources.openRawResourceFd(res); - if (afd != null) { - player.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), - afd.getLength()); - afd.close(); - } - } - - /** - * Stops alarm audio and disables alarm if it not snoozed and not - * repeating - */ - public void stop() { - if (Log.LOGV) Log.v("AlarmKlaxon.stop()"); - if (mPlaying) { - mPlaying = false; - - // Stop audio playing - if (mMediaPlayer != null) { - mMediaPlayer.stop(); - mMediaPlayer.release(); - mMediaPlayer = null; - } - - // Stop vibrator - mVibrator.cancel(); - } - disableKiller(); - } - - /** - * Kills alarm audio after ALARM_TIMEOUT_SECONDS, so the alarm - * won't run all day. - * - * This just cancels the audio, but leaves the notification - * popped, so the user will know that the alarm tripped. - */ - private void enableKiller(Alarm alarm) { - mHandler.sendMessageDelayed(mHandler.obtainMessage(KILLER, alarm), - 1000 * ALARM_TIMEOUT_SECONDS); - } - - private void disableKiller() { - mHandler.removeMessages(KILLER); - } - - -} diff --git a/src/com/android/alarmclock/AlarmPreference.java b/src/com/android/alarmclock/AlarmPreference.java deleted file mode 100644 index 84478b4..0000000 --- a/src/com/android/alarmclock/AlarmPreference.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.Context; -import android.media.Ringtone; -import android.media.RingtoneManager; -import android.net.Uri; -import android.preference.RingtonePreference; -import android.provider.Settings; -import android.util.AttributeSet; - -/** - * The RingtonePreference does not have a way to get/set the current ringtone so - * we override onSaveRingtone and onRestoreRingtone to get the same behavior. - */ -public class AlarmPreference extends RingtonePreference { - private Uri mAlert; - private boolean mChangeDefault; - - public AlarmPreference(Context context, AttributeSet attrs) { - super(context, attrs); - } - - @Override - protected void onSaveRingtone(Uri ringtoneUri) { - setAlert(ringtoneUri); - if (mChangeDefault) { - // Update the default alert in the system. - Settings.System.putString(getContext().getContentResolver(), - Settings.System.ALARM_ALERT, - ringtoneUri == null ? null : ringtoneUri.toString()); - } - } - - @Override - protected Uri onRestoreRingtone() { - if (RingtoneManager.isDefault(mAlert)) { - return RingtoneManager.getActualDefaultRingtoneUri(getContext(), - RingtoneManager.TYPE_ALARM); - } - return mAlert; - } - - public void setAlert(Uri alert) { - mAlert = alert; - if (alert != null) { - final Ringtone r = RingtoneManager.getRingtone(getContext(), alert); - if (r != null) { - setSummary(r.getTitle(getContext())); - } - } else { - setSummary(R.string.silent_alarm_summary); - } - } - - public String getAlertString() { - if (mAlert != null) { - return mAlert.toString(); - } - return Alarms.ALARM_ALERT_SILENT; - } - - public void setChangeDefault() { - mChangeDefault = true; - } -} diff --git a/src/com/android/alarmclock/AlarmProvider.java b/src/com/android/alarmclock/AlarmProvider.java deleted file mode 100644 index 5849a38..0000000 --- a/src/com/android/alarmclock/AlarmProvider.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.ContentProvider; -import android.content.ContentUris; -import android.content.ContentValues; -import android.content.Context; -import android.content.UriMatcher; -import android.database.Cursor; -import android.database.SQLException; -import android.database.sqlite.SQLiteDatabase; -import android.database.sqlite.SQLiteOpenHelper; -import android.database.sqlite.SQLiteQueryBuilder; -import android.net.Uri; -import android.text.TextUtils; - -public class AlarmProvider extends ContentProvider { - private SQLiteOpenHelper mOpenHelper; - - private static final int ALARMS = 1; - private static final int ALARMS_ID = 2; - private static final UriMatcher sURLMatcher = new UriMatcher( - UriMatcher.NO_MATCH); - - static { - sURLMatcher.addURI("com.android.alarmclock", "alarm", ALARMS); - sURLMatcher.addURI("com.android.alarmclock", "alarm/#", ALARMS_ID); - } - - private static class DatabaseHelper extends SQLiteOpenHelper { - private static final String DATABASE_NAME = "alarms.db"; - private static final int DATABASE_VERSION = 5; - - public DatabaseHelper(Context context) { - super(context, DATABASE_NAME, null, DATABASE_VERSION); - } - - @Override - public void onCreate(SQLiteDatabase db) { - db.execSQL("CREATE TABLE alarms (" + - "_id INTEGER PRIMARY KEY," + - "hour INTEGER, " + - "minutes INTEGER, " + - "daysofweek INTEGER, " + - "alarmtime INTEGER, " + - "enabled INTEGER, " + - "vibrate INTEGER, " + - "message TEXT, " + - "alert TEXT);"); - - // insert default alarms - String insertMe = "INSERT INTO alarms " + - "(hour, minutes, daysofweek, alarmtime, enabled, vibrate, message, alert) " + - "VALUES "; - db.execSQL(insertMe + "(7, 0, 127, 0, 0, 1, '', '');"); - db.execSQL(insertMe + "(8, 30, 31, 0, 0, 1, '', '');"); - db.execSQL(insertMe + "(9, 00, 0, 0, 0, 1, '', '');"); - } - - @Override - public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { - if (Log.LOGV) Log.v( - "Upgrading alarms database from version " + - oldVersion + " to " + currentVersion + - ", which will destroy all old data"); - db.execSQL("DROP TABLE IF EXISTS alarms"); - onCreate(db); - } - } - - public AlarmProvider() { - } - - @Override - public boolean onCreate() { - mOpenHelper = new DatabaseHelper(getContext()); - return true; - } - - @Override - public Cursor query(Uri url, String[] projectionIn, String selection, - String[] selectionArgs, String sort) { - SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); - - // Generate the body of the query - int match = sURLMatcher.match(url); - switch (match) { - case ALARMS: - qb.setTables("alarms"); - break; - case ALARMS_ID: - qb.setTables("alarms"); - qb.appendWhere("_id="); - qb.appendWhere(url.getPathSegments().get(1)); - break; - default: - throw new IllegalArgumentException("Unknown URL " + url); - } - - SQLiteDatabase db = mOpenHelper.getReadableDatabase(); - Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, - null, null, sort); - - if (ret == null) { - if (Log.LOGV) Log.v("Alarms.query: failed"); - } else { - ret.setNotificationUri(getContext().getContentResolver(), url); - } - - return ret; - } - - @Override - public String getType(Uri url) { - int match = sURLMatcher.match(url); - switch (match) { - case ALARMS: - return "vnd.android.cursor.dir/alarms"; - case ALARMS_ID: - return "vnd.android.cursor.item/alarms"; - default: - throw new IllegalArgumentException("Unknown URL"); - } - } - - @Override - public int update(Uri url, ContentValues values, String where, String[] whereArgs) { - int count; - long rowId = 0; - int match = sURLMatcher.match(url); - SQLiteDatabase db = mOpenHelper.getWritableDatabase(); - switch (match) { - case ALARMS_ID: { - String segment = url.getPathSegments().get(1); - rowId = Long.parseLong(segment); - count = db.update("alarms", values, "_id=" + rowId, null); - break; - } - default: { - throw new UnsupportedOperationException( - "Cannot update URL: " + url); - } - } - if (Log.LOGV) Log.v("*** notifyChange() rowId: " + rowId + " url " + url); - getContext().getContentResolver().notifyChange(url, null); - return count; - } - - @Override - public Uri insert(Uri url, ContentValues initialValues) { - if (sURLMatcher.match(url) != ALARMS) { - throw new IllegalArgumentException("Cannot insert into URL: " + url); - } - - ContentValues values; - if (initialValues != null) - values = new ContentValues(initialValues); - else - values = new ContentValues(); - - if (!values.containsKey(Alarm.Columns.HOUR)) - values.put(Alarm.Columns.HOUR, 0); - - if (!values.containsKey(Alarm.Columns.MINUTES)) - values.put(Alarm.Columns.MINUTES, 0); - - if (!values.containsKey(Alarm.Columns.DAYS_OF_WEEK)) - values.put(Alarm.Columns.DAYS_OF_WEEK, 0); - - if (!values.containsKey(Alarm.Columns.ALARM_TIME)) - values.put(Alarm.Columns.ALARM_TIME, 0); - - if (!values.containsKey(Alarm.Columns.ENABLED)) - values.put(Alarm.Columns.ENABLED, 0); - - if (!values.containsKey(Alarm.Columns.VIBRATE)) - values.put(Alarm.Columns.VIBRATE, 1); - - if (!values.containsKey(Alarm.Columns.MESSAGE)) - values.put(Alarm.Columns.MESSAGE, ""); - - if (!values.containsKey(Alarm.Columns.ALERT)) - values.put(Alarm.Columns.ALERT, ""); - - SQLiteDatabase db = mOpenHelper.getWritableDatabase(); - long rowId = db.insert("alarms", Alarm.Columns.MESSAGE, values); - if (rowId < 0) { - throw new SQLException("Failed to insert row into " + url); - } - if (Log.LOGV) Log.v("Added alarm rowId = " + rowId); - - Uri newUrl = ContentUris.withAppendedId(Alarm.Columns.CONTENT_URI, rowId); - getContext().getContentResolver().notifyChange(newUrl, null); - return newUrl; - } - - public int delete(Uri url, String where, String[] whereArgs) { - SQLiteDatabase db = mOpenHelper.getWritableDatabase(); - int count; - long rowId = 0; - switch (sURLMatcher.match(url)) { - case ALARMS: - count = db.delete("alarms", where, whereArgs); - break; - case ALARMS_ID: - String segment = url.getPathSegments().get(1); - rowId = Long.parseLong(segment); - if (TextUtils.isEmpty(where)) { - where = "_id=" + segment; - } else { - where = "_id=" + segment + " AND (" + where + ")"; - } - count = db.delete("alarms", where, whereArgs); - break; - default: - throw new IllegalArgumentException("Cannot delete from URL: " + url); - } - - getContext().getContentResolver().notifyChange(url, null); - return count; - } -} diff --git a/src/com/android/alarmclock/AlarmReceiver.java b/src/com/android/alarmclock/AlarmReceiver.java deleted file mode 100644 index e9c7195..0000000 --- a/src/com/android/alarmclock/AlarmReceiver.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.KeyguardManager; -import android.app.Notification; -import android.app.NotificationManager; -import android.app.PendingIntent; -import android.content.ContentUris; -import android.content.Context; -import android.content.Intent; -import android.content.BroadcastReceiver; -import android.database.Cursor; -import android.os.Parcel; - -import java.text.SimpleDateFormat; -import java.util.Date; - -/** - * Glue class: connects AlarmAlert IntentReceiver to AlarmAlert - * activity. Passes through Alarm ID. - */ -public class AlarmReceiver extends BroadcastReceiver { - - /** If the alarm is older than STALE_WINDOW seconds, ignore. It - is probably the result of a time or timezone change */ - private final static int STALE_WINDOW = 60 * 30; - - @Override - public void onReceive(Context context, Intent intent) { - if (Alarms.ALARM_KILLED.equals(intent.getAction())) { - // The alarm has been killed, update the notification - updateNotification(context, (Alarm) - intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA), - intent.getIntExtra(Alarms.ALARM_KILLED_TIMEOUT, -1)); - return; - } else if (Alarms.CANCEL_SNOOZE.equals(intent.getAction())) { - Alarms.saveSnoozeAlert(context, -1, -1); - return; - } - - Alarm alarm = null; - // Grab the alarm from the intent. Since the remote AlarmManagerService - // fills in the Intent to add some extra data, it must unparcel the - // Alarm object. It throws a ClassNotFoundException when unparcelling. - // To avoid this, do the marshalling ourselves. - final byte[] data = intent.getByteArrayExtra(Alarms.ALARM_RAW_DATA); - if (data != null) { - Parcel in = Parcel.obtain(); - in.unmarshall(data, 0, data.length); - in.setDataPosition(0); - alarm = Alarm.CREATOR.createFromParcel(in); - } - - if (alarm == null) { - Log.v("AlarmReceiver failed to parse the alarm from the intent"); - return; - } - - // Intentionally verbose: always log the alarm time to provide useful - // information in bug reports. - long now = System.currentTimeMillis(); - SimpleDateFormat format = - new SimpleDateFormat("HH:mm:ss.SSS aaa"); - Log.v("AlarmReceiver.onReceive() id " + alarm.id + " setFor " - + format.format(new Date(alarm.time))); - - if (now > alarm.time + STALE_WINDOW * 1000) { - if (Log.LOGV) { - Log.v("AlarmReceiver ignoring stale alarm"); - } - return; - } - - // Maintain a cpu wake lock until the AlarmAlert and AlarmKlaxon can - // pick it up. - AlarmAlertWakeLock.acquireCpuWakeLock(context); - - /* Close dialogs and window shade */ - Intent closeDialogs = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); - context.sendBroadcast(closeDialogs); - - // Decide which activity to start based on the state of the keyguard. - Class c = AlarmAlert.class; - KeyguardManager km = (KeyguardManager) context.getSystemService( - Context.KEYGUARD_SERVICE); - if (km.inKeyguardRestrictedInputMode()) { - // Use the full screen activity for security. - c = AlarmAlertFullScreen.class; - } - - /* launch UI, explicitly stating that this is not due to user action - * so that the current app's notification management is not disturbed */ - Intent alarmAlert = new Intent(context, c); - alarmAlert.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm); - alarmAlert.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK - | Intent.FLAG_ACTIVITY_NO_USER_ACTION); - context.startActivity(alarmAlert); - - // Disable the snooze alert if this alarm is the snooze. - Alarms.disableSnoozeAlert(context, alarm.id); - // Disable this alarm if it does not repeat. - if (!alarm.daysOfWeek.isRepeatSet()) { - Alarms.enableAlarm(context, alarm.id, false); - } else { - // Enable the next alert if there is one. The above call to - // enableAlarm will call setNextAlert so avoid calling it twice. - Alarms.setNextAlert(context); - } - - // Play the alarm alert and vibrate the device. - Intent playAlarm = new Intent(Alarms.ALARM_ALERT_ACTION); - playAlarm.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm); - context.startService(playAlarm); - - // Trigger a notification that, when clicked, will show the alarm alert - // dialog. No need to check for fullscreen since this will always be - // launched from a user action. - Intent notify = new Intent(context, AlarmAlert.class); - notify.putExtra(Alarms.ALARM_INTENT_EXTRA, alarm); - PendingIntent pendingNotify = PendingIntent.getActivity(context, - alarm.id, notify, 0); - - // Use the alarm's label or the default label as the ticker text and - // main text of the notification. - String label = alarm.getLabelOrDefault(context); - Notification n = new Notification(R.drawable.stat_notify_alarm, - label, alarm.time); - n.setLatestEventInfo(context, label, - context.getString(R.string.alarm_notify_text), - pendingNotify); - n.flags |= Notification.FLAG_SHOW_LIGHTS - | Notification.FLAG_ONGOING_EVENT; - n.defaults |= Notification.DEFAULT_LIGHTS; - - // Send the notification using the alarm id to easily identify the - // correct notification. - NotificationManager nm = getNotificationManager(context); - nm.notify(alarm.id, n); - } - - private NotificationManager getNotificationManager(Context context) { - return (NotificationManager) - context.getSystemService(Context.NOTIFICATION_SERVICE); - } - - private void updateNotification(Context context, Alarm alarm, int timeout) { - NotificationManager nm = getNotificationManager(context); - - // If the alarm is null, just cancel the notification. - if (alarm == null) { - if (Log.LOGV) { - Log.v("Cannot update notification for killer callback"); - } - return; - } - - // Launch SetAlarm when clicked. - Intent viewAlarm = new Intent(context, SetAlarm.class); - viewAlarm.putExtra(Alarms.ALARM_ID, alarm.id); - PendingIntent intent = - PendingIntent.getActivity(context, alarm.id, viewAlarm, 0); - - // Update the notification to indicate that the alert has been - // silenced. - String label = alarm.getLabelOrDefault(context); - Notification n = new Notification(R.drawable.stat_notify_alarm, - label, alarm.time); - n.setLatestEventInfo(context, label, - context.getString(R.string.alarm_alert_alert_silenced, timeout), - intent); - n.flags |= Notification.FLAG_AUTO_CANCEL; - // We have to cancel the original notification since it is in the - // ongoing section and we want the "killed" notification to be a plain - // notification. - nm.cancel(alarm.id); - nm.notify(alarm.id, n); - } -} diff --git a/src/com/android/alarmclock/Alarms.java b/src/com/android/alarmclock/Alarms.java deleted file mode 100644 index ff0bc31..0000000 --- a/src/com/android/alarmclock/Alarms.java +++ /dev/null @@ -1,538 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.AlarmManager; -import android.app.NotificationManager; -import android.app.PendingIntent; -import android.content.ContentResolver; -import android.content.ContentValues; -import android.content.ContentUris; -import android.content.Context; -import android.content.Intent; -import android.content.SharedPreferences; -import android.database.Cursor; -import android.net.Uri; -import android.os.Parcel; -import android.provider.Settings; -import android.text.format.DateFormat; - -import java.util.Calendar; -import java.text.DateFormatSymbols; - -/** - * The Alarms provider supplies info about Alarm Clock settings - */ -public class Alarms { - - // This action triggers the AlarmReceiver as well as the AlarmKlaxon. It - // is a public action used in the manifest for receiving Alarm broadcasts - // from the alarm manager. - public static final String ALARM_ALERT_ACTION = "com.android.alarmclock.ALARM_ALERT"; - - // This is a private action used by the AlarmKlaxon to update the UI to - // show the alarm has been killed. - public static final String ALARM_KILLED = "alarm_killed"; - - // Extra in the ALARM_KILLED intent to indicate to the user how long the - // alarm played before being killed. - public static final String ALARM_KILLED_TIMEOUT = "alarm_killed_timeout"; - - // This string is used to indicate a silent alarm in the db. - public static final String ALARM_ALERT_SILENT = "silent"; - - // This intent is sent from the notification when the user cancels the - // snooze alert. - public static final String CANCEL_SNOOZE = "cancel_snooze"; - - // This string is used when passing an Alarm object through an intent. - public static final String ALARM_INTENT_EXTRA = "intent.extra.alarm"; - - // This extra is the raw Alarm object data. It is used in the - // AlarmManagerService to avoid a ClassNotFoundException when filling in - // the Intent extras. - public static final String ALARM_RAW_DATA = "intent.extra.alarm_raw"; - - // This string is used to identify the alarm id passed to SetAlarm from the - // list of alarms. - public static final String ALARM_ID = "alarm_id"; - - final static String PREF_SNOOZE_ID = "snooze_id"; - final static String PREF_SNOOZE_TIME = "snooze_time"; - - private final static String DM12 = "E h:mm aa"; - private final static String DM24 = "E k:mm"; - - private final static String M12 = "h:mm aa"; - // Shared with DigitalClock - final static String M24 = "kk:mm"; - - /** - * Creates a new Alarm. - */ - public static Uri addAlarm(ContentResolver contentResolver) { - ContentValues values = new ContentValues(); - values.put(Alarm.Columns.HOUR, 8); - return contentResolver.insert(Alarm.Columns.CONTENT_URI, values); - } - - /** - * Removes an existing Alarm. If this alarm is snoozing, disables - * snooze. Sets next alert. - */ - public static void deleteAlarm( - Context context, int alarmId) { - - ContentResolver contentResolver = context.getContentResolver(); - /* If alarm is snoozing, lose it */ - disableSnoozeAlert(context, alarmId); - - Uri uri = ContentUris.withAppendedId(Alarm.Columns.CONTENT_URI, alarmId); - contentResolver.delete(uri, "", null); - - setNextAlert(context); - } - - /** - * Queries all alarms - * @return cursor over all alarms - */ - public static Cursor getAlarmsCursor(ContentResolver contentResolver) { - return contentResolver.query( - Alarm.Columns.CONTENT_URI, Alarm.Columns.ALARM_QUERY_COLUMNS, - null, null, Alarm.Columns.DEFAULT_SORT_ORDER); - } - - // Private method to get a more limited set of alarms from the database. - private static Cursor getFilteredAlarmsCursor( - ContentResolver contentResolver) { - return contentResolver.query(Alarm.Columns.CONTENT_URI, - Alarm.Columns.ALARM_QUERY_COLUMNS, Alarm.Columns.WHERE_ENABLED, - null, null); - } - - /** - * Return an Alarm object representing the alarm id in the database. - * Returns null if no alarm exists. - */ - public static Alarm getAlarm(ContentResolver contentResolver, int alarmId) { - Cursor cursor = contentResolver.query( - ContentUris.withAppendedId(Alarm.Columns.CONTENT_URI, alarmId), - Alarm.Columns.ALARM_QUERY_COLUMNS, - null, null, null); - Alarm alarm = null; - if (cursor != null) { - if (cursor.moveToFirst()) { - alarm = new Alarm(cursor); - } - cursor.close(); - } - return alarm; - } - - - /** - * A convenience method to set an alarm in the Alarms - * content provider. - * - * @param id corresponds to the _id column - * @param enabled corresponds to the ENABLED column - * @param hour corresponds to the HOUR column - * @param minutes corresponds to the MINUTES column - * @param daysOfWeek corresponds to the DAYS_OF_WEEK column - * @param time corresponds to the ALARM_TIME column - * @param vibrate corresponds to the VIBRATE column - * @param message corresponds to the MESSAGE column - * @param alert corresponds to the ALERT column - * @return Time when the alarm will fire. - */ - public static long setAlarm( - Context context, int id, boolean enabled, int hour, int minutes, - Alarm.DaysOfWeek daysOfWeek, boolean vibrate, String message, - String alert) { - - ContentValues values = new ContentValues(8); - ContentResolver resolver = context.getContentResolver(); - // Set the alarm_time value if this alarm does not repeat. This will be - // used later to disable expired alarms. - long time = 0; - if (!daysOfWeek.isRepeatSet()) { - time = calculateAlarm(hour, minutes, daysOfWeek).getTimeInMillis(); - } - - if (Log.LOGV) Log.v( - "** setAlarm * idx " + id + " hour " + hour + " minutes " + - minutes + " enabled " + enabled + " time " + time); - - values.put(Alarm.Columns.ENABLED, enabled ? 1 : 0); - values.put(Alarm.Columns.HOUR, hour); - values.put(Alarm.Columns.MINUTES, minutes); - values.put(Alarm.Columns.ALARM_TIME, time); - values.put(Alarm.Columns.DAYS_OF_WEEK, daysOfWeek.getCoded()); - values.put(Alarm.Columns.VIBRATE, vibrate); - values.put(Alarm.Columns.MESSAGE, message); - values.put(Alarm.Columns.ALERT, alert); - resolver.update(ContentUris.withAppendedId(Alarm.Columns.CONTENT_URI, id), - values, null, null); - - long timeInMillis = - calculateAlarm(hour, minutes, daysOfWeek).getTimeInMillis(); - - if (enabled) { - // If this alarm fires before the next snooze, clear the snooze to - // enable this alarm. - SharedPreferences prefs = context.getSharedPreferences( - AlarmClock.PREFERENCES, 0); - long snoozeTime = prefs.getLong(PREF_SNOOZE_TIME, 0); - if (timeInMillis < snoozeTime) { - clearSnoozePreference(context, prefs); - } - } - - setNextAlert(context); - - return timeInMillis; - } - - /** - * A convenience method to enable or disable an alarm. - * - * @param id corresponds to the _id column - * @param enabled corresponds to the ENABLED column - */ - - public static void enableAlarm( - final Context context, final int id, boolean enabled) { - enableAlarmInternal(context, id, enabled); - setNextAlert(context); - } - - private static void enableAlarmInternal(final Context context, - final int id, boolean enabled) { - enableAlarmInternal(context, getAlarm(context.getContentResolver(), id), - enabled); - } - - private static void enableAlarmInternal(final Context context, - final Alarm alarm, boolean enabled) { - ContentResolver resolver = context.getContentResolver(); - - ContentValues values = new ContentValues(2); - values.put(Alarm.Columns.ENABLED, enabled ? 1 : 0); - - // If we are enabling the alarm, calculate alarm time since the time - // value in Alarm may be old. - if (enabled) { - long time = 0; - if (!alarm.daysOfWeek.isRepeatSet()) { - time = calculateAlarm(alarm.hour, alarm.minutes, - alarm.daysOfWeek).getTimeInMillis(); - } - values.put(Alarm.Columns.ALARM_TIME, time); - } - - resolver.update(ContentUris.withAppendedId( - Alarm.Columns.CONTENT_URI, alarm.id), values, null, null); - } - - public static Alarm calculateNextAlert(final Context context) { - Alarm alarm = null; - long minTime = Long.MAX_VALUE; - long now = System.currentTimeMillis(); - Cursor cursor = getFilteredAlarmsCursor(context.getContentResolver()); - if (cursor != null) { - if (cursor.moveToFirst()) { - do { - Alarm a = new Alarm(cursor); - // A time of 0 indicates this is a repeating alarm, so - // calculate the time to get the next alert. - if (a.time == 0) { - a.time = calculateAlarm(a.hour, a.minutes, a.daysOfWeek) - .getTimeInMillis(); - } else if (a.time < now) { - // Expired alarm, disable it and move along. - enableAlarmInternal(context, a, false); - continue; - } - if (a.time < minTime) { - minTime = a.time; - alarm = a; - } - } while (cursor.moveToNext()); - } - cursor.close(); - } - return alarm; - } - - /** - * Disables non-repeating alarms that have passed. Called at - * boot. - */ - public static void disableExpiredAlarms(final Context context) { - Cursor cur = getFilteredAlarmsCursor(context.getContentResolver()); - long now = System.currentTimeMillis(); - - if (cur.moveToFirst()) { - do { - Alarm alarm = new Alarm(cur); - // A time of 0 means this alarm repeats. If the time is - // non-zero, check if the time is before now. - if (alarm.time != 0 && alarm.time < now) { - if (Log.LOGV) { - Log.v("** DISABLE " + alarm.id + " now " + now +" set " - + alarm.time); - } - enableAlarmInternal(context, alarm, false); - } - } while (cur.moveToNext()); - } - cur.close(); - } - - /** - * Called at system startup, on time/timezone change, and whenever - * the user changes alarm settings. Activates snooze if set, - * otherwise loads all alarms, activates next alert. - */ - public static void setNextAlert(final Context context) { - if (!enableSnoozeAlert(context)) { - Alarm alarm = calculateNextAlert(context); - if (alarm != null) { - enableAlert(context, alarm, alarm.time); - } else { - disableAlert(context); - } - } - } - - /** - * Sets alert in AlarmManger and StatusBar. This is what will - * actually launch the alert when the alarm triggers. - * - * @param alarm Alarm. - * @param atTimeInMillis milliseconds since epoch - */ - private static void enableAlert(Context context, final Alarm alarm, - final long atTimeInMillis) { - AlarmManager am = (AlarmManager) - context.getSystemService(Context.ALARM_SERVICE); - - if (Log.LOGV) { - Log.v("** setAlert id " + alarm.id + " atTime " + atTimeInMillis); - } - - Intent intent = new Intent(ALARM_ALERT_ACTION); - - // XXX: This is a slight hack to avoid an exception in the remote - // AlarmManagerService process. The AlarmManager adds extra data to - // this Intent which causes it to inflate. Since the remote process - // does not know about the Alarm class, it throws a - // ClassNotFoundException. - // - // To avoid this, we marshall the data ourselves and then parcel a plain - // byte[] array. The AlarmReceiver class knows to build the Alarm - // object from the byte[] array. - Parcel out = Parcel.obtain(); - alarm.writeToParcel(out, 0); - out.setDataPosition(0); - intent.putExtra(ALARM_RAW_DATA, out.marshall()); - - PendingIntent sender = PendingIntent.getBroadcast( - context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); - - am.set(AlarmManager.RTC_WAKEUP, atTimeInMillis, sender); - - setStatusBarIcon(context, true); - - Calendar c = Calendar.getInstance(); - c.setTime(new java.util.Date(atTimeInMillis)); - String timeString = formatDayAndTime(context, c); - saveNextAlarm(context, timeString); - } - - /** - * Disables alert in AlarmManger and StatusBar. - * - * @param id Alarm ID. - */ - static void disableAlert(Context context) { - AlarmManager am = (AlarmManager) - context.getSystemService(Context.ALARM_SERVICE); - PendingIntent sender = PendingIntent.getBroadcast( - context, 0, new Intent(ALARM_ALERT_ACTION), - PendingIntent.FLAG_CANCEL_CURRENT); - am.cancel(sender); - setStatusBarIcon(context, false); - saveNextAlarm(context, ""); - } - - static void saveSnoozeAlert(final Context context, final int id, - final long time) { - SharedPreferences prefs = context.getSharedPreferences( - AlarmClock.PREFERENCES, 0); - if (id == -1) { - clearSnoozePreference(context, prefs); - } else { - SharedPreferences.Editor ed = prefs.edit(); - ed.putInt(PREF_SNOOZE_ID, id); - ed.putLong(PREF_SNOOZE_TIME, time); - ed.commit(); - } - // Set the next alert after updating the snooze. - setNextAlert(context); - } - - /** - * Disable the snooze alert if the given id matches the snooze id. - */ - static void disableSnoozeAlert(final Context context, final int id) { - SharedPreferences prefs = context.getSharedPreferences( - AlarmClock.PREFERENCES, 0); - int snoozeId = prefs.getInt(PREF_SNOOZE_ID, -1); - if (snoozeId == -1) { - // No snooze set, do nothing. - return; - } else if (snoozeId == id) { - // This is the same id so clear the shared prefs. - clearSnoozePreference(context, prefs); - } - } - - // Helper to remove the snooze preference. Do not use clear because that - // will erase the clock preferences. Also clear the snooze notification in - // the window shade. - private static void clearSnoozePreference(final Context context, - final SharedPreferences prefs) { - final int alarmId = prefs.getInt(PREF_SNOOZE_ID, -1); - if (alarmId != -1) { - NotificationManager nm = (NotificationManager) - context.getSystemService(Context.NOTIFICATION_SERVICE); - nm.cancel(alarmId); - } - - final SharedPreferences.Editor ed = prefs.edit(); - ed.remove(PREF_SNOOZE_ID); - ed.remove(PREF_SNOOZE_TIME); - ed.commit(); - }; - - /** - * If there is a snooze set, enable it in AlarmManager - * @return true if snooze is set - */ - private static boolean enableSnoozeAlert(final Context context) { - SharedPreferences prefs = context.getSharedPreferences( - AlarmClock.PREFERENCES, 0); - - int id = prefs.getInt(PREF_SNOOZE_ID, -1); - if (id == -1) { - return false; - } - long time = prefs.getLong(PREF_SNOOZE_TIME, -1); - - // Get the alarm from the db. - final Alarm alarm = getAlarm(context.getContentResolver(), id); - // The time in the database is either 0 (repeating) or a specific time - // for a non-repeating alarm. Update this value so the AlarmReceiver - // has the right time to compare. - alarm.time = time; - - enableAlert(context, alarm, time); - return true; - } - - /** - * Tells the StatusBar whether the alarm is enabled or disabled - */ - private static void setStatusBarIcon(Context context, boolean enabled) { - Intent alarmChanged = new Intent(Intent.ACTION_ALARM_CHANGED); - alarmChanged.putExtra("alarmSet", enabled); - context.sendBroadcast(alarmChanged); - } - - /** - * Given an alarm in hours and minutes, return a time suitable for - * setting in AlarmManager. - * @param hour Always in 24 hour 0-23 - * @param minute 0-59 - * @param daysOfWeek 0-59 - */ - static Calendar calculateAlarm(int hour, int minute, Alarm.DaysOfWeek daysOfWeek) { - - // start with now - Calendar c = Calendar.getInstance(); - c.setTimeInMillis(System.currentTimeMillis()); - - int nowHour = c.get(Calendar.HOUR_OF_DAY); - int nowMinute = c.get(Calendar.MINUTE); - - // if alarm is behind current time, advance one day - if (hour < nowHour || - hour == nowHour && minute <= nowMinute) { - c.add(Calendar.DAY_OF_YEAR, 1); - } - c.set(Calendar.HOUR_OF_DAY, hour); - c.set(Calendar.MINUTE, minute); - c.set(Calendar.SECOND, 0); - c.set(Calendar.MILLISECOND, 0); - - int addDays = daysOfWeek.getNextAlarm(c); - /* Log.v("** TIMES * " + c.getTimeInMillis() + " hour " + hour + - " minute " + minute + " dow " + c.get(Calendar.DAY_OF_WEEK) + " from now " + - addDays); */ - if (addDays > 0) c.add(Calendar.DAY_OF_WEEK, addDays); - return c; - } - - static String formatTime(final Context context, int hour, int minute, - Alarm.DaysOfWeek daysOfWeek) { - Calendar c = calculateAlarm(hour, minute, daysOfWeek); - return formatTime(context, c); - } - - /* used by AlarmAlert */ - static String formatTime(final Context context, Calendar c) { - String format = get24HourMode(context) ? M24 : M12; - return (c == null) ? "" : (String)DateFormat.format(format, c); - } - - /** - * Shows day and time -- used for lock screen - */ - private static String formatDayAndTime(final Context context, Calendar c) { - String format = get24HourMode(context) ? DM24 : DM12; - return (c == null) ? "" : (String)DateFormat.format(format, c); - } - - /** - * Save time of the next alarm, as a formatted string, into the system - * settings so those who care can make use of it. - */ - static void saveNextAlarm(final Context context, String timeString) { - Settings.System.putString(context.getContentResolver(), - Settings.System.NEXT_ALARM_FORMATTED, - timeString); - } - - /** - * @return true if clock is set to 24-hour mode - */ - static boolean get24HourMode(final Context context) { - return android.text.format.DateFormat.is24HourFormat(context); - } -} diff --git a/src/com/android/alarmclock/AnalogAppWidgetProvider.java b/src/com/android/alarmclock/AnalogAppWidgetProvider.java deleted file mode 100644 index c522b17..0000000 --- a/src/com/android/alarmclock/AnalogAppWidgetProvider.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2009 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.PendingIntent; -import android.appwidget.AppWidgetManager; -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.widget.RemoteViews; - -/** - * Simple widget to show analog clock. - */ -public class AnalogAppWidgetProvider extends BroadcastReceiver { - static final String TAG = "AnalogAppWidgetProvider"; - - public void onReceive(Context context, Intent intent) { - String action = intent.getAction(); - - if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) { - RemoteViews views = new RemoteViews(context.getPackageName(), - R.layout.analog_appwidget); - - views.setOnClickPendingIntent(R.id.analog_appwidget, - PendingIntent.getActivity(context, 0, - new Intent(context, AlarmClock.class), - PendingIntent.FLAG_CANCEL_CURRENT)); - - int[] appWidgetIds = intent.getIntArrayExtra( - AppWidgetManager.EXTRA_APPWIDGET_IDS); - - AppWidgetManager gm = AppWidgetManager.getInstance(context); - gm.updateAppWidget(appWidgetIds, views); - } - } -} - diff --git a/src/com/android/alarmclock/ClockPicker.java b/src/com/android/alarmclock/ClockPicker.java deleted file mode 100644 index 31150a2..0000000 --- a/src/com/android/alarmclock/ClockPicker.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.Activity; -import android.content.SharedPreferences; -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; -import android.view.Window; -import android.widget.AdapterView; -import android.widget.BaseAdapter; -import android.widget.Gallery; - -/** - * Clock face picker for the Alarm Clock application. - */ -public class ClockPicker extends Activity implements - AdapterView.OnItemSelectedListener, AdapterView.OnItemClickListener { - - private LayoutInflater mFactory; - private Gallery mGallery; - - private SharedPreferences mPrefs; - private View mClock; - private ViewGroup mClockLayout; - private int mPosition; - - @Override - public void onCreate(Bundle icicle) { - super.onCreate(icicle); - requestWindowFeature(Window.FEATURE_NO_TITLE); - - mFactory = LayoutInflater.from(this); - setContentView(R.layout.clockpicker); - - mGallery = (Gallery) findViewById(R.id.gallery); - mGallery.setAdapter(new ClockAdapter()); - mGallery.setOnItemSelectedListener(this); - mGallery.setOnItemClickListener(this); - - mPrefs = getSharedPreferences(AlarmClock.PREFERENCES, 0); - int face = mPrefs.getInt(AlarmClock.PREF_CLOCK_FACE, 0); - if (face < 0 || face >= AlarmClock.CLOCKS.length) face = 0; - - mClockLayout = (ViewGroup) findViewById(R.id.clock_layout); - mClockLayout.setOnClickListener(new View.OnClickListener() { - public void onClick(View v) { - selectClock(mPosition); - } - }); - - mGallery.setSelection(face, false); - } - - public void onItemSelected(AdapterView parent, View v, int position, long id) { - if (mClock != null) { - mClockLayout.removeView(mClock); - } - mClock = mFactory.inflate(AlarmClock.CLOCKS[position], null); - mClockLayout.addView(mClock, 0); - mPosition = position; - } - - public void onItemClick(AdapterView parent, View v, int position, long id) { - selectClock(position); - } - - private synchronized void selectClock(int position) { - SharedPreferences.Editor ed = mPrefs.edit(); - ed.putInt(AlarmClock.PREF_CLOCK_FACE, position); - ed.commit(); - - setResult(RESULT_OK); - finish(); - } - - public void onNothingSelected(AdapterView parent) { - } - - class ClockAdapter extends BaseAdapter { - - public ClockAdapter() { - } - - public int getCount() { - return AlarmClock.CLOCKS.length; - } - - public Object getItem(int position) { - return position; - } - - public long getItemId(int position) { - return position; - } - - public View getView(final int position, View convertView, ViewGroup parent) { - View clock = mFactory.inflate(AlarmClock.CLOCKS[position], null); - return clock; - } - - } -} diff --git a/src/com/android/alarmclock/DigitalClock.java b/src/com/android/alarmclock/DigitalClock.java deleted file mode 100644 index 7ae92f1..0000000 --- a/src/com/android/alarmclock/DigitalClock.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.BroadcastReceiver; -import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.content.res.Resources; -import android.database.ContentObserver; -import android.graphics.drawable.AnimationDrawable; -import android.graphics.drawable.Drawable; -import android.os.Handler; -import android.provider.Settings; -import android.text.format.DateFormat; -import android.util.AttributeSet; -import android.view.View; -import android.widget.LinearLayout; -import android.widget.TextView; - -import java.util.Calendar; - -/** - * Displays the time - */ -public class DigitalClock extends LinearLayout { - - private final static String M12 = "h:mm"; - - private Calendar mCalendar; - private String mFormat; - private TextView mTimeDisplay; - private AmPm mAmPm; - private boolean mAnimate; - private ContentObserver mFormatChangeObserver; - private boolean mLive = true; - private boolean mAttached; - - /* called by system on minute ticks */ - private final Handler mHandler = new Handler(); - private final BroadcastReceiver mIntentReceiver = new BroadcastReceiver() { - @Override - public void onReceive(Context context, Intent intent) { - if (mLive && intent.getAction().equals( - Intent.ACTION_TIMEZONE_CHANGED)) { - mCalendar = Calendar.getInstance(); - } - updateTime(); - } - }; - - static class AmPm { - private int mColorOn, mColorOff; - - private LinearLayout mAmPmLayout; - private TextView mAm, mPm; - - AmPm(View parent) { - mAmPmLayout = (LinearLayout) parent.findViewById(R.id.am_pm); - mAm = (TextView)mAmPmLayout.findViewById(R.id.am); - mPm = (TextView)mAmPmLayout.findViewById(R.id.pm); - - Resources r = parent.getResources(); - mColorOn = r.getColor(R.color.ampm_on); - mColorOff = r.getColor(R.color.ampm_off); - } - - void setShowAmPm(boolean show) { - mAmPmLayout.setVisibility(show ? View.VISIBLE : View.GONE); - } - - void setIsMorning(boolean isMorning) { - mAm.setTextColor(isMorning ? mColorOn : mColorOff); - mPm.setTextColor(isMorning ? mColorOff : mColorOn); - } - } - - private class FormatChangeObserver extends ContentObserver { - public FormatChangeObserver() { - super(new Handler()); - } - @Override - public void onChange(boolean selfChange) { - setDateFormat(); - updateTime(); - } - } - - public DigitalClock(Context context) { - this(context, null); - } - - public DigitalClock(Context context, AttributeSet attrs) { - super(context, attrs); - } - - @Override - protected void onFinishInflate() { - super.onFinishInflate(); - - mTimeDisplay = (TextView) findViewById(R.id.timeDisplay); - mAmPm = new AmPm(this); - mCalendar = Calendar.getInstance(); - - setDateFormat(); - } - - @Override - protected void onAttachedToWindow() { - super.onAttachedToWindow(); - - if (Log.LOGV) Log.v("onAttachedToWindow " + this); - - if (mAttached) return; - mAttached = true; - - if (mAnimate) { - setBackgroundResource(R.drawable.animate_circle); - /* Start the animation (looped playback by default). */ - ((AnimationDrawable) getBackground()).start(); - } - - if (mLive) { - /* monitor time ticks, time changed, timezone */ - IntentFilter filter = new IntentFilter(); - filter.addAction(Intent.ACTION_TIME_TICK); - filter.addAction(Intent.ACTION_TIME_CHANGED); - filter.addAction(Intent.ACTION_TIMEZONE_CHANGED); - mContext.registerReceiver(mIntentReceiver, filter, null, mHandler); - } - - /* monitor 12/24-hour display preference */ - mFormatChangeObserver = new FormatChangeObserver(); - mContext.getContentResolver().registerContentObserver( - Settings.System.CONTENT_URI, true, mFormatChangeObserver); - - updateTime(); - } - - @Override - protected void onDetachedFromWindow() { - super.onDetachedFromWindow(); - - if (!mAttached) return; - mAttached = false; - - Drawable background = getBackground(); - if (background instanceof AnimationDrawable) { - ((AnimationDrawable) background).stop(); - } - - if (mLive) { - mContext.unregisterReceiver(mIntentReceiver); - } - mContext.getContentResolver().unregisterContentObserver( - mFormatChangeObserver); - } - - - void updateTime(Calendar c) { - mCalendar = c; - updateTime(); - } - - private void updateTime() { - if (mLive) { - mCalendar.setTimeInMillis(System.currentTimeMillis()); - } - - CharSequence newTime = DateFormat.format(mFormat, mCalendar); - mTimeDisplay.setText(newTime); - mAmPm.setIsMorning(mCalendar.get(Calendar.AM_PM) == 0); - } - - private void setDateFormat() { - mFormat = Alarms.get24HourMode(mContext) ? Alarms.M24 : M12; - mAmPm.setShowAmPm(mFormat == M12); - } - - void setAnimate() { - mAnimate = true; - } - - void setLive(boolean live) { - mLive = live; - } -} diff --git a/src/com/android/alarmclock/Log.java b/src/com/android/alarmclock/Log.java deleted file mode 100644 index 18cc391..0000000 --- a/src/com/android/alarmclock/Log.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -/** - * package-level logging flag - */ - -package com.android.alarmclock; - -import android.os.SystemClock; -import android.util.Config; - -class Log { - public final static String LOGTAG = "AlarmClock"; - - static final boolean LOGV = AlarmClock.DEBUG ? Config.LOGD : Config.LOGV; - - static void v(String logMe) { - android.util.Log.v(LOGTAG, /* SystemClock.uptimeMillis() + " " + */ logMe); - } - - static void e(String logMe) { - android.util.Log.e(LOGTAG, logMe); - } - - static void e(String logMe, Exception ex) { - android.util.Log.e(LOGTAG, logMe, ex); - } -} diff --git a/src/com/android/alarmclock/RepeatPreference.java b/src/com/android/alarmclock/RepeatPreference.java deleted file mode 100644 index 6af023b..0000000 --- a/src/com/android/alarmclock/RepeatPreference.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.AlertDialog.Builder; -import android.content.Context; -import android.content.DialogInterface; -import android.preference.ListPreference; -import android.util.AttributeSet; - -import java.text.DateFormatSymbols; -import java.util.Calendar; - -public class RepeatPreference extends ListPreference { - - // Initial value that can be set with the values saved in the database. - private Alarm.DaysOfWeek mDaysOfWeek = new Alarm.DaysOfWeek(0); - // New value that will be set if a positive result comes back from the - // dialog. - private Alarm.DaysOfWeek mNewDaysOfWeek = new Alarm.DaysOfWeek(0); - - public RepeatPreference(Context context, AttributeSet attrs) { - super(context, attrs); - - String[] weekdays = new DateFormatSymbols().getWeekdays(); - String[] values = new String[] { - weekdays[Calendar.MONDAY], - weekdays[Calendar.TUESDAY], - weekdays[Calendar.WEDNESDAY], - weekdays[Calendar.THURSDAY], - weekdays[Calendar.FRIDAY], - weekdays[Calendar.SATURDAY], - weekdays[Calendar.SUNDAY], - }; - setEntries(values); - setEntryValues(values); - } - - @Override - protected void onDialogClosed(boolean positiveResult) { - if (positiveResult) { - mDaysOfWeek.set(mNewDaysOfWeek); - setSummary(mDaysOfWeek.toString(getContext(), true)); - } - } - - @Override - protected void onPrepareDialogBuilder(Builder builder) { - CharSequence[] entries = getEntries(); - CharSequence[] entryValues = getEntryValues(); - - builder.setMultiChoiceItems( - entries, mDaysOfWeek.getBooleanArray(), - new DialogInterface.OnMultiChoiceClickListener() { - public void onClick(DialogInterface dialog, int which, - boolean isChecked) { - mNewDaysOfWeek.set(which, isChecked); - } - }); - } - - public void setDaysOfWeek(Alarm.DaysOfWeek dow) { - mDaysOfWeek.set(dow); - mNewDaysOfWeek.set(dow); - setSummary(dow.toString(getContext(), true)); - } - - public Alarm.DaysOfWeek getDaysOfWeek() { - return mDaysOfWeek; - } -} diff --git a/src/com/android/alarmclock/SetAlarm.java b/src/com/android/alarmclock/SetAlarm.java deleted file mode 100644 index 3078358..0000000 --- a/src/com/android/alarmclock/SetAlarm.java +++ /dev/null @@ -1,328 +0,0 @@ -/* - * Copyright (C) 2007 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.app.TimePickerDialog; -import android.content.Context; -import android.content.Intent; -import android.os.Bundle; -import android.preference.CheckBoxPreference; -import android.preference.EditTextPreference; -import android.preference.Preference; -import android.preference.PreferenceActivity; -import android.preference.PreferenceScreen; -import android.text.format.DateFormat; -import android.view.LayoutInflater; -import android.view.Menu; -import android.view.MenuItem; -import android.view.View; -import android.view.ViewGroup.LayoutParams; -import android.widget.Button; -import android.widget.FrameLayout; -import android.widget.LinearLayout; -import android.widget.ListView; -import android.widget.TimePicker; -import android.widget.Toast; - -/** - * Manages each alarm - */ -public class SetAlarm extends PreferenceActivity - implements TimePickerDialog.OnTimeSetListener { - - private EditTextPreference mLabel; - private Preference mTimePref; - private AlarmPreference mAlarmPref; - private CheckBoxPreference mVibratePref; - private RepeatPreference mRepeatPref; - private MenuItem mDeleteAlarmItem; - private MenuItem mTestAlarmItem; - - private int mId; - private boolean mEnabled; - private int mHour; - private int mMinutes; - - /** - * Set an alarm. Requires an Alarms.ALARM_ID to be passed in as an - * extra. FIXME: Pass an Alarm object like every other Activity. - */ - @Override - protected void onCreate(Bundle icicle) { - super.onCreate(icicle); - - addPreferencesFromResource(R.xml.alarm_prefs); - - // Get each preference so we can retrieve the value later. - mLabel = (EditTextPreference) findPreference("label"); - mLabel.setOnPreferenceChangeListener( - new Preference.OnPreferenceChangeListener() { - public boolean onPreferenceChange(Preference p, - Object newValue) { - // Set the summary based on the new label. - p.setSummary((String) newValue); - return true; - } - }); - mTimePref = findPreference("time"); - mAlarmPref = (AlarmPreference) findPreference("alarm"); - mVibratePref = (CheckBoxPreference) findPreference("vibrate"); - mRepeatPref = (RepeatPreference) findPreference("setRepeat"); - - Intent i = getIntent(); - mId = i.getIntExtra(Alarms.ALARM_ID, -1); - if (Log.LOGV) { - Log.v("In SetAlarm, alarm id = " + mId); - } - - /* load alarm details from database */ - Alarm alarm = Alarms.getAlarm(getContentResolver(), mId); - // Bad alarm, bail to avoid a NPE. - if (alarm == null) { - finish(); - return; - } - mEnabled = alarm.enabled; - mLabel.setText(alarm.label); - mLabel.setSummary(alarm.label); - mHour = alarm.hour; - mMinutes = alarm.minutes; - mRepeatPref.setDaysOfWeek(alarm.daysOfWeek); - mVibratePref.setChecked(alarm.vibrate); - // Give the alert uri to the preference. - mAlarmPref.setAlert(alarm.alert); - updateTime(); - - // We have to do this to get the save/cancel buttons to highlight on - // their own. - getListView().setItemsCanFocus(true); - - // Grab the content view so we can modify it. - FrameLayout content = (FrameLayout) getWindow().getDecorView() - .findViewById(com.android.internal.R.id.content); - - // Get the main ListView and remove it from the content view. - ListView lv = getListView(); - content.removeView(lv); - - // Create the new LinearLayout that will become the content view and - // make it vertical. - LinearLayout ll = new LinearLayout(this); - ll.setOrientation(LinearLayout.VERTICAL); - - // Have the ListView expand to fill the screen minus the save/cancel - // buttons. - LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( - LayoutParams.MATCH_PARENT, - LayoutParams.WRAP_CONTENT); - lp.weight = 1; - ll.addView(lv, lp); - - // Inflate the buttons onto the LinearLayout. - View v = LayoutInflater.from(this).inflate( - R.layout.save_cancel_alarm, ll); - - // Attach actions to each button. - Button b = (Button) v.findViewById(R.id.alarm_save); - b.setOnClickListener(new View.OnClickListener() { - public void onClick(View v) { - // Enable the alarm when clicking "Done" - mEnabled = true; - saveAlarm(); - finish(); - } - }); - b = (Button) v.findViewById(R.id.alarm_cancel); - b.setOnClickListener(new View.OnClickListener() { - public void onClick(View v) { - finish(); - } - }); - - // Replace the old content view with our new one. - setContentView(ll); - } - - @Override - public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, - Preference preference) { - if (preference == mTimePref) { - new TimePickerDialog(this, this, mHour, mMinutes, - DateFormat.is24HourFormat(this)).show(); - } - - return super.onPreferenceTreeClick(preferenceScreen, preference); - } - - @Override - public void onBackPressed() { - saveAlarm(); - finish(); - } - - public void onTimeSet(TimePicker view, int hourOfDay, int minute) { - mHour = hourOfDay; - mMinutes = minute; - updateTime(); - // If the time has been changed, enable the alarm. - mEnabled = true; - } - - private void updateTime() { - if (Log.LOGV) { - Log.v("updateTime " + mId); - } - mTimePref.setSummary(Alarms.formatTime(this, mHour, mMinutes, - mRepeatPref.getDaysOfWeek())); - } - - private void saveAlarm() { - final String alert = mAlarmPref.getAlertString(); - long time = Alarms.setAlarm(this, mId, mEnabled, mHour, mMinutes, - mRepeatPref.getDaysOfWeek(), mVibratePref.isChecked(), - mLabel.getText(), alert); - - if (mEnabled) { - popAlarmSetToast(this, time); - } - } - - /** - * Write alarm out to persistent store and pops toast if alarm - * enabled. - * Used only in test code. - */ - private static void saveAlarm( - Context context, int id, boolean enabled, int hour, int minute, - Alarm.DaysOfWeek daysOfWeek, boolean vibrate, String label, - String alert, boolean popToast) { - if (Log.LOGV) Log.v("** saveAlarm " + id + " " + label + " " + enabled - + " " + hour + " " + minute + " vibe " + vibrate); - - // Fix alert string first - long time = Alarms.setAlarm(context, id, enabled, hour, minute, - daysOfWeek, vibrate, label, alert); - - if (enabled && popToast) { - popAlarmSetToast(context, time); - } - } - - /** - * Display a toast that tells the user how long until the alarm - * goes off. This helps prevent "am/pm" mistakes. - */ - static void popAlarmSetToast(Context context, int hour, int minute, - Alarm.DaysOfWeek daysOfWeek) { - popAlarmSetToast(context, - Alarms.calculateAlarm(hour, minute, daysOfWeek) - .getTimeInMillis()); - } - - private static void popAlarmSetToast(Context context, long timeInMillis) { - String toastText = formatToast(context, timeInMillis); - Toast toast = Toast.makeText(context, toastText, Toast.LENGTH_LONG); - ToastMaster.setToast(toast); - toast.show(); - } - - /** - * format "Alarm set for 2 days 7 hours and 53 minutes from - * now" - */ - static String formatToast(Context context, long timeInMillis) { - long delta = timeInMillis - System.currentTimeMillis(); - long hours = delta / (1000 * 60 * 60); - long minutes = delta / (1000 * 60) % 60; - long days = hours / 24; - hours = hours % 24; - - String daySeq = (days == 0) ? "" : - (days == 1) ? context.getString(R.string.day) : - context.getString(R.string.days, Long.toString(days)); - - String minSeq = (minutes == 0) ? "" : - (minutes == 1) ? context.getString(R.string.minute) : - context.getString(R.string.minutes, Long.toString(minutes)); - - String hourSeq = (hours == 0) ? "" : - (hours == 1) ? context.getString(R.string.hour) : - context.getString(R.string.hours, Long.toString(hours)); - - boolean dispDays = days > 0; - boolean dispHour = hours > 0; - boolean dispMinute = minutes > 0; - - int index = (dispDays ? 1 : 0) | - (dispHour ? 2 : 0) | - (dispMinute ? 4 : 0); - - String[] formats = context.getResources().getStringArray(R.array.alarm_set); - return String.format(formats[index], daySeq, hourSeq, minSeq); - } - - public boolean onCreateOptionsMenu(Menu menu) { - super.onCreateOptionsMenu(menu); - - mDeleteAlarmItem = menu.add(0, 0, 0, R.string.delete_alarm); - mDeleteAlarmItem.setIcon(android.R.drawable.ic_menu_delete); - - if (AlarmClock.DEBUG) { - mTestAlarmItem = menu.add(0, 0, 0, "test alarm"); - } - - return true; - } - - public boolean onOptionsItemSelected(MenuItem item) { - if (item == mDeleteAlarmItem) { - Alarms.deleteAlarm(this, mId); - finish(); - return true; - } - if (AlarmClock.DEBUG) { - if (item == mTestAlarmItem) { - setTestAlarm(); - return true; - } - } - - return false; - } - - - /** - * Test code: this is disabled for production build. Sets - * this alarm to go off on the next minute - */ - void setTestAlarm() { - - // start with now - java.util.Calendar c = java.util.Calendar.getInstance(); - c.setTimeInMillis(System.currentTimeMillis()); - - int nowHour = c.get(java.util.Calendar.HOUR_OF_DAY); - int nowMinute = c.get(java.util.Calendar.MINUTE); - - int minutes = (nowMinute + 1) % 60; - int hour = nowHour + (nowMinute == 0 ? 1 : 0); - - saveAlarm(this, mId, true, hour, minutes, mRepeatPref.getDaysOfWeek(), - true, mLabel.getText(), mAlarmPref.getAlertString(), true); - } - -} diff --git a/src/com/android/alarmclock/SettingsActivity.java b/src/com/android/alarmclock/SettingsActivity.java deleted file mode 100644 index bebfda8..0000000 --- a/src/com/android/alarmclock/SettingsActivity.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright (C) 2009 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.content.SharedPreferences; -import android.media.AudioManager; -import android.media.RingtoneManager; -import android.net.Uri; -import android.os.Bundle; -import android.preference.CheckBoxPreference; -import android.preference.ListPreference; -import android.preference.Preference; -import android.preference.PreferenceActivity; -import android.preference.PreferenceScreen; -import android.preference.RingtonePreference; -import android.provider.Settings; - -/** - * Settings for the Alarm Clock. - */ -public class SettingsActivity extends PreferenceActivity - implements Preference.OnPreferenceChangeListener { - - private static final int ALARM_STREAM_TYPE_BIT = - 1 << AudioManager.STREAM_ALARM; - - private static final String KEY_ALARM_IN_SILENT_MODE = - "alarm_in_silent_mode"; - static final String KEY_ALARM_SNOOZE = - "snooze_duration"; - static final String KEY_VOLUME_BEHAVIOR = - "volume_button_setting"; - static final String KEY_DEFAULT_RINGTONE = - "default_ringtone"; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - addPreferencesFromResource(R.xml.settings); - - final AlarmPreference ringtone = - (AlarmPreference) findPreference(KEY_DEFAULT_RINGTONE); - Uri alert = RingtoneManager.getActualDefaultRingtoneUri(this, - RingtoneManager.TYPE_ALARM); - if (alert != null) { - ringtone.setAlert(alert); - } - ringtone.setChangeDefault(); - } - - @Override - protected void onResume() { - super.onResume(); - refresh(); - } - - @Override - public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, - Preference preference) { - if (KEY_ALARM_IN_SILENT_MODE.equals(preference.getKey())) { - CheckBoxPreference pref = (CheckBoxPreference) preference; - int ringerModeStreamTypes = Settings.System.getInt( - getContentResolver(), - Settings.System.MODE_RINGER_STREAMS_AFFECTED, 0); - - if (pref.isChecked()) { - ringerModeStreamTypes &= ~ALARM_STREAM_TYPE_BIT; - } else { - ringerModeStreamTypes |= ALARM_STREAM_TYPE_BIT; - } - - Settings.System.putInt(getContentResolver(), - Settings.System.MODE_RINGER_STREAMS_AFFECTED, - ringerModeStreamTypes); - - return true; - } - - return super.onPreferenceTreeClick(preferenceScreen, preference); - } - - public boolean onPreferenceChange(Preference pref, Object newValue) { - final ListPreference listPref = (ListPreference) pref; - final int idx = listPref.findIndexOfValue((String) newValue); - listPref.setSummary(listPref.getEntries()[idx]); - return true; - } - - private void refresh() { - final CheckBoxPreference alarmInSilentModePref = - (CheckBoxPreference) findPreference(KEY_ALARM_IN_SILENT_MODE); - final int silentModeStreams = - Settings.System.getInt(getContentResolver(), - Settings.System.MODE_RINGER_STREAMS_AFFECTED, 0); - alarmInSilentModePref.setChecked( - (silentModeStreams & ALARM_STREAM_TYPE_BIT) == 0); - - final ListPreference snooze = - (ListPreference) findPreference(KEY_ALARM_SNOOZE); - snooze.setSummary(snooze.getEntry()); - snooze.setOnPreferenceChangeListener(this); - } - -} diff --git a/src/com/android/alarmclock/ToastMaster.java b/src/com/android/alarmclock/ToastMaster.java deleted file mode 100644 index c4c2815..0000000 --- a/src/com/android/alarmclock/ToastMaster.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source 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. - */ - -package com.android.alarmclock; - -import android.widget.Toast; - -public class ToastMaster { - - private static Toast sToast = null; - - private ToastMaster() { - - } - - public static void setToast(Toast toast) { - if (sToast != null) - sToast.cancel(); - sToast = toast; - } - - public static void cancelToast() { - if (sToast != null) - sToast.cancel(); - sToast = null; - } - -} |