From d692001f7c2f9a57a8801c0adbb1a25ffe402baf Mon Sep 17 00:00:00 2001
From: Meghdad <61308304+MeghdadFadaee@users.noreply.github.com>
Date: Tue, 13 Oct 2026 19:41:05 +0330
Subject: [PATCH] initial commit
---
.gitattributes | 16 +
.github/workflows/android.yml | 58 +++
.gitignore | 45 +-
CONTRIBUTING.md | 30 ++
LICENSE | 21 +
PRIVACY.md | 13 +
README.md | 143 ++++++
THIRD_PARTY_NOTICES.md | 15 +
app/build.gradle.kts | 4 +-
.../remember/ExampleInstrumentedTest.kt | 24 -
.../java/meghdad/remember/LaunchTest.kt | 30 ++
.../meghdad/remember/RecordingFlowTest.kt | 60 +++
.../RecordingLimitsIntegrationTest.kt | 95 ++++
.../java/meghdad/remember/RecordingsTest.kt | 36 ++
.../java/meghdad/remember/SettingsTest.kt | 55 +++
app/src/main/AndroidManifest.xml | 34 +-
.../java/meghdad/remember/MainActivity.kt | 463 ++++++++++++++++++
.../meghdad/remember/MinuteCounterView.kt | 82 ++++
.../java/meghdad/remember/RecordingLimits.kt | 24 +
.../java/meghdad/remember/RecordingService.kt | 168 +++++++
.../main/java/meghdad/remember/Recordings.kt | 54 ++
.../java/meghdad/remember/SpatialDrawables.kt | 72 +++
.../java/meghdad/remember/StorageChartView.kt | 64 +++
.../java/meghdad/remember/StorageUsage.kt | 33 ++
.../res/drawable/ic_launcher_background.xml | 170 -------
.../res/drawable/ic_launcher_foreground.xml | 30 --
app/src/main/res/drawable/ic_remember.xml | 4 +
.../main/res/mipmap-anydpi/ic_launcher.xml | 6 -
.../res/mipmap-anydpi/ic_launcher_round.xml | 6 -
app/src/main/res/mipmap-hdpi/ic_launcher.webp | Bin 1404 -> 0 bytes
.../res/mipmap-hdpi/ic_launcher_round.webp | Bin 2898 -> 0 bytes
app/src/main/res/mipmap-mdpi/ic_launcher.webp | Bin 982 -> 0 bytes
.../res/mipmap-mdpi/ic_launcher_round.webp | Bin 1772 -> 0 bytes
.../main/res/mipmap-xhdpi/ic_launcher.webp | Bin 1900 -> 0 bytes
.../res/mipmap-xhdpi/ic_launcher_round.webp | Bin 3918 -> 0 bytes
.../main/res/mipmap-xxhdpi/ic_launcher.webp | Bin 2884 -> 0 bytes
.../res/mipmap-xxhdpi/ic_launcher_round.webp | Bin 5914 -> 0 bytes
.../main/res/mipmap-xxxhdpi/ic_launcher.webp | Bin 3844 -> 0 bytes
.../res/mipmap-xxxhdpi/ic_launcher_round.webp | Bin 7778 -> 0 bytes
app/src/main/res/values-night/themes.xml | 24 +-
app/src/main/res/values/colors.xml | 10 -
app/src/main/res/values/strings.xml | 4 +-
app/src/main/res/values/themes.xml | 24 +-
app/src/main/res/xml/backup_rules.xml | 13 -
.../main/res/xml/data_extraction_rules.xml | 21 +-
.../java/meghdad/remember/ExampleUnitTest.kt | 17 -
.../meghdad/remember/RecordingLimitTest.kt | 23 +
.../java/meghdad/remember/TimeLabelTest.kt | 15 +
docs/home.png | Bin 0 -> 61681 bytes
docs/settings.png | Bin 0 -> 50506 bytes
docs/storage.png | Bin 0 -> 61227 bytes
gradle/libs.versions.toml | 7 -
gradle/wrapper/gradle-wrapper.jar | Bin 45457 -> 48966 bytes
gradle/wrapper/gradle-wrapper.jar.sha256 | 1 +
gradle/wrapper/gradle-wrapper.properties | 2 +-
gradlew | 5 +-
gradlew.bat | 3 +-
licenses/Apache-2.0.txt | 202 ++++++++
58 files changed, 1855 insertions(+), 371 deletions(-)
create mode 100644 .gitattributes
create mode 100644 .github/workflows/android.yml
create mode 100644 CONTRIBUTING.md
create mode 100644 LICENSE
create mode 100644 PRIVACY.md
create mode 100644 README.md
create mode 100644 THIRD_PARTY_NOTICES.md
delete mode 100644 app/src/androidTest/java/meghdad/remember/ExampleInstrumentedTest.kt
create mode 100644 app/src/androidTest/java/meghdad/remember/LaunchTest.kt
create mode 100644 app/src/androidTest/java/meghdad/remember/RecordingFlowTest.kt
create mode 100644 app/src/androidTest/java/meghdad/remember/RecordingLimitsIntegrationTest.kt
create mode 100644 app/src/androidTest/java/meghdad/remember/RecordingsTest.kt
create mode 100644 app/src/androidTest/java/meghdad/remember/SettingsTest.kt
create mode 100644 app/src/main/java/meghdad/remember/MainActivity.kt
create mode 100644 app/src/main/java/meghdad/remember/MinuteCounterView.kt
create mode 100644 app/src/main/java/meghdad/remember/RecordingLimits.kt
create mode 100644 app/src/main/java/meghdad/remember/RecordingService.kt
create mode 100644 app/src/main/java/meghdad/remember/Recordings.kt
create mode 100644 app/src/main/java/meghdad/remember/SpatialDrawables.kt
create mode 100644 app/src/main/java/meghdad/remember/StorageChartView.kt
create mode 100644 app/src/main/java/meghdad/remember/StorageUsage.kt
delete mode 100644 app/src/main/res/drawable/ic_launcher_background.xml
delete mode 100644 app/src/main/res/drawable/ic_launcher_foreground.xml
create mode 100644 app/src/main/res/drawable/ic_remember.xml
delete mode 100644 app/src/main/res/mipmap-anydpi/ic_launcher.xml
delete mode 100644 app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
delete mode 100644 app/src/main/res/values/colors.xml
delete mode 100644 app/src/main/res/xml/backup_rules.xml
delete mode 100644 app/src/test/java/meghdad/remember/ExampleUnitTest.kt
create mode 100644 app/src/test/java/meghdad/remember/RecordingLimitTest.kt
create mode 100644 app/src/test/java/meghdad/remember/TimeLabelTest.kt
create mode 100644 docs/home.png
create mode 100644 docs/settings.png
create mode 100644 docs/storage.png
create mode 100644 gradle/wrapper/gradle-wrapper.jar.sha256
create mode 100644 licenses/Apache-2.0.txt
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..0290866
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,16 @@
+* text=auto
+*.kt text eol=lf
+*.kts text eol=lf
+*.xml text eol=lf
+*.md text eol=lf
+*.txt text eol=lf
+*.yml text eol=lf
+*.yaml text eol=lf
+*.toml text eol=lf
+*.properties text eol=lf
+*.sha256 text eol=lf
+gradlew text eol=lf
+gradlew.bat text eol=crlf
+*.png binary
+*.webp binary
+*.jar binary
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
new file mode 100644
index 0000000..d6a5dce
--- /dev/null
+++ b/.github/workflows/android.yml
@@ -0,0 +1,58 @@
+name: Android checks
+
+on:
+ push:
+ pull_request:
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: android-${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ verify:
+ runs-on: ubuntu-24.04
+ timeout-minutes: 25
+ steps:
+ - name: Check out source
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
+ with:
+ persist-credentials: false
+
+ - name: Set up Java 21
+ uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6
+ with:
+ distribution: temurin
+ java-version: '21'
+ cache: gradle
+
+ - name: Set up Android SDK
+ uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4
+ with:
+ packages: 'platform-tools platforms;android-36.1 build-tools;36.1.0'
+
+ - name: Verify Gradle wrapper
+ run: sha256sum --check gradle/wrapper/gradle-wrapper.jar.sha256
+
+ - name: Build, lint, test, and compile device tests
+ run: ./gradlew --no-daemon :app:assembleDebug :app:lintDebug :app:testDebugUnitTest :app:assembleDebugAndroidTest
+
+ - name: Upload check reports
+ if: always()
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
+ with:
+ name: check-reports
+ path: app/build/reports/
+ if-no-files-found: ignore
+ retention-days: 14
+
+ - name: Upload debug APK
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
+ with:
+ name: remember-debug-apk
+ path: app/build/outputs/apk/debug/app-debug.apk
+ if-no-files-found: error
+ retention-days: 14
diff --git a/.gitignore b/.gitignore
index aa724b7..7779225 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,15 +1,34 @@
+# Local IDE, SDK, and machine configuration
+.idea/
*.iml
-.gradle
-/local.properties
-/.idea/caches
-/.idea/libraries
-/.idea/modules.xml
-/.idea/workspace.xml
-/.idea/navEditor.xml
-/.idea/assetWizardSettings.xml
-.DS_Store
-/build
-/captures
-.externalNativeBuild
-.cxx
local.properties
+.DS_Store
+Thumbs.db
+
+# Gradle and Android build output
+.gradle/
+**/build/
+captures/
+.externalNativeBuild/
+.cxx/
+*.apk
+*.aab
+
+# Signing material and local credentials
+*.jks
+*.keystore
+*.p12
+*.pfx
+*.pem
+keystore.properties
+signing.properties
+.env
+.env.*
+!.env.example
+
+# Personal recordings and interrupted capture files
+*.m4a
+*.aac
+*.wav
+*.mp3
+*.pending
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..eb875c4
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,30 @@
+# Contributing
+
+Remember is an experimental Wear OS recorder. Focused fixes and improvements are welcome.
+
+## Getting started
+
+Follow the JDK and Android SDK setup in [README.md](README.md). Keep changes focused, explain the behavior they change, and include relevant validation in your pull request.
+
+Before opening a pull request, run:
+
+```sh
+./gradlew :app:assembleDebug :app:lintDebug :app:testDebugUnitTest
+```
+
+Recording-service changes also need the device tests. Use a disposable emulator: the tests request microphone permission, create audio files, and temporarily change app preferences. Some tests record for a real minute. Never run them while a personal recording is active.
+
+```sh
+./gradlew :app:connectedDebugAndroidTest
+```
+
+## Design and behavior
+
+- Keep controls comfortable on a round watch screen and reachable by touch and rotary input.
+- Maintain spoken descriptions for custom visuals and native alternatives to edge gestures.
+- Keep microphone activity visible to the user. Recording should begin with an explicit action.
+- Preserve saved audio and bookmarks when changing recording or storage behavior.
+- Respect disabled system animations and battery-saving mode.
+- Do not introduce accounts, networking, or analytics without discussing the change first.
+
+Do not include local IDE/device configuration, credentials, signing keys, build output, or personal audio in a pull request. Avoid attaching private recordings or identifying information to issues. Contributions are covered by the repository's [MIT license](LICENSE).
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..0f2d2fb
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Meghdad
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/PRIVACY.md b/PRIVACY.md
new file mode 100644
index 0000000..2fb6e15
--- /dev/null
+++ b/PRIVACY.md
@@ -0,0 +1,13 @@
+# Privacy
+
+Remember records audio only after the user starts capture and grants microphone access.
+
+- Recordings and bookmark metadata are stored in the app's private local storage.
+- The app has no internet permission, accounts, analytics, advertising, or upload feature.
+- Storage monitoring reads device capacity and Remember's own usage; it does not request access to another app's data.
+- Recording uses a microphone foreground service so it can continue when the screen is off. An ongoing recording notification includes a Save action when notifications are allowed.
+- Playback pauses when the playback activity leaves the foreground.
+- Renaming updates a recording's local metadata. Deletion removes the recording after confirmation.
+- Uninstalling the app removes its recordings and preferences. Export and phone transfer are not implemented.
+
+Developer tools and test runs can access the debug app's files. Use disposable emulator recordings for testing, and do not publish private audio or logs in issues or pull requests.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0e176e5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,143 @@
+# Remember
+
+An experimental, standalone Wear OS audio recorder designed for round watches, with the Galaxy Watch 7 as the primary design target. Capture a thought or the sounds around you, keep bookmarks, and listen back on the watch. No phone app or account is required.
+
+## Preview
+
+Screenshots from a Wear OS round-screen emulator:
+
+
+
+
+
+
+
+## Features
+
+- One-tap microphone recording, pause/resume, and on-watch playback.
+- Timestamp bookmarks, renaming, and deletion with confirmation.
+- Recording continues in a microphone foreground service when the screen turns off or you leave the app.
+- Floating rounded numerals show captured minutes; the background sweep shows seconds within the current minute.
+- A live microphone edge meter and an interactive bookmark/playback edge.
+- Device and app storage monitoring with a large proportional chart.
+- Optional minute limits: save and stop, or save each clip and start the next at zero.
+- Native controls, spoken descriptions for custom visuals, and rotary input.
+
+The appearance is inspired by Samsung's [Spatial Number watch face](https://galaxystore.samsung.com/geardetail/com.samsung.android.watch.watchface.spatialnumber?langCd=ko). The numerals are original vector paths drawn in code; no Samsung font or wallpaper is bundled. This is an independent project, not an official Samsung app.
+
+## Status and limitations
+
+**Experimental: suitable for development and evaluation.** Build, lint, unit tests, and recording integration tests have passed locally. The UI has been checked on a Wear OS round-screen emulator; recording integration tests used a separate Android emulator. Physical Galaxy Watch 7 validation is still pending.
+
+- Captures microphone sound, not internal system audio or call audio.
+- Recordings stay on the watch. Export, phone transfer, and transcription are not implemented.
+- Playback pauses when you leave the playback activity.
+- A brief gap can occur between automatically split clips.
+- Each clip has a 500 MB safety cap; reaching it saves the clip and stops the session.
+- The app attempts to recover playable unfinished files after an interruption, but an abrupt shutdown can leave unrecoverable audio.
+- Uninstalling removes recordings and preferences. Text currently uses English.
+
+Before relying on long sessions, validate microphone quality, screen-off capture, battery use, interruptions, permissions, and rotary behavior on your physical watch. Repository readiness does not imply production or Play Store release readiness.
+
+## Build from source
+
+### Requirements
+
+- JDK **21**. Android Studio's bundled JDK can be used if it is version 21.
+- Android SDK platform **36.1** (`platforms;android-36.1`).
+- Android SDK Build Tools **36.1.0** and Platform Tools.
+- Android Studio with support for the project's Android Gradle Plugin **9.2.1**, or the command-line tools.
+- Internet access for the first build to download Gradle and dependencies.
+
+The Gradle **9.4.1** wrapper is included; a global Gradle installation is unnecessary. AGP provides built-in Kotlin support. The app supports Android API 31 and later and targets API 36.
+
+### Setup
+
+1. Clone or download this repository and open its root folder in Android Studio.
+2. Install the SDK packages above in SDK Manager and select JDK 21 for Gradle.
+3. Android Studio normally creates the local SDK configuration. For a command-line build, set `ANDROID_HOME` to your SDK directory or create an untracked `local.properties` containing `sdk.dir=/absolute/path/to/android-sdk`.
+
+With Android command-line tools installed, the SDK packages can also be installed using:
+
+```sh
+sdkmanager "platform-tools" "platforms;android-36.1" "build-tools;36.1.0"
+```
+
+Build and check from the project root:
+
+```sh
+./gradlew :app:assembleDebug :app:lintDebug :app:testDebugUnitTest :app:assembleDebugAndroidTest
+```
+
+On Windows, use `gradlew.bat` instead of `./gradlew`. The debug APK is generated at `app/build/outputs/apk/debug/app-debug.apk`; generated APKs are not committed.
+
+## Install on a watch or emulator
+
+For an emulator, create a **Wear OS Large Round** device in Android Studio Device Manager, start it, select it as the deployment target, and run the `app` configuration.
+
+For a physical watch:
+
+1. Enable developer options and wireless debugging on the watch.
+2. Connect the watch and computer to the same Wi-Fi network.
+3. Pair using Android Studio's **Pair Devices Using Wi-Fi**, or use Platform Tools:
+
+```sh
+adb pair WATCH_IP:PAIRING_PORT
+adb connect WATCH_IP:CONNECTION_PORT
+adb -s WATCH_IP:CONNECTION_PORT install -r app/build/outputs/apk/debug/app-debug.apk
+```
+
+The pairing and connection ports are different. Read each from the watch's Wireless debugging screens. See [Google's Wear OS Wi-Fi debugging guide](https://developer.android.com/training/wearables/get-started/debug-wifi).
+
+## Using Remember
+
+- **Record:** tap Record and allow microphone access. Allow notifications to make the recording notification and its Save action easy to reach.
+- **Pause / Resume:** paused time is excluded from captured duration and minute limits.
+- **Mark:** add a timestamp bookmark using the button or by tapping the right edge during capture.
+- **Save:** finish and save the current clip.
+- **Moments:** browse and play recordings, rename them, or delete them after confirmation. Tap a bookmark to jump to it. The right edge also seeks during playback; the native slider is available as an alternative.
+- Swipe vertically or use rotary input to reach controls below the screen.
+
+Audio is stored as mono AAC in M4A files at 44.1 kHz / 128 kbps, approximately 1 MB per minute. The large numeral shows whole minutes in the current recording or playback, and total saved minutes on the home screen. Floating motion stops while capture is paused, the app is in the background, animations are disabled, or battery saver is active.
+
+## Settings
+
+Open **Settings** beside Moments. During capture, scroll below Save to reach it; recording continues while you browse.
+
+### Storage
+
+A large proportional ring fills most of the initial view. Lime is available space, gray is other used storage, and white represents Remember. A small white marker makes a tiny app slice visible without inflating its share. The center shows the percentage free and total capacity. Scroll down for available/app-used amounts, Refresh, and Back.
+
+App usage includes installed app files, recordings, data, and cache. Readings refresh every five seconds while the page is open. Available space follows Android's accounting, including reclaimable cache. If Android's app accounting is unavailable, an approximate app size is marked with `≈`.
+
+### Recording limit
+
+Turn the limit off for unlimited recording by time, or turn it on and choose **1–1,440 minutes** with the picker or rotary input. Disabling it retains your chosen length and action.
+
+Under **At the limit**, choose **Save & stop** to end the recording, or **Save & start next** to continue with a new clip at zero. Split clips have numbered titles and their own bookmarks. Paused time does not count. Changes apply to the next recording session, including all its parts. The 500 MB safety cap applies in either mode.
+
+## Tests and automated checks
+
+Local checks:
+
+```sh
+./gradlew :app:assembleDebug :app:lintDebug :app:testDebugUnitTest :app:assembleDebugAndroidTest
+```
+
+Device tests require a **disposable** emulator with a microphone. They create audio files and temporarily change preferences. Two tests record for a real minute; do not run them during a personal recording. Ensure only the intended test emulator is connected, because the connected-test task can target every connected device.
+
+```sh
+./gradlew :app:connectedDebugAndroidTest
+```
+
+Coverage includes duration formatting, limit boundaries, pause exclusion, real one-minute automatic stop and split rollover, playable file output, bookmarks, settings persistence/navigation, storage accounting, and clip rename/delete behavior.
+
+[Android checks](.github/workflows/android.yml) runs on pushes, pull requests, and manual dispatch. It verifies the wrapper, builds the debug app, runs lint and unit tests, and compiles device tests. It uploads check reports and a debug APK with a 14-day retention period. Device tests are run locally; the workflow does not claim to run them. The workflow uses pinned action commits and read-only repository permissions. Its first hosted run will happen after the repository is pushed to GitHub.
+
+## Privacy, contributions, and license
+
+Recordings remain in the app's private local storage. There are no accounts, analytics, ads, or upload features, and no internet permission. See [PRIVACY.md](PRIVACY.md).
+
+See [CONTRIBUTING.md](CONTRIBUTING.md) for development and pull-request guidance. Keep private audio, credentials, signing keys, local IDE/device configuration, and build output out of the repository.
+
+Remember's code and original artwork are released under the [MIT license](LICENSE). Android, Kotlin, Gradle, build plugins, and test dependencies retain their own licenses. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
new file mode 100644
index 0000000..ce9adf3
--- /dev/null
+++ b/THIRD_PARTY_NOTICES.md
@@ -0,0 +1,15 @@
+# Third-party notices
+
+Remember's source code and original vector artwork are covered by [LICENSE](LICENSE). Third-party tools and libraries retain their own licenses.
+
+## Gradle wrapper
+
+The checked-in `gradlew`, `gradlew.bat`, and `gradle/wrapper/gradle-wrapper.jar` are generated from [Gradle 9.4.1](https://github.com/gradle/gradle/tree/v9.4.1) and distributed under the Apache License, Version 2.0. The generated script copyright and license headers are retained, and the JAR includes `META-INF/LICENSE`. A copy of the license is available in [licenses/Apache-2.0.txt](licenses/Apache-2.0.txt).
+
+The wrapper configuration pins the Gradle distribution and its official SHA-256 checksum. The included JAR checksum also matches Gradle's published checksum. These generated wrapper files are not relicensed under MIT.
+
+## Resolved dependencies and platform resources
+
+Android APIs, Kotlin runtime libraries, the Android Gradle Plugin, and test libraries are obtained through the Android SDK or Gradle rather than copied as source into this repository. Their own license notices apply. Dependency coordinates and versions are listed in `gradle/libs.versions.toml` and `app/build.gradle.kts`.
+
+The app uses Android's installed system fonts. No Samsung font, watch-face asset, or wallpaper is bundled. The Spatial Number appearance is referenced as design inspiration; the numeral paths and other app artwork are drawn in project code. Screenshots in `docs/` show the app running in an emulator.
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index f5d907e..34e8c20 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -4,6 +4,7 @@ plugins {
android {
namespace = "meghdad.remember"
+ buildToolsVersion = "36.1.0"
compileSdk {
version = release(36) {
minorApiLevel = 1
@@ -34,9 +35,6 @@ android {
}
dependencies {
- implementation(libs.androidx.appcompat)
- implementation(libs.androidx.core.ktx)
- implementation(libs.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.androidx.junit)
diff --git a/app/src/androidTest/java/meghdad/remember/ExampleInstrumentedTest.kt b/app/src/androidTest/java/meghdad/remember/ExampleInstrumentedTest.kt
deleted file mode 100644
index 560434f..0000000
--- a/app/src/androidTest/java/meghdad/remember/ExampleInstrumentedTest.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-package meghdad.remember
-
-import androidx.test.platform.app.InstrumentationRegistry
-import androidx.test.ext.junit.runners.AndroidJUnit4
-
-import org.junit.Test
-import org.junit.runner.RunWith
-
-import org.junit.Assert.*
-
-/**
- * Instrumented test, which will execute on an Android device.
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-@RunWith(AndroidJUnit4::class)
-class ExampleInstrumentedTest {
- @Test
- fun useAppContext() {
- // Context of the app under test.
- val appContext = InstrumentationRegistry.getInstrumentation().targetContext
- assertEquals("meghdad.remember", appContext.packageName)
- }
-}
\ No newline at end of file
diff --git a/app/src/androidTest/java/meghdad/remember/LaunchTest.kt b/app/src/androidTest/java/meghdad/remember/LaunchTest.kt
new file mode 100644
index 0000000..3c2fb0e
--- /dev/null
+++ b/app/src/androidTest/java/meghdad/remember/LaunchTest.kt
@@ -0,0 +1,30 @@
+package meghdad.remember
+
+import android.content.Intent
+import android.widget.Button
+import android.view.View
+import android.view.ViewGroup
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.junit.Assert.*
+
+@RunWith(AndroidJUnit4::class)
+class LaunchTest {
+ @Test fun homeLaunchesWithAccessibleRecordAndLibraryControls() {
+ val instrumentation = InstrumentationRegistry.getInstrumentation()
+ val activity = instrumentation.startActivitySync(
+ Intent(instrumentation.targetContext, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
+ )
+ try {
+ instrumentation.runOnMainSync {
+ fun descendants(view: View): List = listOf(view) +
+ if (view is ViewGroup) (0 until view.childCount).flatMap { descendants(view.getChildAt(it)) } else emptyList()
+ val buttons = descendants(activity.window.decorView).filterIsInstance()
+ assertTrue(buttons.any { it.contentDescription == "Start recording" && it.isEnabled })
+ assertTrue(buttons.any { it.text.startsWith("Moments") })
+ }
+ } finally { instrumentation.runOnMainSync { activity.finish() } }
+ }
+}
diff --git a/app/src/androidTest/java/meghdad/remember/RecordingFlowTest.kt b/app/src/androidTest/java/meghdad/remember/RecordingFlowTest.kt
new file mode 100644
index 0000000..273dd23
--- /dev/null
+++ b/app/src/androidTest/java/meghdad/remember/RecordingFlowTest.kt
@@ -0,0 +1,60 @@
+package meghdad.remember
+
+import android.Manifest
+import android.content.Intent
+import android.media.MediaMetadataRetriever
+import android.os.SystemClock
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.junit.Assert.*
+
+@RunWith(AndroidJUnit4::class)
+class RecordingFlowTest {
+ @Test fun recordingPausesMarksAndSavesPlayableAudio() {
+ val instrumentation = InstrumentationRegistry.getInstrumentation()
+ val context = instrumentation.targetContext
+ instrumentation.uiAutomation.grantRuntimePermission(context.packageName, Manifest.permission.RECORD_AUDIO)
+ val activity = instrumentation.startActivitySync(Intent(context, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
+ var id: String? = null
+ fun command(action: String) = instrumentation.runOnMainSync {
+ val intent = Intent(context, RecordingService::class.java).setAction(action)
+ if (action == RecordingService.START) context.startForegroundService(intent) else context.startService(intent)
+ }
+ fun awaitState(condition: () -> Boolean) {
+ val end = SystemClock.elapsedRealtime() + 5000
+ while (!condition() && SystemClock.elapsedRealtime() < end) SystemClock.sleep(50)
+ assertTrue("Recorder did not reach expected state", condition())
+ }
+ try {
+ command(RecordingService.START)
+ awaitState { RecordingService.activeId != null && RecordingService.elapsed > 1100 }
+ id = RecordingService.activeId
+ command(RecordingService.PAUSE)
+ awaitState { RecordingService.paused }
+ val duration = RecordingService.elapsed
+ SystemClock.sleep(350)
+ assertEquals(duration, RecordingService.elapsed)
+ command(RecordingService.MARK)
+ awaitState { RecordingService.marks.size == 1 }
+ command(RecordingService.PAUSE)
+ awaitState { !RecordingService.paused && RecordingService.elapsed > duration + 300 }
+ command(RecordingService.SAVE)
+ awaitState { RecordingService.activeId == null }
+ val store = Recordings(context)
+ val saved = store.list().first { it.id == id }
+ assertEquals(listOf(duration), saved.marks)
+ assertTrue(saved.duration > 1400)
+ val metadata = MediaMetadataRetriever()
+ try {
+ metadata.setDataSource(store.audio(saved.id).absolutePath)
+ assertTrue(metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION)!!.toLong() > 1000)
+ } finally { metadata.release() }
+ } finally {
+ if (RecordingService.activeId != null) { command(RecordingService.SAVE); awaitState { RecordingService.activeId == null } }
+ Recordings(context).list().firstOrNull { it.id == id }?.let { Recordings(context).delete(it) }
+ instrumentation.runOnMainSync { activity.finish() }
+ }
+ }
+}
diff --git a/app/src/androidTest/java/meghdad/remember/RecordingLimitsIntegrationTest.kt b/app/src/androidTest/java/meghdad/remember/RecordingLimitsIntegrationTest.kt
new file mode 100644
index 0000000..8e5da13
--- /dev/null
+++ b/app/src/androidTest/java/meghdad/remember/RecordingLimitsIntegrationTest.kt
@@ -0,0 +1,95 @@
+package meghdad.remember
+
+import android.Manifest
+import android.app.Activity
+import android.content.Intent
+import android.media.MediaMetadataRetriever
+import android.os.SystemClock
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+import org.junit.Assert.*
+import org.junit.Test
+import org.junit.runner.RunWith
+
+@RunWith(AndroidJUnit4::class)
+class RecordingLimitsIntegrationTest {
+ private val instrumentation = InstrumentationRegistry.getInstrumentation()
+ private val context = instrumentation.targetContext
+ private fun awaitState(timeout: Long = 5000, condition: () -> Boolean) {
+ val end = SystemClock.elapsedRealtime() + timeout
+ while (!condition() && SystemClock.elapsedRealtime() < end) SystemClock.sleep(50)
+ assertTrue("Recorder did not reach expected state", condition())
+ }
+ private fun command(action: String) = instrumentation.runOnMainSync {
+ val intent = Intent(context, RecordingService::class.java).setAction(action)
+ if (action == RecordingService.START) context.startForegroundService(intent) else context.startService(intent)
+ }
+ private fun checkPlayable(clip: Clip) {
+ val metadata = MediaMetadataRetriever()
+ try {
+ metadata.setDataSource(Recordings(context).audio(clip.id).absolutePath)
+ assertTrue(metadata.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION)!!.toLong() > 1000)
+ } finally { metadata.release() }
+ }
+ private fun session(action: LimitAction, work: (Activity, String) -> Unit) {
+ val preferences = RecordingPreferences(context)
+ val previous = preferences.read()
+ val store = Recordings(context)
+ val existing = store.list().map { it.id }.toSet()
+ var activity: Activity? = null
+ try {
+ preferences.write(RecordingLimit(true, 1, action))
+ instrumentation.uiAutomation.grantRuntimePermission(context.packageName, Manifest.permission.RECORD_AUDIO)
+ activity = instrumentation.startActivitySync(Intent(context, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
+ command(RecordingService.START)
+ awaitState { RecordingService.activeId != null && RecordingService.elapsed > 1100 }
+ work(activity, RecordingService.activeId!!)
+ } finally {
+ if (RecordingService.activeId != null) {
+ command(RecordingService.SAVE)
+ awaitState { RecordingService.activeId == null }
+ }
+ preferences.write(previous)
+ store.list().filter { it.id !in existing }.forEach { store.delete(it) }
+ activity?.let { instrumentation.runOnMainSync { it.finish() } }
+ }
+ }
+ @Test fun minuteLimitExcludesPauseAndSavesAfterLeavingTheApp() = session(LimitAction.STOP) { activity, id ->
+ command(RecordingService.PAUSE)
+ awaitState { RecordingService.paused }
+ val elapsed = RecordingService.elapsed
+ SystemClock.sleep(1700)
+ assertEquals(elapsed, RecordingService.elapsed)
+ command(RecordingService.PAUSE)
+ awaitState { !RecordingService.paused }
+ instrumentation.runOnMainSync { activity.finish() }
+ awaitState(70_000) { RecordingService.activeId == null }
+ val clip = Recordings(context).list().first { it.id == id }
+ assertTrue("Expected one minute of captured audio", clip.duration in 60_000..62_000)
+ checkPlayable(clip)
+ }
+ @Test fun limitStartsNewPlayableClipAtZeroAndKeepsSessionSettings() = session(LimitAction.NEXT_CLIP) { activity, firstId ->
+ command(RecordingService.MARK)
+ awaitState { RecordingService.marks.size == 1 }
+ // Changes are for the next session, so this session must still roll over.
+ RecordingPreferences(context).write(RecordingLimit(false, 15, LimitAction.STOP))
+ instrumentation.runOnMainSync { activity.finish() }
+ awaitState(70_000) { RecordingService.activeId != null && RecordingService.activeId != firstId }
+ val secondId = RecordingService.activeId!!
+ assertEquals(2, RecordingService.part)
+ assertTrue(RecordingService.elapsed < 2000)
+ assertTrue(RecordingService.marks.isEmpty())
+ val first = Recordings(context).list().first { it.id == firstId }
+ assertTrue(first.duration in 60_000..62_000)
+ assertEquals(1, first.marks.size)
+ assertTrue(first.title.endsWith("Part 1"))
+ checkPlayable(first)
+ awaitState { RecordingService.elapsed > 1300 }
+ command(RecordingService.SAVE)
+ awaitState { RecordingService.activeId == null }
+ val second = Recordings(context).list().first { it.id == secondId }
+ assertTrue(second.duration in 1300..5000)
+ assertTrue(second.title.endsWith("Part 2"))
+ checkPlayable(second)
+ }
+}
diff --git a/app/src/androidTest/java/meghdad/remember/RecordingsTest.kt b/app/src/androidTest/java/meghdad/remember/RecordingsTest.kt
new file mode 100644
index 0000000..12e185c
--- /dev/null
+++ b/app/src/androidTest/java/meghdad/remember/RecordingsTest.kt
@@ -0,0 +1,36 @@
+package meghdad.remember
+
+import android.content.ContextWrapper
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.junit.Assert.*
+import java.io.File
+import java.util.UUID
+
+@RunWith(AndroidJUnit4::class)
+class RecordingsTest {
+ @Test fun clipsPersistRenameSortAndDeleteWithoutTouchingOtherAudio() {
+ val context = InstrumentationRegistry.getInstrumentation().targetContext
+ val folder = File(context.cacheDir, "test-${UUID.randomUUID()}").apply { mkdirs() }
+ try {
+ val isolated = object : ContextWrapper(context) { override fun getFilesDir() = folder }
+ val store = Recordings(isolated)
+ val old = Clip("first", "A thought", 1L, 60000L, listOf(1000L, 45000L))
+ val recent = Clip("second", "Street sounds", 2L, 10000L, emptyList())
+ store.audio(old.id).writeText("test audio")
+ store.audio(recent.id).writeText("test audio")
+ store.save(old); store.save(recent)
+ assertEquals(listOf(recent, old), Recordings(isolated).list())
+ store.save(old.copy(title = "Renamed idea"))
+ assertEquals("Renamed idea", store.list().last().title)
+ assertEquals(old.marks, store.list().last().marks)
+ store.delete(old)
+ assertFalse(store.audio(old.id).exists())
+ assertEquals(listOf(recent), store.list())
+ File(folder, "recordings/broken.json").writeText("invalid")
+ assertEquals(listOf(recent), store.list())
+ } finally { folder.deleteRecursively() }
+ }
+}
diff --git a/app/src/androidTest/java/meghdad/remember/SettingsTest.kt b/app/src/androidTest/java/meghdad/remember/SettingsTest.kt
new file mode 100644
index 0000000..3ff0242
--- /dev/null
+++ b/app/src/androidTest/java/meghdad/remember/SettingsTest.kt
@@ -0,0 +1,55 @@
+package meghdad.remember
+
+import android.content.Intent
+import android.view.View
+import android.view.ViewGroup
+import android.widget.Button
+import android.widget.NumberPicker
+import android.widget.Switch
+import androidx.test.platform.app.InstrumentationRegistry
+import androidx.test.ext.junit.runners.AndroidJUnit4
+import org.junit.Assert.*
+import org.junit.Test
+import org.junit.runner.RunWith
+
+@RunWith(AndroidJUnit4::class)
+class SettingsTest {
+ @Test fun settingsNavigationPersistsCustomLengthModeAndUnlimitedToggle() {
+ val instrumentation = InstrumentationRegistry.getInstrumentation()
+ val context = instrumentation.targetContext
+ val preferences = RecordingPreferences(context)
+ val previous = preferences.read()
+ val activity = instrumentation.startActivitySync(Intent(context, MainActivity::class.java).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
+ try {
+ instrumentation.runOnMainSync {
+ fun descendants(view: View): List = listOf(view) + if (view is ViewGroup)
+ (0 until view.childCount).flatMap { descendants(view.getChildAt(it)) } else emptyList()
+ fun button(prefix: String) = descendants(activity.window.decorView).filterIsInstance().first { it.text.startsWith(prefix) }
+ button("Settings").performClick()
+ button("Recording limit").performClick()
+ descendants(activity.window.decorView).filterIsInstance().single().isChecked = true
+ button("Length").performClick()
+ descendants(activity.window.decorView).filterIsInstance().single().value = 137
+ button("Save").performClick()
+ button("At the limit").performClick()
+ button("Save & start next").performClick()
+ button("Back").performClick()
+ assertEquals(RecordingLimit(true, 137, LimitAction.NEXT_CLIP), preferences.read())
+ descendants(activity.window.decorView).filterIsInstance().single().isChecked = false
+ assertEquals(RecordingLimit(false, 137, LimitAction.NEXT_CLIP), RecordingPreferences(context).read())
+ }
+ } finally {
+ preferences.write(previous)
+ instrumentation.runOnMainSync { activity.finish() }
+ }
+ }
+ @Test fun deviceAndAppStorageAreReportedWithoutUsagePermission() {
+ val context = InstrumentationRegistry.getInstrumentation().targetContext
+ val usage = readStorageUsage(context)
+ assertTrue(usage.total > 0)
+ assertTrue(usage.available in 0..usage.total)
+ assertTrue(usage.appUsed >= java.io.File(context.applicationInfo.sourceDir).length())
+ assertTrue(usage.recordings >= 0)
+ assertTrue(usage.appUsed >= usage.recordings)
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 20b9e3f..6170d60 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,15 +1,21 @@
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/java/meghdad/remember/MainActivity.kt b/app/src/main/java/meghdad/remember/MainActivity.kt
new file mode 100644
index 0000000..dbbd1a4
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/MainActivity.kt
@@ -0,0 +1,463 @@
+package meghdad.remember
+
+import android.Manifest
+import android.app.Activity
+import android.app.AlertDialog
+import android.content.Intent
+import android.content.pm.PackageManager
+import android.graphics.*
+import android.graphics.drawable.GradientDrawable
+import android.media.MediaPlayer
+import android.os.*
+import android.view.*
+import android.widget.*
+import java.text.SimpleDateFormat
+import java.util.*
+import kotlin.math.*
+
+class MainActivity : Activity() {
+ private val ink = Color.rgb(13, 17, 11)
+ private val mint = Color.rgb(199, 234, 24)
+ private val muted = Color.rgb(164, 175, 143)
+ private lateinit var body: LinearLayout
+ private lateinit var scroll: ScrollView
+ private lateinit var store: Recordings
+ private var screen = "home"
+ private var clip: Clip? = null
+ private var player: MediaPlayer? = null
+ private var minutes: MinuteCounterView? = null
+ private var motionAllowed = false
+ private lateinit var dial: SpatialDialDrawable
+ private var downX = 0f
+ private var downY = 0f
+ private var status: TextView? = null
+ private var pause: Button? = null
+ private var play: Button? = null
+ private var seek: SeekBar? = null
+ private var active = false
+ private lateinit var preferences: RecordingPreferences
+ private var limitPicker: NumberPicker? = null
+ private val storageWorker = java.util.concurrent.Executors.newSingleThreadExecutor()
+ private var storageRequest = 0
+ private var storageBusy = false
+ private var lastStorageRead = 0L
+ private var storageChart: StorageChartView? = null
+ private var storageAvailable: TextView? = null
+ private var storageApp: TextView? = null
+ private val handler = Handler(Looper.getMainLooper())
+ private val ticker = object : Runnable {
+ override fun run() {
+ val now = RecordingService.activeId != null
+ if (now != active) { active = now; if (screen == "home") render() }
+ if (now && screen == "home") {
+ updateDial(RecordingService.elapsed)
+ status?.text = if (RecordingService.paused) "PAUSED" else if (RecordingService.part > 1) "● RECORDING · ${RecordingService.part}" else "● RECORDING"
+ pause?.text = if (RecordingService.paused) "Resume" else "Pause"
+ }
+ player?.let { p ->
+ runCatching {
+ updateDial(p.currentPosition.toLong())
+ seek?.progress = p.currentPosition
+ play?.text = if (p.isPlaying) "Pause" else "Play"
+ }
+ }
+ if (screen == "storage" && SystemClock.elapsedRealtime() - lastStorageRead > 5000 && !storageBusy) loadStorage()
+ RecordingService.message?.let { Toast.makeText(this@MainActivity, it, Toast.LENGTH_SHORT).show(); RecordingService.message = null }
+ handler.postDelayed(this, 150)
+ }
+ }
+ override fun onCreate(savedInstanceState: Bundle?) {
+ super.onCreate(savedInstanceState)
+ if (Build.VERSION.SDK_INT >= 33) onBackInvokedDispatcher.registerOnBackInvokedCallback(0) { navigateBack() }
+ preferences = RecordingPreferences(this)
+ store = Recordings(this)
+ store.recover()
+ active = RecordingService.activeId != null
+ render()
+ }
+ override fun onResume() {
+ super.onResume()
+ motionAllowed = android.animation.ValueAnimator.areAnimatorsEnabled() && !getSystemService(PowerManager::class.java).isPowerSaveMode
+ minutes?.setFloating(motionAllowed && !RecordingService.paused && minutes?.visibility == View.VISIBLE)
+ handler.post(ticker)
+ }
+ override fun onPause() { handler.removeCallbacks(ticker); minutes?.setFloating(false); player?.pause(); super.onPause() }
+ override fun onDestroy() { releasePlayer(); storageWorker.shutdown(); super.onDestroy() }
+ private fun dp(value: Int) = (value * resources.displayMetrics.density).roundToInt()
+ private fun background(color: Int, radius: Float = 28f) = GradientDrawable().apply { setColor(color); cornerRadius = dp(radius.toInt()).toFloat() }
+ private fun text(value: String, size: Float, color: Int = Color.WHITE): TextView {
+ return TextView(this).apply {
+ text = value; textSize = size; setTextColor(color); gravity = Gravity.CENTER
+ setPadding(dp(4), dp(2), dp(4), dp(2))
+ setShadowLayer(dp(2).toFloat(), 0f, dp(1).toFloat(), Color.BLACK)
+ layoutParams = LinearLayout.LayoutParams(-1, -2)
+ body.addView(this)
+ }
+ }
+ private fun button(label: String, color: Int = Color.rgb(43, 52, 32), action: () -> Unit): Button {
+ return Button(this).apply {
+ text = label; textSize = 12f; isAllCaps = false; setTextColor(Color.WHITE)
+ background = if (color == mint) background(Color.argb(190, 24, 31, 16)).apply {
+ setStroke(dp(1), Color.argb(140, 199, 234, 24))
+ } else background(Color.argb(205, Color.red(color), Color.green(color), Color.blue(color)))
+ minHeight = 0; minimumHeight = 0
+ stateListAnimator = null
+ layoutParams = LinearLayout.LayoutParams(-1, dp(44)).apply { setMargins(dp(2), dp(3), dp(2), dp(3)) }
+ setOnClickListener { performHapticFeedback(HapticFeedbackConstants.CONFIRM); action() }
+ body.addView(this)
+ }
+ }
+ private fun render() {
+ minutes?.setFloating(false)
+ minutes = null; status = null; pause = null; play = null; seek = null; limitPicker = null
+ storageRequest++; storageChart = null; storageAvailable = null; storageApp = null
+ dial = SpatialDialDrawable()
+ val layers = FrameLayout(this).apply { background = dial }
+ minutes = MinuteCounterView(this).also { layers.addView(it, FrameLayout.LayoutParams(-1, -1)) }
+ scroll = ScrollView(this).apply { setBackgroundColor(Color.TRANSPARENT); isFillViewport = true; isVerticalScrollBarEnabled = false }
+ body = LinearLayout(this).apply {
+ orientation = LinearLayout.VERTICAL; gravity = Gravity.CENTER_HORIZONTAL
+ val round = resources.configuration.isScreenRound
+ setPadding(dp(if (round) 30 else 20), dp(16), dp(if (round) 30 else 20), dp(20))
+ }
+ scroll.addView(body)
+ layers.addView(scroll, FrameLayout.LayoutParams(-1, -1))
+ setContentView(layers)
+ window.decorView.windowInsetsController?.hide(WindowInsets.Type.systemBars())
+ window.decorView.windowInsetsController?.systemBarsBehavior = WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
+ scroll.setOnTouchListener { _, event ->
+ val edge = screen in listOf("home", "detail") && event.x > scroll.width * .82f && event.y in scroll.height * .23f..scroll.height * .77f
+ when (event.actionMasked) {
+ MotionEvent.ACTION_DOWN -> {
+ downX = event.x; downY = event.y
+ edge && (active || screen == "detail" || screen == "home")
+ }
+ MotionEvent.ACTION_MOVE -> edge && (active || screen == "detail" || screen == "home")
+ MotionEvent.ACTION_UP -> {
+ if (edge && kotlin.math.abs(event.x - downX) < dp(20) && kotlin.math.abs(event.y - downY) < dp(20)) {
+ when {
+ active && screen == "home" -> { command(RecordingService.MARK); scroll.performHapticFeedback(HapticFeedbackConstants.CONFIRM) }
+ screen == "detail" -> seekFromEdge(event.x, event.y)
+ screen == "home" -> { screen = "library"; render() }
+ }
+ scroll.performClick()
+ true
+ } else false
+ }
+ else -> false
+ }
+ }
+ scroll.isFocusableInTouchMode = true; scroll.requestFocus()
+ scroll.setOnGenericMotionListener { _, event ->
+ if (event.action == MotionEvent.ACTION_SCROLL) {
+ val movement = event.getAxisValue(MotionEvent.AXIS_SCROLL)
+ if (screen == "limit_minutes" && limitPicker != null) {
+ limitPicker?.let { picker -> picker.value = (picker.value + if (movement > 0) -1 else 1).coerceIn(picker.minValue, picker.maxValue) }
+ } else scroll.smoothScrollBy(0, (-movement * dp(35)).toInt())
+ true
+ } else false
+ }
+ when {
+ screen == "settings" -> settings()
+ screen == "storage" -> storage()
+ screen == "limits" -> limits()
+ screen == "limit_minutes" -> limitMinutes()
+ screen == "limit_action" -> limitAction()
+ active && screen == "home" -> recording()
+ screen == "library" -> library()
+ screen == "detail" -> detail()
+ else -> home()
+ }
+ }
+ private fun counter(elapsed: Long, saved: Boolean = false) {
+ minutes?.update(elapsed, saved)
+ // Foreground breathing room; the numeral itself lives in the full-screen layer below.
+ body.addView(Space(this), LinearLayout.LayoutParams(-1, dp(62)))
+ }
+ private fun updateDial(elapsed: Long) {
+ dial.elapsed = elapsed
+ dial.mode = when {
+ screen !in listOf("home", "detail") -> DialMode.LIBRARY
+ active && RecordingService.paused -> DialMode.PAUSED
+ active -> DialMode.RECORDING
+ screen == "detail" -> DialMode.PLAYBACK
+ screen == "library" -> DialMode.LIBRARY
+ else -> DialMode.READY
+ }
+ dial.duration = clip?.duration ?: 0L
+ dial.marks = if (active) RecordingService.marks else if (screen == "detail") clip?.marks.orEmpty() else emptyList()
+ // Logarithmic peak scaling makes quiet speech visible without inventing a waveform.
+ val peak = RecordingService.amplitude.coerceAtLeast(0)
+ dial.level = if (peak == 0 || RecordingService.paused) 0f else (ln(1f + peak) / ln(32768f)).coerceIn(0f, 1f)
+ minutes?.visibility = if (dial.mode == DialMode.LIBRARY) View.GONE else View.VISIBLE
+ minutes?.update(elapsed, dial.mode == DialMode.READY)
+ minutes?.setFloating(motionAllowed && dial.mode != DialMode.PAUSED && dial.mode != DialMode.LIBRARY)
+ dial.invalidateSelf()
+ }
+ private fun seekFromEdge(x: Float, y: Float) {
+ val item = clip ?: return
+ val angle = Math.toDegrees(atan2((y - scroll.height / 2f).toDouble(), (x - scroll.width / 2f).toDouble()))
+ val fraction = ((angle + 32) / 64).coerceIn(0.0, 1.0)
+ if (player == null) togglePlayback(item)
+ player?.seekTo((fraction * item.duration).toInt())
+ scroll.performHapticFeedback(HapticFeedbackConstants.CLOCK_TICK)
+ }
+ private fun home() {
+ val clips = store.list()
+ val total = clips.sumOf { it.duration }
+ text("REMEMBER", 10f).apply { letterSpacing = .2f }
+ counter(total, true)
+ dial.freeStorage = (filesDir.usableSpace.toDouble() / filesDir.totalSpace.coerceAtLeast(1)).toFloat()
+ updateDial(total)
+ // Saved total has no running seconds; the sweep starts when capture starts.
+ dial.elapsed = 0
+ button("● Record", mint) { startRecording() }.contentDescription = "Start recording"
+ val row = LinearLayout(this).apply { orientation = LinearLayout.HORIZONTAL }
+ val moments = button("Moments · ${clips.size}") { screen = "library"; render() }.apply { textSize = 11f }
+ val settings = button("Settings") { screen = "settings"; render() }.apply { textSize = 11f }
+ body.removeView(moments); body.removeView(settings)
+ row.addView(moments, LinearLayout.LayoutParams(0, dp(44), 1f).apply { marginEnd = dp(3) })
+ row.addView(settings, LinearLayout.LayoutParams(dp(64), dp(44)).apply { marginStart = dp(3) })
+ body.addView(row, LinearLayout.LayoutParams(-1, dp(44)).apply { topMargin = dp(3) })
+ }
+ private fun recording() {
+ status = text(if (RecordingService.paused) "PAUSED" else "● RECORDING", 10f, mint)
+ counter(RecordingService.elapsed)
+ updateDial(RecordingService.elapsed)
+ val row = LinearLayout(this).apply { orientation = LinearLayout.HORIZONTAL }
+ pause = button(if (RecordingService.paused) "Resume" else "Pause") { command(RecordingService.PAUSE) }
+ val mark = button("Mark") {
+ command(RecordingService.MARK)
+ Toast.makeText(this, "Moment marked", Toast.LENGTH_SHORT).show()
+ }
+ body.removeView(pause); body.removeView(mark)
+ row.addView(pause, LinearLayout.LayoutParams(0, dp(44), 1f).apply { marginEnd = dp(3) })
+ row.addView(mark, LinearLayout.LayoutParams(0, dp(44), 1f).apply { marginStart = dp(3) })
+ body.addView(row)
+ button("■ Save", mint) { command(RecordingService.SAVE) }
+ button("Settings") { screen = "settings"; render() }
+ }
+ private fun settings() {
+ updateDial(0)
+ text("SETTINGS", 10f, mint)
+ text("Make it yours.", 17f)
+ button("Storage") { screen = "storage"; render() }.apply { layoutParams.height = dp(56) }
+ button("Recording limit") { screen = "limits"; render() }.apply { layoutParams.height = dp(56) }
+ button(if (active) "Back to recording" else "Back") { screen = "home"; render() }
+ }
+ private fun storage() {
+ updateDial(0)
+ body.setPadding(dp(12), dp(8), dp(12), dp(20))
+ text("STORAGE", 10f, mint)
+ storageChart = StorageChartView(this).also {
+ // Center a large chart in the initial viewport; details and actions follow below it.
+ val chartHeight = (resources.displayMetrics.heightPixels - dp(52)).coerceAtLeast(dp(140))
+ body.addView(it, LinearLayout.LayoutParams(-1, chartHeight))
+ }
+ storageAvailable = text("● Available · …", 11f, mint)
+ storageApp = text("● Remember · …", 11f)
+ button("Refresh") { loadStorage() }
+ button("Back") { screen = "settings"; render() }
+ loadStorage()
+ }
+ private fun loadStorage() {
+ if (storageBusy || storageWorker.isShutdown) return
+ storageBusy = true; lastStorageRead = SystemClock.elapsedRealtime()
+ val request = storageRequest
+ storageWorker.execute {
+ val result = runCatching { readStorageUsage(applicationContext) }
+ handler.post {
+ storageBusy = false
+ if (isDestroyed || screen != "storage" || request != storageRequest) return@post
+ result.onSuccess { usage ->
+ fun size(bytes: Long) = android.text.format.Formatter.formatShortFileSize(this, bytes)
+ storageChart?.update(usage)
+ storageAvailable?.text = "● Available · ${size(usage.available)}"
+ storageApp?.text = "● Remember · ${if (usage.estimated) "≈ " else ""}${size(usage.appUsed)}"
+ }.onFailure {
+ storageChart?.showFailure()
+ storageAvailable?.text = "Could not read storage"
+ storageApp?.text = "Tap Refresh to retry"
+ }
+ }
+ }
+ }
+ private fun limits() {
+ updateDial(0)
+ val limit = preferences.read()
+ text("RECORDING LIMIT", 10f, mint)
+ val toggle = Switch(this).apply {
+ text = "Minute limit"; textSize = 12f; setTextColor(Color.WHITE)
+ isChecked = limit.enabled
+ thumbTintList = android.content.res.ColorStateList(
+ arrayOf(intArrayOf(android.R.attr.state_checked), intArrayOf()),
+ intArrayOf(mint, Color.rgb(116, 129, 96))
+ )
+ setPadding(dp(5), 0, dp(5), 0)
+ body.addView(this, LinearLayout.LayoutParams(-1, dp(44)))
+ setOnCheckedChangeListener { _, checked -> preferences.write(preferences.read().copy(enabled = checked)); render() }
+ }
+ text(if (toggle.isChecked) "Enabled" else "Unlimited recording", 10f, muted)
+ button("Length · ${limit.minutes} min") { screen = "limit_minutes"; render() }
+ button("At the limit\n${if (limit.action == LimitAction.STOP) "Save & stop" else "Save & start next"}") {
+ screen = "limit_action"; render()
+ }.apply { layoutParams.height = dp(54); textSize = 11f }
+ text("Applies to your next recording session.\nPaused time doesn't count.", 10f, muted)
+ button("Back") { screen = "settings"; render() }
+ }
+ private fun limitMinutes() {
+ updateDial(0)
+ text("CLIP LENGTH", 10f, mint)
+ text("Minutes", 13f)
+ limitPicker = NumberPicker(this).apply {
+ minValue = 1; maxValue = 1440; value = preferences.read().minutes; wrapSelectorWheel = false
+ contentDescription = "Recording limit in minutes"
+ setTextColor(Color.WHITE); setTextSize(android.util.TypedValue.applyDimension(android.util.TypedValue.COMPLEX_UNIT_SP, 22f, resources.displayMetrics))
+ body.addView(this, LinearLayout.LayoutParams(dp(116), dp(100)))
+ }
+ button("Save", mint) {
+ limitPicker?.clearFocus()
+ preferences.write(preferences.read().copy(minutes = limitPicker?.value ?: 15))
+ screen = "limits"; render()
+ }
+ button("Cancel") { screen = "limits"; render() }
+ }
+ private fun limitAction() {
+ updateDial(0)
+ text("AT THE LIMIT", 10f, mint)
+ val action = preferences.read().action
+ button("${if (action == LimitAction.STOP) "✓ " else ""}Save & stop", if (action == LimitAction.STOP) mint else Color.rgb(43, 52, 32)) {
+ preferences.write(preferences.read().copy(action = LimitAction.STOP)); render()
+ }
+ button("${if (action == LimitAction.NEXT_CLIP) "✓ " else ""}Save & start next", if (action == LimitAction.NEXT_CLIP) mint else Color.rgb(43, 52, 32)) {
+ preferences.write(preferences.read().copy(action = LimitAction.NEXT_CLIP)); render()
+ }
+ text("New clips start at 0.\nA brief gap can occur between clips.", 11f, muted)
+ button("Back") { screen = "limits"; render() }
+ }
+ private fun library() {
+ updateDial(0)
+ text("YOUR MOMENTS", 10f, mint)
+ val clips = store.list()
+ if (clips.isEmpty()) {
+ text("A little space\nfor big ideas.", 20f)
+ text("Record a thought, a song,\nor the sounds around you.", 12f, muted)
+ button("Record a moment", mint) { screen = "home"; render(); startRecording() }
+ } else {
+ text("${clips.size} saved", 12f, muted)
+ clips.forEach { item ->
+ button("${item.title}\n${SimpleDateFormat("MMM d", Locale.getDefault()).format(Date(item.created))} · ${timeLabel(item.duration)}") {
+ clip = item; screen = "detail"; render()
+ }.apply {
+ textSize = 11f
+ layoutParams.height = dp(54)
+ maxLines = 2
+ }
+ }
+ }
+ button("Back") { screen = "home"; render() }
+ }
+ private fun detail() {
+ val item = clip ?: run { screen = "library"; render(); return }
+ text("SAVED MOMENT", 10f, mint)
+ text(item.title, 16f)
+ counter(player?.currentPosition?.toLong() ?: 0)
+ updateDial(player?.currentPosition?.toLong() ?: 0)
+ seek = SeekBar(this).apply {
+ max = item.duration.coerceAtMost(Int.MAX_VALUE.toLong()).toInt()
+ progressTintList = android.content.res.ColorStateList.valueOf(mint)
+ thumbTintList = android.content.res.ColorStateList.valueOf(mint)
+ contentDescription = "Playback position"
+ setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
+ override fun onProgressChanged(bar: SeekBar?, value: Int, user: Boolean) { if (user) player?.seekTo(value) }
+ override fun onStartTrackingTouch(bar: SeekBar?) {}
+ override fun onStopTrackingTouch(bar: SeekBar?) {}
+ })
+ body.addView(this, LinearLayout.LayoutParams(-1, dp(38)))
+ }
+ play = button("Play", mint) { togglePlayback(item) }
+ text("${timeLabel(item.duration)} · AAC audio", 10f, muted)
+ item.marks.forEachIndexed { index, position ->
+ button("Mark ${index + 1} · ${timeLabel(position)}") {
+ if (player == null) togglePlayback(item)
+ player?.seekTo(position.coerceAtMost(Int.MAX_VALUE.toLong()).toInt())
+ }
+ }
+ button("Rename") {
+ val input = EditText(this).apply { setText(item.title); selectAll(); maxLines = 1 }
+ AlertDialog.Builder(this).setTitle("Name this moment").setView(input)
+ .setPositiveButton("Save") { _, _ ->
+ val name = input.text.toString().trim().take(80)
+ if (name.isNotEmpty()) {
+ val updated = item.copy(title = name)
+ runCatching { store.save(updated); clip = updated; render() }.onFailure { showError("Could not rename moment") }
+ }
+ }.setNegativeButton("Cancel", null).show()
+ }
+ button("Delete", Color.rgb(67, 32, 38)) {
+ AlertDialog.Builder(this).setTitle("Delete this moment?").setMessage("This recording will be permanently removed.")
+ .setPositiveButton("Delete") { _, _ ->
+ releasePlayer()
+ runCatching { store.delete(item); screen = "library"; render() }.onFailure { showError("Could not delete moment") }
+ }.setNegativeButton("Keep", null).show()
+ }
+ button("Back") { releasePlayer(); screen = "library"; render() }
+ }
+ private fun togglePlayback(item: Clip) {
+ try {
+ if (player == null) {
+ player = MediaPlayer().apply {
+ setDataSource(store.audio(item.id).absolutePath)
+ prepare()
+ setOnCompletionListener { play?.text = "Play"; seekTo(0); updateDial(0) }
+ setOnErrorListener { _, _, _ -> releasePlayer(); showError("Could not play this moment"); true }
+ }
+ }
+ player?.let { if (it.isPlaying) it.pause() else it.start() }
+ } catch (_: Exception) { releasePlayer(); showError("Could not play this moment") }
+ }
+ private fun releasePlayer() { player?.release(); player = null }
+ private fun showError(message: String) { Toast.makeText(this, message, Toast.LENGTH_LONG).show() }
+ private fun startRecording() {
+ releasePlayer()
+ if (checkSelfPermission(Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {
+ requestPermissions(arrayOf(Manifest.permission.RECORD_AUDIO), 10); return
+ }
+ command(RecordingService.START)
+ if (Build.VERSION.SDK_INT >= 33 && checkSelfPermission(Manifest.permission.POST_NOTIFICATIONS) != PackageManager.PERMISSION_GRANTED) {
+ requestPermissions(arrayOf(Manifest.permission.POST_NOTIFICATIONS), 11)
+ }
+ }
+ private fun command(action: String) {
+ try {
+ val intent = Intent(this, RecordingService::class.java).setAction(action)
+ if (action == RecordingService.START) startForegroundService(intent) else startService(intent)
+ } catch (_: Exception) { showError("Could not start recording. Check microphone permission.") }
+ }
+ override fun onRequestPermissionsResult(requestCode: Int, permissions: Array, grantResults: IntArray) {
+ super.onRequestPermissionsResult(requestCode, permissions, grantResults)
+ if (requestCode == 10) {
+ if (grantResults.firstOrNull() == PackageManager.PERMISSION_GRANTED) startRecording()
+ else AlertDialog.Builder(this).setTitle("Microphone access needed")
+ .setMessage("Allow microphone access to capture the sounds around you.")
+ .setPositiveButton("Settings") { _, _ -> startActivity(Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, android.net.Uri.parse("package:$packageName"))) }
+ .setNegativeButton("Later", null).show()
+ }
+ }
+ // API 31–32 fallback; API 33+ uses the registered OnBackInvokedCallback.
+ @android.annotation.SuppressLint("GestureBackNavigation")
+ @Deprecated("Framework back navigation")
+ override fun onBackPressed() { navigateBack() }
+ private fun navigateBack() {
+ if (screen != "home") {
+ releasePlayer()
+ screen = when (screen) {
+ "detail" -> "library"
+ "storage", "limits" -> "settings"
+ "limit_minutes", "limit_action" -> "limits"
+ else -> "home"
+ }
+ render()
+ } else finish()
+ }
+}
diff --git a/app/src/main/java/meghdad/remember/MinuteCounterView.kt b/app/src/main/java/meghdad/remember/MinuteCounterView.kt
new file mode 100644
index 0000000..ded9647
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/MinuteCounterView.kt
@@ -0,0 +1,82 @@
+package meghdad.remember
+
+import android.animation.ValueAnimator
+import android.content.Context
+import android.graphics.*
+import android.view.View
+import android.view.animation.LinearInterpolator
+import kotlin.math.sin
+
+/** Rounded numeral artwork sits behind the controls; its value is always measured minutes. */
+class MinuteCounterView(context: Context) : View(context) {
+ private val paint = Paint(Paint.ANTI_ALIAS_FLAG).apply {
+ style = Paint.Style.STROKE; strokeCap = Paint.Cap.ROUND
+ strokeJoin = Paint.Join.ROUND; strokeWidth = 30f
+ }
+ private val digits = (0..9).map { digitPath(it) }
+ private var elapsed = 0L
+ private var saved = false
+ private var floating = false
+ private val drift = ValueAnimator.ofFloat(0f, (Math.PI * 2).toFloat()).apply {
+ duration = 9000; repeatCount = ValueAnimator.INFINITE; interpolator = LinearInterpolator()
+ addUpdateListener {
+ val phase = it.animatedValue as Float
+ translationX = sin(phase) * width * .016f
+ translationY = sin(phase + .8f) * height * .012f
+ rotation = sin(phase) * .8f
+ }
+ }
+ fun setFloating(enabled: Boolean) {
+ floating = enabled
+ if (enabled && isAttachedToWindow && !drift.isStarted) drift.start()
+ else if (!enabled) {
+ drift.cancel(); translationX = 0f; translationY = 0f; rotation = 0f
+ }
+ }
+ fun update(time: Long, savedTotal: Boolean = false) {
+ val numberChanged = elapsed / 60_000 != time / 60_000 || saved != savedTotal
+ val secondsChanged = elapsed / 1000 != time / 1000 || saved != savedTotal
+ elapsed = time.coerceAtLeast(0); saved = savedTotal
+ if (secondsChanged || contentDescription == null) {
+ contentDescription = if (saved) "${elapsed / 60_000} saved minutes" else "${elapsed / 60_000} minutes, ${elapsed / 1000 % 60} seconds"
+ }
+ if (numberChanged) invalidate()
+ }
+ override fun onAttachedToWindow() { super.onAttachedToWindow(); setFloating(floating) }
+ override fun onDetachedFromWindow() { drift.cancel(); super.onDetachedFromWindow() }
+ override fun onDraw(canvas: Canvas) {
+ super.onDraw(canvas)
+ val numeral = (elapsed / 60_000).toString()
+ val artworkWidth = numeral.length * 100f - 4f
+ val scale = minOf(width * .67f / artworkWidth, height * .73f / 150f)
+ canvas.save()
+ canvas.translate((width - artworkWidth * scale) / 2f + width * .02f, (height - 150 * scale) / 2f - height * .025f)
+ canvas.scale(scale, scale)
+ paint.shader = LinearGradient(0f, 15f, 75f, 143f,
+ intArrayOf(Color.rgb(145, 157, 126), Color.rgb(197, 211, 155), Color.rgb(204, 235, 40), Color.rgb(162, 203, 0)),
+ floatArrayOf(0f, .3f, .5f, 1f), Shader.TileMode.CLAMP)
+ numeral.forEach { character ->
+ canvas.drawPath(digits[character.digitToInt()], paint)
+ canvas.translate(100f, 0f)
+ }
+ paint.shader = null
+ canvas.restore()
+ }
+ private fun digitPath(digit: Int) = Path().apply {
+ when (digit) {
+ 0 -> addRoundRect(RectF(23f, 25f, 73f, 125f), 25f, 25f, Path.Direction.CW)
+ 1 -> { moveTo(31f, 43f); lineTo(58f, 25f); lineTo(58f, 125f) }
+ 2 -> { moveTo(23f, 41f); cubicTo(27f, 14f, 73f, 17f, 73f, 47f); cubicTo(73f, 65f, 47f, 82f, 24f, 112f); quadTo(19f, 125f, 32f, 125f); lineTo(75f, 125f) }
+ 3 -> { moveTo(24f, 29f); cubicTo(77f, 7f, 90f, 72f, 48f, 73f); cubicTo(94f, 75f, 76f, 142f, 23f, 121f) }
+ 4 -> { moveTo(52f, 25f); lineTo(22f, 84f); quadTo(17f, 92f, 29f, 92f); lineTo(77f, 92f); moveTo(66f, 25f); lineTo(66f, 125f) }
+ 5 -> { moveTo(73f, 25f); lineTo(26f, 25f); lineTo(23f, 70f); cubicTo(84f, 45f, 96f, 141f, 24f, 121f) }
+ 6 -> { moveTo(68f, 26f); cubicTo(21f, 14f, 15f, 72f, 24f, 106f); cubicTo(35f, 145f, 86f, 125f, 72f, 89f); cubicTo(62f, 65f, 28f, 73f, 22f, 92f) }
+ 7 -> { moveTo(22f, 25f); lineTo(76f, 25f); lineTo(31f, 125f) }
+ 8 -> {
+ addRoundRect(RectF(25f, 24f, 71f, 74f), 23f, 23f, Path.Direction.CW)
+ addRoundRect(RectF(22f, 74f, 74f, 126f), 26f, 26f, Path.Direction.CW)
+ }
+ 9 -> { moveTo(27f, 124f); cubicTo(75f, 139f, 84f, 79f, 72f, 44f); cubicTo(57f, 6f, 10f, 28f, 25f, 64f); cubicTo(36f, 87f, 69f, 77f, 75f, 61f) }
+ }
+ }
+}
diff --git a/app/src/main/java/meghdad/remember/RecordingLimits.kt b/app/src/main/java/meghdad/remember/RecordingLimits.kt
new file mode 100644
index 0000000..59fbb2d
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/RecordingLimits.kt
@@ -0,0 +1,24 @@
+package meghdad.remember
+
+import android.content.Context
+
+enum class LimitAction { STOP, NEXT_CLIP }
+
+data class RecordingLimit(val enabled: Boolean = false, val minutes: Int = 15, val action: LimitAction = LimitAction.STOP) {
+ init { require(minutes in 1..1440) }
+ val durationMs: Long get() = minutes * 60_000L
+ fun actionAt(elapsed: Long): LimitAction? = if (enabled && elapsed >= durationMs) action else null
+}
+
+class RecordingPreferences(context: Context) {
+ private val preferences = context.getSharedPreferences("recording_settings", Context.MODE_PRIVATE)
+ fun read() = RecordingLimit(
+ preferences.getBoolean("limit_enabled", false),
+ preferences.getInt("limit_minutes", 15).coerceIn(1, 1440),
+ runCatching { LimitAction.valueOf(preferences.getString("limit_action", LimitAction.STOP.name)!!) }.getOrDefault(LimitAction.STOP)
+ )
+ fun write(limit: RecordingLimit) {
+ preferences.edit().putBoolean("limit_enabled", limit.enabled).putInt("limit_minutes", limit.minutes)
+ .putString("limit_action", limit.action.name).apply()
+ }
+}
diff --git a/app/src/main/java/meghdad/remember/RecordingService.kt b/app/src/main/java/meghdad/remember/RecordingService.kt
new file mode 100644
index 0000000..a86e500
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/RecordingService.kt
@@ -0,0 +1,168 @@
+package meghdad.remember
+
+import android.app.*
+import android.content.Intent
+import android.content.pm.ServiceInfo
+import android.media.MediaRecorder
+import android.os.*
+import java.text.SimpleDateFormat
+import java.util.*
+
+class RecordingService : Service() {
+ companion object {
+ @Volatile var activeId: String? = null; private set
+ @Volatile var paused = false; private set
+ @Volatile var elapsed = 0L; private set
+ @Volatile var amplitude = 0; private set
+ @Volatile var marks: List = emptyList(); private set
+ @Volatile var part = 1; private set
+ var message: String? = null
+ const val START = "start"
+ const val PAUSE = "pause"
+ const val SAVE = "save"
+ const val MARK = "mark"
+ }
+ private var recorder: MediaRecorder? = null
+ private var lock: PowerManager.WakeLock? = null
+ private var segmentStart = 0L
+ private var accumulated = 0L
+ private var created = 0L
+ private var lockRenewed = 0L
+ private var sessionTitle = ""
+ private var sessionLimit = RecordingLimit()
+ private var transitioning = false
+ private val handler = Handler(Looper.getMainLooper())
+ private fun capturedTime() = accumulated + if (paused) 0L else SystemClock.elapsedRealtime() - segmentStart
+ private val tick = object : Runnable {
+ override fun run() {
+ if (recorder == null || transitioning) return
+ if (!paused && SystemClock.elapsedRealtime() - lockRenewed > 9 * 60 * 1000L) {
+ lock?.acquire(10 * 60 * 1000L)
+ lockRenewed = SystemClock.elapsedRealtime()
+ }
+ elapsed = capturedTime()
+ amplitude = if (paused) 0 else runCatching { recorder?.maxAmplitude ?: 0 }.getOrDefault(0)
+ when (sessionLimit.actionAt(elapsed)) {
+ LimitAction.STOP -> finishRecording("Minute limit reached · saved")
+ LimitAction.NEXT_CLIP -> nextClip()
+ null -> handler.postDelayed(this, 100)
+ }
+ }
+ }
+ override fun onBind(intent: Intent?) = null
+ override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
+ try {
+ when (intent?.action) {
+ START -> if (recorder == null) begin()
+ PAUSE -> togglePause()
+ MARK -> if (recorder != null && !transitioning) marks = marks + capturedTime()
+ SAVE -> if (recorder != null) finishRecording() else stopSelf()
+ }
+ } catch (_: Exception) {
+ message = "Recording interrupted. Please try again."
+ release(); stopSelf()
+ }
+ return START_NOT_STICKY
+ }
+ private fun begin() {
+ val manager = getSystemService(NotificationManager::class.java)
+ manager.createNotificationChannel(NotificationChannel("capture", "Audio recording", NotificationManager.IMPORTANCE_LOW))
+ val open = PendingIntent.getActivity(this, 0, Intent(this, MainActivity::class.java), PendingIntent.FLAG_IMMUTABLE)
+ val save = PendingIntent.getService(this, 1, Intent(this, RecordingService::class.java).setAction(SAVE), PendingIntent.FLAG_IMMUTABLE)
+ val notification = Notification.Builder(this, "capture").setSmallIcon(R.drawable.ic_remember)
+ .setContentTitle("Remember is recording").setContentText("Tap to open • Save when you're done")
+ .setContentIntent(open).setOngoing(true).addAction(Notification.Action.Builder(null, "Save", save).build()).build()
+ startForeground(7, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_MICROPHONE)
+ sessionLimit = RecordingPreferences(this).read()
+ sessionTitle = "Moment · " + SimpleDateFormat("HH:mm", Locale.getDefault()).format(Date())
+ part = 1; message = null
+ lock = getSystemService(PowerManager::class.java).newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "remember:capture").apply {
+ setReferenceCounted(false); acquire(10 * 60 * 1000L)
+ }
+ lockRenewed = SystemClock.elapsedRealtime()
+ startClip()
+ }
+ private fun startClip() {
+ created = System.currentTimeMillis()
+ val id = UUID.randomUUID().toString()
+ accumulated = 0; elapsed = 0; marks = emptyList(); paused = false; amplitude = 0
+ val current = MediaRecorder(this)
+ recorder = current
+ current.apply {
+ setAudioSource(MediaRecorder.AudioSource.MIC)
+ setOutputFormat(MediaRecorder.OutputFormat.MPEG_4)
+ setAudioEncoder(MediaRecorder.AudioEncoder.AAC)
+ setAudioSamplingRate(44100); setAudioEncodingBitRate(128000); setAudioChannels(1)
+ setOutputFile(Recordings(this@RecordingService).pending(id).absolutePath)
+ setOnErrorListener { source, _, _ -> if (source === recorder && !transitioning) finishRecording("Recorder stopped · saved") }
+ setMaxFileSize(500L * 1024 * 1024)
+ setOnInfoListener { source, what, _ ->
+ if (source === recorder && !transitioning && what == MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED) {
+ finishRecording("File size limit reached · saved")
+ }
+ }
+ prepare(); start()
+ }
+ segmentStart = SystemClock.elapsedRealtime()
+ // During rollover the old ID stays visible until the new recorder is ready.
+ activeId = id
+ handler.post(tick)
+ }
+ private fun togglePause() {
+ val current = recorder ?: return
+ if (transitioning) return
+ if (paused) { current.resume(); segmentStart = SystemClock.elapsedRealtime(); paused = false }
+ else {
+ current.pause(); accumulated += SystemClock.elapsedRealtime() - segmentStart
+ elapsed = accumulated; paused = true
+ }
+ }
+ private fun saveClip(): Boolean {
+ val current = recorder ?: return false
+ val id = activeId ?: return false
+ handler.removeCallbacks(tick)
+ elapsed = capturedTime()
+ return try {
+ current.stop()
+ val store = Recordings(this)
+ check(store.pending(id).renameTo(store.audio(id)))
+ val title = sessionTitle + if (sessionLimit.enabled && sessionLimit.action == LimitAction.NEXT_CLIP) " · Part $part" else ""
+ store.save(Clip(id, title, created, elapsed, marks))
+ true
+ } catch (_: Exception) {
+ message = "Could not save this clip. Recording stopped."
+ false
+ } finally {
+ runCatching { current.release() }; recorder = null
+ }
+ }
+ private fun nextClip() {
+ if (transitioning) return
+ transitioning = true
+ try {
+ if (!saveClip()) { release(); stopSelf(); return }
+ val savedPart = part
+ part++
+ // Keep the same microphone foreground service and wake lock, including with screen off.
+ startClip()
+ message = "Part $savedPart saved · next clip started"
+ } catch (_: Exception) {
+ message = "Clip saved, but the next recording could not start."
+ release(); stopSelf()
+ } finally { transitioning = false }
+ }
+ private fun finishRecording(successMessage: String = "Moment saved") {
+ if (recorder == null || transitioning) return
+ transitioning = true
+ try { if (saveClip()) message = successMessage }
+ finally { release(); transitioning = false; stopSelf() }
+ }
+ private fun release() {
+ handler.removeCallbacks(tick)
+ runCatching { recorder?.release() }; recorder = null
+ lock?.let { if (it.isHeld) it.release() }; lock = null
+ activeId = null; paused = false; amplitude = 0
+ stopForeground(STOP_FOREGROUND_REMOVE)
+ }
+ override fun onDestroy() { if (recorder != null) finishRecording(); super.onDestroy() }
+}
diff --git a/app/src/main/java/meghdad/remember/Recordings.kt b/app/src/main/java/meghdad/remember/Recordings.kt
new file mode 100644
index 0000000..1ddf2cb
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/Recordings.kt
@@ -0,0 +1,54 @@
+package meghdad.remember
+
+import android.content.Context
+import org.json.JSONArray
+import org.json.JSONObject
+import java.io.File
+
+data class Clip(val id: String, val title: String, val created: Long, val duration: Long, val marks: List)
+
+class Recordings(private val context: Context) {
+ private val directory = File(context.filesDir, "recordings").apply { mkdirs() }
+ fun audio(id: String) = File(directory, "$id.m4a")
+ fun pending(id: String) = File(directory, "$id.pending")
+ fun list(): List = directory.listFiles().orEmpty().filter { it.extension == "json" }.mapNotNull { file ->
+ runCatching {
+ val json = JSONObject(file.readText())
+ val marks = json.optJSONArray("marks") ?: JSONArray()
+ Clip(file.nameWithoutExtension, json.getString("title"), json.getLong("created"), json.getLong("duration"),
+ (0 until marks.length()).map { marks.getLong(it) })
+ }.getOrNull()
+ }.filter { audio(it.id).exists() }.sortedByDescending { it.created }
+ fun save(clip: Clip) {
+ val json = JSONObject().put("title", clip.title).put("created", clip.created)
+ .put("duration", clip.duration).put("marks", JSONArray(clip.marks))
+ val temp = File(directory, "${clip.id}.tmp")
+ temp.writeText(json.toString())
+ check(temp.renameTo(File(directory, "${clip.id}.json"))) { "Could not save recording details" }
+ }
+ fun delete(clip: Clip) {
+ check(!audio(clip.id).exists() || audio(clip.id).delete()) { "Could not delete audio" }
+ File(directory, "${clip.id}.json").delete()
+ }
+ // A process interruption can leave a playable audio file without its final metadata.
+ fun recover() {
+ directory.listFiles().orEmpty().filter { it.extension == "pending" || (it.extension == "m4a" && !File(directory, "${it.nameWithoutExtension}.json").exists()) }.forEach { file ->
+ if (file.nameWithoutExtension == RecordingService.activeId) return@forEach
+ val retriever = android.media.MediaMetadataRetriever()
+ try {
+ retriever.setDataSource(file.absolutePath)
+ val duration = retriever.extractMetadata(android.media.MediaMetadataRetriever.METADATA_KEY_DURATION)?.toLongOrNull() ?: 0L
+ if (duration > 0 && (file.extension == "m4a" || file.renameTo(audio(file.nameWithoutExtension)))) {
+ save(Clip(file.nameWithoutExtension, "Recovered moment", file.lastModified(), duration, emptyList()))
+ }
+ } catch (_: Exception) { /* Keep interrupted files for a future recovery attempt. */ }
+ finally { retriever.release() }
+ }
+ }
+}
+
+fun timeLabel(ms: Long): String {
+ val seconds = ms / 1000
+ return if (seconds >= 3600) String.format(java.util.Locale.US, "%d:%02d:%02d", seconds / 3600, seconds / 60 % 60, seconds % 60)
+ else String.format(java.util.Locale.US, "%02d:%02d", seconds / 60, seconds % 60)
+}
diff --git a/app/src/main/java/meghdad/remember/SpatialDrawables.kt b/app/src/main/java/meghdad/remember/SpatialDrawables.kt
new file mode 100644
index 0000000..70888f1
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/SpatialDrawables.kt
@@ -0,0 +1,72 @@
+package meghdad.remember
+
+import android.graphics.*
+import android.graphics.drawable.Drawable
+import kotlin.math.*
+
+enum class DialMode { READY, RECORDING, PAUSED, PLAYBACK, LIBRARY }
+
+/** Time and edge instruments share one fixed dial behind the scrolling controls. */
+class SpatialDialDrawable : Drawable() {
+ var mode = DialMode.READY
+ var elapsed = 0L
+ var duration = 0L
+ var level = 0f
+ var marks: List = emptyList()
+ var freeStorage = 1f
+ private val paint = Paint(Paint.ANTI_ALIAS_FLAG)
+ private val lime = Color.rgb(199, 234, 24)
+ private val track = Color.rgb(61, 73, 42)
+ private fun line(canvas: Canvas, ring: RectF, angle: Float, sweep: Float, color: Int, width: Float) {
+ paint.shader = null; paint.color = color; paint.style = Paint.Style.STROKE
+ paint.strokeWidth = width; paint.strokeCap = Paint.Cap.ROUND
+ canvas.drawArc(ring, angle, sweep, false, paint)
+ paint.style = Paint.Style.FILL
+ }
+ override fun draw(canvas: Canvas) {
+ val w = bounds.width().toFloat(); val h = bounds.height().toFloat(); val size = minOf(w, h)
+ val cx = w / 2; val cy = h / 2
+ canvas.save(); canvas.translate(bounds.left.toFloat(), bounds.top.toFloat())
+ canvas.drawColor(Color.rgb(13, 17, 11))
+ paint.shader = RadialGradient(w * .65f, h * .3f, size * .8f,
+ intArrayOf(Color.rgb(48, 57, 35), Color.rgb(22, 29, 18), Color.rgb(13, 17, 11)),
+ floatArrayOf(0f, .65f, 1f), Shader.TileMode.CLAMP)
+ canvas.drawRect(0f, 0f, w, h, paint); paint.shader = null
+ val seconds = (elapsed.coerceAtLeast(0) % 60_000) / 60_000f
+ val face = RectF(cx - size * .49f, cy - size * .49f, cx + size * .49f, cy + size * .49f)
+ // One half of the dial fills in 60 seconds, then starts again at the next minute.
+ paint.color = Color.argb(32, 156, 174, 105)
+ canvas.drawArc(face, -90f, 180f * seconds, true, paint)
+ if (mode == DialMode.LIBRARY) { canvas.restore(); return }
+ val radius = size * .46f
+ val ring = RectF(cx - radius, cy - radius, cx + radius, cy + radius)
+ val stroke = size * .014f
+ // Left: the real microphone peak, or remaining storage before capture.
+ for (i in 0..11) {
+ val lit = when (mode) {
+ DialMode.READY -> i < (freeStorage * 12).roundToInt()
+ DialMode.RECORDING -> i < (level * 12).roundToInt()
+ DialMode.PLAYBACK -> duration > 0 && i < (12 * (1f - elapsed.toFloat() / duration).coerceIn(0f, 1f)).roundToInt()
+ else -> false
+ }
+ line(canvas, ring, 211f - i * 5.3f, 2.4f, if (lit) lime else track, stroke)
+ }
+ // Right: bookmark locations; in playback the arc also shows total progress.
+ line(canvas, ring, -32f, 64f, track, stroke)
+ if (mode == DialMode.PLAYBACK && duration > 0) {
+ line(canvas, ring, -32f, 64f * (elapsed.toFloat() / duration).coerceIn(0f, 1f), lime, stroke)
+ }
+ val span = if (mode == DialMode.PLAYBACK) duration else elapsed
+ marks.forEach { mark ->
+ val angle = Math.toRadians((-32 + 64 * (mark.toFloat() / span.coerceAtLeast(1)).coerceIn(0f, 1f)).toDouble())
+ val x = cx + cos(angle).toFloat() * radius
+ val y = cy + sin(angle).toFloat() * radius
+ paint.color = Color.WHITE; paint.style = Paint.Style.FILL
+ canvas.drawCircle(x, y, stroke * .85f, paint)
+ }
+ canvas.restore()
+ }
+ override fun setAlpha(alpha: Int) { paint.alpha = alpha; invalidateSelf() }
+ override fun setColorFilter(colorFilter: ColorFilter?) { paint.colorFilter = colorFilter; invalidateSelf() }
+ @Deprecated("Drawable opacity") override fun getOpacity() = PixelFormat.OPAQUE
+}
diff --git a/app/src/main/java/meghdad/remember/StorageChartView.kt b/app/src/main/java/meghdad/remember/StorageChartView.kt
new file mode 100644
index 0000000..e39939f
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/StorageChartView.kt
@@ -0,0 +1,64 @@
+package meghdad.remember
+
+import android.content.Context
+import android.graphics.*
+import android.text.format.Formatter
+import android.view.View
+import kotlin.math.*
+
+/** A proportional device-storage ring. Tiny app slices get a marker, never an inflated wedge. */
+class StorageChartView(context: Context) : View(context) {
+ private val paint = Paint(Paint.ANTI_ALIAS_FLAG)
+ private var usage: StorageUsage? = null
+ private var failed = false
+ private val lime = Color.rgb(199, 234, 24)
+ fun update(value: StorageUsage) {
+ usage = value; failed = false
+ val available = Formatter.formatShortFileSize(context, value.available)
+ val total = Formatter.formatShortFileSize(context, value.total)
+ val app = Formatter.formatShortFileSize(context, value.appUsed)
+ contentDescription = "${percent(value)} percent available. $available available out of $total. Remember uses ${if (value.estimated) "approximately " else ""}$app. Gray is other used storage."
+ invalidate()
+ }
+ fun showFailure() { usage = null; failed = true; contentDescription = "Storage unavailable. Tap Refresh."; invalidate() }
+ private fun percent(value: StorageUsage) = (value.available.toDouble() / value.total.coerceAtLeast(1) * 100).roundToInt().coerceIn(0, 100)
+ init { contentDescription = "Loading device storage" }
+ override fun onDraw(canvas: Canvas) {
+ super.onDraw(canvas)
+ val size = min(width, height).toFloat()
+ val cx = width / 2f; val cy = height / 2f
+ val radius = size * .405f
+ val thickness = size * .085f
+ val ring = RectF(cx - radius, cy - radius, cx + radius, cy + radius)
+ paint.style = Paint.Style.STROKE; paint.strokeWidth = thickness; paint.strokeCap = Paint.Cap.BUTT
+ paint.color = Color.rgb(101, 114, 81)
+ canvas.drawOval(ring, paint)
+ val data = usage
+ if (data != null && data.total > 0) {
+ val free = (data.available.toDouble() / data.total).coerceIn(0.0, 1.0)
+ val app = (data.appUsed.toDouble() / data.total).coerceIn(0.0, 1.0 - free)
+ paint.color = lime
+ canvas.drawArc(ring, -90f, (free * 360).toFloat(), false, paint)
+ if (app > 0) {
+ paint.color = Color.WHITE
+ canvas.drawArc(ring, (-90 + free * 360).toFloat(), (app * 360).toFloat(), false, paint)
+ // The dot makes even a few megabytes discoverable without distorting the proportions.
+ val angle = Math.toRadians(-90 + (free + app / 2) * 360)
+ val markerRadius = radius + thickness / 2 + size * .031f
+ paint.style = Paint.Style.FILL
+ canvas.drawCircle(cx + cos(angle).toFloat() * markerRadius, cy + sin(angle).toFloat() * markerRadius, size * .012f, paint)
+ }
+ }
+ paint.style = Paint.Style.FILL; paint.textAlign = Paint.Align.CENTER
+ paint.typeface = Typeface.create("sans-serif-medium", Typeface.NORMAL)
+ paint.textSize = size * .083f; paint.color = Color.rgb(169, 183, 145)
+ val total = data?.let { "${Formatter.formatShortFileSize(context, it.total)} total" } ?: if (failed) "Unavailable" else "Loading"
+ canvas.drawText(total, cx, cy - size * .2f, paint)
+ paint.typeface = Typeface.create("sans-serif-condensed", Typeface.BOLD)
+ paint.textSize = size * .285f; paint.color = Color.WHITE
+ canvas.drawText(data?.let { "${percent(it)}%" } ?: "—", cx, cy + size * .08f, paint)
+ paint.typeface = Typeface.create("sans-serif-medium", Typeface.NORMAL)
+ paint.textSize = size * .085f; paint.color = lime
+ canvas.drawText("FREE", cx, cy + size * .245f, paint)
+ }
+}
diff --git a/app/src/main/java/meghdad/remember/StorageUsage.kt b/app/src/main/java/meghdad/remember/StorageUsage.kt
new file mode 100644
index 0000000..12586f1
--- /dev/null
+++ b/app/src/main/java/meghdad/remember/StorageUsage.kt
@@ -0,0 +1,33 @@
+package meghdad.remember
+
+import android.app.usage.StorageStatsManager
+import android.content.Context
+import android.os.Process
+import android.os.StatFs
+import android.os.storage.StorageManager
+import java.io.File
+import java.nio.file.Files
+
+data class StorageUsage(val total: Long, val available: Long, val appUsed: Long, val recordings: Long, val estimated: Boolean)
+
+/** Called on a worker: Android's storage accounting can take several seconds. */
+fun readStorageUsage(context: Context): StorageUsage {
+ val manager = context.getSystemService(StorageStatsManager::class.java)
+ val volume = context.applicationInfo.storageUuid ?: StorageManager.UUID_DEFAULT
+ val filesystem = StatFs(context.dataDir.absolutePath)
+ val total = runCatching { manager.getTotalBytes(volume) }.getOrDefault(filesystem.totalBytes)
+ val available = runCatching { manager.getFreeBytes(volume) }.getOrDefault(filesystem.availableBytes).coerceIn(0, total)
+ val stats = runCatching { manager.queryStatsForPackage(volume, context.packageName, Process.myUserHandle()) }.getOrNull()
+ // dataBytes already includes cacheBytes; adding cache separately would count it twice.
+ val appUsed = stats?.let { it.appBytes + it.dataBytes } ?: (
+ directoryBytes(context.dataDir) + File(context.applicationInfo.sourceDir).length() +
+ context.applicationInfo.splitSourceDirs.orEmpty().sumOf { File(it).length() } +
+ context.getExternalFilesDirs(null).filterNotNull().sumOf { directoryBytes(it) } +
+ context.externalCacheDirs.filterNotNull().sumOf { directoryBytes(it) }
+ )
+ return StorageUsage(total, available, appUsed, directoryBytes(File(context.filesDir, "recordings")), stats == null)
+}
+
+private fun directoryBytes(directory: File): Long = if (!directory.exists()) 0 else directory.walkTopDown()
+ .onEnter { !Files.isSymbolicLink(it.toPath()) }
+ .filter { it.isFile && !Files.isSymbolicLink(it.toPath()) }.sumOf { it.length() }
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index 07d5da9..0000000
--- a/app/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
deleted file mode 100644
index 2b068d1..0000000
--- a/app/src/main/res/drawable/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_remember.xml b/app/src/main/res/drawable/ic_remember.xml
new file mode 100644
index 0000000..96c2130
--- /dev/null
+++ b/app/src/main/res/drawable/ic_remember.xml
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi/ic_launcher.xml b/app/src/main/res/mipmap-anydpi/ic_launcher.xml
deleted file mode 100644
index 6f3b755..0000000
--- a/app/src/main/res/mipmap-anydpi/ic_launcher.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
deleted file mode 100644
index 6f3b755..0000000
--- a/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/app/src/main/res/mipmap-hdpi/ic_launcher.webp
deleted file mode 100644
index c209e78ecd372343283f4157dcfd918ec5165bb3..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1404
zcmV-?1%vuhNk&F=1pok7MM6+kP&il$0000G0000-002h-06|PpNX!5L00Dqw+t%{r
zzW2vH!KF=w&cMnnN@{whkTw+#mAh0SV?YL=)3MimFYCWp#fpdtz~8$hD5VPuQgtcN
zXl<@<#Cme5f5yr2h%@8TWh?)bSK`O
z^Z@d={gn7J{iyxL_y_%J|L>ep{dUxUP8a{byupH&!UNR*OutO~0{*T4q5R6@ApLF!
z5{w?Z150gC7#>(VHFJZ-^6O@PYp{t!jH(_Z*nzTK4
zkc{fLE4Q3|mA2`CWQ3{8;gxGizgM!zccbdQoOLZc8hThi-IhN90RFT|zlxh3Ty&VG
z?Fe{#9RrRnxzsu|Lg2ddugg7k%>0JeD+{XZ7>Z~{=|M+sh1MF7~
zz>To~`~LVQe1nNoR-gEzkpe{Ak^7{{ZBk2i_<+`Bq<^GB!RYG+z)h;Y3+<{zlMUYd
zrd*W4w&jZ0%kBuDZ1EW&KLpyR7r2=}fF2%0VwHM4pUs}ZI2egi#DRMYZPek*^H9YK
zay4Iy3WXFG(F14xYsoDA|KXgGc5%2DhmQ1gFCkrgHBm!lXG8I5h*uf{rn48Z!_@
z4Bk6TJAB2CKYqPjiX&mWoW>OPFGd$wqroa($ne7EUK;#3VYkXaew%Kh^3OrMhtjYN?XEoY`tRPQsAkH-DSL^QqyN0>^
zmC>{#F14jz4GeW{pJoRpLFa_*GI{?T93^rX7SPQgT@LbLqpNA}<@2wH;q493)G=1Y
z#-sCiRNX~qf3KgiFzB3I>4Z%AfS(3$`-aMIBU+6?gbgDb!)L~A)je+;fR0jWLL-Fu
z4)P{c7{B4Hp91&%??2$v9iRSFnuckHUm}or9seH6
z>%NbT+5*@L5(I9j@06@(!{ZI?U0=pKn8uwIg&L{JV14+8s2hnvbRrU|hZCd}IJu7*;;ECgO%8_*W
Kmw_-CKmY()leWbG
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
deleted file mode 100644
index b2dfe3d1ba5cf3ee31b3ecc1ced89044a1f3b7a9..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 2898
zcmV-Y3$650Nk&FW3jhFDMM6+kP&il$0000G0000-002h-06|PpNWB9900E$G+qN-D
z+81ABX7q?;bwx%xBg?kcwr$(C-Tex-ZCkHUw(Y9#+`E5-zuONG5fgw~E2WDng@Bc@
z24xy+R1n%~6xI#u9vJ8zREI)sb<&Il(016}Z~V1n^PU3-_H17A*Bf^o)&{_uBv}Py
zulRfeE8g(g6HFhk_?o_;0@tz?1I+l+Y#Q*;RVC?(ud`_cU-~n|AX-b`JHrOIqn(-t&rOg-o`#C
zh0LPxmbOAEb;zHTu!R3LDh1QO
zZTf-|lJNUxi-PpcbRjw3n~n-pG;$+dIF6eqM5+L();B2O2tQ~|p{PlpNcvDbd1l%c
zLtXn%lu(3!aNK!V#+HNn_D3lp
z2%l+hK-nsj|Bi9;V*WIcQRTt5j90A<=am+cc`J
zTYIN|PsYAhJ|=&h*4wI4ebv-C=Be#u>}%m;a{IGmJDU`0snWS&$9zdrT(z8#{OZ_Y
zxwJx!ZClUi%YJjD6Xz@OP8{ieyJB=tn?>zaI-4JN;rr`JQbb%y5h2O-?_V@7pG_+y
z(lqAsqYr!NyVb0C^|uclHaeecG)Sz;WV?rtoqOdAAN{j%?Uo%owya(F&qps@Id|Of
zo@~Y-(YmfB+chv^%*3g4k3R0WqvuYUIA+8^SGJ{2Bl$X&X&v02>+0$4?di(34{pt*
zG=f#yMs@Y|b&=HyH3k4yP&goF2LJ#tBLJNNDo6lG06r}ghC-pC4Q*=x3;|+W04zte
zAl>l4kzUBQFYF(E`KJy?ZXd1tnfbH+Z~SMmA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;iO*w+f%W`20BNo)=Xa@M_)+o$4LXJyiw{F?a633SC{B
zl~9FH%?^Rm*LVz`lkULs)%idDX^O)SxQol(3jDRyBVR!7d`;ar+D7do)jQ}m`g$TevUD5@?*P8)voa?kEe@_hl{_h8j&5eB-5FrYW&*FHVt$
z$kRF9Nstj%KRzpjdd_9wO=4zO8ritN*NPk_9avYrsF(!4))tm{Ga#OY
z(r{0buexOzu7+rw8E08Gxd`LTOID{*AC1m*6Nw@osfB%0oBF5sf<~wH1kL;sd
zo)k6^VyRFU`)dt*iX^9&QtWbo6yE8XXH?`ztvpiOLgI3R+=MOBQ9=rMVgi<*CU%+d1PQQ0a1U=&b0vkF207%xU0ssI2
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/app/src/main/res/mipmap-mdpi/ic_launcher.webp
deleted file mode 100644
index 4f0f1d64e58ba64d180ce43ee13bf9a17835fbca..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 982
zcmV;{11bDcNk&G_0{{S5MM6+kP&il$0000G0000l001ul06|PpNU8t;00Dqo+t#w^
z^1csucXz7-Qrhzl9HuHB%l>&>1tG2^vb*E&k^T3$FG1eQZ51g$uv4V+kI`0<^1Z@N
zk?Jjh$olyC%l>)Xq;7!>{iBj&BjJ`P&$fsCfpve_epJOBkTF?nu-B7D!hO=2ZR}C%4
zc_9eOXvPbC4kzU8YowIA8cW~Uv|eB&yYwAObSwL2vY~UYI7NXPvf3b+c^?wcs~_t{
ze_m66-0)^{JdOMKPwjpQ@Sna!*?$wTZ~su*tNv7o!gXT!GRgivP}ec?5>l1!7<(rT
zds|8x(qGc673zrvYIz;J23FG{9nHMnAuP}NpAED^laz3mAN1sy+NXK)!6v1FxQ;lh
zOBLA>$~P3r4b*NcqR;y6pwyhZ3_PiDb|%n1gGjl3ZU}ujInlP{eks-#oA6>rh&g+!f`hv#_%JrgYPu
z(U^&XLW^QX7F9Z*SRPpQl{B%x)_AMp^}_v~?j7
zapvHMKxSf*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_z$z7k&s4N)$WYf*k=|*jCEkO19{h_(%W4
zPuOqbCw`SeAX*R}UUsbVsgtuG?xs(#Ikx9`JZoQFz0n*7ZG@Fv@kZk`gzO$HoA9kN
z8U5{-yY
zvV{`&WKU2$mZeoBmiJrEdzUZAv1sRxpePdg1)F*X^Y)zp^Y*R;;z~vOv-z&)&G)JQ{m!C9cmziu1^nHA
z`#`0c>@PnQ9CJKgC5NjJD8HM3|KC(g5nnCq$n0Gsu_DXk36@ql%npEye|?%RmG)FJ$wK}0tWNB{uH;AM~i
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher.webp
deleted file mode 100644
index 948a3070fe34c611c42c0d3ad3013a0dce358be0..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 1900
zcmV-y2b1_xNk&Fw2LJ$9MM6+kP&il$0000G0001A003VA06|PpNH75a00DqwTbm-~
zullQTcXxO9ki!OCRx^i?oR|n!<8G0=kI^!JSjFi-LL*`V;ET0H2IXfU0*i>o6o6Gy
zRq6Ap5(_{XLdXcL-MzlN`ugSdZY_`jXhcENAu)N_0?GhF))9R;E`!bo9p?g?SRgw_
zEXHhFG$0{qYOqhdX<(wE4N@es3VIo$%il%6xP9gjiBri+2pI6aY4
zJbgh-Ud|V%3O!IcHKQx1FQH(_*TK;1>FQWbt^$K1zNn^cczkBs=QHCYZ8b&l!UV{K
z{L0$KCf_&KR^}&2Fe|L&?1I7~pBENnCtCuH3sjcx6$c
zwqkNkru);ie``q+_QI;IYLD9OV0ZxkuyBz|5<$1BH|vtey$>
z5oto4=l-R-Aaq`Dk0}o9N0VrkqW_#;!u{!bJLDq%0092{Ghe=F;(kn}
z+sQ@1=UlX30+2nWjkL$B^b!H2^QYO@iFc0{(-~yXj2TWz?VG{v`Jg
zg}WyYnwGgn>{HFaG7E~pt=)sOO}*yd(UU-D(E&x{xKEl6OcU?pl)K%#U$dn1mDF19
zSw@l8G!GNFB3c3V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@P~gR*2gO@+1?
zG<`_tB+LJuF|SZ9tIec;h%}}6WClT`L>HSW?E{Hp1h^+mlbf_$9zA>!ug>NALJsO{
mU%z=YwVD?}XMya)Bp;vlyE5&E_6!fzx9pwrdz474!~g(M6R?N?
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
deleted file mode 100644
index 1b9a6956b3acdc11f40ce2bb3f6efbd845cc243f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 3918
zcmV-U53%r4Nk&FS4*&pHMM6+kP&il$0000G0001A003VA06|PpNSy@$00HoY|G(*G
z+qV7x14$dSO^Re!iqt-AAIE9iwr$(CZQJL$blA4B`>;C3fBY6Q8_YSjb2%a=fc}4E
zrSzssacq<^nmW|Rs93PJni30R<8w<(bK_$LO4L?!_OxLl$}K$MUEllnMK|rg=f3;y
z*?;3j|Nh>)p0JQ3A~rf(MibH2r+)3cyV1qF&;8m{w-S*y+0mM){KTK^M5}ksc`qX3
zy>rf^b>~l>SSHds8(I@hz3&PD@LmEs4&prkT=BjsBCXTMhN$_)+kvnl0bLKW5rEsj
z*d#KXGDB4P&>etx0X+`R19yC=LS)j!mgs5M0L~+o-T~Jl!p!AJxnGAhV%~rhYUL4hlWhgES3Kb5oA&X
z{}?3OBSS-{!v$nCIGj->(-TAG)8LR{htr41^gxsT8yqt2@DEG6Yl`Uma3Nd4;YUoW
zTbkYl3CMU5ypMF3EIkYmWL|*BknM`0+Kq6CpvO(y$#j94e+q{vI{Zp8cV_6RK!`&C
zob$*5Q|$IZ09dW=L!V
zw@#2wviu|<#3lgGE8GEhcx+zBt`}
zOwP8j9X%^f7i_bth4PiJ$LYtFJSCN$3xwDN;8mr*B;CJwBP2G0TMq0uNt7S^DO_wE
zepk!Wrn#Z#03j{`c*Rf~y3o7?J}w?tEELRUR2cgxB*Y{LzA#pxHgf}q?u5idu>077
zd^=p)`nA}6e`|@`p?u}YU66PP_M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}4WJ>WL;G^H2*QpgEkGA~OET-Km
zkwz|5{6dnz1U<2Pe9DNL>3g5FEIvp1jzP&2K#z~j%g6!7B;^zF+o95?fV{3mnB8*RMhCDNp>Am-3e@jNfMj?jHV$MWjk!DDKP
zkAz$Y?Sr)!GUOX}qTQ5aMh|wq1uq}~joWyKl=b_LboM#wi{CMuz5x6BKlA-qy++cM01D3b7`uD
z#l6M4pI;JCypO8JZ6?U&wNxR!{4oB_
zlV!x9+-&Qy6{%MQ{~yoZGkKiTSC`YS_j22~G;xUV855g2&C(zm^V!(wpcm@zn{%!g
z4}JGo(sGZ1O~to-}leUm
Y2RIYtNPVDpE$%vda+HD#3m
z&VuXJ{BK&Qe+rBa7eq}Q(bq|tn(RrJAk|ztj2(i{d>nmQnM?;HF2k&9sA6up5tmjl
z7lySlzMbifH17-m-Lwa_F&e7nOH?ESi3#ckR3tsM+jsck3`oG!uMS}|eAwVXv>}qxwq?QY%QJ0}r@^;fhuUA9W
z*BVl>TGo&N004@xSiwDUXUvp51sVmqO3m)=B55aPwf@0=e}cN+$-BdKxY`YrT_4)0
z_d10#i44Q*rFr8MC>*)v$EJvz``(pb{e&*6k+b
zsMz%($|1+8hn8c2?P(l@;Rb&CsZeYoCI3?2!LqjbwPXW3z4G$Qfj=cT5Yb%vY0(AX
oeb?AaKtwrnc|$|zzw9vfvn^aJJ!zd)XFXqqy0000001=f@-~a#s
diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml
index 521dfc7..9ec1a06 100644
--- a/app/src/main/res/values-night/themes.xml
+++ b/app/src/main/res/values-night/themes.xml
@@ -1,16 +1,10 @@
-
-
-
-
\ No newline at end of file
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
deleted file mode 100644
index f8c6127..0000000
--- a/app/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- #FFBB86FC
- #FF6200EE
- #FF3700B3
- #FF03DAC5
- #FF018786
- #FF000000
- #FFFFFFFF
-
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 55320bf..f40a43e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,3 +1 @@
-
- remember
-
\ No newline at end of file
+Remember
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 13b32e8..9ec1a06 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -1,16 +1,10 @@
-
-
-
-
\ No newline at end of file
+
diff --git a/app/src/main/res/xml/backup_rules.xml b/app/src/main/res/xml/backup_rules.xml
deleted file mode 100644
index 4df9255..0000000
--- a/app/src/main/res/xml/backup_rules.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/xml/data_extraction_rules.xml b/app/src/main/res/xml/data_extraction_rules.xml
index 9ee9997..a76078b 100644
--- a/app/src/main/res/xml/data_extraction_rules.xml
+++ b/app/src/main/res/xml/data_extraction_rules.xml
@@ -1,19 +1,4 @@
-
-
-
-
-
-
\ No newline at end of file
+
+
+
diff --git a/app/src/test/java/meghdad/remember/ExampleUnitTest.kt b/app/src/test/java/meghdad/remember/ExampleUnitTest.kt
deleted file mode 100644
index 20a9c0a..0000000
--- a/app/src/test/java/meghdad/remember/ExampleUnitTest.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package meghdad.remember
-
-import org.junit.Test
-
-import org.junit.Assert.*
-
-/**
- * Example local unit test, which will execute on the development machine (host).
- *
- * See [testing documentation](http://d.android.com/tools/testing).
- */
-class ExampleUnitTest {
- @Test
- fun addition_isCorrect() {
- assertEquals(4, 2 + 2)
- }
-}
\ No newline at end of file
diff --git a/app/src/test/java/meghdad/remember/RecordingLimitTest.kt b/app/src/test/java/meghdad/remember/RecordingLimitTest.kt
new file mode 100644
index 0000000..8cf3ea5
--- /dev/null
+++ b/app/src/test/java/meghdad/remember/RecordingLimitTest.kt
@@ -0,0 +1,23 @@
+package meghdad.remember
+
+import org.junit.Assert.*
+import org.junit.Test
+
+class RecordingLimitTest {
+ @Test fun unlimitedNeverStopsAtConfiguredLength() {
+ assertNull(RecordingLimit(false, 1, LimitAction.STOP).actionAt(60_000))
+ assertNull(RecordingLimit(false, 1, LimitAction.NEXT_CLIP).actionAt(Long.MAX_VALUE))
+ }
+ @Test fun exactBoundarySelectsTheConfiguredAction() {
+ val stop = RecordingLimit(true, 15, LimitAction.STOP)
+ assertNull(stop.actionAt(899_999))
+ assertEquals(LimitAction.STOP, stop.actionAt(900_000))
+ val next = RecordingLimit(true, 1, LimitAction.NEXT_CLIP)
+ assertNull(next.actionAt(59_999))
+ assertEquals(LimitAction.NEXT_CLIP, next.actionAt(60_000))
+ assertEquals(LimitAction.NEXT_CLIP, next.actionAt(60_100))
+ }
+ @Test fun longLimitsDoNotOverflowMilliseconds() {
+ assertEquals(86_400_000L, RecordingLimit(true, 1440).durationMs)
+ }
+}
diff --git a/app/src/test/java/meghdad/remember/TimeLabelTest.kt b/app/src/test/java/meghdad/remember/TimeLabelTest.kt
new file mode 100644
index 0000000..0f95283
--- /dev/null
+++ b/app/src/test/java/meghdad/remember/TimeLabelTest.kt
@@ -0,0 +1,15 @@
+package meghdad.remember
+
+import org.junit.Assert.assertEquals
+import org.junit.Test
+
+class TimeLabelTest {
+ @Test fun elapsedTimeFormatsMinuteAndHourBoundaries() {
+ assertEquals("00:00", timeLabel(0))
+ assertEquals("00:59", timeLabel(59_999))
+ assertEquals("01:00", timeLabel(60_000))
+ assertEquals("59:59", timeLabel(3_599_999))
+ assertEquals("1:00:00", timeLabel(3_600_000))
+ assertEquals("2:03:04", timeLabel(7_384_000))
+ }
+}
diff --git a/docs/home.png b/docs/home.png
new file mode 100644
index 0000000000000000000000000000000000000000..ee62fb93791dc73e325d8c97d4eb90bce5b1393a
GIT binary patch
literal 61681
zcmZU4Wl&q+({O;`7Tn$4-Q8V^6qn*s+}*7>#obDAm*VaY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