Age | Commit message (Collapse) | Author |
|
* We never build on these, so the code and annotations are useless
Change-Id: I791370b531ecadcbddb63ca04d5c4c51aafe1bc1
|
|
* Since Android 12 introduced a new style, try to mimic it for this app
* Due to AndroidX and the support libraries still being old, we have to,
like Settings does with SettingsLib, create our own styles in the
desired looks
* Also adjust the color scheme to reflect Material You
* We deviated from AOSP already quite a bit, so we don't need to really
care about the change's footprint
* Clean up behind us by removing (now unused) resources and includes in
files that were modified anyways (and adjust order while on it)
* Copy CollapsibleToolbarBaseActivity and required resources from
SettingsLib - that way we can mimic the style easily without having
to move this app to system_ext or using privileged_api
* Since we always use dark layout, modify slightly so it works for us
* Remove things we don't need so we don't have to copy too many files
from SettingsLib
Change-Id: I4c81e03c71f468a9e468426a8233ad96059cb05d
|
|
* Not used anywhere besides one leftover import
Change-Id: Idff1d89226e858124b916413e6d3828e56f258f7
|
|
* When adding a new timer, the left FAB will change to a "delete" icon
* Switching to another tab and returning will not display it anymore,
resulting in the requirement to actually start a new timer to be able
to access already running ones
* Test:
- Default FAB visibility is GONE until a valid value is inserted
- Changing from and to tab will display it again if value was already
inserted
- Start timer
- Click "Add" (right button)
- Delete button will appear
- Delete button will be visible after swicthing tab and returning
Change-Id: I311faa96ea9e0320c630fa858227f2ad4625eb4e
|
|
* As per recommendations
Change-Id: I467c5eec9e7de1cb8084a173e942832c6ac44e27
|
|
[BadDaemon] This is needed so we get the early
dismiss button again
Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: Ib7aff8f74a4a854f3dc76c4db9737e6d81e626c7
|
|
Change-Id: Ib43a7b1314f6ddb687174e5ca176974fa922b11e
|
|
* Part of the new iconset made by Asher Simonds
Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: Ia912a8edb65ddc1366ba4261c116b1489bd586e0
|
|
Change-Id: I8b9e9ecfc3c6175be61dbf14ee0ac069812676d7
|
|
Change-Id: I2f3cb9e390bfbaabceafbd22c3aa91dacdac4a08
|
|
The nightmode option checkbox for clock screensaver is updated to the actual value of the setting
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3816
Change-Id: I1139c333f2abb991c1ee3b07dd6644b4241a6f4a
|
|
Minimum volume for a STREAM_ALARM is 1 (or 4, if caller is unprivile-
ged). Substract the minimum volume from Seekbar's value in order to set
proper volume. Also add permission MODIFY_AUDIO_SETTINGS to be able to
set the volume to 1.
Test: Open DeskClock settings, set alarm volume to 1.
Reopen app, verify volume is still at 1 (minimum).
Verify alarm volume is at 1 in settings (minimum).
Signed-off-by: Timi Rautamäki <timi.rautamaki@gmail.com>
Change-Id: Icdb5bf7ebc0daefa12edcd28d03c444709cf75c6
|
|
Test: Manual. Build and install com.android.deskclock
Bug: 171306433
Change-Id: I77178d5669f9ae3df7efcd2e8c0204d38cb395c4
Merged-In: I77178d5669f9ae3df7efcd2e8c0204d38cb395c4
|
|
Added SPDX-license-identifier-Apache-2.0 to:
Android.bp
tests/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I605c2d1781712593ee32b1443f05220e3319f721
|
|
* We can have different results depending on the number of pre-installed
ringtones in the system image
Change-Id: I97fa7703618950868acda3771dd055d1fb9b88a7
|
|
* This includes all the java changes that were made to DeskClock
during the conversion to kotlin.
Squash of the following:
AOSP/DeskClock - Add Kotlin code for alarmclock/ files
Test: none currently, DeskClockKotlin target builds successfully, testing is a work in progress
BUG: 157255731
Original-Change-Id: I4c245d209ac733c4fb5ec527bc9ed84444b8cbd6
AOSP/DeskClock - Add Kotlin file for DataModel
Test: manual - Ran the following on Sargo phone. Tested all app
interactions (alarms, stopwatch, timer, cities, settings).
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin -j
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
BUG: 157255731
Original-Change-Id: I2fe53bbdddc9f473ece01bacb386e9ad08efcdc7
AOSP/DeskClock - Add Kotlin file for RingtonePickerActivity
Test: manual testing by running the following (1) on Sargo phone and testing
the UI, also unit tests ran as follows (2)
(1)
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin -j
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
(2)
$ make DeskClockTests
$ adb install
out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests
BUG: 157255731
Original-Change-Id: I1eff3fe6e19a19aa35c6fbda541bce72b369b6ae
AOSP/DeskClock - Add Kotlin files for TimerService, SetupView, Receiver
Additionally, a small bug was fixed in the TimerModel and DataModel
Kotlin code (found by new unit tests).
Test: manual, ensuring the DeskClock UI is correct, also unit tests were
run as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin -j
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ make DeskClockTests
$ adb install out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests
BUG: 157255731
Original-Change-Id: I82a4836ab55281a73168d35ea4f50d39279ce5da
AOSP/DeskClock - Add Kotlin files for Timer classes
Test: manual, ensuring the DeskClock UI and Timers function correctly,
as well as unit tests, ran as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin -j
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ make DeskClockTests
$ adb install out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests
BUG: 157255731
Original-Change-Id: Idb33290c6bf11ee6147f547c85b5f6e3859c17b7
AOSP/DeskClock - Add Kotlin file for ExpiredTimersActivity
Test: manual, tested the DeskClock UI including running timers to
expiration. Also ran the unit tests as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ make DeskClockTests
$ adb install out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests
BUG: 157255731
Original-Change-Id: I93ec96bae36dc353c0c252c0ef6769965a7172e7
AOSP/DeskClock - Add Kotlin file for TimerFragment
Test: manual, tested the DeskClock UI and Timers specifically. As well,
unit tests were ran as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ make DeskClockTests
$ adb install out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests
BUG: 157255731
Original-Change-Id: Ib3769584161d6e712a8eafde977f58b3c55f69e3
AOSP/DeskClock - Add Kotlin for FormattedStringModel, PeriodicCallbackModel
Test: manual - Tested the DeskClock UI. As well, unit tests were ran as
follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ make DeskClockTests
$ adb install out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests
BUG: 157255731
Original-Change-Id: I7cc4fb5aa20cd32be51e65de1b2b6a12a7cfa795
AOSP/DeskClock - Add Kotlin for Tab related UI Data files
Test: manual - Tested the DeskClock UI and tab interactions. As well,
unit tests were run as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ make DeskClockTests
$ adb install out/target/product/sargo/testcases/DeskClockTests/arm64/DeskClockTests.apk
$ adb shell am instrument -w com.android.deskclock.tests`
BUG: 157255731
Original-Change-Id: Ibd7871edf20e548a1cd548246f0a6be88f5cfb88
AOSP/DeskClock - Add Kotlin file for CitySelectionActivity
Test: manual - tested DeskClock UI. As well, tests were run as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ atest DeskClockTests
BUG: 157255731
Original-Change-Id: I3bd0952f753130e655d1b9f3c911863f34e6e41a
AOSP/DeskClock - Add Kotlin files for BaseActivity, CircleButtonsLayout
Test: manual - Tested the DeskClock UI. As well, tests were run as
follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ atest DeskClockTests
BUG: 157255731
Original-Change-Id: I019825f173305756633389a26a0bb0e973f2172c
AOSP/DeskClock - Add Kotlin file for DeskClock class
The onNewIntent call in TimerFragmentTest was changed to setIntent since the
visibility of the protected onNewIntent method in Kotlin was more
restrictive than before.
Test: manual - Tested the DeskClock UI. As well tests were ran as
follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClockKotlin
$ adb install out/target/product/sargo/product/app/DeskClockKotlin/DeskClockKotlin.apk
$ atest DeskClockTests
BUG: 157255731
Original-Change-Id: I9711dd8068a29fc0a25ee1f364ecb1b6ef326d6a
Change-Id: I3d63f95cffc257734f803683d477bf3ecf88f208
|
|
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the previous
default to the manifest.
These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.
Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: Ie4caa0068010ad1484de28a65664a3f31dad6286
|
|
Repositories containing third-party code need a METADATA and a
license_type. Repositories containing only first-party code no longer
need a MODULE_LICENSE_* file.
Bug: 68860345
Bug: 69058154
Bug: 151953481
Test: no code changes
Change-Id: I580c898051b7704925103eafe2bb2aa54af73542
|
|
Change-Id: Iaddde17bf90bc065afede110a30a3ae44b0e41c5
|
|
* Right now, the dismiss animation starts and ends with the accent
color, which is a very light yellow
* Especially when you use "snooze" as in "I want to continue sleeping a
little more", the whole screen turning bright isn't helping
* Mimic the behavior of the dismiss button, which starts and ends with
a shade of gray
Change-Id: I7d0e387a247015d6e0eb5cfab7b393d9b48996e3
|
|
Update AlarmActivity.java to pass DKGRAY to animator.
Better for dismiss alarms in darkness
Change-Id: Ie7f87595c55357d0a35372aaa96f61d9ed8c4898
|
|
Change-Id: I70d5158fb4119c016446db0ea14bbef1f1a2ad7b
|
|
Change-Id: I3dd6ad3e55e39bff6a0b804a4876c2f19154ad36
|
|
This just takes care of making the database is up to date with cm-14.1
* Increasing alarm and switch to profile still need to be implemented.
Includes the following changes:
Author: Michael W <baddaemon87@gmail.com>
Date: Thu Jul 9 23:55:59 2020 +0200
DeskClock: Remove references to org.lineageos.platform.internal
* Was used for a feature that isn't used anymore
* We need to create new tables because dropping columns isn't supported
-> create temp tables, copy over values, remove old tables, rename temp
tables
* Also fixes alarm inserts, which partially failed due to increasing
volume and profile being indexed wrong:
"CursorWindow: Failed to read row 0, column 11 from a CursorWindow which
has 1 rows, 11 columns."
* Above fix is required for "new Alarms(cursor)" to not fail so we can
actually get a valid Alarms object to insert into our (temp) database
Change-Id: I80e495792dcb65955de09268c7df9c6846cee559
Author: Michael Bestas <mkbestas@lineageos.org>
Date: Sat Jul 11 22:51:10 2020 +0300
DeskClock: Stop depending on platform APIs
* We can build with sdk_version = current after latest changes
Change-Id: Ie424ffd156e9595082dc8ad935fb1c9e8e22bd87
Change-Id: Ibbb2b618ddeb6f93cd95a0fba3923bfd6d3fbbbb
|
|
* The alarm volume setting doesn't look as it should
* Copied "preference_volume_slider" from Settings (used in Settings->
Sound) and stripped by stuff we don't need (suppression_text,
widget_frame)
* Looks like without providing an initial icon, the layout would not
inflate the space for it properly, so provide the default one
Test: manual - Tested the DeskClock UI manually and checked that
alarm volume preference is aligned to the rest of the preferences
Change-Id: Ib1e36c36c8fb5c91992dc8163fe84564b647bdbd
|
|
Change-Id: I01562f0812208c1c7d6a71a9c558f20e086cb64c
|
|
* Currently the snackbar says
"Der Wecker klingelt in 5 Tage, 3 Stunden und 47 Minuten"
* It must be "Der Wecker klingelt in 5 Tagen, 3 Stunden und 47 Minuten"
* Also checked if these plurals aren't used elsewhere so other strings
wouldn't make sense anymore - no more usages found
Change-Id: Iabadaa254afc7a04cb00d79753be1443719fce2c
|
|
* Otherwise onStart() in StopwatchFragment will be called
when app still believes it's running in the background and
thus will remove FLAG_KEEP_SCREEN_ON window flag.
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2258
Change-Id: I196051d0d03f479c7ee3d0f7735cf8e64b70d70d
|
|
* The getTimer() method returns null when we call getFabTargetVisibility()
before the onCreateView method gets called, resulting in the FAB not
being shown
* A video how to reproduce the issue can be found on the bug report linked
below
* Fix: Always return the first timer (if one exists) so we can properly
decide if the FAB needs to be shown
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2250
Change-Id: Id16686c729ee41d14c890827dc441e81511c8405
|
|
Change-Id: Iaadfb417f0ca8638936875113ec2f39853f2a39c
|
|
* Wrap the desk_clock layout into a LinearLayout so the Snackbar
appears above the BottomNavigationView
* Change the icon tint and text color to reflect the changes for the dark
layout
* Use a BottomNavigationView instead of a TabLayout
* Reorder imports - looks like someone didn't care before
Co-authored-by: Arian <arian.kulmer@web.de>
Co-authored-by: Jesse Chan <jc@lineageos.org>
Signed-off-by: Jesse Chan <jc@lineageos.org>
Change-Id: I780713dcbeb58256b2660a9631d48e5f7259fb11
|
|
Change-Id: Ia2c7e28e161f1a0f01de13deff4d02a78c34f8d5
|
|
... we have cookies
* Move minSdkVersion to 24 so the notification actions don't use the
icons anymore and we can just tint the icons black to fit onto the new
accent color used e.g. for the FABs
* Move accent color to an own color name which is defined differently
for values and values-night
* Background: Keep blue for light theme but use grey for night one
Change-Id: Ib14044fc9c6de15453891638581a7e3f4d10c6c5
|
|
Change-Id: I6ba715acbcdfcbd7472d5f7bf2008efa6027139a
|
|
* Copied from:
frameworks/base/packages/overlays/IconPackCircularSettingsOverlay/res/drawable/ic_delete.xml
frameworks/base/packages/SystemUI/res-keyguard/drawable/ic_backspace_black_24dp.xml
https://materialdesignicons.com
https://material.io
Change-Id: I84de4bfb9e38a88de182586e849c4e47d8d59b69
|
|
Change-Id: I1c9d2fa0c3f3f7285d23c0b5ffe7d55cb59fd247
|
|
Change-Id: I3c817c21c6df506662bb50c6632fe5cc0c39e8a7
|
|
Use POWER_OFF_ALARM permission to send set and cancel power off alarm
actions.
CRs-fixed: 2282053
Change-Id: I1a7984cb90db289d1bd7377963dbd28aa866eb10
|
|
1. Add set and cancel power off alarm actions
Power off alarm feature is based on DeskClock app. Add set and cancel
power off alarm actions for the feature.
2. update alarm if it is handled in min framework
Update the alarm instance status when the power off alarm is handled
in min framework mode.
CRs-Fixed: 2200664
Change-Id: I9442b05b8c4d6213676943163e3c0b995047d903
|
|
Allow the alarm to be dismissed/snoozed by flipping or shaking
Picked from:
http://review.cyanogenmod.org/#/c/29894
http://review.cyanogenmod.org/#/c/80342
http://review.cyanogenmod.org/#/c/81204
http://review.cyanogenmod.org/#/c/94950
Authors/Contributors:
Artem Chep <artemchep@gmail.com>
Danny Baumann <dannybaumann@web.de>
Ronald Ramsay II <ronaldramsayii@gmail.com>
Danesh M <daneshm90@gmail.com>
Michael Bestas <mikeioannina@gmail.com>
Martin Brabham <mbrabham@cyngn.com>
Keith Mok <kmok@cyngn.com> - Use accelerometer instead of orientation sensor
Dan Pasanen <dan.pasanen@gmail.com> - Android 8.1 port
Change-Id: I222b6cd53a95db6f8662e7aef52aa6922d8a5d6a
|
|
Change-Id: I772f0a697b48d2d1752aa08d517bb09050f96836
Signed-off-by: Joey <joey@lineageos.org>
|
|
Change-Id: I6963ed861d6b5115ea87d1c9e59186e696b5b1de
Signed-off-by: Joey <joey@lineageos.org>
|
|
Change-Id: I726064ca8112926631e77a399c5066a9a8de294e
|
|
Test: manual, tested the DeskClock UI. As well tests were ran as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClock
$ adb install out/target/product/sargo/product/app/DeskClock/DeskClock.apk
$ atest DeskClockTests
$ make DeskClockJava
$ adb install out/target/product/sargo/product/app/DeskClockJava/DeskClockJava.apk
$ atest DeskClockTests
BUG: 157255731
Change-Id: I4fafbc1021102dc7da7ad592a8840a9220d320cd
|
|
Test: manual, tested the DeskClock UI. As well tests were ran as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClock
$ adb install out/target/product/sargo/product/app/DeskClock/DeskClock.apk
$ atest DeskClockTests
$ make DeskClockJava
$ adb install out/target/product/sargo/product/app/DeskClockJava/DeskClockJava.apk
$ atest DeskClockTests
BUG: 157255731
Change-Id: Iecbbe5b390e8121bd6131431b2fd2f2c56467428
|
|
Test: manual, tested the DeskClock UI. As well tests were ran as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClock
$ adb install out/target/product/sargo/product/app/DeskClock/DeskClock.apk
$ atest DeskClockTests
$ make DeskClockJava
$ adb install out/target/product/sargo/product/app/DeskClockJava/DeskClockJava.apk
$ atest DeskClockTests
BUG: 157255731
Change-Id: I85888a5c511a277cfb17f8a3e431ec5b11ea6bd8
|
|
Kotlin AndroidX upgrades, as well as Java AndroidX upgrades to ensure
both DeskClock and DeskClockJava targets pass the tests.
Test: manual, tested the DeskClock UI. As well tests were ran as follows
$ source build/envsetup.sh
$ lunch aosp_sargo-userdebug
$ make DeskClock
$ adb install out/target/product/sargo/product/app/DeskClock/DeskClock.apk
$ atest DeskClockTests
$ make DeskClockJava
$ adb install out/target/product/sargo/product/app/DeskClockJava/DeskClockJava.apk
$ atest DeskClockTests
BUG: 157255731
Change-Id: I4e038932e913a125265bcf5c0091f69e34ec16ce
|
|
* Alarm notifications etc. are important and should be on high
importance level.
* On contrast, upcoming alarms etc. should not have sounds or vibrations
attached to them.
* In addition, we need to fix strings for notification channel.
* In order to achieve this, we need to create some new channels because
you can't change the priority for existing channels
* Delete old channels on boot and update the names of existing channels if
they already exist (they get created with the first notification
requiring them)
* Move creation of upcoming alarm notifications into one place
Test: manual - Tested the DeskClock UI manually and tested that every possible
notification behaves as expected.
Co-authored-by: Wang Han <416810799@qq.com>
Change-Id: I6d2e9abd6a822a62b3313c62b0617d8d9211948e
|
|
notification.
Root cause: Because alarm notification is IMPORT_DEFAULT in AOSP R,
there is no alarm alert pop up when alarm on time.
Solution: Improve the priority to IMPORT_HIGH.
Merging b/153362039#comment6 and I have added HIGH at one of the missed locations.
Changed IMPORTANCE_DEFAULT to IMPORTANCE_HIGH in showHighPriorityNotification,
updateUpcomingAlarmGroupNotification and updateMissedAlarmGroupNotification methods.
BUG: 153362039
Test: manual - Tested the DeskClock UI manually and tested the alarm, stopwatch and timer.
$ make -j 40
$ ls -l out/target/product/bonito/product/app/DeskClock/DeskClock.apk
-rw-r----- 1 rtenneti primarygroup 6117353 Jul 13 11:35 out/target/product/bonito/product/app/DeskClock/DeskClock.apk
$ adb install -r out/target/product/bonito/product/app/DeskClock/DeskClock.apk
+ Verified by setting up the alaram and waiting for the alarm to go off.
Change-Id: I7d97fe6a39b016a9b9850849b38e1a1b98410807
|
|
not destroyed. Fixes the crash bug. Code matches internal code.
BUG: 153590150
Test: manual - Tested the DeskClock UI manually and tested the timer.
$ make -j 40
... 6117353 Jul 7 15:27 out/target/product/bonito/product/app/DeskClock/DeskClock.apk
$ adb install -r -d -t out/target/product/bonito/product/app/DeskClock/DeskClock.apk
Change-Id: I582013ebffef2c8d1ec16255ea531d874d14a968
|