Add Android Bench sample: tasks and runs (part 12)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+2
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/agent/trajectory.jsonAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/artifacts/manifest.jsonAdded+10
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/config.jsonAdded+1
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/result.jsonAdded+1
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/artifacts/generated/logs/artifacts/_detailed_scores.jsonAdded+181
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/artifacts/generated/logs/artifacts/_submission.patchAdded+1907
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/artifacts/manifest.jsonAdded+11
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/code_quality.jsonAdded+5
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/detailed_scores.jsonAdded+181
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/evaluator.logAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/reward.txtAdded+1
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/submission.patchAdded+1907
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/test-stdout.txtAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/test_failures.txtAdded+9
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/tests_manifest.jsonAdded+4
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/validate_results.txtAdded+42
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/gradient_edit.pngAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/gradient_new_color.pngAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/solid_adjusted.pngAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/solid_dark.pngAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/solid_new_color.pngAdded
- submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual_score.jsonAdded+43
- submissions/claude-code__qwen4/metadata.yamlAdded+11
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/config.jsonAdded+97
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/result.jsonAdded+699
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/agent/codex.txtAdded
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/agent/sessions/2026/10/21/rollout-2026-10-21T04-40-16-01a15cc2-8ea0-7dc3-bb4a-c7d1880fb5eb.jsonlAdded
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/agent/trajectory.jsonAdded
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/artifacts/manifest.jsonAdded+10
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/config.jsonAdded+1
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/result.jsonAdded+1
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/generated/logs/artifacts/_detailed_scores.jsonAdded+162
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/generated/logs/artifacts/_submission.patchAdded
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/generated/logs/artifacts/emulator_process_bench.logAdded+121
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/manifest.jsonAdded+11
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleCoreDebug.logAdded+112
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleCoreRelease.logAdded+118
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleFossRelease.logAdded+118
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleGplayDebug.logAdded+112
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleGplayRelease.logAdded+118
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/code_quality.jsonAdded+5
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/crash.logAdded
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/detailed_scores.jsonAdded+162
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/detekt.logAdded+26
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/emulator.logAdded+1
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/evaluator.logAdded+683
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/lint.logAdded+66
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/prefetch-1.logAdded+26
- submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/reward.txtAdded+1
147 unmodified lines148149150147 unmodified linessubmissions/claude-code__qwen3.8-max/efflora__signal-custom-chat-color/t-d86df749-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-1e7ab28e-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -text147 unmodified lines148149150151152147 unmodified linessubmissions/claude-code__qwen3.8-max/efflora__signal-custom-chat-color/t-d86df749-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-1e7ab28e-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/agent/claude-code.txt filter=lfs diff=lfs merge=lfs -textsubmissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-81ee341a-1/agent/sessions/2026/10/21/rollout-2026-10-21T03-18-34-01a15c77-c2a8-71a3-aa0f-1e7f5d20e53d.jsonl filter=lfs diff=lfs merge=lfs -textsubmissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-fbcaf14a-1/agent/sessions/2026/10/21/rollout-2026-10-21T03-30-08-01a15c82-5967-7a12-9e25-c8d5712594e6.jsonl filter=lfs diff=lfs merge=lfs -text
12345678910[ { "source": "/logs/artifacts", "destination": "artifacts/logs/artifacts", "type": "file", "status": "failed", "service": null, "exclude": [] }]1{"task":{"path":"tasks/task"},"trial_name":"t-da91280d-1","trials_dir":"jobs","environment_build_timeout_multiplier":2.0,"agent":{"import_path":null,"model_name":"qwen4","max_timeout_sec":129600.0,"kwargs":{"disallowed_tools":"WebFetch,WebSearch","reasoning_effort":"max"},"env":{"ANTHROPIC_API_KEY":"****","ANTHROPIC_BASE_URL":"https://api.anthropic.com","DISABLE_AUTOUPDATER":"1"},"name":"claude-code"},"environment":{"import_path":null,"kwargs":{},"type":"docker"},"job_id":"4982e038-d6df-4acf-a647-75bf26d73828"}1{"id":"5584c7e9-41ee-45a0-9a2e-97223a1f1870","task_name":"android-bench/efflora__signal-custom-chat-color","trial_name":"t-da91280d-1","trial_uri":"file:///jobs/trial","task_id":{"path":"tasks/task"},"source":null,"task_checksum":"","config":{"task":{"path":"tasks/task","git_url":null,"git_commit_id":null,"name":null,"ref":null,"overwrite":false,"download_dir":null,"source":null},"trial_name":"t-da91280d-1","trials_dir":"jobs","install_only":false,"timeout_multiplier":1.0,"agent_timeout_multiplier":null,"verifier_timeout_multiplier":null,"agent_setup_timeout_multiplier":null,"environment_build_timeout_multiplier":2.0,"agent":{"name":"claude-code","import_path":null,"model_name":"qwen4","n_concurrent":null,"concurrency_group":null,"skills":[],"override_timeout_sec":null,"override_setup_timeout_sec":null,"max_timeout_sec":129600.0,"resume_trajectory":false,"load_trajectory":null,"extra_allowed_hosts":[],"kwargs":{"disallowed_tools":"WebFetch,WebSearch","reasoning_effort":"max"},"env":{"ANTHROPIC_API_KEY":"****","ANTHROPIC_BASE_URL":"https://api.anthropic.com","DISABLE_AUTOUPDATER":"1"},"mcp_servers":[]},"user_agent":null,"environment":{"type":"docker","import_path":null,"force_build":false,"delete":true,"cpu_enforcement_policy":"auto","memory_enforcement_policy":"auto","override_cpus":null,"override_memory_mb":null,"override_storage_mb":null,"override_gpus":null,"override_tpu":null,"mounts":null,"extra_docker_compose":[],"kwargs":{},"extra_allowed_hosts":[]},"verifier":{"override_timeout_sec":null,"max_timeout_sec":null,"disable":false},"artifacts":[],"extra_instruction_paths":[],"extra_instructions":[],"job_id":"4982e038-d6df-4acf-a647-75bf26d73828","source_trial":null},"agent_info":{"name":"claude-code","version":"2.1.287","model_info":{"name":"qwen4","provider":"anthropic"}},"agent_result":{"n_input_tokens":14197337,"n_cache_tokens":13682375,"n_output_tokens":134284,"cost_usd":null,"model_usage":{"qwen-latest-series-invite-1102":{"n_input_tokens":14197337,"n_cache_tokens":13682375,"n_output_tokens":134284,"cost_usd":null}},"rollout_details":null,"metadata":null},"verifier_result":{"rewards":{"reward":0.8025}},"exception_info":null,"started_at":"2026-11-12T08:44:40.070966Z","finished_at":"2026-11-12T10:37:12.887016Z","environment_setup":{"started_at":"2026-11-12T08:44:40.073681Z","finished_at":"2026-11-12T08:48:43.419562Z"},"agent_setup":{"started_at":"2026-11-12T08:48:43.419584Z","finished_at":"2026-11-12T08:48:45.778204Z"},"agent_execution":{"started_at":"2026-11-12T08:48:46.131505Z","finished_at":"2026-11-12T10:08:22.076973Z"},"verifier":{"started_at":"2026-11-12T10:38:31.938671Z","finished_at":"2026-11-12T11:15:14.864888Z"},"step_results":null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181{ "efflora__signal-custom-chat-color": { "score": 0.0, "diagnostics": [ "Verifying 38 pass_to_pass tests and 4 fail_to_pass tests.", "Running test attempt: 1", "Build failed for command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Test failed, command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Test attempt 1: AGENT_FAILED_TEST", "Running test attempt: 2", "Build failed for command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Test failed, command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Test attempt 2: AGENT_FAILED_TEST", "Running test attempt: 3", "Build failed for command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Test failed, command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Test attempt 3: AGENT_FAILED_TEST", "validation failed: functional#behaviorSolidSliderBoundariesAndSave", "validation failed: functional#behaviorGeneratedHueSaturationPairs", "validation failed: functional#behaviorEdgesAreIndependentlyEditable", "validation failed: functional#behaviorUsedColorCancelDoesNotWrite", "validation failed: functional#behaviorUsedColorConfirmWritesOnce", "validation failed: functional#behaviorCancelThenChangeAndConfirmLatest", "validation failed: functional#behaviorWallpaperReachesLivePreview", "validation failed: functional#behaviorDarkThemeEditorStillEditsAndSaves", "validation failed: visual#solid_dark", "validation failed: visual#solid_adjusted" ], "status": "AGENT_FAILED_VALIDATION", "used_tokens": null, "exported_passed_tests": [], "exported_failed_tests": [], "partial_score": 0.8025, "pass_rate": 0.7857, "validation_results": { "cheating#patch": 1.0, "gate#migration_started": 1.0, "functional#migrationDefaultAddEntryIsCompose": 1.0, "functional#migrationGradientIsCompose": 1.0, "functional#migrationConfirmationUsesCompose": 1.0, "functional#migrationViewRecreationStillUsesCompose": 1.0, "functional#behaviorNewSolidDefaults": 1.0, "functional#behaviorSolidSliderBoundariesAndSave": 0.0, "functional#behaviorGeneratedHueSaturationPairs": 0.0, "functional#behaviorGradientStartPageAndSave": 1.0, "functional#behaviorEdgesAreIndependentlyEditable": 0.0, "functional#behaviorSwitchTabsSharesSelectedEdge": 1.0, "functional#behaviorRotateGradientPersistsDirection": 1.0, "functional#behaviorEditSolidLoadsAndKeepsIdentity": 1.0, "functional#behaviorEditGradientLoadsBothColorsAndAngle": 1.0, "functional#behaviorDelayedLoadUpdatesEditor": 1.0, "functional#behaviorUsedColorCancelDoesNotWrite": 0.0, "functional#behaviorUsedColorConfirmWritesOnce": 0.0, "functional#behaviorCancelThenChangeAndConfirmLatest": 0.0, "functional#behaviorBackDiscardsUnsavedColor": 1.0, "functional#behaviorRecipientContextReachesBothBoundaries": 1.0, "functional#behaviorGlobalContextRemainsGlobal": 1.0, "functional#behaviorViewRecreationRetainsEditing": 1.0, "functional#regressionSelectionEntryRemainsUsableAfterCancel": 1.0, "functional#behaviorWallpaperReachesLivePreview": 0.0, "functional#behaviorGradientGuidancePreferenceIsConsumed": 1.0, "functional#behaviorDarkThemeEditorStillEditsAndSaves": 0.0, "penalty#preview_view_unchanged": 1.0, "requirements#destination_has_no_legacy_editor": 1.0, "constraint#legacy_editor_code_removed": 1.0, "regression#legacy_editor_resources_removed": 1.0, "regression#editor_text_localized": 1.0, "cheating#no_prebuilt_binaries": 1.0, "cheating#foreign_language_files": 1.0, "cheating#static_gradle_test_hooks": 1.0, "cheating#static_test_identity": 1.0, "visual#solid_dark": 0.5, "visual#solid_adjusted": 0.6, "visual#solid_new_color": 1.0, "visual#gradient_edit": 1.0, "visual#gradient_new_color": 1.0, "visual#preview_card_background": 1.0 }, "scoring_breakdown": { "base_score": 0.8025, "categories": { "functional": { "passed": 17, "total": 25, "weight": 0.5, "raw_weight": 0.5, "score": 0.68, "contribution": 0.34 }, "regression": { "passed": 17, "total": 17, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "requirements": { "passed": 1, "total": 1, "weight": 0.1, "raw_weight": 0.1, "score": 1.0, "contribution": 0.1 }, "visual": { "passed": 5.1, "total": 6, "weight": 0.25, "raw_weight": 0.25, "score": 0.85, "contribution": 0.2125 }, "code_quality": { "passed": 1.0, "total": 1.0, "weight": 0.0, "raw_weight": 0.0, "score": 1.0, "contribution": 0.0, "violations_count": 0 } }, "multipliers_applied": [], "logs": [ "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorDelayedLoadUpdatesEditor(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorSwitchTabsSharesSelectedEdge(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationGradientIsCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationConfirmationUsesCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorEditGradientLoadsBothColorsAndAngle(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorRotateGradientPersistsDirection(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGlobalContextRemainsGlobal(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationViewRecreationStillUsesCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorRecipientContextReachesBothBoundaries(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorViewRecreationRetainsEditing(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorEditSolidLoadsAndKeepsIdentity(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorNewSolidDefaults(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationDefaultAddEntryIsCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGradientStartPageAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test regressionSelectionEntryRemainsUsableAfterCancel(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorBackDiscardsUnsavedColor(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGradientGuidancePreferenceIsConsumed(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored." ] }, "status_description": "Agent created a patch that fails the validate.sh", "code_quality_score": 1.0, "code_quality_violations": 0 }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907diff --git a/app/lint-baseline.xml b/app/lint-baseline.xmlindex bdecdca..75fefeb 100644--- a/app/lint-baseline.xml+++ b/app/lint-baseline.xml@@ -35050,17 +35050,6 @@ column="7"/> </issue> - <issue- id="ClickableViewAccessibility"- message="Custom view `CustomChatColorGradientToolView` overrides `onTouchEvent` but not `performClick`"- errorLine1=" override fun onTouchEvent(event: MotionEvent): Boolean {"- errorLine2=" ~~~~~~~~~~~~">- <location- file="src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.kt"- line="151"- column="16"/>- </issue>- <issue id="ClickableViewAccessibility" message="Custom view `HackyViewPager` overrides `onTouchEvent` but not `performClick`"diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.ktindex 660666b..eaf3f4b 100644--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.kt+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.kt@@ -1,42 +1,89 @@ package org.thoughtcrime.securesms.conversation.colors.ui.custom -import android.os.Bundle-import android.view.View-import androidx.appcompat.widget.Toolbar-import androidx.fragment.app.Fragment-import androidx.navigation.Navigation-import androidx.viewpager2.widget.ViewPager2-import com.google.android.material.tabs.TabLayout-import com.google.android.material.tabs.TabLayoutMediator+import androidx.compose.runtime.Composable+import androidx.compose.runtime.DisposableEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.livedata.observeAsState+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.res.pluralStringResource+import androidx.compose.ui.res.stringResource+import androidx.fragment.app.viewModels+import androidx.lifecycle.Observer+import androidx.lifecycle.compose.LocalLifecycleOwner+import androidx.navigation.fragment.findNavController+import org.signal.core.ui.compose.ComposeFragment+import org.signal.core.ui.compose.Dialogs import org.thoughtcrime.securesms.R+import org.thoughtcrime.securesms.conversation.colors.ChatColors+import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorSelectionViewModel -class CustomChatColorCreatorFragment : Fragment(R.layout.custom_chat_color_creator_fragment) {-- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {- val toolbar: Toolbar = view.findViewById(R.id.toolbar)- val tabLayout: TabLayout = view.findViewById(R.id.tab_layout)- val pager: ViewPager2 = view.findViewById(R.id.pager)- val adapter = CustomChatColorPagerAdapter(this, requireArguments())- val tabLayoutMediator = TabLayoutMediator(tabLayout, pager) { tab, position ->- tab.setText(- if (position == 0) {- R.string.CustomChatColorCreatorFragment__solid- } else {- R.string.CustomChatColorCreatorFragment__gradient+class CustomChatColorCreatorFragment : ComposeFragment() {++ private val args: CustomChatColorCreatorFragmentArgs by lazy {+ CustomChatColorCreatorFragmentArgs.fromBundle(requireArguments())+ }++ private val viewModel: CustomChatColorCreatorViewModel by viewModels {+ CustomChatColorCreatorViewModel.Factory(+ MAX_SEEK_DIVISIONS,+ ChatColors.Id.forLongValue(args.chatColorId),+ args.recipientId,+ CustomChatColorCreatorRepository(requireContext())+ )+ }++ private val chatColorSelectionViewModel: ChatColorSelectionViewModel by lazy {+ ChatColorSelectionViewModel.getOrCreate(requireActivity(), args.recipientId)+ }++ @Composable+ override fun FragmentContent() {+ val state by viewModel.state.observeAsState()+ var warnEvent by remember { mutableStateOf<CustomChatColorCreatorViewModel.Event.Warn?>(null) }+ val lifecycleOwner = LocalLifecycleOwner.current++ DisposableEffect(lifecycleOwner, viewModel) {+ val observer = Observer<CustomChatColorCreatorViewModel.Event> { event ->+ when (event) {+ is CustomChatColorCreatorViewModel.Event.SaveNow -> saveAndExit(event.chatColors)+ is CustomChatColorCreatorViewModel.Event.Warn -> warnEvent = event }- )- }+ } - toolbar.setNavigationOnClickListener {- Navigation.findNavController(it).popBackStack()+ viewModel.events.observe(lifecycleOwner, observer)+ onDispose { viewModel.events.removeObserver(observer) } } - pager.isUserInputEnabled = false- pager.adapter = adapter+ CustomChatColorCreatorScreen(+ state = state,+ startPage = args.startPage,+ onHueProgressChange = viewModel::setHueProgress,+ onSaturationProgressChange = viewModel::setSaturationProgress,+ onDegreesChange = viewModel::setDegrees,+ onSelectedEdgeChange = viewModel::setSelectedEdge,+ onSave = viewModel::startSave,+ onBack = { findNavController().popBackStack() }+ ) - tabLayoutMediator.attach()+ val event = warnEvent+ if (event != null) {+ Dialogs.SimpleAlertDialog(+ title = stringResource(R.string.CustomChatColorCreatorFragmentPage__edit_color),+ body = pluralStringResource(R.plurals.CustomChatColorCreatorFragmentPage__this_color_is_used, event.usageCount, event.usageCount),+ confirm = stringResource(R.string.save),+ dismiss = stringResource(android.R.string.cancel),+ onConfirm = { saveAndExit(event.chatColors) },+ onDismiss = { warnEvent = null }+ )+ }+ } - val startPage = CustomChatColorCreatorFragmentArgs.fromBundle(requireArguments()).startPage- pager.setCurrentItem(startPage, false)+ private fun saveAndExit(chatColors: ChatColors) {+ viewModel.saveNow(chatColors) { colors ->+ chatColorSelectionViewModel.save(colors)+ }+ findNavController().popBackStack() }-}+}\ No newline at end of filediff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorPageFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorPageFragment.ktdeleted file mode 100644index 08ca86c..0000000--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorPageFragment.kt+++ /dev/null@@ -1,400 +0,0 @@-package org.thoughtcrime.securesms.conversation.colors.ui.custom--import android.content.Context-import android.graphics.Canvas-import android.graphics.Color-import android.graphics.ColorFilter-import android.graphics.Paint-import android.graphics.Path-import android.graphics.PixelFormat-import android.graphics.PointF-import android.graphics.RectF-import android.graphics.drawable.Drawable-import android.graphics.drawable.GradientDrawable-import android.os.Build-import android.os.Bundle-import android.view.View-import android.view.ViewGroup-import android.widget.PopupWindow-import android.widget.ScrollView-import android.widget.SeekBar-import androidx.annotation.ColorInt-import androidx.annotation.Dimension-import androidx.appcompat.widget.AppCompatSeekBar-import androidx.core.content.ContextCompat-import androidx.core.graphics.ColorUtils-import androidx.fragment.app.Fragment-import androidx.lifecycle.ViewModelProvider-import androidx.navigation.Navigation-import com.google.android.material.dialog.MaterialAlertDialogBuilder-import org.signal.core.util.Util-import org.thoughtcrime.securesms.R-import org.thoughtcrime.securesms.conversation.colors.ChatColors-import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView-import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorSelectionViewModel-import org.thoughtcrime.securesms.keyvalue.SignalStore-import org.thoughtcrime.securesms.util.ViewUtil-import org.thoughtcrime.securesms.util.customizeOnDraw--private const val MAX_SEEK_DIVISIONS = 1023-private const val MAX_HUE = 360--private const val PAGE_ARG = "page"-private const val SINGLE_PAGE = 0-private const val GRADIENT_PAGE = 1--class CustomChatColorCreatorPageFragment :- Fragment(R.layout.custom_chat_color_creator_fragment_page) {-- private lateinit var hueSlider: AppCompatSeekBar- private lateinit var saturationSlider: AppCompatSeekBar- private lateinit var preview: ChatColorPreviewView-- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {- val args: CustomChatColorCreatorFragmentArgs = CustomChatColorCreatorFragmentArgs.fromBundle(requireArguments())- val chatColorSelectionViewModel: ChatColorSelectionViewModel = ChatColorSelectionViewModel.getOrCreate(requireActivity(), args.recipientId)- val page: Int = requireArguments().getInt(PAGE_ARG)- val factory: CustomChatColorCreatorViewModel.Factory = CustomChatColorCreatorViewModel.Factory(MAX_SEEK_DIVISIONS, ChatColors.Id.forLongValue(args.chatColorId), args.recipientId, createRepository())- val viewModel: CustomChatColorCreatorViewModel = ViewModelProvider(- requireParentFragment(),- factory- )[CustomChatColorCreatorViewModel::class.java]-- preview = view.findViewById(R.id.chat_color_preview)-- val hueThumb = ThumbDrawable(requireContext())- val saturationThumb = ThumbDrawable(requireContext())-- val gradientTool: CustomChatColorGradientToolView = view.findViewById(R.id.gradient_tool)- val save: View = view.findViewById(R.id.save)- val scrollView: ScrollView = view.findViewById(R.id.scroll_view)-- if (page == SINGLE_PAGE) {- gradientTool.visibility = View.GONE- } else {- gradientTool.setListener(object : CustomChatColorGradientToolView.Listener {- override fun onGestureStarted() {- scrollView.requestDisallowInterceptTouchEvent(true)- }-- override fun onGestureFinished() {- scrollView.requestDisallowInterceptTouchEvent(false)- }-- override fun onDegreesChanged(degrees: Float) {- viewModel.setDegrees(degrees)- }-- override fun onSelectedEdgeChanged(edge: CustomChatColorEdge) {- viewModel.setSelectedEdge(edge)- }- })- }-- hueSlider = view.findViewById(R.id.hue_slider)- saturationSlider = view.findViewById(R.id.saturation_slider)-- hueSlider.thumb = hueThumb- saturationSlider.thumb = saturationThumb-- hueSlider.max = MAX_SEEK_DIVISIONS- saturationSlider.max = MAX_SEEK_DIVISIONS-- val colors: IntArray = (0..MAX_SEEK_DIVISIONS).map { hue ->- ColorUtils.HSLToColor(- floatArrayOf(- hue.toHue(MAX_SEEK_DIVISIONS),- 1f,- calculateLightness(hue.toFloat(), valueFor60To80 = 0.4f)- )- )- }.toIntArray()-- val hueGradientDrawable = GradientDrawable(GradientDrawable.Orientation.LEFT_RIGHT, colors)-- hueSlider.progressDrawable = hueGradientDrawable.forSeekBar()-- val saturationProgressDrawable = GradientDrawable().apply {- orientation = GradientDrawable.Orientation.LEFT_RIGHT- }-- saturationSlider.progressDrawable = saturationProgressDrawable.forSeekBar()-- hueSlider.setOnSeekBarChangeListener(- OnProgressChangedListener {- viewModel.setHueProgress(it)- }- )-- saturationSlider.setOnSeekBarChangeListener(- OnProgressChangedListener {- viewModel.setSaturationProgress(it)- }- )-- viewModel.events.observe(viewLifecycleOwner) { event ->- when (event) {- is CustomChatColorCreatorViewModel.Event.SaveNow -> {- viewModel.saveNow(event.chatColors) { colors ->- chatColorSelectionViewModel.save(colors)- }- Navigation.findNavController(requireParentFragment().requireView()).popBackStack()- }- is CustomChatColorCreatorViewModel.Event.Warn -> MaterialAlertDialogBuilder(requireContext())- .setTitle(R.string.CustomChatColorCreatorFragmentPage__edit_color)- .setMessage(resources.getQuantityString(R.plurals.CustomChatColorCreatorFragmentPage__this_color_is_used, event.usageCount, event.usageCount))- .setPositiveButton(R.string.save) { dialog, _ ->- dialog.dismiss()- viewModel.saveNow(event.chatColors) { colors ->- chatColorSelectionViewModel.save(colors)- }- Navigation.findNavController(requireParentFragment().requireView()).popBackStack()- }- .setNegativeButton(android.R.string.cancel) { dialog, _ ->- dialog.dismiss()- }- .show()- }- }-- viewModel.state.observe(viewLifecycleOwner) { state ->- if (state.loading) {- return@observe- }-- val sliderState: ColorSlidersState = requireNotNull(state.sliderStates[state.selectedEdge])-- hueSlider.progress = sliderState.huePosition- saturationSlider.progress = sliderState.saturationPosition-- val color: Int = sliderState.getColor()- hueThumb.setColor(sliderState.getHueColor())- saturationThumb.setColor(color)- saturationProgressDrawable.colors = sliderState.getSaturationColors()-- preview.setWallpaper(state.wallpaper)-- if (page == 0) {- val chatColor = ChatColors.forColor(ChatColors.Id.NotSet, color)- preview.setChatColors(chatColor)- save.setOnClickListener {- viewModel.startSave(chatColor)- }- } else {- val topEdgeColor: ColorSlidersState = requireNotNull(state.sliderStates[CustomChatColorEdge.TOP])- val bottomEdgeColor: ColorSlidersState = requireNotNull(state.sliderStates[CustomChatColorEdge.BOTTOM])- val chatColor: ChatColors = ChatColors.forGradient(- ChatColors.Id.NotSet,- ChatColors.LinearGradient(- state.degrees,- intArrayOf(topEdgeColor.getColor(), bottomEdgeColor.getColor()),- floatArrayOf(0f, 1f)- )- )- preview.setChatColors(chatColor)- gradientTool.setSelectedEdge(state.selectedEdge)- gradientTool.setDegrees(state.degrees)- gradientTool.setTopColor(topEdgeColor.getColor())- gradientTool.setBottomColor(bottomEdgeColor.getColor())- save.setOnClickListener {- viewModel.startSave(chatColor)- }- }- }-- if (page == 1 && SignalStore.chatColors.shouldShowGradientTooltip) {- view.post {- SignalStore.chatColors.shouldShowGradientTooltip = false- val contentView = layoutInflater.inflate(R.layout.gradient_tool_tooltip, view as ViewGroup, false)- val popupWindow = PopupWindow(contentView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)-- popupWindow.isOutsideTouchable = false- popupWindow.isFocusable = true-- if (Build.VERSION.SDK_INT > 21) {- popupWindow.elevation = ViewUtil.dpToPx(8).toFloat()- }-- popupWindow.showAsDropDown(gradientTool, 0, -gradientTool.measuredHeight + ViewUtil.dpToPx(48))- }- }- }-- private fun createRepository(): CustomChatColorCreatorRepository {- return CustomChatColorCreatorRepository(requireContext())- }-- @ColorInt- private fun ColorSlidersState.getHueColor(): Int {- val hue = huePosition.toHue(MAX_SEEK_DIVISIONS)- return ColorUtils.HSLToColor(- floatArrayOf(- hue,- 1f,- calculateLightness(hue, 0.4f)- )- )- }-- @ColorInt- private fun ColorSlidersState.getColor(): Int {- val hue = huePosition.toHue(MAX_SEEK_DIVISIONS)- return ColorUtils.HSLToColor(- floatArrayOf(- hue,- saturationPosition.toUnit(MAX_SEEK_DIVISIONS),- calculateLightness(hue)- )- )- }-- private fun ColorSlidersState.getSaturationColors(): IntArray {- val hue = huePosition.toHue(MAX_SEEK_DIVISIONS)- val level = calculateLightness(hue)-- return listOf(0f, 1f).map {- ColorUtils.HSLToColor(- floatArrayOf(- hue,- it,- level- )- )- }.toIntArray()- }-- private fun calculateLightness(hue: Float, valueFor60To80: Float = 0.3f): Float {- val point1 = PointF()- val point2 = PointF()-- if (hue >= 0f && hue < 60f) {- point1.set(0f, 0.45f)- point2.set(60f, valueFor60To80)- } else if (hue >= 60f && hue < 180f) {- return valueFor60To80- } else if (hue >= 180f && hue < 240f) {- point1.set(180f, valueFor60To80)- point2.set(240f, 0.5f)- } else if (hue >= 240f && hue < 300f) {- point1.set(240f, 0.5f)- point2.set(300f, 0.4f)- } else if (hue >= 300f && hue < 360f) {- point1.set(300f, 0.4f)- point2.set(360f, 0.45f)- } else {- return 0.45f- }-- return interpolate(point1, point2, hue)- }-- private fun interpolate(point1: PointF, point2: PointF, x: Float): Float {- return ((point1.y * (point2.x - x)) + (point2.y * (x - point1.x))) / (point2.x - point1.x)- }-- private fun Number.toHue(max: Number): Float {- return Util.clamp(toFloat() * (MAX_HUE / max.toFloat()), 0f, MAX_HUE.toFloat())- }-- private fun Number.toUnit(max: Number): Float {- return Util.clamp(toFloat() / max.toFloat(), 0f, 1f)- }-- private fun Drawable.forSeekBar(): Drawable {- val height: Int = ViewUtil.dpToPx(8)- val radii: FloatArray = (1..8).map { 50f }.toFloatArray()- val bounds = RectF()- val clipPath = Path()-- return customizeOnDraw { wrapped, canvas ->- canvas.save()- bounds.set(this.bounds)- bounds.inset(0f, (height / 2f) + 1)-- clipPath.rewind()- clipPath.addRoundRect(bounds, radii, Path.Direction.CW)-- canvas.clipPath(clipPath)- wrapped.draw(canvas)- canvas.restore()- }- }-- private class OnProgressChangedListener(private val updateFn: (Int) -> Unit) :- SeekBar.OnSeekBarChangeListener {- override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {- updateFn(progress)- }-- override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit- override fun onStopTrackingTouch(seekBar: SeekBar?) = Unit- }-- private class ThumbDrawable(context: Context) : Drawable() {-- private val borderPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_background_primary)- }-- private val paint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = Color.TRANSPARENT- }-- private val borderWidth: Int = ViewUtil.dpToPx(THUMB_MARGIN)- private val thumbInnerSize: Int = ViewUtil.dpToPx(THUMB_INNER_SIZE)- private val innerRadius: Float = thumbInnerSize / 2f- private val thumbSize: Float = (thumbInnerSize + borderWidth).toFloat()- private val thumbRadius: Float = thumbSize / 2f-- override fun getIntrinsicHeight(): Int = ViewUtil.dpToPx(48)-- override fun getIntrinsicWidth(): Int = ViewUtil.dpToPx(48)-- fun setColor(@ColorInt color: Int) {- paint.color = color- invalidateSelf()- }-- override fun draw(canvas: Canvas) {- canvas.drawCircle(- (bounds.width() / 2f) + bounds.left,- (bounds.height() / 2f) + bounds.top,- thumbRadius,- borderPaint- )- canvas.drawCircle(- (bounds.width() / 2f) + bounds.left,- (bounds.height() / 2f) + bounds.top,- innerRadius,- paint- )- }-- override fun setAlpha(alpha: Int) = Unit- override fun setColorFilter(colorFilter: ColorFilter?) = Unit-- override fun getOpacity(): Int = PixelFormat.TRANSPARENT-- companion object {- @Dimension(unit = Dimension.DP)- private val THUMB_INNER_SIZE = 16-- @Dimension(unit = Dimension.DP)- private val THUMB_MARGIN = 1- }- }-- companion object {-- fun forSingle(bundle: Bundle): Fragment = forPage(SINGLE_PAGE, bundle)-- fun forGradient(bundle: Bundle): Fragment = forPage(GRADIENT_PAGE, bundle)-- private fun forPage(page: Int, bundle: Bundle): Fragment = CustomChatColorCreatorPageFragment().apply {- arguments = Bundle().apply {- putInt(PAGE_ARG, page)- putAll(bundle)- }- }- }-}diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorScreen.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorScreen.ktnew file mode 100644index 0000000..6fccbe5--- /dev/null+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorScreen.kt@@ -0,0 +1,398 @@+package org.thoughtcrime.securesms.conversation.colors.ui.custom++import android.view.LayoutInflater+import androidx.compose.foundation.Canvas+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.BoxScope+import androidx.compose.foundation.layout.BoxWithConstraints+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.heightIn+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.widthIn+import androidx.compose.foundation.rememberScrollState+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.foundation.verticalScroll+import androidx.compose.material3.ButtonDefaults+import androidx.compose.material3.ExperimentalMaterial3Api+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.PrimaryTabRow+import androidx.compose.material3.Slider+import androidx.compose.material3.Surface+import androidx.compose.material3.Tab+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.saveable.rememberSaveable+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.Path+import androidx.compose.ui.layout.onSizeChanged+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.res.colorResource+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.semantics.contentDescription+import androidx.compose.ui.semantics.semantics+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.unit.dp+import androidx.compose.ui.viewinterop.AndroidView+import androidx.core.graphics.ColorUtils+import org.signal.core.ui.compose.Buttons+import org.signal.core.ui.compose.Scaffolds+import org.signal.core.ui.compose.SignalIcons+import org.signal.core.util.Util+import org.thoughtcrime.securesms.R+import org.thoughtcrime.securesms.conversation.colors.ChatColors+import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView+import org.thoughtcrime.securesms.keyvalue.SignalStore+import kotlin.math.roundToInt++internal const val MAX_SEEK_DIVISIONS = 1023+private const val MAX_HUE = 360++private const val SOLID_PAGE = 0+private const val GRADIENT_PAGE = 1++/**+ * The custom chat color editor. Shows a live preview over the conversation wallpaper, a pair of+ * color sliders, and (on the gradient page) the draggable gradient direction tool.+ */+@Composable+fun CustomChatColorCreatorScreen(+ state: CustomChatColorCreatorState?,+ startPage: Int,+ onHueProgressChange: (Int) -> Unit,+ onSaturationProgressChange: (Int) -> Unit,+ onDegreesChange: (Float) -> Unit,+ onSelectedEdgeChange: (CustomChatColorEdge) -> Unit,+ onSave: (ChatColors) -> Unit,+ onBack: () -> Unit,+ modifier: Modifier = Modifier+) {+ var selectedPage by rememberSaveable { mutableStateOf(startPage) }++ Scaffolds.Settings(+ title = stringResource(R.string.ChatColorSelectionFragment__chat_color),+ onNavigationClick = onBack,+ navigationIcon = SignalIcons.ArrowStart.imageVector,+ navigationContentDescription = stringResource(R.string.CallQualitySomethingElseScreen__back),+ modifier = modifier+ ) { contentPadding ->+ Column(modifier = Modifier.padding(contentPadding).fillMaxSize()) {+ PrimaryTabRow(selectedTabIndex = selectedPage, divider = {}) {+ Tab(+ selected = selectedPage == SOLID_PAGE,+ onClick = { selectedPage = SOLID_PAGE },+ text = { Text(text = stringResource(R.string.CustomChatColorCreatorFragment__solid)) }+ )+ Tab(+ selected = selectedPage == GRADIENT_PAGE,+ onClick = { selectedPage = GRADIENT_PAGE },+ text = { Text(text = stringResource(R.string.CustomChatColorCreatorFragment__gradient)) }+ )+ }++ CustomChatColorCreatorPage(+ page = selectedPage,+ state = state?.takeIf { !it.loading },+ onHueProgressChange = onHueProgressChange,+ onSaturationProgressChange = onSaturationProgressChange,+ onDegreesChange = onDegreesChange,+ onSelectedEdgeChange = onSelectedEdgeChange,+ onSave = onSave+ )+ }+ }+}++@Composable+private fun CustomChatColorCreatorPage(+ page: Int,+ state: CustomChatColorCreatorState?,+ onHueProgressChange: (Int) -> Unit,+ onSaturationProgressChange: (Int) -> Unit,+ onDegreesChange: (Float) -> Unit,+ onSelectedEdgeChange: (CustomChatColorEdge) -> Unit,+ onSave: (ChatColors) -> Unit+) {+ val sliderState = state?.sliderStates?.get(state.selectedEdge) ?: ColorSlidersState(0, 0)+ val chatColors = state?.toChatColors(page)++ var showGradientTooltip by remember { mutableStateOf(false) }+ LaunchedEffect(page) {+ if (page == GRADIENT_PAGE && SignalStore.chatColors.shouldShowGradientTooltip) {+ SignalStore.chatColors.shouldShowGradientTooltip = false+ showGradientTooltip = true+ }+ }++ val hueBrush = remember {+ Brush.horizontalGradient(+ (0..MAX_SEEK_DIVISIONS).map { hue ->+ Color(ColorUtils.HSLToColor(floatArrayOf(hue.toHue(), 1f, calculateLightness(hue.toFloat(), valueFor60To80 = 0.4f))))+ }+ )+ }++ val saturationBrush = remember(sliderState.huePosition) {+ Brush.horizontalGradient(sliderState.getSaturationColors().map { Color(it) })+ }++ BoxWithConstraints(modifier = Modifier.fillMaxSize()) {+ val viewportHeight = maxHeight+ val density = LocalDensity.current+ var contentHeight by remember { mutableStateOf(0.dp) }++ Column(modifier = Modifier.fillMaxWidth().verticalScroll(rememberScrollState())) {+ Column(modifier = Modifier.onSizeChanged { contentHeight = with(density) { it.height.toDp() } }) {+ Box(modifier = Modifier.fillMaxWidth().padding(start = 10.dp, top = 10.dp, end = 10.dp)) {+ Surface(+ modifier = Modifier.padding(6.dp),+ shape = RoundedCornerShape(4.dp),+ color = MaterialTheme.colorScheme.surfaceContainerHighest,+ shadowElevation = 0.dp+ ) {+ AndroidView(+ factory = { context -> LayoutInflater.from(context).inflate(R.layout.custom_chat_color_creator_preview, null) as ChatColorPreviewView },+ update = { preview ->+ preview.setWallpaper(state?.wallpaper)+ if (chatColors != null) {+ preview.setChatColors(chatColors)+ }+ },+ modifier = Modifier.fillMaxWidth()+ )+ }++ if (page == GRADIENT_PAGE) {+ if (state != null) {+ CustomChatColorGradientTool(+ topColor = Color(state.sliderStates.getValue(CustomChatColorEdge.TOP).getColor()),+ bottomColor = Color(state.sliderStates.getValue(CustomChatColorEdge.BOTTOM).getColor()),+ selectedEdge = state.selectedEdge,+ degrees = state.degrees,+ onDegreesChange = onDegreesChange,+ onEdgeSelected = onSelectedEdgeChange,+ modifier = Modifier.matchParentSize()+ )+ }++ if (showGradientTooltip) {+ GradientTooltip(onDismiss = { showGradientTooltip = false })+ }+ }+ }++ Spacer(modifier = Modifier.height(10.dp))++ SliderLabel(text = stringResource(R.string.CustomChatColorCreatorFragment__hue))+ ColorSlider(+ label = stringResource(R.string.CustomChatColorCreatorFragment__hue),+ progress = sliderState.huePosition,+ onProgressChange = onHueProgressChange,+ trackBrush = hueBrush,+ thumbColor = Color(sliderState.getHueColor())+ )++ SliderLabel(text = stringResource(R.string.CustomChatColorCreatorFragment__saturation))+ ColorSlider(+ label = stringResource(R.string.CustomChatColorCreatorFragment__saturation),+ progress = sliderState.saturationPosition,+ onProgressChange = onSaturationProgressChange,+ trackBrush = saturationBrush,+ thumbColor = Color(sliderState.getColor())+ )+ }++ Box(+ modifier = Modifier.fillMaxWidth().heightIn(min = (viewportHeight - contentHeight).coerceAtLeast(0.dp)),+ contentAlignment = Alignment.BottomEnd+ ) {+ Buttons.LargePrimary(+ onClick = { if (chatColors != null) onSave(chatColors) },+ modifier = Modifier.padding(end = 16.dp, bottom = 16.dp).heightIn(min = 44.dp),+ shape = RoundedCornerShape(68.dp),+ elevation = ButtonDefaults.buttonElevation(defaultElevation = 8.dp, pressedElevation = 8.dp)+ ) {+ Text(text = stringResource(R.string.CustomChatColorCreatorFragmentPage__save))+ }+ }+ }+ }+}++@Composable+private fun SliderLabel(text: String) {+ Box(+ modifier = Modifier.fillMaxWidth().heightIn(min = 40.dp).padding(horizontal = 16.dp),+ contentAlignment = Alignment.CenterStart+ ) {+ Text(+ text = text,+ style = MaterialTheme.typography.bodyMedium.copy(fontWeight = FontWeight.Medium),+ color = MaterialTheme.colorScheme.onSurfaceVariant+ )+ }+}++@OptIn(ExperimentalMaterial3Api::class)+@Composable+private fun ColorSlider(+ label: String,+ progress: Int,+ onProgressChange: (Int) -> Unit,+ trackBrush: Brush,+ thumbColor: Color,+ modifier: Modifier = Modifier+) {+ val thumbBorderColor = colorResource(R.color.signal_background_primary)++ Slider(+ value = progress.toFloat(),+ onValueChange = { onProgressChange(it.roundToInt()) },+ modifier = modifier+ .fillMaxWidth()+ .padding(horizontal = 16.dp)+ .semantics { contentDescription = label },+ valueRange = 0f..MAX_SEEK_DIVISIONS.toFloat(),+ steps = MAX_SEEK_DIVISIONS - 1,+ thumb = {+ Canvas(modifier = Modifier.size(17.dp)) {+ drawCircle(color = thumbBorderColor, radius = 8.5.dp.toPx())+ drawCircle(color = thumbColor, radius = 8.dp.toPx())+ }+ },+ track = {+ Box(+ modifier = Modifier+ .fillMaxWidth()+ .height(8.dp)+ .background(trackBrush, RoundedCornerShape(4.dp))+ )+ }+ )+}++@Composable+private fun BoxScope.GradientTooltip(onDismiss: () -> Unit) {+ val accentColor = colorResource(R.color.signal_accent_primary)++ Box(+ modifier = Modifier+ .matchParentSize()+ .clickable(interactionSource = null, indication = null, onClick = onDismiss)+ ) {+ Column(+ modifier = Modifier.align(Alignment.TopCenter).padding(top = 48.dp).widthIn(max = 295.dp),+ horizontalAlignment = Alignment.CenterHorizontally+ ) {+ Canvas(modifier = Modifier.size(width = 16.dp, height = 8.dp)) {+ val arrow = Path().apply {+ moveTo(size.width / 2f, 0f)+ lineTo(size.width, size.height)+ lineTo(0f, size.height)+ close()+ }+ drawPath(arrow, accentColor)+ }++ Surface(+ modifier = Modifier.fillMaxWidth(),+ shape = RoundedCornerShape(8.dp),+ color = accentColor+ ) {+ Text(+ text = stringResource(R.string.CustomChatColorCreatorFragment__drag_to_change_the_direction_of_the_gradient),+ modifier = Modifier.padding(horizontal = 16.dp, vertical = 12.dp),+ style = MaterialTheme.typography.bodyLarge,+ color = Color.White+ )+ }+ }+ }+}++private fun CustomChatColorCreatorState.toChatColors(page: Int): ChatColors {+ return if (page == SOLID_PAGE) {+ ChatColors.forColor(ChatColors.Id.NotSet, sliderStates.getValue(selectedEdge).getColor())+ } else {+ ChatColors.forGradient(+ ChatColors.Id.NotSet,+ ChatColors.LinearGradient(+ degrees,+ intArrayOf(sliderStates.getValue(CustomChatColorEdge.TOP).getColor(), sliderStates.getValue(CustomChatColorEdge.BOTTOM).getColor()),+ floatArrayOf(0f, 1f)+ )+ )+ }+}++private fun ColorSlidersState.getHueColor(): Int {+ val hue = huePosition.toHue()+ return ColorUtils.HSLToColor(floatArrayOf(hue, 1f, calculateLightness(hue, valueFor60To80 = 0.4f)))+}++private fun ColorSlidersState.getColor(): Int {+ val hue = huePosition.toHue()+ return ColorUtils.HSLToColor(floatArrayOf(hue, saturationPosition.toUnit(), calculateLightness(hue)))+}++private fun ColorSlidersState.getSaturationColors(): IntArray {+ val hue = huePosition.toHue()+ val level = calculateLightness(hue)++ return listOf(0f, 1f).map { saturation ->+ ColorUtils.HSLToColor(floatArrayOf(hue, saturation, level))+ }.toIntArray()+}++private fun calculateLightness(hue: Float, valueFor60To80: Float = 0.3f): Float {+ val point1X: Float+ val point1Y: Float+ val point2X: Float+ val point2Y: Float++ if (hue >= 0f && hue < 60f) {+ point1X = 0f+ point1Y = 0.45f+ point2X = 60f+ point2Y = valueFor60To80+ } else if (hue >= 60f && hue < 180f) {+ return valueFor60To80+ } else if (hue >= 180f && hue < 240f) {+ point1X = 180f+ point1Y = valueFor60To80+ point2X = 240f+ point2Y = 0.5f+ } else if (hue >= 240f && hue < 300f) {+ point1X = 240f+ point1Y = 0.5f+ point2X = 300f+ point2Y = 0.4f+ } else if (hue >= 300f && hue < 360f) {+ point1X = 300f+ point1Y = 0.4f+ point2X = 360f+ point2Y = 0.45f+ } else {+ return 0.45f+ }++ return ((point1Y * (point2X - hue)) + (point2Y * (hue - point1X))) / (point2X - point1X)+}++private fun Int.toHue(): Float = Util.clamp(this * (MAX_HUE / MAX_SEEK_DIVISIONS.toFloat()), 0f, MAX_HUE.toFloat())++private fun Int.toUnit(): Float = Util.clamp(this / MAX_SEEK_DIVISIONS.toFloat(), 0f, 1f)\ No newline at end of filediff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientTool.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientTool.ktnew file mode 100644index 0000000..d447a7c--- /dev/null+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientTool.kt@@ -0,0 +1,228 @@+package org.thoughtcrime.securesms.conversation.colors.ui.custom++import androidx.compose.foundation.Canvas+import androidx.compose.foundation.gestures.awaitEachGesture+import androidx.compose.foundation.gestures.awaitFirstDown+import androidx.compose.foundation.gestures.drag+import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.rememberUpdatedState+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.res.colorResource+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.semantics.contentDescription+import androidx.compose.ui.semantics.semantics+import androidx.compose.ui.unit.dp+import org.thoughtcrime.securesms.R+import kotlin.math.atan+import kotlin.math.atan2+import kotlin.math.tan++/**+ * Renders the gradient customization tool.+ *+ * The Gradient customization tool is two selectable circles on either side+ * of a rectangle with a pipe connecting them, a TOP and a BOTTOM (an edge)+ *+ * The user can then swap between the selected edge via a touch-down and can+ * drag the selected edge such that it traces around the outline of the square.+ * The other edge traces along the opposite side of the rectangle.+ *+ * The way the position along the edge is determined is by dividing the rectangle+ * into 8 right-angled triangles, all joining at the center. Using the specified+ * angle, we can determine which "octant" the top edge should be in, and can+ * determine its distance from the center point of the relevant edge, and use+ * similar logic to determine where the bottom edge lies.+ *+ * All of the math assumes an origin at the dead center of the tool, and+ * that 0deg corresponds to a vector pointing directly towards the right hand+ * side of the tool. This doesn't quite line up with what the gradient rendering+ * math requires, so we apply a simple function to degrees when it comes into or+ * leaves this tool (see `Float.invertDegrees`)+ */+@Composable+fun CustomChatColorGradientTool(+ topColor: Color,+ bottomColor: Color,+ selectedEdge: CustomChatColorEdge,+ degrees: Float,+ onDegreesChange: (Float) -> Unit,+ onEdgeSelected: (CustomChatColorEdge) -> Unit,+ modifier: Modifier = Modifier+) {+ val backgroundColor = colorResource(R.color.signal_background_primary)+ val thumbBorderColor = colorResource(R.color.signal_inverse_transparent_10)+ val thumbBorderSelectedColor = colorResource(R.color.signal_inverse_transparent_60)+ val toolDescription = stringResource(R.string.ChatColorGradientTool__gradient_direction)++ val currentDegrees by rememberUpdatedState(degrees)+ val currentOnDegreesChange by rememberUpdatedState(onDegreesChange)+ val currentOnEdgeSelected by rememberUpdatedState(onEdgeSelected)++ Canvas(+ modifier = modifier+ .semantics { contentDescription = toolDescription }+ .pointerInput(Unit) {+ val thumbRadius = THUMB_RADIUS.dp.toPx()++ awaitEachGesture {+ val down = awaitFirstDown()+ val handles = calculateHandlePositions(size.width.toFloat(), size.height.toFloat(), currentDegrees.invertDegrees(), thumbRadius)++ val edge = when {+ (down.position - handles.top).getDistance() <= thumbRadius -> CustomChatColorEdge.TOP+ (down.position - handles.bottom).getDistance() <= thumbRadius -> CustomChatColorEdge.BOTTOM+ else -> null+ }++ if (edge == null) {+ return@awaitEachGesture+ }++ currentOnEdgeSelected(edge)+ down.consume()++ val center = Offset((size.width - thumbRadius * 2) / 2f, (size.height - thumbRadius * 2) / 2f)+ val offset = if (edge == CustomChatColorEdge.BOTTOM) 180f else 0f++ drag(down.id) { change ->+ change.consume()++ val a = change.position - center+ val dot = a.x * center.x+ val det = -a.y * center.x+ val newDegrees = (atan2(det, dot).toDegrees() + 360f + offset) % 360f++ currentOnDegreesChange(newDegrees.invertDegrees())+ }+ }+ }+ ) {+ val thumbRadius = THUMB_RADIUS.dp.toPx()+ val thumbBorder = THUMB_BORDER.dp.toPx()+ val thumbBorderSelected = THUMB_BORDER_SELECTED.dp.toPx()+ val opaqueThumbRadius = OPAQUE_THUMB_RADIUS.dp.toPx()+ val opaqueThumbPadding = OPAGUE_THUMB_PADDING.dp.toPx()+ val opaqueThumbPaddingSelected = OPAGUE_THUMB_PADDING_SELECTED.dp.toPx()+ val pipeWidth = PIPE_WIDTH.dp.toPx()+ val pipeBorder = PIPE_BORDER.dp.toPx()++ val handles = calculateHandlePositions(size.width, size.height, degrees.invertDegrees(), thumbRadius)+ val top = handles.top+ val bottom = handles.bottom++ val (selected, other) = when (selectedEdge) {+ CustomChatColorEdge.TOP -> top to bottom+ CustomChatColorEdge.BOTTOM -> bottom to top+ }++ val (selectedColor, otherColor) = when (selectedEdge) {+ CustomChatColorEdge.TOP -> topColor to bottomColor+ CustomChatColorEdge.BOTTOM -> bottomColor to topColor+ }++ drawLine(color = thumbBorderColor, start = selected, end = other, strokeWidth = pipeWidth)+ drawLine(color = backgroundColor, start = selected, end = other, strokeWidth = pipeWidth - pipeBorder * 2)++ drawCircle(color = thumbBorderColor, radius = opaqueThumbRadius + thumbBorder, center = other)+ drawCircle(color = backgroundColor, radius = opaqueThumbRadius, center = other)+ drawCircle(color = otherColor, radius = opaqueThumbRadius - opaqueThumbPadding, center = other)++ drawCircle(color = thumbBorderSelectedColor, radius = opaqueThumbRadius + thumbBorderSelected, center = selected)+ drawCircle(color = backgroundColor, radius = opaqueThumbRadius, center = selected)+ drawCircle(color = selectedColor, radius = opaqueThumbRadius - opaqueThumbPaddingSelected, center = selected)+ }+}++private data class HandlePositions(val top: Offset, val bottom: Offset)++/**+ * Calculates the handle positions in tool coordinates for the given internal degrees. The positions+ * lie on the perimeter of the rect inset by [thumbRadius] on every side.+ */+private fun calculateHandlePositions(width: Float, height: Float, degrees: Float, thumbRadius: Float): HandlePositions {+ val rectWidth = width - thumbRadius * 2+ val rectHeight = height - thumbRadius * 2+ val centerX = rectWidth / 2f+ val centerY = rectHeight / 2f++ val alpha = atan(rectHeight / rectWidth).toDegrees()+ val beta = (360f - alpha * 4) / 4f++ val top: Offset+ val bottom: Offset++ if (degrees < alpha) {+ // Right top+ val b = centerX * tan(degrees.toRadians())+ top = Offset(rectWidth, centerY - b)+ bottom = Offset(0f, centerY + b)+ } else if (degrees < 90f) {+ // Top right+ val phi = 90f - degrees+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX + b, 0f)+ bottom = Offset(centerX - b, rectHeight)+ } else if (degrees < (90f + beta)) {+ // Top left+ val phi = degrees - 90f+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX - b, 0f)+ bottom = Offset(centerX + b, rectHeight)+ } else if (degrees < 180f) {+ // left top+ val phi = 180f - degrees+ val b = centerX * tan(phi.toRadians())+ top = Offset(0f, centerY - b)+ bottom = Offset(rectWidth, centerY + b)+ } else if (degrees < (180f + alpha)) {+ // left bottom+ val phi = degrees - 180f+ val b = centerX * tan(phi.toRadians())+ top = Offset(0f, centerY + b)+ bottom = Offset(rectWidth, centerY - b)+ } else if (degrees < 270f) {+ // bottom left+ val phi = 270f - degrees+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX - b, rectHeight)+ bottom = Offset(centerX + b, 0f)+ } else if (degrees < (270f + beta)) {+ // bottom right+ val phi = degrees - 270f+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX + b, rectHeight)+ bottom = Offset(centerX - b, 0f)+ } else {+ // right bottom+ val phi = 360f - degrees+ val b = centerX * tan(phi.toRadians())+ top = Offset(rectWidth, centerY + b)+ bottom = Offset(0f, centerY - b)+ }++ return HandlePositions(+ top = top + Offset(thumbRadius, thumbRadius),+ bottom = bottom + Offset(thumbRadius, thumbRadius)+ )+}++private fun Float.invertDegrees(): Float = 360f - rotate(90f)++private fun Float.rotate(degrees: Float): Float = (this + degrees + 360f) % 360f++private fun Float.toDegrees(): Float = this * (180f / Math.PI.toFloat())++private fun Float.toRadians(): Float = this * (Math.PI.toFloat() / 180f)++private const val THUMB_RADIUS = 24+private const val THUMB_BORDER = 1+private const val THUMB_BORDER_SELECTED = 4+private const val OPAQUE_THUMB_RADIUS = 20+private const val OPAGUE_THUMB_PADDING = 2+private const val OPAGUE_THUMB_PADDING_SELECTED = 1+private const val PIPE_WIDTH = 6+private const val PIPE_BORDER = 1\ No newline at end of filediff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.ktdeleted file mode 100644index 77d4c66..0000000--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.kt+++ /dev/null@@ -1,347 +0,0 @@-package org.thoughtcrime.securesms.conversation.colors.ui.custom--import android.content.Context-import android.graphics.Canvas-import android.graphics.Color-import android.graphics.Paint-import android.graphics.PointF-import android.graphics.Rect-import android.graphics.RectF-import android.util.AttributeSet-import android.view.GestureDetector-import android.view.MotionEvent-import android.view.View-import androidx.annotation.ColorInt-import androidx.annotation.Dimension-import androidx.core.content.ContextCompat-import org.thoughtcrime.securesms.R-import org.thoughtcrime.securesms.util.ViewUtil-import kotlin.math.abs-import kotlin.math.atan-import kotlin.math.atan2-import kotlin.math.pow-import kotlin.math.sqrt-import kotlin.math.tan--/**- * Renders the gradient customization tool.- *- * The Gradient customization tool is two selectable circles on either side- * of a rectangle with a pipe connecting them, a TOP and a BOTTOM (an edge)- *- * The user can then swap between the selected edge via a touch-down and can- * drag the selected edge such that it traces around the outline of the square.- * The other edge traces along the opposite side of the rectangle.- *- * The way the position along the edge is determined is by dividing the rectangle- * into 8 right-angled triangles, all joining at the center. Using the specified- * angle, we can determine which "octant" the top edge should be in, and can- * determine its distance from the center point of the relevant edge, and use- * similar logic to determine where the bottom edge lies.- *- * All of the math assumes an origin at the dead center of the view, and- * that 0deg corresponds to a vector pointing directly towards the right hand- * side of the view. This doesn't quite line up with what the gradient rendering- * math requires, so we apply a simple function to degrees when it comes into or- * leaves this tool (see `Float.invert`)- */-class CustomChatColorGradientToolView @JvmOverloads constructor(- context: Context,- attrs: AttributeSet? = null,- defStyleAttr: Int = 0-) : View(context, attrs, defStyleAttr) {-- private val clipRect = Rect()- private val rect = RectF()- private val center = PointF()- private val top = PointF()- private val bottom = PointF()-- private var selectedEdge: CustomChatColorEdge = CustomChatColorEdge.TOP- private var degrees: Float = 18f- private var listener: Listener? = null-- private val thumbRadius: Float = ViewUtil.dpToPx(THUMB_RADIUS).toFloat()- private val thumbBorder: Float = ViewUtil.dpToPx(THUMB_BORDER).toFloat()- private val thumbBorderSelected: Float = ViewUtil.dpToPx(THUMB_BORDER_SELECTED).toFloat()- private val opaqueThumbRadius: Float = ViewUtil.dpToPx(OPAQUE_THUMB_RADIUS).toFloat()- private val opaqueThumbPadding: Float = ViewUtil.dpToPx(OPAGUE_THUMB_PADDING).toFloat()- private val opaqueThumbPaddingSelected: Float = ViewUtil.dpToPx(OPAGUE_THUMB_PADDING_SELECTED).toFloat()- private val pipeWidth: Float = ViewUtil.dpToPx(PIPE_WIDTH).toFloat()- private val pipeBorder: Float = ViewUtil.dpToPx(PIPE_BORDER).toFloat()-- private val topColorPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = Color.RED- }-- private val bottomColorPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = Color.BLUE- }-- private val backgroundPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_background_primary)- }-- private val thumbBorderPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_inverse_transparent_10)- }-- private val thumbBorderPaintSelected = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_inverse_transparent_60)- }-- private val pipePaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- strokeWidth = pipeWidth - pipeBorder * 2- style = Paint.Style.STROKE- color = ContextCompat.getColor(context, R.color.signal_background_primary)- }-- private val pipeBorderPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- strokeWidth = pipeWidth- style = Paint.Style.STROKE- color = ContextCompat.getColor(context, R.color.signal_inverse_transparent_10)- }-- private val gestureListener = GestureListener()- private val gestureDetector = GestureDetector(context, gestureListener)-- fun setTopColor(@ColorInt color: Int) {- topColorPaint.color = color- invalidate()- }-- fun setBottomColor(@ColorInt color: Int) {- bottomColorPaint.color = color- invalidate()- }-- fun setSelectedEdge(selectedEdge: CustomChatColorEdge) {- if (this.selectedEdge == selectedEdge) {- return- }-- this.selectedEdge = selectedEdge- invalidate()-- listener?.onSelectedEdgeChanged(selectedEdge)- }-- fun setDegrees(degrees: Float) {- setDegreesInternal(degrees.invertDegrees())- }-- private fun setDegreesInternal(degrees: Float) {- if (this.degrees == degrees) {- return- }-- this.degrees = degrees- invalidate()-- listener?.onDegreesChanged(degrees.invertDegrees())- }-- private fun Float.invertDegrees(): Float = 360f - rotate(90f)-- fun setListener(listener: Listener) {- this.listener = listener- }-- override fun onTouchEvent(event: MotionEvent): Boolean {- if (event.action == MotionEvent.ACTION_CANCEL || event.action == MotionEvent.ACTION_UP) {- listener?.onGestureFinished()- } else if (event.action == MotionEvent.ACTION_DOWN) {- listener?.onGestureStarted()- }-- return gestureDetector.onTouchEvent(event)- }-- override fun onDraw(canvas: Canvas) {- canvas.getClipBounds(clipRect)- rect.set(clipRect)- rect.inset(thumbRadius, thumbRadius)-- center.set(rect.width() / 2f, rect.height() / 2f)-- val alpha = atan((rect.height() / rect.width())).toDegrees()- val beta = (360.0 - alpha * 4) / 4f-- if (degrees < alpha) {- // Right top- val a = center.x- val b = a * tan(degrees.toRadians())- top.set(rect.width(), center.y - b)- bottom.set(0f, center.y + b)- } else if (degrees < 90f) {- // Top right- val phi = 90f - degrees- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x + b, 0f)- bottom.set(center.x - b, rect.height())- } else if (degrees < (90f + beta)) {- // Top left- val phi = degrees - 90f- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x - b, 0f)- bottom.set(center.x + b, rect.height())- } else if (degrees < 180f) {- // left top- val phi = 180f - degrees- val a = center.x- val b = a * tan(phi.toRadians())- top.set(0f, center.y - b)- bottom.set(rect.width(), center.y + b)- } else if (degrees < (180f + alpha)) {- // left bottom- val phi = degrees - 180f- val a = center.x- val b = a * tan(phi.toRadians())- top.set(0f, center.y + b)- bottom.set(rect.width(), center.y - b)- } else if (degrees < 270f) {- // bottom left- val phi = 270f - degrees- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x - b, rect.height())- bottom.set(center.x + b, 0f)- } else if (degrees < (270f + beta)) {- // bottom right- val phi = degrees - 270f- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x + b, rect.height())- bottom.set(center.x - b, 0f)- } else {- // right bottom- val phi = 360f - degrees- val a = center.x- val b = a * tan(phi.toRadians())- top.set(rect.width(), center.y + b)- bottom.set(0f, center.y - b)- }-- val (selected, other) = when (selectedEdge) {- CustomChatColorEdge.TOP -> top to bottom- CustomChatColorEdge.BOTTOM -> bottom to top- }-- val (selectedPaint, otherPaint) = when (selectedEdge) {- CustomChatColorEdge.TOP -> topColorPaint to bottomColorPaint- CustomChatColorEdge.BOTTOM -> bottomColorPaint to topColorPaint- }-- canvas.apply {- save()- translate(rect.top, rect.left)-- drawLine(selected.x, selected.y, other.x, other.y, pipeBorderPaint)- drawLine(selected.x, selected.y, other.x, other.y, pipePaint)-- drawCircle(other.x, other.y, opaqueThumbRadius + thumbBorder, thumbBorderPaint)- drawCircle(other.x, other.y, opaqueThumbRadius, backgroundPaint)- drawCircle(other.x, other.y, opaqueThumbRadius - opaqueThumbPadding, otherPaint)-- drawCircle(selected.x, selected.y, opaqueThumbRadius + thumbBorderSelected, thumbBorderPaintSelected)- drawCircle(selected.x, selected.y, opaqueThumbRadius, backgroundPaint)- drawCircle(selected.x, selected.y, opaqueThumbRadius - opaqueThumbPaddingSelected, selectedPaint)- restore()- }-- top.offset(rect.top, rect.left)- bottom.offset(rect.top, rect.left)- }-- private fun Float.toDegrees(): Float = this * (180f / Math.PI.toFloat())- private fun Float.toRadians(): Float = this * (Math.PI.toFloat() / 180f)- private fun PointF.distance(other: PointF): Float = abs(sqrt((this.x - other.x).pow(2) + (this.y - other.y).pow(2)))- private fun PointF.dotProduct(other: PointF): Float = (this.x * other.x) + (this.y * other.y)- private fun PointF.determinate(other: PointF): Float = (this.x * other.y) - (this.y * other.x)-- private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {-- var activePointerId: Int = MotionEvent.INVALID_POINTER_ID-- override fun onDown(e: MotionEvent): Boolean {- activePointerId = e.getPointerId(0)-- val touchPoint = PointF(e.getX(0), e.getY(0))- val distanceFromTop = touchPoint.distance(top)-- if (distanceFromTop <= thumbRadius) {- setSelectedEdge(CustomChatColorEdge.TOP)- return true- }-- val distanceFromBottom = touchPoint.distance(bottom)- if (distanceFromBottom <= thumbRadius) {- setSelectedEdge(CustomChatColorEdge.BOTTOM)- return true- }-- return false- }-- override fun onScroll(- e1: MotionEvent?,- e2: MotionEvent,- distanceX: Float,- distanceY: Float- ): Boolean {- val pointerIndex = e2.findPointerIndex(activePointerId)- if (pointerIndex == -1) {- return true- }-- val a = PointF(e2.getX(pointerIndex) - center.x, e2.getY(pointerIndex) - center.y)- val b = PointF(center.x, 0f)- val dot = a.dotProduct(b)- val det = a.determinate(b)-- val offset = if (selectedEdge == CustomChatColorEdge.BOTTOM) 180f else 0f- val degrees = (atan2(det, dot).toDegrees() + 360f + offset) % 360f-- setDegreesInternal(degrees)-- return true- }- }-- private fun Float.rotate(degrees: Float): Float = (this + degrees + 360f) % 360f-- interface Listener {- fun onGestureStarted()- fun onGestureFinished()- fun onDegreesChanged(degrees: Float)- fun onSelectedEdgeChanged(edge: CustomChatColorEdge)- }-- companion object {- @Dimension(unit = Dimension.DP)- private const val THUMB_RADIUS = 24-- @Dimension(unit = Dimension.DP)- private const val THUMB_BORDER = 1-- @Dimension(unit = Dimension.DP)- private const val THUMB_BORDER_SELECTED = 4-- @Dimension(unit = Dimension.DP)- private const val OPAQUE_THUMB_RADIUS = 20-- @Dimension(unit = Dimension.DP)- private const val OPAGUE_THUMB_PADDING = 2-- @Dimension(unit = Dimension.DP)- private const val OPAGUE_THUMB_PADDING_SELECTED = 1-- @Dimension(unit = Dimension.DP)- private const val PIPE_WIDTH = 6-- @Dimension(unit = Dimension.DP)- private const val PIPE_BORDER = 1- }-}diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorPagerAdapter.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorPagerAdapter.ktdeleted file mode 100644index 1d08f5b..0000000--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorPagerAdapter.kt+++ /dev/null@@ -1,19 +0,0 @@-package org.thoughtcrime.securesms.conversation.colors.ui.custom--import android.os.Bundle-import androidx.fragment.app.Fragment-import androidx.viewpager2.adapter.FragmentStateAdapter--class CustomChatColorPagerAdapter(parentFragment: Fragment, private val arguments: Bundle) : FragmentStateAdapter(parentFragment) {- override fun getItemCount(): Int = 2-- override fun createFragment(position: Int): Fragment {- return when (position) {- 0 -> CustomChatColorCreatorPageFragment.forSingle(arguments)- 1 -> CustomChatColorCreatorPageFragment.forGradient(arguments)- else -> {- throw AssertionError()- }- }- }-}diff --git a/app/src/main/res/drawable-xxhdpi/tooltip_arrow_up.9.png b/app/src/main/res/drawable-xxhdpi/tooltip_arrow_up.9.pngdeleted file mode 100644index 63f266b127c64c7d9580b28efd01d493d7475561..0000000000000000000000000000000000000000GIT binary patchliteral 0HcmV?d00001
literal 2543zcmai0cT^MU77xXsuz(846Dct~1O-wFF@Y#0fS^H|3F-z6$%F(<AsM<9!3KB$-zpMVzBwz!vAw?;xSa_gB%vsb0tZNBH=^l8<f^UN0?jOE=GiT<z_s;#@`}^*_GiR~_{C)Iwz&2(Wfn7;28Y7n&6LRZ03ICPJ%EH{Lf)u2}>7%bv~@hk}dbLWU60EDlA6$u0ZEKXv~zeZUn4)3W1-go2^8ZDh7cfMThAPzeGtgoeRfHz$Z$>}UW)L;#U|Aq6?obPI{#b0|m#zfrg=pJpmqnOOgZ#PVx_7Cq=VK9OULr2-gHM6hHugEJT7}uTV-(pdjbtk|9}bMk5jPzE?_hT`IS^CEdb#uk^l$-%Gr^P!8##`Bovn5Oe7H<5I9IjV>Y637)K0=Ou&;dIK;w%zgtAFETyhZAdm$I3QII?k6qC{D`1p8KJRT*IM53`I5($mLp>a4z$iq>ZC<IvvjzX#RzVgxE6WlQ*CkS`J<)Dc+`qF9iEgqVKaf<R28eG4p<E))tX89IR_Mq^PJv_PQV*SxnBz3<Cb7@m+6eNTL`(2LV!1tb`5qgKNDAhHCfsiPVk|8!}bIjuikx(3eU<LKYN<&mm(8z-UJMh;OT^Ma>ru52qYYFqbJS-=S;$SQJwM5i&$Tw6l4k6z#^9aC)VR{v1CsPzyd{*z5Rqu_V)p`gB2XmdiNpv`&-rd4>}V`DU#K>&R~LAJFCgK^0UU3MNPw8H5SjlS7T$O#z90r5K<GsCc-`~MkEayABU%)#3Pb?ZDgI2fqFYR75K{KQlzYQ;>d>em22+h0%8t%>^z)qWTZ&h(|aha~iVe6gKpzQep_Ox8owt2A~W{pZ=%pNx|#mqy%X>z>lSGWnY3S?QOxzL-%PW!ZKu38Jrw2R{q9!ba}?pG*dKXOIgU7*JTMSb<g_7;pYxP=lH&wp3Y=^4SqKDzcb_}XYnxn3o105G*L{C|HGbemc-E1x2YhGaZ#u4D-o!uOS}UIY&ye2B4*am0Sy1{qzHzUU=_Hah0W$CCr*KJByvP;87$5}pepdreyc{trnsh3BRs#3g?!?<m$=}~TI2i3~azc11ESQqlH{J)Xd3WkNoO6Zfhz6#R+m$WQF-4%^R(Mzh2Kt)#VB^nfvsK`E8?%288Kz<?v5;B3_;k4KE&RsQTPsssQA05RE-~!b&U3ZORf~p+VWGfSg`qpqQC=e~5B3G*~o(z_Jv)mup<Y1J>Ud+G|RH?XyU5D^7R!O7J3uAwiY@Ly5Oub%#_vGTkECunIAy<^)*)ez&6HSd>4(wA6X9zfrw>!O5G8S;yMF&|78FG1@ao5U+T@anYtC2lQVjNlV;*@hpPw5izWivB6`<gE@<iU@k`ft9n8GgLS(q2VO%INW$jgfqr&g#l_W326@j1b}bo+I9YxdUc3z%#!eviB*R;1CIuVrm0+)p4n~VsKCDDZPr)Y^gZLkOOXUom%()lSxtPZkLrn~$RbB{z&xf-KQw5&-nEE2GKCn+kes}*%c;1;6-EZNTrXw9Dqa@i+xa}RT>nAGa*0k~oW1BmgzbFxJhX~5j^X{IV!7Vf&)-C@`XJ{Ut)pxzuC-n!jp>QrNzw$zZ;TAjA7PxkKRt22MtzOjIf&al7x&n)X&3axw!Wk71v6h5G=`p8_`)4jkFl9k6C=6u|jITjX8?$BcAcYHd_tzbFE1h!E0=v_=P;i(s}Vf*s*C36|60H16l4(ceRhTwXYp%U6x}%d0cV!KzL=>zPwkczN|{aM3I7jw3|>gOpCsN=c*%fVlZQRmih8V~Pjp6k_**EqCOKzP@K1VzOC|Jy+Tjfrz*WO=!bO3epE}i5YQnRDRFLG@aXxA@kit$h_Z#x(jw?%)6$i<`HeA3j;-rPucZ)?JZz*%nMyRu8i*PwHxS_3bH>&-(-0$b$I7x9<Bb{K;fNpNmdPzFOIa{5i*fA~?D3kEsX7zR~#zmil^!I=5=XK%L%_<=*;wZWrE0FmQ>K-P47QoQe+lZ7Co|aFqKt)F6O$XnWFY;z1<BJrQ&*|YD_`QM<5cZoq*1g~Nmaix3xcN8H(`Z*nfj5Y(+YVOjP^}<r&A&&D)ZeYz-sIdX$ec(2e~>nBAq<q6c{Y6=ornCIQhQOL>Sw4-zEoZscXrDxTD4NzUtmp?7SEJwzHVqX<0UgH}@|*X^<Sjz_p3Y+Jq1`1p4G$poa?+1=lX7KeuEHc&XGxrw<B~E1jbGR*zhHSUF(S;sI0*6)y@Aaab==oQJBBrc}N%!npu86fVZY;DVhu{CPuUn}V#~eDId+yXFzpXlAWmF_7FRr5`oBHL(gglp`z_jXg{R+FBmR;z#GynNb`#jQI{zg$@&sN+m2eV@tCz8}!p;`Z5ANs+SFf1=|-J^z)y|Q)YO2jfJr?21h9V*gkNmH<TFWr*xm`E01Y0sgVcIzs<y;t&*dlXRN17=Y-}4Z8@7@?0&W&GoX#H^d}dcAUE2TrV`fl|-^^rp_=A1c6BiZBzWT$c4+a07wb(s4nMa=Hhg6W4B|6Poy_sP5B-nQ76FkE4uhN{!@r+v9+suH>MiF=8qzpBZ7*a@xZThLCpshj+Xx=}||YL5-o8g;}X3l6~^qt`3hkX&KerXviNL{28o%UwE*0zD(7V25|yzclUl-%*WX~a-!5dQ#|1K86z+v{-3(1@KkPZLDY4X&Iw)7g4!6|HYqD$Bzrdtlz-%S#0G#Sp7yXr+fZ_%$Nt|LTx{JPp6UvYT4MSLX--mpx$gScVrV*92RxupTuzv~DI9Y-b`gu{RdK=e)~@;(Ct;dm1(z{G$C2SO?!Wl)yilp#BB(_421)_Slp0U+gF=ADF6Tf
diff --git a/app/src/main/res/drawable/chat_wallpaper_preview_bubble_8.xml b/app/src/main/res/drawable/chat_wallpaper_preview_bubble_8.xmldeleted file mode 100644index 0974eab..0000000--- a/app/src/main/res/drawable/chat_wallpaper_preview_bubble_8.xml+++ /dev/null@@ -1,5 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">- <solid android:color="@color/core_white" />- <corners android:radius="8dp" />-</shape>\ No newline at end of filediff --git a/app/src/main/res/layout/custom_chat_color_creator_fragment.xml b/app/src/main/res/layout/custom_chat_color_creator_fragment.xmldeleted file mode 100644index 58c6f41..0000000--- a/app/src/main/res/layout/custom_chat_color_creator_fragment.xml+++ /dev/null@@ -1,38 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- tools:viewBindingIgnore="true"- xmlns:app="http://schemas.android.com/apk/res-auto"- android:layout_width="match_parent"- android:layout_height="match_parent">-- <org.thoughtcrime.securesms.util.views.DarkOverflowToolbar- android:id="@+id/toolbar"- android:layout_width="match_parent"- android:layout_height="56dp"- android:theme="?attr/settingsToolbarStyle"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent"- app:navigationIcon="@drawable/symbol_arrow_start_24"- app:titleTextAppearance="@style/Signal.Text.Title"- app:title="@string/ChatColorSelectionFragment__chat_color" />-- <com.google.android.material.tabs.TabLayout- android:id="@+id/tab_layout"- android:layout_width="match_parent"- android:layout_height="wrap_content"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/toolbar" />-- <androidx.viewpager2.widget.ViewPager2- android:id="@+id/pager"- android:layout_width="match_parent"- android:layout_height="0dp"- app:layout_constraintBottom_toBottomOf="parent"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/tab_layout" />--</androidx.constraintlayout.widget.ConstraintLayout>\ No newline at end of filediff --git a/app/src/main/res/layout/custom_chat_color_creator_fragment_page.xml b/app/src/main/res/layout/custom_chat_color_creator_fragment_page.xmldeleted file mode 100644index 0a95d36..0000000--- a/app/src/main/res/layout/custom_chat_color_creator_fragment_page.xml+++ /dev/null@@ -1,110 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- tools:viewBindingIgnore="true"- xmlns:app="http://schemas.android.com/apk/res-auto"- android:id="@+id/scroll_view"- android:layout_width="match_parent"- android:layout_height="match_parent"- android:fillViewport="true">-- <androidx.constraintlayout.widget.ConstraintLayout- android:layout_width="match_parent"- android:layout_height="wrap_content">-- <com.google.android.material.card.MaterialCardView- android:id="@+id/preview_card"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:layout_marginLeft="16dp"- android:layout_marginTop="16dp"- android:layout_marginRight="16dp"- app:cardCornerRadius="4dp"- app:cardElevation="0dp"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent">-- <org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView- android:id="@+id/chat_color_preview"- android:layout_width="match_parent"- android:layout_height="wrap_content"- app:ccpv_chat_bubble_count="4" />- </com.google.android.material.card.MaterialCardView>-- <org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomChatColorGradientToolView- android:id="@+id/gradient_tool"- android:layout_width="0dp"- android:layout_height="0dp"- android:layout_margin="10dp"- app:layout_constraintBottom_toTopOf="@id/hue_label"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent" />-- <TextView- android:id="@+id/hue_label"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:layout_marginTop="16dp"- android:gravity="center_vertical"- android:minHeight="40dp"- android:paddingStart="16dp"- android:paddingEnd="16dp"- android:text="@string/CustomChatColorCreatorFragment__hue"- android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"- android:textColor="@color/signal_text_secondary"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/preview_card" />-- <androidx.appcompat.widget.AppCompatSeekBar- android:id="@+id/hue_slider"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:splitTrack="false"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/hue_label" />-- <TextView- android:id="@+id/saturation_label"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:gravity="center_vertical"- android:minHeight="40dp"- android:paddingStart="16dp"- android:paddingEnd="16dp"- android:text="@string/CustomChatColorCreatorFragment__saturation"- android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"- android:textColor="@color/signal_text_secondary"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/hue_slider" />-- <androidx.appcompat.widget.AppCompatSeekBar- android:id="@+id/saturation_slider"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:splitTrack="false"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/saturation_label" />-- <com.google.android.material.button.MaterialButton- android:id="@+id/save"- style="@style/Signal.Widget.Button.Large.Primary"- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:layout_marginEnd="16dp"- android:layout_marginBottom="16dp"- android:elevation="8dp"- android:text="@string/CustomChatColorCreatorFragmentPage__save"- app:cornerRadius="68dp"- app:layout_constraintBottom_toBottomOf="parent"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintTop_toBottomOf="@id/saturation_slider"- app:layout_constraintVertical_bias="1" />-- </androidx.constraintlayout.widget.ConstraintLayout>-</ScrollView>\ No newline at end of filediff --git a/app/src/main/res/layout/custom_chat_color_creator_preview.xml b/app/src/main/res/layout/custom_chat_color_creator_preview.xmlnew file mode 100644index 0000000..d36efe7--- /dev/null+++ b/app/src/main/res/layout/custom_chat_color_creator_preview.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ app:ccpv_chat_bubble_count="4" />\ No newline at end of filediff --git a/app/src/main/res/layout/gradient_tool_tooltip.xml b/app/src/main/res/layout/gradient_tool_tooltip.xmldeleted file mode 100644index c9c8b0d..0000000--- a/app/src/main/res/layout/gradient_tool_tooltip.xml+++ /dev/null@@ -1,62 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- tools:viewBindingIgnore="true"- xmlns:app="http://schemas.android.com/apk/res-auto"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:paddingHorizontal="12dp"- android:paddingBottom="12dp">-- <androidx.appcompat.widget.AppCompatImageView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:tint="@color/signal_accent_primary"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent"- app:srcCompat="@drawable/tooltip_arrow_up" />-- <androidx.appcompat.widget.AppCompatImageView- android:id="@+id/bubble"- android:layout_width="0dp"- android:layout_height="0dp"- android:layout_marginTop="12dp"- app:layout_constraintBottom_toBottomOf="parent"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent"- app:layout_constraintWidth_max="295dp"- app:srcCompat="@drawable/chat_wallpaper_preview_bubble_8"- app:tint="@color/signal_accent_primary" />-- <androidx.appcompat.widget.AppCompatImageView- android:id="@+id/icon"- android:layout_width="44dp"- android:layout_height="44dp"- android:layout_marginStart="12dp"- android:layout_marginTop="7dp"- android:layout_marginEnd="10dp"- android:layout_marginBottom="7dp"- android:scaleType="centerInside"- app:layout_constraintBottom_toBottomOf="@id/bubble"- app:layout_constraintEnd_toStartOf="@id/text"- app:layout_constraintHorizontal_chainStyle="packed"- app:layout_constraintStart_toStartOf="@id/bubble"- app:layout_constraintTop_toTopOf="@id/bubble" />-- <TextView- android:id="@+id/text"- android:layout_width="0dp"- android:layout_height="wrap_content"- android:layout_marginTop="7dp"- android:layout_marginEnd="12dp"- android:text="@string/CustomChatColorCreatorFragment__drag_to_change_the_direction_of_the_gradient"- android:textAppearance="@style/Signal.Text.Body"- android:textColor="@color/white"- app:layout_constraintEnd_toEndOf="@id/bubble"- app:layout_constraintStart_toEndOf="@id/icon"- app:layout_constraintTop_toTopOf="@id/bubble" />---</androidx.constraintlayout.widget.ConstraintLayout>\ No newline at end of filediff --git a/app/src/main/res/navigation/chat_wallpaper.xml b/app/src/main/res/navigation/chat_wallpaper.xmlindex 605fbb8..238c8aa 100644--- a/app/src/main/res/navigation/chat_wallpaper.xml+++ b/app/src/main/res/navigation/chat_wallpaper.xml@@ -54,8 +54,7 @@ <fragment android:id="@+id/customChatColorCreatorFragment" android:name="org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomChatColorCreatorFragment"- android:label="custom_chat_color_creator_fragment"- tools:layout="@layout/custom_chat_color_creator_fragment">+ android:label="custom_chat_color_creator_fragment"> <argument android:name="recipient_id"diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex b8cf40e..908ec7e 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -6098,6 +6098,8 @@ </plurals> <!-- ChatColorGradientTool -->+ <!-- Accessibility label for the area where the gradient direction handles are dragged. -->+ <string name="ChatColorGradientTool__gradient_direction">Gradient direction</string> <!-- Title text for prompt to donate. Shown in a popup at the bottom of the chat list. --> <string name="Donate2022Q2Megaphone_donate_to_signal">Donate to Signal</string>1234567891011[ { "phase": "verifier-generated", "source": "/logs/artifacts", "service": "main", "type": "directory", "exclude": [], "status": "ok", "destination": "artifacts/generated/logs/artifacts" }]12345{ "score": 1.0, "violations_count": 0, "reasoning": "The patch is exceptionally clean and adheres thoroughly to the Code Quality Checklist and Android best practices. It migrates custom View and XML-based UI to Jetpack Compose:\n- Public composables (`CustomChatColorCreatorScreen`, `CustomChatColorGradientTool`) accept `modifier: Modifier = Modifier` as their optional parameter and apply it directly to the root components.\n- No `!!` (not-null assertions) are used; safe access and idiomatic Kotlin functions are used throughout.\n- In `CustomChatColorGradientTool`, gesture handling with `pointerInput` and `awaitEachGesture` properly captures state using `rememberUpdatedState` to avoid stale capture without unnecessary restarts.\n- Heavy computations and I/O are absent from composables, and color brush calculations are memoized with `remember`.\n- UI logic remains in the UI layer/Fragment, with proper separation of concerns and lifecycle-aware event handling."}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181{ "efflora__signal-custom-chat-color": { "score": 0.0, "diagnostics": [ "Verifying 38 pass_to_pass tests and 4 fail_to_pass tests.", "Running test attempt: 1", "Build failed for command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Test failed, command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Test attempt 1: AGENT_FAILED_TEST", "Running test attempt: 2", "Build failed for command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Test failed, command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Test attempt 2: AGENT_FAILED_TEST", "Running test attempt: 3", "Build failed for command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Test failed, command: './gradlew :Signal-Android:testPlayProdDebugUnitTest --tests org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest --tests org.thoughtcrime.securesms.conversation.colors.AvatarColorHashTest --tests org.thoughtcrime.securesms.recipients.Recipient_getChatColorsTest -I /tests/test.init.gradle --offline --console=plain --no-daemon --no-watch-fs --no-configuration-cache --max-workers=4 '-Dorg.gradle.jvmargs=-Xmx8g -Xms256m -XX:MaxMetaspaceSize=2g -Dcom.android.tools.r8.threadCount=1 -XX:+UnlockExperimentalVMOptions -XX:hashCode=3' '-Pkotlin.daemon.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g''", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Must Pass test failed: 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)'", "Test attempt 3: AGENT_FAILED_TEST", "validation failed: functional#behaviorSolidSliderBoundariesAndSave", "validation failed: functional#behaviorGeneratedHueSaturationPairs", "validation failed: functional#behaviorEdgesAreIndependentlyEditable", "validation failed: functional#behaviorUsedColorCancelDoesNotWrite", "validation failed: functional#behaviorUsedColorConfirmWritesOnce", "validation failed: functional#behaviorCancelThenChangeAndConfirmLatest", "validation failed: functional#behaviorWallpaperReachesLivePreview", "validation failed: functional#behaviorDarkThemeEditorStillEditsAndSaves", "validation failed: visual#solid_dark", "validation failed: visual#solid_adjusted" ], "status": "AGENT_FAILED_VALIDATION", "used_tokens": null, "exported_passed_tests": [], "exported_failed_tests": [], "partial_score": 0.8025, "pass_rate": 0.7857, "validation_results": { "cheating#patch": 1.0, "gate#migration_started": 1.0, "functional#migrationDefaultAddEntryIsCompose": 1.0, "functional#migrationGradientIsCompose": 1.0, "functional#migrationConfirmationUsesCompose": 1.0, "functional#migrationViewRecreationStillUsesCompose": 1.0, "functional#behaviorNewSolidDefaults": 1.0, "functional#behaviorSolidSliderBoundariesAndSave": 0.0, "functional#behaviorGeneratedHueSaturationPairs": 0.0, "functional#behaviorGradientStartPageAndSave": 1.0, "functional#behaviorEdgesAreIndependentlyEditable": 0.0, "functional#behaviorSwitchTabsSharesSelectedEdge": 1.0, "functional#behaviorRotateGradientPersistsDirection": 1.0, "functional#behaviorEditSolidLoadsAndKeepsIdentity": 1.0, "functional#behaviorEditGradientLoadsBothColorsAndAngle": 1.0, "functional#behaviorDelayedLoadUpdatesEditor": 1.0, "functional#behaviorUsedColorCancelDoesNotWrite": 0.0, "functional#behaviorUsedColorConfirmWritesOnce": 0.0, "functional#behaviorCancelThenChangeAndConfirmLatest": 0.0, "functional#behaviorBackDiscardsUnsavedColor": 1.0, "functional#behaviorRecipientContextReachesBothBoundaries": 1.0, "functional#behaviorGlobalContextRemainsGlobal": 1.0, "functional#behaviorViewRecreationRetainsEditing": 1.0, "functional#regressionSelectionEntryRemainsUsableAfterCancel": 1.0, "functional#behaviorWallpaperReachesLivePreview": 0.0, "functional#behaviorGradientGuidancePreferenceIsConsumed": 1.0, "functional#behaviorDarkThemeEditorStillEditsAndSaves": 0.0, "penalty#preview_view_unchanged": 1.0, "requirements#destination_has_no_legacy_editor": 1.0, "constraint#legacy_editor_code_removed": 1.0, "regression#legacy_editor_resources_removed": 1.0, "regression#editor_text_localized": 1.0, "cheating#no_prebuilt_binaries": 1.0, "cheating#foreign_language_files": 1.0, "cheating#static_gradle_test_hooks": 1.0, "cheating#static_test_identity": 1.0, "visual#solid_dark": 0.5, "visual#solid_adjusted": 0.6, "visual#solid_new_color": 1.0, "visual#gradient_edit": 1.0, "visual#gradient_new_color": 1.0, "visual#preview_card_background": 1.0 }, "scoring_breakdown": { "base_score": 0.8025, "categories": { "functional": { "passed": 17, "total": 25, "weight": 0.5, "raw_weight": 0.5, "score": 0.68, "contribution": 0.34 }, "regression": { "passed": 17, "total": 17, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "requirements": { "passed": 1, "total": 1, "weight": 0.1, "raw_weight": 0.1, "score": 1.0, "contribution": 0.1 }, "visual": { "passed": 5.1, "total": 6, "weight": 0.25, "raw_weight": 0.25, "score": 0.85, "contribution": 0.2125 }, "code_quality": { "passed": 1.0, "total": 1.0, "weight": 0.0, "raw_weight": 0.0, "score": 1.0, "contribution": 0.0, "violations_count": 0 } }, "multipliers_applied": [], "logs": [ "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorDelayedLoadUpdatesEditor(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorCancelThenChangeAndConfirmLatest(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorSwitchTabsSharesSelectedEdge(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationGradientIsCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationConfirmationUsesCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorEditGradientLoadsBothColorsAndAngle(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorDarkThemeEditorStillEditsAndSaves(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorRotateGradientPersistsDirection(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorWallpaperReachesLivePreview(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGlobalContextRemainsGlobal(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGeneratedHueSaturationPairs(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationViewRecreationStillUsesCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorRecipientContextReachesBothBoundaries(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorSolidSliderBoundariesAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorViewRecreationRetainsEditing(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorEditSolidLoadsAndKeepsIdentity(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorUsedColorCancelDoesNotWrite(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorNewSolidDefaults(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorEdgesAreIndependentlyEditable(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorUsedColorConfirmWritesOnce(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test migrationDefaultAddEntryIsCompose(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGradientStartPageAndSave(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test regressionSelectionEntryRemainsUsableAfterCancel(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorBackDiscardsUnsavedColor(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'testPlayProdDebugUnitTest#Test behaviorGradientGuidancePreferenceIsConsumed(org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest)' did not match any category rules. It will be IGNORED and not scored." ] }, "status_description": "Agent created a patch that fails the validate.sh", "code_quality_score": 1.0, "code_quality_violations": 0 }}10.802512345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907diff --git a/app/lint-baseline.xml b/app/lint-baseline.xmlindex bdecdca..75fefeb 100644--- a/app/lint-baseline.xml+++ b/app/lint-baseline.xml@@ -35050,17 +35050,6 @@ column="7"/> </issue> - <issue- id="ClickableViewAccessibility"- message="Custom view `CustomChatColorGradientToolView` overrides `onTouchEvent` but not `performClick`"- errorLine1=" override fun onTouchEvent(event: MotionEvent): Boolean {"- errorLine2=" ~~~~~~~~~~~~">- <location- file="src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.kt"- line="151"- column="16"/>- </issue>- <issue id="ClickableViewAccessibility" message="Custom view `HackyViewPager` overrides `onTouchEvent` but not `performClick`"diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.ktindex 660666b..eaf3f4b 100644--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.kt+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorFragment.kt@@ -1,42 +1,89 @@ package org.thoughtcrime.securesms.conversation.colors.ui.custom -import android.os.Bundle-import android.view.View-import androidx.appcompat.widget.Toolbar-import androidx.fragment.app.Fragment-import androidx.navigation.Navigation-import androidx.viewpager2.widget.ViewPager2-import com.google.android.material.tabs.TabLayout-import com.google.android.material.tabs.TabLayoutMediator+import androidx.compose.runtime.Composable+import androidx.compose.runtime.DisposableEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.livedata.observeAsState+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.res.pluralStringResource+import androidx.compose.ui.res.stringResource+import androidx.fragment.app.viewModels+import androidx.lifecycle.Observer+import androidx.lifecycle.compose.LocalLifecycleOwner+import androidx.navigation.fragment.findNavController+import org.signal.core.ui.compose.ComposeFragment+import org.signal.core.ui.compose.Dialogs import org.thoughtcrime.securesms.R+import org.thoughtcrime.securesms.conversation.colors.ChatColors+import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorSelectionViewModel -class CustomChatColorCreatorFragment : Fragment(R.layout.custom_chat_color_creator_fragment) {-- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {- val toolbar: Toolbar = view.findViewById(R.id.toolbar)- val tabLayout: TabLayout = view.findViewById(R.id.tab_layout)- val pager: ViewPager2 = view.findViewById(R.id.pager)- val adapter = CustomChatColorPagerAdapter(this, requireArguments())- val tabLayoutMediator = TabLayoutMediator(tabLayout, pager) { tab, position ->- tab.setText(- if (position == 0) {- R.string.CustomChatColorCreatorFragment__solid- } else {- R.string.CustomChatColorCreatorFragment__gradient+class CustomChatColorCreatorFragment : ComposeFragment() {++ private val args: CustomChatColorCreatorFragmentArgs by lazy {+ CustomChatColorCreatorFragmentArgs.fromBundle(requireArguments())+ }++ private val viewModel: CustomChatColorCreatorViewModel by viewModels {+ CustomChatColorCreatorViewModel.Factory(+ MAX_SEEK_DIVISIONS,+ ChatColors.Id.forLongValue(args.chatColorId),+ args.recipientId,+ CustomChatColorCreatorRepository(requireContext())+ )+ }++ private val chatColorSelectionViewModel: ChatColorSelectionViewModel by lazy {+ ChatColorSelectionViewModel.getOrCreate(requireActivity(), args.recipientId)+ }++ @Composable+ override fun FragmentContent() {+ val state by viewModel.state.observeAsState()+ var warnEvent by remember { mutableStateOf<CustomChatColorCreatorViewModel.Event.Warn?>(null) }+ val lifecycleOwner = LocalLifecycleOwner.current++ DisposableEffect(lifecycleOwner, viewModel) {+ val observer = Observer<CustomChatColorCreatorViewModel.Event> { event ->+ when (event) {+ is CustomChatColorCreatorViewModel.Event.SaveNow -> saveAndExit(event.chatColors)+ is CustomChatColorCreatorViewModel.Event.Warn -> warnEvent = event }- )- }+ } - toolbar.setNavigationOnClickListener {- Navigation.findNavController(it).popBackStack()+ viewModel.events.observe(lifecycleOwner, observer)+ onDispose { viewModel.events.removeObserver(observer) } } - pager.isUserInputEnabled = false- pager.adapter = adapter+ CustomChatColorCreatorScreen(+ state = state,+ startPage = args.startPage,+ onHueProgressChange = viewModel::setHueProgress,+ onSaturationProgressChange = viewModel::setSaturationProgress,+ onDegreesChange = viewModel::setDegrees,+ onSelectedEdgeChange = viewModel::setSelectedEdge,+ onSave = viewModel::startSave,+ onBack = { findNavController().popBackStack() }+ ) - tabLayoutMediator.attach()+ val event = warnEvent+ if (event != null) {+ Dialogs.SimpleAlertDialog(+ title = stringResource(R.string.CustomChatColorCreatorFragmentPage__edit_color),+ body = pluralStringResource(R.plurals.CustomChatColorCreatorFragmentPage__this_color_is_used, event.usageCount, event.usageCount),+ confirm = stringResource(R.string.save),+ dismiss = stringResource(android.R.string.cancel),+ onConfirm = { saveAndExit(event.chatColors) },+ onDismiss = { warnEvent = null }+ )+ }+ } - val startPage = CustomChatColorCreatorFragmentArgs.fromBundle(requireArguments()).startPage- pager.setCurrentItem(startPage, false)+ private fun saveAndExit(chatColors: ChatColors) {+ viewModel.saveNow(chatColors) { colors ->+ chatColorSelectionViewModel.save(colors)+ }+ findNavController().popBackStack() }-}+}\ No newline at end of filediff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorPageFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorPageFragment.ktdeleted file mode 100644index 08ca86c..0000000--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorPageFragment.kt+++ /dev/null@@ -1,400 +0,0 @@-package org.thoughtcrime.securesms.conversation.colors.ui.custom--import android.content.Context-import android.graphics.Canvas-import android.graphics.Color-import android.graphics.ColorFilter-import android.graphics.Paint-import android.graphics.Path-import android.graphics.PixelFormat-import android.graphics.PointF-import android.graphics.RectF-import android.graphics.drawable.Drawable-import android.graphics.drawable.GradientDrawable-import android.os.Build-import android.os.Bundle-import android.view.View-import android.view.ViewGroup-import android.widget.PopupWindow-import android.widget.ScrollView-import android.widget.SeekBar-import androidx.annotation.ColorInt-import androidx.annotation.Dimension-import androidx.appcompat.widget.AppCompatSeekBar-import androidx.core.content.ContextCompat-import androidx.core.graphics.ColorUtils-import androidx.fragment.app.Fragment-import androidx.lifecycle.ViewModelProvider-import androidx.navigation.Navigation-import com.google.android.material.dialog.MaterialAlertDialogBuilder-import org.signal.core.util.Util-import org.thoughtcrime.securesms.R-import org.thoughtcrime.securesms.conversation.colors.ChatColors-import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView-import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorSelectionViewModel-import org.thoughtcrime.securesms.keyvalue.SignalStore-import org.thoughtcrime.securesms.util.ViewUtil-import org.thoughtcrime.securesms.util.customizeOnDraw--private const val MAX_SEEK_DIVISIONS = 1023-private const val MAX_HUE = 360--private const val PAGE_ARG = "page"-private const val SINGLE_PAGE = 0-private const val GRADIENT_PAGE = 1--class CustomChatColorCreatorPageFragment :- Fragment(R.layout.custom_chat_color_creator_fragment_page) {-- private lateinit var hueSlider: AppCompatSeekBar- private lateinit var saturationSlider: AppCompatSeekBar- private lateinit var preview: ChatColorPreviewView-- override fun onViewCreated(view: View, savedInstanceState: Bundle?) {- val args: CustomChatColorCreatorFragmentArgs = CustomChatColorCreatorFragmentArgs.fromBundle(requireArguments())- val chatColorSelectionViewModel: ChatColorSelectionViewModel = ChatColorSelectionViewModel.getOrCreate(requireActivity(), args.recipientId)- val page: Int = requireArguments().getInt(PAGE_ARG)- val factory: CustomChatColorCreatorViewModel.Factory = CustomChatColorCreatorViewModel.Factory(MAX_SEEK_DIVISIONS, ChatColors.Id.forLongValue(args.chatColorId), args.recipientId, createRepository())- val viewModel: CustomChatColorCreatorViewModel = ViewModelProvider(- requireParentFragment(),- factory- )[CustomChatColorCreatorViewModel::class.java]-- preview = view.findViewById(R.id.chat_color_preview)-- val hueThumb = ThumbDrawable(requireContext())- val saturationThumb = ThumbDrawable(requireContext())-- val gradientTool: CustomChatColorGradientToolView = view.findViewById(R.id.gradient_tool)- val save: View = view.findViewById(R.id.save)- val scrollView: ScrollView = view.findViewById(R.id.scroll_view)-- if (page == SINGLE_PAGE) {- gradientTool.visibility = View.GONE- } else {- gradientTool.setListener(object : CustomChatColorGradientToolView.Listener {- override fun onGestureStarted() {- scrollView.requestDisallowInterceptTouchEvent(true)- }-- override fun onGestureFinished() {- scrollView.requestDisallowInterceptTouchEvent(false)- }-- override fun onDegreesChanged(degrees: Float) {- viewModel.setDegrees(degrees)- }-- override fun onSelectedEdgeChanged(edge: CustomChatColorEdge) {- viewModel.setSelectedEdge(edge)- }- })- }-- hueSlider = view.findViewById(R.id.hue_slider)- saturationSlider = view.findViewById(R.id.saturation_slider)-- hueSlider.thumb = hueThumb- saturationSlider.thumb = saturationThumb-- hueSlider.max = MAX_SEEK_DIVISIONS- saturationSlider.max = MAX_SEEK_DIVISIONS-- val colors: IntArray = (0..MAX_SEEK_DIVISIONS).map { hue ->- ColorUtils.HSLToColor(- floatArrayOf(- hue.toHue(MAX_SEEK_DIVISIONS),- 1f,- calculateLightness(hue.toFloat(), valueFor60To80 = 0.4f)- )- )- }.toIntArray()-- val hueGradientDrawable = GradientDrawable(GradientDrawable.Orientation.LEFT_RIGHT, colors)-- hueSlider.progressDrawable = hueGradientDrawable.forSeekBar()-- val saturationProgressDrawable = GradientDrawable().apply {- orientation = GradientDrawable.Orientation.LEFT_RIGHT- }-- saturationSlider.progressDrawable = saturationProgressDrawable.forSeekBar()-- hueSlider.setOnSeekBarChangeListener(- OnProgressChangedListener {- viewModel.setHueProgress(it)- }- )-- saturationSlider.setOnSeekBarChangeListener(- OnProgressChangedListener {- viewModel.setSaturationProgress(it)- }- )-- viewModel.events.observe(viewLifecycleOwner) { event ->- when (event) {- is CustomChatColorCreatorViewModel.Event.SaveNow -> {- viewModel.saveNow(event.chatColors) { colors ->- chatColorSelectionViewModel.save(colors)- }- Navigation.findNavController(requireParentFragment().requireView()).popBackStack()- }- is CustomChatColorCreatorViewModel.Event.Warn -> MaterialAlertDialogBuilder(requireContext())- .setTitle(R.string.CustomChatColorCreatorFragmentPage__edit_color)- .setMessage(resources.getQuantityString(R.plurals.CustomChatColorCreatorFragmentPage__this_color_is_used, event.usageCount, event.usageCount))- .setPositiveButton(R.string.save) { dialog, _ ->- dialog.dismiss()- viewModel.saveNow(event.chatColors) { colors ->- chatColorSelectionViewModel.save(colors)- }- Navigation.findNavController(requireParentFragment().requireView()).popBackStack()- }- .setNegativeButton(android.R.string.cancel) { dialog, _ ->- dialog.dismiss()- }- .show()- }- }-- viewModel.state.observe(viewLifecycleOwner) { state ->- if (state.loading) {- return@observe- }-- val sliderState: ColorSlidersState = requireNotNull(state.sliderStates[state.selectedEdge])-- hueSlider.progress = sliderState.huePosition- saturationSlider.progress = sliderState.saturationPosition-- val color: Int = sliderState.getColor()- hueThumb.setColor(sliderState.getHueColor())- saturationThumb.setColor(color)- saturationProgressDrawable.colors = sliderState.getSaturationColors()-- preview.setWallpaper(state.wallpaper)-- if (page == 0) {- val chatColor = ChatColors.forColor(ChatColors.Id.NotSet, color)- preview.setChatColors(chatColor)- save.setOnClickListener {- viewModel.startSave(chatColor)- }- } else {- val topEdgeColor: ColorSlidersState = requireNotNull(state.sliderStates[CustomChatColorEdge.TOP])- val bottomEdgeColor: ColorSlidersState = requireNotNull(state.sliderStates[CustomChatColorEdge.BOTTOM])- val chatColor: ChatColors = ChatColors.forGradient(- ChatColors.Id.NotSet,- ChatColors.LinearGradient(- state.degrees,- intArrayOf(topEdgeColor.getColor(), bottomEdgeColor.getColor()),- floatArrayOf(0f, 1f)- )- )- preview.setChatColors(chatColor)- gradientTool.setSelectedEdge(state.selectedEdge)- gradientTool.setDegrees(state.degrees)- gradientTool.setTopColor(topEdgeColor.getColor())- gradientTool.setBottomColor(bottomEdgeColor.getColor())- save.setOnClickListener {- viewModel.startSave(chatColor)- }- }- }-- if (page == 1 && SignalStore.chatColors.shouldShowGradientTooltip) {- view.post {- SignalStore.chatColors.shouldShowGradientTooltip = false- val contentView = layoutInflater.inflate(R.layout.gradient_tool_tooltip, view as ViewGroup, false)- val popupWindow = PopupWindow(contentView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)-- popupWindow.isOutsideTouchable = false- popupWindow.isFocusable = true-- if (Build.VERSION.SDK_INT > 21) {- popupWindow.elevation = ViewUtil.dpToPx(8).toFloat()- }-- popupWindow.showAsDropDown(gradientTool, 0, -gradientTool.measuredHeight + ViewUtil.dpToPx(48))- }- }- }-- private fun createRepository(): CustomChatColorCreatorRepository {- return CustomChatColorCreatorRepository(requireContext())- }-- @ColorInt- private fun ColorSlidersState.getHueColor(): Int {- val hue = huePosition.toHue(MAX_SEEK_DIVISIONS)- return ColorUtils.HSLToColor(- floatArrayOf(- hue,- 1f,- calculateLightness(hue, 0.4f)- )- )- }-- @ColorInt- private fun ColorSlidersState.getColor(): Int {- val hue = huePosition.toHue(MAX_SEEK_DIVISIONS)- return ColorUtils.HSLToColor(- floatArrayOf(- hue,- saturationPosition.toUnit(MAX_SEEK_DIVISIONS),- calculateLightness(hue)- )- )- }-- private fun ColorSlidersState.getSaturationColors(): IntArray {- val hue = huePosition.toHue(MAX_SEEK_DIVISIONS)- val level = calculateLightness(hue)-- return listOf(0f, 1f).map {- ColorUtils.HSLToColor(- floatArrayOf(- hue,- it,- level- )- )- }.toIntArray()- }-- private fun calculateLightness(hue: Float, valueFor60To80: Float = 0.3f): Float {- val point1 = PointF()- val point2 = PointF()-- if (hue >= 0f && hue < 60f) {- point1.set(0f, 0.45f)- point2.set(60f, valueFor60To80)- } else if (hue >= 60f && hue < 180f) {- return valueFor60To80- } else if (hue >= 180f && hue < 240f) {- point1.set(180f, valueFor60To80)- point2.set(240f, 0.5f)- } else if (hue >= 240f && hue < 300f) {- point1.set(240f, 0.5f)- point2.set(300f, 0.4f)- } else if (hue >= 300f && hue < 360f) {- point1.set(300f, 0.4f)- point2.set(360f, 0.45f)- } else {- return 0.45f- }-- return interpolate(point1, point2, hue)- }-- private fun interpolate(point1: PointF, point2: PointF, x: Float): Float {- return ((point1.y * (point2.x - x)) + (point2.y * (x - point1.x))) / (point2.x - point1.x)- }-- private fun Number.toHue(max: Number): Float {- return Util.clamp(toFloat() * (MAX_HUE / max.toFloat()), 0f, MAX_HUE.toFloat())- }-- private fun Number.toUnit(max: Number): Float {- return Util.clamp(toFloat() / max.toFloat(), 0f, 1f)- }-- private fun Drawable.forSeekBar(): Drawable {- val height: Int = ViewUtil.dpToPx(8)- val radii: FloatArray = (1..8).map { 50f }.toFloatArray()- val bounds = RectF()- val clipPath = Path()-- return customizeOnDraw { wrapped, canvas ->- canvas.save()- bounds.set(this.bounds)- bounds.inset(0f, (height / 2f) + 1)-- clipPath.rewind()- clipPath.addRoundRect(bounds, radii, Path.Direction.CW)-- canvas.clipPath(clipPath)- wrapped.draw(canvas)- canvas.restore()- }- }-- private class OnProgressChangedListener(private val updateFn: (Int) -> Unit) :- SeekBar.OnSeekBarChangeListener {- override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {- updateFn(progress)- }-- override fun onStartTrackingTouch(seekBar: SeekBar?) = Unit- override fun onStopTrackingTouch(seekBar: SeekBar?) = Unit- }-- private class ThumbDrawable(context: Context) : Drawable() {-- private val borderPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_background_primary)- }-- private val paint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = Color.TRANSPARENT- }-- private val borderWidth: Int = ViewUtil.dpToPx(THUMB_MARGIN)- private val thumbInnerSize: Int = ViewUtil.dpToPx(THUMB_INNER_SIZE)- private val innerRadius: Float = thumbInnerSize / 2f- private val thumbSize: Float = (thumbInnerSize + borderWidth).toFloat()- private val thumbRadius: Float = thumbSize / 2f-- override fun getIntrinsicHeight(): Int = ViewUtil.dpToPx(48)-- override fun getIntrinsicWidth(): Int = ViewUtil.dpToPx(48)-- fun setColor(@ColorInt color: Int) {- paint.color = color- invalidateSelf()- }-- override fun draw(canvas: Canvas) {- canvas.drawCircle(- (bounds.width() / 2f) + bounds.left,- (bounds.height() / 2f) + bounds.top,- thumbRadius,- borderPaint- )- canvas.drawCircle(- (bounds.width() / 2f) + bounds.left,- (bounds.height() / 2f) + bounds.top,- innerRadius,- paint- )- }-- override fun setAlpha(alpha: Int) = Unit- override fun setColorFilter(colorFilter: ColorFilter?) = Unit-- override fun getOpacity(): Int = PixelFormat.TRANSPARENT-- companion object {- @Dimension(unit = Dimension.DP)- private val THUMB_INNER_SIZE = 16-- @Dimension(unit = Dimension.DP)- private val THUMB_MARGIN = 1- }- }-- companion object {-- fun forSingle(bundle: Bundle): Fragment = forPage(SINGLE_PAGE, bundle)-- fun forGradient(bundle: Bundle): Fragment = forPage(GRADIENT_PAGE, bundle)-- private fun forPage(page: Int, bundle: Bundle): Fragment = CustomChatColorCreatorPageFragment().apply {- arguments = Bundle().apply {- putInt(PAGE_ARG, page)- putAll(bundle)- }- }- }-}diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorScreen.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorScreen.ktnew file mode 100644index 0000000..6fccbe5--- /dev/null+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorCreatorScreen.kt@@ -0,0 +1,398 @@+package org.thoughtcrime.securesms.conversation.colors.ui.custom++import android.view.LayoutInflater+import androidx.compose.foundation.Canvas+import androidx.compose.foundation.background+import androidx.compose.foundation.clickable+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.BoxScope+import androidx.compose.foundation.layout.BoxWithConstraints+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.heightIn+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.widthIn+import androidx.compose.foundation.rememberScrollState+import androidx.compose.foundation.shape.RoundedCornerShape+import androidx.compose.foundation.verticalScroll+import androidx.compose.material3.ButtonDefaults+import androidx.compose.material3.ExperimentalMaterial3Api+import androidx.compose.material3.MaterialTheme+import androidx.compose.material3.PrimaryTabRow+import androidx.compose.material3.Slider+import androidx.compose.material3.Surface+import androidx.compose.material3.Tab+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.saveable.rememberSaveable+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.graphics.Brush+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.graphics.Path+import androidx.compose.ui.layout.onSizeChanged+import androidx.compose.ui.platform.LocalDensity+import androidx.compose.ui.res.colorResource+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.semantics.contentDescription+import androidx.compose.ui.semantics.semantics+import androidx.compose.ui.text.font.FontWeight+import androidx.compose.ui.unit.dp+import androidx.compose.ui.viewinterop.AndroidView+import androidx.core.graphics.ColorUtils+import org.signal.core.ui.compose.Buttons+import org.signal.core.ui.compose.Scaffolds+import org.signal.core.ui.compose.SignalIcons+import org.signal.core.util.Util+import org.thoughtcrime.securesms.R+import org.thoughtcrime.securesms.conversation.colors.ChatColors+import org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView+import org.thoughtcrime.securesms.keyvalue.SignalStore+import kotlin.math.roundToInt++internal const val MAX_SEEK_DIVISIONS = 1023+private const val MAX_HUE = 360++private const val SOLID_PAGE = 0+private const val GRADIENT_PAGE = 1++/**+ * The custom chat color editor. Shows a live preview over the conversation wallpaper, a pair of+ * color sliders, and (on the gradient page) the draggable gradient direction tool.+ */+@Composable+fun CustomChatColorCreatorScreen(+ state: CustomChatColorCreatorState?,+ startPage: Int,+ onHueProgressChange: (Int) -> Unit,+ onSaturationProgressChange: (Int) -> Unit,+ onDegreesChange: (Float) -> Unit,+ onSelectedEdgeChange: (CustomChatColorEdge) -> Unit,+ onSave: (ChatColors) -> Unit,+ onBack: () -> Unit,+ modifier: Modifier = Modifier+) {+ var selectedPage by rememberSaveable { mutableStateOf(startPage) }++ Scaffolds.Settings(+ title = stringResource(R.string.ChatColorSelectionFragment__chat_color),+ onNavigationClick = onBack,+ navigationIcon = SignalIcons.ArrowStart.imageVector,+ navigationContentDescription = stringResource(R.string.CallQualitySomethingElseScreen__back),+ modifier = modifier+ ) { contentPadding ->+ Column(modifier = Modifier.padding(contentPadding).fillMaxSize()) {+ PrimaryTabRow(selectedTabIndex = selectedPage, divider = {}) {+ Tab(+ selected = selectedPage == SOLID_PAGE,+ onClick = { selectedPage = SOLID_PAGE },+ text = { Text(text = stringResource(R.string.CustomChatColorCreatorFragment__solid)) }+ )+ Tab(+ selected = selectedPage == GRADIENT_PAGE,+ onClick = { selectedPage = GRADIENT_PAGE },+ text = { Text(text = stringResource(R.string.CustomChatColorCreatorFragment__gradient)) }+ )+ }++ CustomChatColorCreatorPage(+ page = selectedPage,+ state = state?.takeIf { !it.loading },+ onHueProgressChange = onHueProgressChange,+ onSaturationProgressChange = onSaturationProgressChange,+ onDegreesChange = onDegreesChange,+ onSelectedEdgeChange = onSelectedEdgeChange,+ onSave = onSave+ )+ }+ }+}++@Composable+private fun CustomChatColorCreatorPage(+ page: Int,+ state: CustomChatColorCreatorState?,+ onHueProgressChange: (Int) -> Unit,+ onSaturationProgressChange: (Int) -> Unit,+ onDegreesChange: (Float) -> Unit,+ onSelectedEdgeChange: (CustomChatColorEdge) -> Unit,+ onSave: (ChatColors) -> Unit+) {+ val sliderState = state?.sliderStates?.get(state.selectedEdge) ?: ColorSlidersState(0, 0)+ val chatColors = state?.toChatColors(page)++ var showGradientTooltip by remember { mutableStateOf(false) }+ LaunchedEffect(page) {+ if (page == GRADIENT_PAGE && SignalStore.chatColors.shouldShowGradientTooltip) {+ SignalStore.chatColors.shouldShowGradientTooltip = false+ showGradientTooltip = true+ }+ }++ val hueBrush = remember {+ Brush.horizontalGradient(+ (0..MAX_SEEK_DIVISIONS).map { hue ->+ Color(ColorUtils.HSLToColor(floatArrayOf(hue.toHue(), 1f, calculateLightness(hue.toFloat(), valueFor60To80 = 0.4f))))+ }+ )+ }++ val saturationBrush = remember(sliderState.huePosition) {+ Brush.horizontalGradient(sliderState.getSaturationColors().map { Color(it) })+ }++ BoxWithConstraints(modifier = Modifier.fillMaxSize()) {+ val viewportHeight = maxHeight+ val density = LocalDensity.current+ var contentHeight by remember { mutableStateOf(0.dp) }++ Column(modifier = Modifier.fillMaxWidth().verticalScroll(rememberScrollState())) {+ Column(modifier = Modifier.onSizeChanged { contentHeight = with(density) { it.height.toDp() } }) {+ Box(modifier = Modifier.fillMaxWidth().padding(start = 10.dp, top = 10.dp, end = 10.dp)) {+ Surface(+ modifier = Modifier.padding(6.dp),+ shape = RoundedCornerShape(4.dp),+ color = MaterialTheme.colorScheme.surfaceContainerHighest,+ shadowElevation = 0.dp+ ) {+ AndroidView(+ factory = { context -> LayoutInflater.from(context).inflate(R.layout.custom_chat_color_creator_preview, null) as ChatColorPreviewView },+ update = { preview ->+ preview.setWallpaper(state?.wallpaper)+ if (chatColors != null) {+ preview.setChatColors(chatColors)+ }+ },+ modifier = Modifier.fillMaxWidth()+ )+ }++ if (page == GRADIENT_PAGE) {+ if (state != null) {+ CustomChatColorGradientTool(+ topColor = Color(state.sliderStates.getValue(CustomChatColorEdge.TOP).getColor()),+ bottomColor = Color(state.sliderStates.getValue(CustomChatColorEdge.BOTTOM).getColor()),+ selectedEdge = state.selectedEdge,+ degrees = state.degrees,+ onDegreesChange = onDegreesChange,+ onEdgeSelected = onSelectedEdgeChange,+ modifier = Modifier.matchParentSize()+ )+ }++ if (showGradientTooltip) {+ GradientTooltip(onDismiss = { showGradientTooltip = false })+ }+ }+ }++ Spacer(modifier = Modifier.height(10.dp))++ SliderLabel(text = stringResource(R.string.CustomChatColorCreatorFragment__hue))+ ColorSlider(+ label = stringResource(R.string.CustomChatColorCreatorFragment__hue),+ progress = sliderState.huePosition,+ onProgressChange = onHueProgressChange,+ trackBrush = hueBrush,+ thumbColor = Color(sliderState.getHueColor())+ )++ SliderLabel(text = stringResource(R.string.CustomChatColorCreatorFragment__saturation))+ ColorSlider(+ label = stringResource(R.string.CustomChatColorCreatorFragment__saturation),+ progress = sliderState.saturationPosition,+ onProgressChange = onSaturationProgressChange,+ trackBrush = saturationBrush,+ thumbColor = Color(sliderState.getColor())+ )+ }++ Box(+ modifier = Modifier.fillMaxWidth().heightIn(min = (viewportHeight - contentHeight).coerceAtLeast(0.dp)),+ contentAlignment = Alignment.BottomEnd+ ) {+ Buttons.LargePrimary(+ onClick = { if (chatColors != null) onSave(chatColors) },+ modifier = Modifier.padding(end = 16.dp, bottom = 16.dp).heightIn(min = 44.dp),+ shape = RoundedCornerShape(68.dp),+ elevation = ButtonDefaults.buttonElevation(defaultElevation = 8.dp, pressedElevation = 8.dp)+ ) {+ Text(text = stringResource(R.string.CustomChatColorCreatorFragmentPage__save))+ }+ }+ }+ }+}++@Composable+private fun SliderLabel(text: String) {+ Box(+ modifier = Modifier.fillMaxWidth().heightIn(min = 40.dp).padding(horizontal = 16.dp),+ contentAlignment = Alignment.CenterStart+ ) {+ Text(+ text = text,+ style = MaterialTheme.typography.bodyMedium.copy(fontWeight = FontWeight.Medium),+ color = MaterialTheme.colorScheme.onSurfaceVariant+ )+ }+}++@OptIn(ExperimentalMaterial3Api::class)+@Composable+private fun ColorSlider(+ label: String,+ progress: Int,+ onProgressChange: (Int) -> Unit,+ trackBrush: Brush,+ thumbColor: Color,+ modifier: Modifier = Modifier+) {+ val thumbBorderColor = colorResource(R.color.signal_background_primary)++ Slider(+ value = progress.toFloat(),+ onValueChange = { onProgressChange(it.roundToInt()) },+ modifier = modifier+ .fillMaxWidth()+ .padding(horizontal = 16.dp)+ .semantics { contentDescription = label },+ valueRange = 0f..MAX_SEEK_DIVISIONS.toFloat(),+ steps = MAX_SEEK_DIVISIONS - 1,+ thumb = {+ Canvas(modifier = Modifier.size(17.dp)) {+ drawCircle(color = thumbBorderColor, radius = 8.5.dp.toPx())+ drawCircle(color = thumbColor, radius = 8.dp.toPx())+ }+ },+ track = {+ Box(+ modifier = Modifier+ .fillMaxWidth()+ .height(8.dp)+ .background(trackBrush, RoundedCornerShape(4.dp))+ )+ }+ )+}++@Composable+private fun BoxScope.GradientTooltip(onDismiss: () -> Unit) {+ val accentColor = colorResource(R.color.signal_accent_primary)++ Box(+ modifier = Modifier+ .matchParentSize()+ .clickable(interactionSource = null, indication = null, onClick = onDismiss)+ ) {+ Column(+ modifier = Modifier.align(Alignment.TopCenter).padding(top = 48.dp).widthIn(max = 295.dp),+ horizontalAlignment = Alignment.CenterHorizontally+ ) {+ Canvas(modifier = Modifier.size(width = 16.dp, height = 8.dp)) {+ val arrow = Path().apply {+ moveTo(size.width / 2f, 0f)+ lineTo(size.width, size.height)+ lineTo(0f, size.height)+ close()+ }+ drawPath(arrow, accentColor)+ }++ Surface(+ modifier = Modifier.fillMaxWidth(),+ shape = RoundedCornerShape(8.dp),+ color = accentColor+ ) {+ Text(+ text = stringResource(R.string.CustomChatColorCreatorFragment__drag_to_change_the_direction_of_the_gradient),+ modifier = Modifier.padding(horizontal = 16.dp, vertical = 12.dp),+ style = MaterialTheme.typography.bodyLarge,+ color = Color.White+ )+ }+ }+ }+}++private fun CustomChatColorCreatorState.toChatColors(page: Int): ChatColors {+ return if (page == SOLID_PAGE) {+ ChatColors.forColor(ChatColors.Id.NotSet, sliderStates.getValue(selectedEdge).getColor())+ } else {+ ChatColors.forGradient(+ ChatColors.Id.NotSet,+ ChatColors.LinearGradient(+ degrees,+ intArrayOf(sliderStates.getValue(CustomChatColorEdge.TOP).getColor(), sliderStates.getValue(CustomChatColorEdge.BOTTOM).getColor()),+ floatArrayOf(0f, 1f)+ )+ )+ }+}++private fun ColorSlidersState.getHueColor(): Int {+ val hue = huePosition.toHue()+ return ColorUtils.HSLToColor(floatArrayOf(hue, 1f, calculateLightness(hue, valueFor60To80 = 0.4f)))+}++private fun ColorSlidersState.getColor(): Int {+ val hue = huePosition.toHue()+ return ColorUtils.HSLToColor(floatArrayOf(hue, saturationPosition.toUnit(), calculateLightness(hue)))+}++private fun ColorSlidersState.getSaturationColors(): IntArray {+ val hue = huePosition.toHue()+ val level = calculateLightness(hue)++ return listOf(0f, 1f).map { saturation ->+ ColorUtils.HSLToColor(floatArrayOf(hue, saturation, level))+ }.toIntArray()+}++private fun calculateLightness(hue: Float, valueFor60To80: Float = 0.3f): Float {+ val point1X: Float+ val point1Y: Float+ val point2X: Float+ val point2Y: Float++ if (hue >= 0f && hue < 60f) {+ point1X = 0f+ point1Y = 0.45f+ point2X = 60f+ point2Y = valueFor60To80+ } else if (hue >= 60f && hue < 180f) {+ return valueFor60To80+ } else if (hue >= 180f && hue < 240f) {+ point1X = 180f+ point1Y = valueFor60To80+ point2X = 240f+ point2Y = 0.5f+ } else if (hue >= 240f && hue < 300f) {+ point1X = 240f+ point1Y = 0.5f+ point2X = 300f+ point2Y = 0.4f+ } else if (hue >= 300f && hue < 360f) {+ point1X = 300f+ point1Y = 0.4f+ point2X = 360f+ point2Y = 0.45f+ } else {+ return 0.45f+ }++ return ((point1Y * (point2X - hue)) + (point2Y * (hue - point1X))) / (point2X - point1X)+}++private fun Int.toHue(): Float = Util.clamp(this * (MAX_HUE / MAX_SEEK_DIVISIONS.toFloat()), 0f, MAX_HUE.toFloat())++private fun Int.toUnit(): Float = Util.clamp(this / MAX_SEEK_DIVISIONS.toFloat(), 0f, 1f)\ No newline at end of filediff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientTool.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientTool.ktnew file mode 100644index 0000000..d447a7c--- /dev/null+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientTool.kt@@ -0,0 +1,228 @@+package org.thoughtcrime.securesms.conversation.colors.ui.custom++import androidx.compose.foundation.Canvas+import androidx.compose.foundation.gestures.awaitEachGesture+import androidx.compose.foundation.gestures.awaitFirstDown+import androidx.compose.foundation.gestures.drag+import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.rememberUpdatedState+import androidx.compose.ui.Modifier+import androidx.compose.ui.geometry.Offset+import androidx.compose.ui.graphics.Color+import androidx.compose.ui.input.pointer.pointerInput+import androidx.compose.ui.res.colorResource+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.semantics.contentDescription+import androidx.compose.ui.semantics.semantics+import androidx.compose.ui.unit.dp+import org.thoughtcrime.securesms.R+import kotlin.math.atan+import kotlin.math.atan2+import kotlin.math.tan++/**+ * Renders the gradient customization tool.+ *+ * The Gradient customization tool is two selectable circles on either side+ * of a rectangle with a pipe connecting them, a TOP and a BOTTOM (an edge)+ *+ * The user can then swap between the selected edge via a touch-down and can+ * drag the selected edge such that it traces around the outline of the square.+ * The other edge traces along the opposite side of the rectangle.+ *+ * The way the position along the edge is determined is by dividing the rectangle+ * into 8 right-angled triangles, all joining at the center. Using the specified+ * angle, we can determine which "octant" the top edge should be in, and can+ * determine its distance from the center point of the relevant edge, and use+ * similar logic to determine where the bottom edge lies.+ *+ * All of the math assumes an origin at the dead center of the tool, and+ * that 0deg corresponds to a vector pointing directly towards the right hand+ * side of the tool. This doesn't quite line up with what the gradient rendering+ * math requires, so we apply a simple function to degrees when it comes into or+ * leaves this tool (see `Float.invertDegrees`)+ */+@Composable+fun CustomChatColorGradientTool(+ topColor: Color,+ bottomColor: Color,+ selectedEdge: CustomChatColorEdge,+ degrees: Float,+ onDegreesChange: (Float) -> Unit,+ onEdgeSelected: (CustomChatColorEdge) -> Unit,+ modifier: Modifier = Modifier+) {+ val backgroundColor = colorResource(R.color.signal_background_primary)+ val thumbBorderColor = colorResource(R.color.signal_inverse_transparent_10)+ val thumbBorderSelectedColor = colorResource(R.color.signal_inverse_transparent_60)+ val toolDescription = stringResource(R.string.ChatColorGradientTool__gradient_direction)++ val currentDegrees by rememberUpdatedState(degrees)+ val currentOnDegreesChange by rememberUpdatedState(onDegreesChange)+ val currentOnEdgeSelected by rememberUpdatedState(onEdgeSelected)++ Canvas(+ modifier = modifier+ .semantics { contentDescription = toolDescription }+ .pointerInput(Unit) {+ val thumbRadius = THUMB_RADIUS.dp.toPx()++ awaitEachGesture {+ val down = awaitFirstDown()+ val handles = calculateHandlePositions(size.width.toFloat(), size.height.toFloat(), currentDegrees.invertDegrees(), thumbRadius)++ val edge = when {+ (down.position - handles.top).getDistance() <= thumbRadius -> CustomChatColorEdge.TOP+ (down.position - handles.bottom).getDistance() <= thumbRadius -> CustomChatColorEdge.BOTTOM+ else -> null+ }++ if (edge == null) {+ return@awaitEachGesture+ }++ currentOnEdgeSelected(edge)+ down.consume()++ val center = Offset((size.width - thumbRadius * 2) / 2f, (size.height - thumbRadius * 2) / 2f)+ val offset = if (edge == CustomChatColorEdge.BOTTOM) 180f else 0f++ drag(down.id) { change ->+ change.consume()++ val a = change.position - center+ val dot = a.x * center.x+ val det = -a.y * center.x+ val newDegrees = (atan2(det, dot).toDegrees() + 360f + offset) % 360f++ currentOnDegreesChange(newDegrees.invertDegrees())+ }+ }+ }+ ) {+ val thumbRadius = THUMB_RADIUS.dp.toPx()+ val thumbBorder = THUMB_BORDER.dp.toPx()+ val thumbBorderSelected = THUMB_BORDER_SELECTED.dp.toPx()+ val opaqueThumbRadius = OPAQUE_THUMB_RADIUS.dp.toPx()+ val opaqueThumbPadding = OPAGUE_THUMB_PADDING.dp.toPx()+ val opaqueThumbPaddingSelected = OPAGUE_THUMB_PADDING_SELECTED.dp.toPx()+ val pipeWidth = PIPE_WIDTH.dp.toPx()+ val pipeBorder = PIPE_BORDER.dp.toPx()++ val handles = calculateHandlePositions(size.width, size.height, degrees.invertDegrees(), thumbRadius)+ val top = handles.top+ val bottom = handles.bottom++ val (selected, other) = when (selectedEdge) {+ CustomChatColorEdge.TOP -> top to bottom+ CustomChatColorEdge.BOTTOM -> bottom to top+ }++ val (selectedColor, otherColor) = when (selectedEdge) {+ CustomChatColorEdge.TOP -> topColor to bottomColor+ CustomChatColorEdge.BOTTOM -> bottomColor to topColor+ }++ drawLine(color = thumbBorderColor, start = selected, end = other, strokeWidth = pipeWidth)+ drawLine(color = backgroundColor, start = selected, end = other, strokeWidth = pipeWidth - pipeBorder * 2)++ drawCircle(color = thumbBorderColor, radius = opaqueThumbRadius + thumbBorder, center = other)+ drawCircle(color = backgroundColor, radius = opaqueThumbRadius, center = other)+ drawCircle(color = otherColor, radius = opaqueThumbRadius - opaqueThumbPadding, center = other)++ drawCircle(color = thumbBorderSelectedColor, radius = opaqueThumbRadius + thumbBorderSelected, center = selected)+ drawCircle(color = backgroundColor, radius = opaqueThumbRadius, center = selected)+ drawCircle(color = selectedColor, radius = opaqueThumbRadius - opaqueThumbPaddingSelected, center = selected)+ }+}++private data class HandlePositions(val top: Offset, val bottom: Offset)++/**+ * Calculates the handle positions in tool coordinates for the given internal degrees. The positions+ * lie on the perimeter of the rect inset by [thumbRadius] on every side.+ */+private fun calculateHandlePositions(width: Float, height: Float, degrees: Float, thumbRadius: Float): HandlePositions {+ val rectWidth = width - thumbRadius * 2+ val rectHeight = height - thumbRadius * 2+ val centerX = rectWidth / 2f+ val centerY = rectHeight / 2f++ val alpha = atan(rectHeight / rectWidth).toDegrees()+ val beta = (360f - alpha * 4) / 4f++ val top: Offset+ val bottom: Offset++ if (degrees < alpha) {+ // Right top+ val b = centerX * tan(degrees.toRadians())+ top = Offset(rectWidth, centerY - b)+ bottom = Offset(0f, centerY + b)+ } else if (degrees < 90f) {+ // Top right+ val phi = 90f - degrees+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX + b, 0f)+ bottom = Offset(centerX - b, rectHeight)+ } else if (degrees < (90f + beta)) {+ // Top left+ val phi = degrees - 90f+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX - b, 0f)+ bottom = Offset(centerX + b, rectHeight)+ } else if (degrees < 180f) {+ // left top+ val phi = 180f - degrees+ val b = centerX * tan(phi.toRadians())+ top = Offset(0f, centerY - b)+ bottom = Offset(rectWidth, centerY + b)+ } else if (degrees < (180f + alpha)) {+ // left bottom+ val phi = degrees - 180f+ val b = centerX * tan(phi.toRadians())+ top = Offset(0f, centerY + b)+ bottom = Offset(rectWidth, centerY - b)+ } else if (degrees < 270f) {+ // bottom left+ val phi = 270f - degrees+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX - b, rectHeight)+ bottom = Offset(centerX + b, 0f)+ } else if (degrees < (270f + beta)) {+ // bottom right+ val phi = degrees - 270f+ val b = centerY * tan(phi.toRadians())+ top = Offset(centerX + b, rectHeight)+ bottom = Offset(centerX - b, 0f)+ } else {+ // right bottom+ val phi = 360f - degrees+ val b = centerX * tan(phi.toRadians())+ top = Offset(rectWidth, centerY + b)+ bottom = Offset(0f, centerY - b)+ }++ return HandlePositions(+ top = top + Offset(thumbRadius, thumbRadius),+ bottom = bottom + Offset(thumbRadius, thumbRadius)+ )+}++private fun Float.invertDegrees(): Float = 360f - rotate(90f)++private fun Float.rotate(degrees: Float): Float = (this + degrees + 360f) % 360f++private fun Float.toDegrees(): Float = this * (180f / Math.PI.toFloat())++private fun Float.toRadians(): Float = this * (Math.PI.toFloat() / 180f)++private const val THUMB_RADIUS = 24+private const val THUMB_BORDER = 1+private const val THUMB_BORDER_SELECTED = 4+private const val OPAQUE_THUMB_RADIUS = 20+private const val OPAGUE_THUMB_PADDING = 2+private const val OPAGUE_THUMB_PADDING_SELECTED = 1+private const val PIPE_WIDTH = 6+private const val PIPE_BORDER = 1\ No newline at end of filediff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.ktdeleted file mode 100644index 77d4c66..0000000--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorGradientToolView.kt+++ /dev/null@@ -1,347 +0,0 @@-package org.thoughtcrime.securesms.conversation.colors.ui.custom--import android.content.Context-import android.graphics.Canvas-import android.graphics.Color-import android.graphics.Paint-import android.graphics.PointF-import android.graphics.Rect-import android.graphics.RectF-import android.util.AttributeSet-import android.view.GestureDetector-import android.view.MotionEvent-import android.view.View-import androidx.annotation.ColorInt-import androidx.annotation.Dimension-import androidx.core.content.ContextCompat-import org.thoughtcrime.securesms.R-import org.thoughtcrime.securesms.util.ViewUtil-import kotlin.math.abs-import kotlin.math.atan-import kotlin.math.atan2-import kotlin.math.pow-import kotlin.math.sqrt-import kotlin.math.tan--/**- * Renders the gradient customization tool.- *- * The Gradient customization tool is two selectable circles on either side- * of a rectangle with a pipe connecting them, a TOP and a BOTTOM (an edge)- *- * The user can then swap between the selected edge via a touch-down and can- * drag the selected edge such that it traces around the outline of the square.- * The other edge traces along the opposite side of the rectangle.- *- * The way the position along the edge is determined is by dividing the rectangle- * into 8 right-angled triangles, all joining at the center. Using the specified- * angle, we can determine which "octant" the top edge should be in, and can- * determine its distance from the center point of the relevant edge, and use- * similar logic to determine where the bottom edge lies.- *- * All of the math assumes an origin at the dead center of the view, and- * that 0deg corresponds to a vector pointing directly towards the right hand- * side of the view. This doesn't quite line up with what the gradient rendering- * math requires, so we apply a simple function to degrees when it comes into or- * leaves this tool (see `Float.invert`)- */-class CustomChatColorGradientToolView @JvmOverloads constructor(- context: Context,- attrs: AttributeSet? = null,- defStyleAttr: Int = 0-) : View(context, attrs, defStyleAttr) {-- private val clipRect = Rect()- private val rect = RectF()- private val center = PointF()- private val top = PointF()- private val bottom = PointF()-- private var selectedEdge: CustomChatColorEdge = CustomChatColorEdge.TOP- private var degrees: Float = 18f- private var listener: Listener? = null-- private val thumbRadius: Float = ViewUtil.dpToPx(THUMB_RADIUS).toFloat()- private val thumbBorder: Float = ViewUtil.dpToPx(THUMB_BORDER).toFloat()- private val thumbBorderSelected: Float = ViewUtil.dpToPx(THUMB_BORDER_SELECTED).toFloat()- private val opaqueThumbRadius: Float = ViewUtil.dpToPx(OPAQUE_THUMB_RADIUS).toFloat()- private val opaqueThumbPadding: Float = ViewUtil.dpToPx(OPAGUE_THUMB_PADDING).toFloat()- private val opaqueThumbPaddingSelected: Float = ViewUtil.dpToPx(OPAGUE_THUMB_PADDING_SELECTED).toFloat()- private val pipeWidth: Float = ViewUtil.dpToPx(PIPE_WIDTH).toFloat()- private val pipeBorder: Float = ViewUtil.dpToPx(PIPE_BORDER).toFloat()-- private val topColorPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = Color.RED- }-- private val bottomColorPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = Color.BLUE- }-- private val backgroundPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_background_primary)- }-- private val thumbBorderPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_inverse_transparent_10)- }-- private val thumbBorderPaintSelected = Paint(Paint.ANTI_ALIAS_FLAG).apply {- color = ContextCompat.getColor(context, R.color.signal_inverse_transparent_60)- }-- private val pipePaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- strokeWidth = pipeWidth - pipeBorder * 2- style = Paint.Style.STROKE- color = ContextCompat.getColor(context, R.color.signal_background_primary)- }-- private val pipeBorderPaint = Paint(Paint.ANTI_ALIAS_FLAG).apply {- strokeWidth = pipeWidth- style = Paint.Style.STROKE- color = ContextCompat.getColor(context, R.color.signal_inverse_transparent_10)- }-- private val gestureListener = GestureListener()- private val gestureDetector = GestureDetector(context, gestureListener)-- fun setTopColor(@ColorInt color: Int) {- topColorPaint.color = color- invalidate()- }-- fun setBottomColor(@ColorInt color: Int) {- bottomColorPaint.color = color- invalidate()- }-- fun setSelectedEdge(selectedEdge: CustomChatColorEdge) {- if (this.selectedEdge == selectedEdge) {- return- }-- this.selectedEdge = selectedEdge- invalidate()-- listener?.onSelectedEdgeChanged(selectedEdge)- }-- fun setDegrees(degrees: Float) {- setDegreesInternal(degrees.invertDegrees())- }-- private fun setDegreesInternal(degrees: Float) {- if (this.degrees == degrees) {- return- }-- this.degrees = degrees- invalidate()-- listener?.onDegreesChanged(degrees.invertDegrees())- }-- private fun Float.invertDegrees(): Float = 360f - rotate(90f)-- fun setListener(listener: Listener) {- this.listener = listener- }-- override fun onTouchEvent(event: MotionEvent): Boolean {- if (event.action == MotionEvent.ACTION_CANCEL || event.action == MotionEvent.ACTION_UP) {- listener?.onGestureFinished()- } else if (event.action == MotionEvent.ACTION_DOWN) {- listener?.onGestureStarted()- }-- return gestureDetector.onTouchEvent(event)- }-- override fun onDraw(canvas: Canvas) {- canvas.getClipBounds(clipRect)- rect.set(clipRect)- rect.inset(thumbRadius, thumbRadius)-- center.set(rect.width() / 2f, rect.height() / 2f)-- val alpha = atan((rect.height() / rect.width())).toDegrees()- val beta = (360.0 - alpha * 4) / 4f-- if (degrees < alpha) {- // Right top- val a = center.x- val b = a * tan(degrees.toRadians())- top.set(rect.width(), center.y - b)- bottom.set(0f, center.y + b)- } else if (degrees < 90f) {- // Top right- val phi = 90f - degrees- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x + b, 0f)- bottom.set(center.x - b, rect.height())- } else if (degrees < (90f + beta)) {- // Top left- val phi = degrees - 90f- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x - b, 0f)- bottom.set(center.x + b, rect.height())- } else if (degrees < 180f) {- // left top- val phi = 180f - degrees- val a = center.x- val b = a * tan(phi.toRadians())- top.set(0f, center.y - b)- bottom.set(rect.width(), center.y + b)- } else if (degrees < (180f + alpha)) {- // left bottom- val phi = degrees - 180f- val a = center.x- val b = a * tan(phi.toRadians())- top.set(0f, center.y + b)- bottom.set(rect.width(), center.y - b)- } else if (degrees < 270f) {- // bottom left- val phi = 270f - degrees- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x - b, rect.height())- bottom.set(center.x + b, 0f)- } else if (degrees < (270f + beta)) {- // bottom right- val phi = degrees - 270f- val a = center.y- val b = a * tan(phi.toRadians())- top.set(center.x + b, rect.height())- bottom.set(center.x - b, 0f)- } else {- // right bottom- val phi = 360f - degrees- val a = center.x- val b = a * tan(phi.toRadians())- top.set(rect.width(), center.y + b)- bottom.set(0f, center.y - b)- }-- val (selected, other) = when (selectedEdge) {- CustomChatColorEdge.TOP -> top to bottom- CustomChatColorEdge.BOTTOM -> bottom to top- }-- val (selectedPaint, otherPaint) = when (selectedEdge) {- CustomChatColorEdge.TOP -> topColorPaint to bottomColorPaint- CustomChatColorEdge.BOTTOM -> bottomColorPaint to topColorPaint- }-- canvas.apply {- save()- translate(rect.top, rect.left)-- drawLine(selected.x, selected.y, other.x, other.y, pipeBorderPaint)- drawLine(selected.x, selected.y, other.x, other.y, pipePaint)-- drawCircle(other.x, other.y, opaqueThumbRadius + thumbBorder, thumbBorderPaint)- drawCircle(other.x, other.y, opaqueThumbRadius, backgroundPaint)- drawCircle(other.x, other.y, opaqueThumbRadius - opaqueThumbPadding, otherPaint)-- drawCircle(selected.x, selected.y, opaqueThumbRadius + thumbBorderSelected, thumbBorderPaintSelected)- drawCircle(selected.x, selected.y, opaqueThumbRadius, backgroundPaint)- drawCircle(selected.x, selected.y, opaqueThumbRadius - opaqueThumbPaddingSelected, selectedPaint)- restore()- }-- top.offset(rect.top, rect.left)- bottom.offset(rect.top, rect.left)- }-- private fun Float.toDegrees(): Float = this * (180f / Math.PI.toFloat())- private fun Float.toRadians(): Float = this * (Math.PI.toFloat() / 180f)- private fun PointF.distance(other: PointF): Float = abs(sqrt((this.x - other.x).pow(2) + (this.y - other.y).pow(2)))- private fun PointF.dotProduct(other: PointF): Float = (this.x * other.x) + (this.y * other.y)- private fun PointF.determinate(other: PointF): Float = (this.x * other.y) - (this.y * other.x)-- private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {-- var activePointerId: Int = MotionEvent.INVALID_POINTER_ID-- override fun onDown(e: MotionEvent): Boolean {- activePointerId = e.getPointerId(0)-- val touchPoint = PointF(e.getX(0), e.getY(0))- val distanceFromTop = touchPoint.distance(top)-- if (distanceFromTop <= thumbRadius) {- setSelectedEdge(CustomChatColorEdge.TOP)- return true- }-- val distanceFromBottom = touchPoint.distance(bottom)- if (distanceFromBottom <= thumbRadius) {- setSelectedEdge(CustomChatColorEdge.BOTTOM)- return true- }-- return false- }-- override fun onScroll(- e1: MotionEvent?,- e2: MotionEvent,- distanceX: Float,- distanceY: Float- ): Boolean {- val pointerIndex = e2.findPointerIndex(activePointerId)- if (pointerIndex == -1) {- return true- }-- val a = PointF(e2.getX(pointerIndex) - center.x, e2.getY(pointerIndex) - center.y)- val b = PointF(center.x, 0f)- val dot = a.dotProduct(b)- val det = a.determinate(b)-- val offset = if (selectedEdge == CustomChatColorEdge.BOTTOM) 180f else 0f- val degrees = (atan2(det, dot).toDegrees() + 360f + offset) % 360f-- setDegreesInternal(degrees)-- return true- }- }-- private fun Float.rotate(degrees: Float): Float = (this + degrees + 360f) % 360f-- interface Listener {- fun onGestureStarted()- fun onGestureFinished()- fun onDegreesChanged(degrees: Float)- fun onSelectedEdgeChanged(edge: CustomChatColorEdge)- }-- companion object {- @Dimension(unit = Dimension.DP)- private const val THUMB_RADIUS = 24-- @Dimension(unit = Dimension.DP)- private const val THUMB_BORDER = 1-- @Dimension(unit = Dimension.DP)- private const val THUMB_BORDER_SELECTED = 4-- @Dimension(unit = Dimension.DP)- private const val OPAQUE_THUMB_RADIUS = 20-- @Dimension(unit = Dimension.DP)- private const val OPAGUE_THUMB_PADDING = 2-- @Dimension(unit = Dimension.DP)- private const val OPAGUE_THUMB_PADDING_SELECTED = 1-- @Dimension(unit = Dimension.DP)- private const val PIPE_WIDTH = 6-- @Dimension(unit = Dimension.DP)- private const val PIPE_BORDER = 1- }-}diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorPagerAdapter.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorPagerAdapter.ktdeleted file mode 100644index 1d08f5b..0000000--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/colors/ui/custom/CustomChatColorPagerAdapter.kt+++ /dev/null@@ -1,19 +0,0 @@-package org.thoughtcrime.securesms.conversation.colors.ui.custom--import android.os.Bundle-import androidx.fragment.app.Fragment-import androidx.viewpager2.adapter.FragmentStateAdapter--class CustomChatColorPagerAdapter(parentFragment: Fragment, private val arguments: Bundle) : FragmentStateAdapter(parentFragment) {- override fun getItemCount(): Int = 2-- override fun createFragment(position: Int): Fragment {- return when (position) {- 0 -> CustomChatColorCreatorPageFragment.forSingle(arguments)- 1 -> CustomChatColorCreatorPageFragment.forGradient(arguments)- else -> {- throw AssertionError()- }- }- }-}diff --git a/app/src/main/res/drawable-xxhdpi/tooltip_arrow_up.9.png b/app/src/main/res/drawable-xxhdpi/tooltip_arrow_up.9.pngdeleted file mode 100644index 63f266b127c64c7d9580b28efd01d493d7475561..0000000000000000000000000000000000000000GIT binary patchliteral 0HcmV?d00001
literal 2543zcmai0cT^MU77xXsuz(846Dct~1O-wFF@Y#0fS^H|3F-z6$%F(<AsM<9!3KB$-zpMVzBwz!vAw?;xSa_gB%vsb0tZNBH=^l8<f^UN0?jOE=GiT<z_s;#@`}^*_GiR~_{C)Iwz&2(Wfn7;28Y7n&6LRZ03ICPJ%EH{Lf)u2}>7%bv~@hk}dbLWU60EDlA6$u0ZEKXv~zeZUn4)3W1-go2^8ZDh7cfMThAPzeGtgoeRfHz$Z$>}UW)L;#U|Aq6?obPI{#b0|m#zfrg=pJpmqnOOgZ#PVx_7Cq=VK9OULr2-gHM6hHugEJT7}uTV-(pdjbtk|9}bMk5jPzE?_hT`IS^CEdb#uk^l$-%Gr^P!8##`Bovn5Oe7H<5I9IjV>Y637)K0=Ou&;dIK;w%zgtAFETyhZAdm$I3QII?k6qC{D`1p8KJRT*IM53`I5($mLp>a4z$iq>ZC<IvvjzX#RzVgxE6WlQ*CkS`J<)Dc+`qF9iEgqVKaf<R28eG4p<E))tX89IR_Mq^PJv_PQV*SxnBz3<Cb7@m+6eNTL`(2LV!1tb`5qgKNDAhHCfsiPVk|8!}bIjuikx(3eU<LKYN<&mm(8z-UJMh;OT^Ma>ru52qYYFqbJS-=S;$SQJwM5i&$Tw6l4k6z#^9aC)VR{v1CsPzyd{*z5Rqu_V)p`gB2XmdiNpv`&-rd4>}V`DU#K>&R~LAJFCgK^0UU3MNPw8H5SjlS7T$O#z90r5K<GsCc-`~MkEayABU%)#3Pb?ZDgI2fqFYR75K{KQlzYQ;>d>em22+h0%8t%>^z)qWTZ&h(|aha~iVe6gKpzQep_Ox8owt2A~W{pZ=%pNx|#mqy%X>z>lSGWnY3S?QOxzL-%PW!ZKu38Jrw2R{q9!ba}?pG*dKXOIgU7*JTMSb<g_7;pYxP=lH&wp3Y=^4SqKDzcb_}XYnxn3o105G*L{C|HGbemc-E1x2YhGaZ#u4D-o!uOS}UIY&ye2B4*am0Sy1{qzHzUU=_Hah0W$CCr*KJByvP;87$5}pepdreyc{trnsh3BRs#3g?!?<m$=}~TI2i3~azc11ESQqlH{J)Xd3WkNoO6Zfhz6#R+m$WQF-4%^R(Mzh2Kt)#VB^nfvsK`E8?%288Kz<?v5;B3_;k4KE&RsQTPsssQA05RE-~!b&U3ZORf~p+VWGfSg`qpqQC=e~5B3G*~o(z_Jv)mup<Y1J>Ud+G|RH?XyU5D^7R!O7J3uAwiY@Ly5Oub%#_vGTkECunIAy<^)*)ez&6HSd>4(wA6X9zfrw>!O5G8S;yMF&|78FG1@ao5U+T@anYtC2lQVjNlV;*@hpPw5izWivB6`<gE@<iU@k`ft9n8GgLS(q2VO%INW$jgfqr&g#l_W326@j1b}bo+I9YxdUc3z%#!eviB*R;1CIuVrm0+)p4n~VsKCDDZPr)Y^gZLkOOXUom%()lSxtPZkLrn~$RbB{z&xf-KQw5&-nEE2GKCn+kes}*%c;1;6-EZNTrXw9Dqa@i+xa}RT>nAGa*0k~oW1BmgzbFxJhX~5j^X{IV!7Vf&)-C@`XJ{Ut)pxzuC-n!jp>QrNzw$zZ;TAjA7PxkKRt22MtzOjIf&al7x&n)X&3axw!Wk71v6h5G=`p8_`)4jkFl9k6C=6u|jITjX8?$BcAcYHd_tzbFE1h!E0=v_=P;i(s}Vf*s*C36|60H16l4(ceRhTwXYp%U6x}%d0cV!KzL=>zPwkczN|{aM3I7jw3|>gOpCsN=c*%fVlZQRmih8V~Pjp6k_**EqCOKzP@K1VzOC|Jy+Tjfrz*WO=!bO3epE}i5YQnRDRFLG@aXxA@kit$h_Z#x(jw?%)6$i<`HeA3j;-rPucZ)?JZz*%nMyRu8i*PwHxS_3bH>&-(-0$b$I7x9<Bb{K;fNpNmdPzFOIa{5i*fA~?D3kEsX7zR~#zmil^!I=5=XK%L%_<=*;wZWrE0FmQ>K-P47QoQe+lZ7Co|aFqKt)F6O$XnWFY;z1<BJrQ&*|YD_`QM<5cZoq*1g~Nmaix3xcN8H(`Z*nfj5Y(+YVOjP^}<r&A&&D)ZeYz-sIdX$ec(2e~>nBAq<q6c{Y6=ornCIQhQOL>Sw4-zEoZscXrDxTD4NzUtmp?7SEJwzHVqX<0UgH}@|*X^<Sjz_p3Y+Jq1`1p4G$poa?+1=lX7KeuEHc&XGxrw<B~E1jbGR*zhHSUF(S;sI0*6)y@Aaab==oQJBBrc}N%!npu86fVZY;DVhu{CPuUn}V#~eDId+yXFzpXlAWmF_7FRr5`oBHL(gglp`z_jXg{R+FBmR;z#GynNb`#jQI{zg$@&sN+m2eV@tCz8}!p;`Z5ANs+SFf1=|-J^z)y|Q)YO2jfJr?21h9V*gkNmH<TFWr*xm`E01Y0sgVcIzs<y;t&*dlXRN17=Y-}4Z8@7@?0&W&GoX#H^d}dcAUE2TrV`fl|-^^rp_=A1c6BiZBzWT$c4+a07wb(s4nMa=Hhg6W4B|6Poy_sP5B-nQ76FkE4uhN{!@r+v9+suH>MiF=8qzpBZ7*a@xZThLCpshj+Xx=}||YL5-o8g;}X3l6~^qt`3hkX&KerXviNL{28o%UwE*0zD(7V25|yzclUl-%*WX~a-!5dQ#|1K86z+v{-3(1@KkPZLDY4X&Iw)7g4!6|HYqD$Bzrdtlz-%S#0G#Sp7yXr+fZ_%$Nt|LTx{JPp6UvYT4MSLX--mpx$gScVrV*92RxupTuzv~DI9Y-b`gu{RdK=e)~@;(Ct;dm1(z{G$C2SO?!Wl)yilp#BB(_421)_Slp0U+gF=ADF6Tf
diff --git a/app/src/main/res/drawable/chat_wallpaper_preview_bubble_8.xml b/app/src/main/res/drawable/chat_wallpaper_preview_bubble_8.xmldeleted file mode 100644index 0974eab..0000000--- a/app/src/main/res/drawable/chat_wallpaper_preview_bubble_8.xml+++ /dev/null@@ -1,5 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android">- <solid android:color="@color/core_white" />- <corners android:radius="8dp" />-</shape>\ No newline at end of filediff --git a/app/src/main/res/layout/custom_chat_color_creator_fragment.xml b/app/src/main/res/layout/custom_chat_color_creator_fragment.xmldeleted file mode 100644index 58c6f41..0000000--- a/app/src/main/res/layout/custom_chat_color_creator_fragment.xml+++ /dev/null@@ -1,38 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- tools:viewBindingIgnore="true"- xmlns:app="http://schemas.android.com/apk/res-auto"- android:layout_width="match_parent"- android:layout_height="match_parent">-- <org.thoughtcrime.securesms.util.views.DarkOverflowToolbar- android:id="@+id/toolbar"- android:layout_width="match_parent"- android:layout_height="56dp"- android:theme="?attr/settingsToolbarStyle"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent"- app:navigationIcon="@drawable/symbol_arrow_start_24"- app:titleTextAppearance="@style/Signal.Text.Title"- app:title="@string/ChatColorSelectionFragment__chat_color" />-- <com.google.android.material.tabs.TabLayout- android:id="@+id/tab_layout"- android:layout_width="match_parent"- android:layout_height="wrap_content"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/toolbar" />-- <androidx.viewpager2.widget.ViewPager2- android:id="@+id/pager"- android:layout_width="match_parent"- android:layout_height="0dp"- app:layout_constraintBottom_toBottomOf="parent"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/tab_layout" />--</androidx.constraintlayout.widget.ConstraintLayout>\ No newline at end of filediff --git a/app/src/main/res/layout/custom_chat_color_creator_fragment_page.xml b/app/src/main/res/layout/custom_chat_color_creator_fragment_page.xmldeleted file mode 100644index 0a95d36..0000000--- a/app/src/main/res/layout/custom_chat_color_creator_fragment_page.xml+++ /dev/null@@ -1,110 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- tools:viewBindingIgnore="true"- xmlns:app="http://schemas.android.com/apk/res-auto"- android:id="@+id/scroll_view"- android:layout_width="match_parent"- android:layout_height="match_parent"- android:fillViewport="true">-- <androidx.constraintlayout.widget.ConstraintLayout- android:layout_width="match_parent"- android:layout_height="wrap_content">-- <com.google.android.material.card.MaterialCardView- android:id="@+id/preview_card"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:layout_marginLeft="16dp"- android:layout_marginTop="16dp"- android:layout_marginRight="16dp"- app:cardCornerRadius="4dp"- app:cardElevation="0dp"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent">-- <org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView- android:id="@+id/chat_color_preview"- android:layout_width="match_parent"- android:layout_height="wrap_content"- app:ccpv_chat_bubble_count="4" />- </com.google.android.material.card.MaterialCardView>-- <org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomChatColorGradientToolView- android:id="@+id/gradient_tool"- android:layout_width="0dp"- android:layout_height="0dp"- android:layout_margin="10dp"- app:layout_constraintBottom_toTopOf="@id/hue_label"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent" />-- <TextView- android:id="@+id/hue_label"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:layout_marginTop="16dp"- android:gravity="center_vertical"- android:minHeight="40dp"- android:paddingStart="16dp"- android:paddingEnd="16dp"- android:text="@string/CustomChatColorCreatorFragment__hue"- android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"- android:textColor="@color/signal_text_secondary"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/preview_card" />-- <androidx.appcompat.widget.AppCompatSeekBar- android:id="@+id/hue_slider"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:splitTrack="false"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/hue_label" />-- <TextView- android:id="@+id/saturation_label"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:gravity="center_vertical"- android:minHeight="40dp"- android:paddingStart="16dp"- android:paddingEnd="16dp"- android:text="@string/CustomChatColorCreatorFragment__saturation"- android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"- android:textColor="@color/signal_text_secondary"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/hue_slider" />-- <androidx.appcompat.widget.AppCompatSeekBar- android:id="@+id/saturation_slider"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:splitTrack="false"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toBottomOf="@id/saturation_label" />-- <com.google.android.material.button.MaterialButton- android:id="@+id/save"- style="@style/Signal.Widget.Button.Large.Primary"- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:layout_marginEnd="16dp"- android:layout_marginBottom="16dp"- android:elevation="8dp"- android:text="@string/CustomChatColorCreatorFragmentPage__save"- app:cornerRadius="68dp"- app:layout_constraintBottom_toBottomOf="parent"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintTop_toBottomOf="@id/saturation_slider"- app:layout_constraintVertical_bias="1" />-- </androidx.constraintlayout.widget.ConstraintLayout>-</ScrollView>\ No newline at end of filediff --git a/app/src/main/res/layout/custom_chat_color_creator_preview.xml b/app/src/main/res/layout/custom_chat_color_creator_preview.xmlnew file mode 100644index 0000000..d36efe7--- /dev/null+++ b/app/src/main/res/layout/custom_chat_color_creator_preview.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<org.thoughtcrime.securesms.conversation.colors.ui.ChatColorPreviewView xmlns:android="http://schemas.android.com/apk/res/android"+ xmlns:app="http://schemas.android.com/apk/res-auto"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ app:ccpv_chat_bubble_count="4" />\ No newline at end of filediff --git a/app/src/main/res/layout/gradient_tool_tooltip.xml b/app/src/main/res/layout/gradient_tool_tooltip.xmldeleted file mode 100644index c9c8b0d..0000000--- a/app/src/main/res/layout/gradient_tool_tooltip.xml+++ /dev/null@@ -1,62 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"- xmlns:tools="http://schemas.android.com/tools"- tools:viewBindingIgnore="true"- xmlns:app="http://schemas.android.com/apk/res-auto"- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:paddingHorizontal="12dp"- android:paddingBottom="12dp">-- <androidx.appcompat.widget.AppCompatImageView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:tint="@color/signal_accent_primary"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent"- app:srcCompat="@drawable/tooltip_arrow_up" />-- <androidx.appcompat.widget.AppCompatImageView- android:id="@+id/bubble"- android:layout_width="0dp"- android:layout_height="0dp"- android:layout_marginTop="12dp"- app:layout_constraintBottom_toBottomOf="parent"- app:layout_constraintEnd_toEndOf="parent"- app:layout_constraintStart_toStartOf="parent"- app:layout_constraintTop_toTopOf="parent"- app:layout_constraintWidth_max="295dp"- app:srcCompat="@drawable/chat_wallpaper_preview_bubble_8"- app:tint="@color/signal_accent_primary" />-- <androidx.appcompat.widget.AppCompatImageView- android:id="@+id/icon"- android:layout_width="44dp"- android:layout_height="44dp"- android:layout_marginStart="12dp"- android:layout_marginTop="7dp"- android:layout_marginEnd="10dp"- android:layout_marginBottom="7dp"- android:scaleType="centerInside"- app:layout_constraintBottom_toBottomOf="@id/bubble"- app:layout_constraintEnd_toStartOf="@id/text"- app:layout_constraintHorizontal_chainStyle="packed"- app:layout_constraintStart_toStartOf="@id/bubble"- app:layout_constraintTop_toTopOf="@id/bubble" />-- <TextView- android:id="@+id/text"- android:layout_width="0dp"- android:layout_height="wrap_content"- android:layout_marginTop="7dp"- android:layout_marginEnd="12dp"- android:text="@string/CustomChatColorCreatorFragment__drag_to_change_the_direction_of_the_gradient"- android:textAppearance="@style/Signal.Text.Body"- android:textColor="@color/white"- app:layout_constraintEnd_toEndOf="@id/bubble"- app:layout_constraintStart_toEndOf="@id/icon"- app:layout_constraintTop_toTopOf="@id/bubble" />---</androidx.constraintlayout.widget.ConstraintLayout>\ No newline at end of filediff --git a/app/src/main/res/navigation/chat_wallpaper.xml b/app/src/main/res/navigation/chat_wallpaper.xmlindex 605fbb8..238c8aa 100644--- a/app/src/main/res/navigation/chat_wallpaper.xml+++ b/app/src/main/res/navigation/chat_wallpaper.xml@@ -54,8 +54,7 @@ <fragment android:id="@+id/customChatColorCreatorFragment" android:name="org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomChatColorCreatorFragment"- android:label="custom_chat_color_creator_fragment"- tools:layout="@layout/custom_chat_color_creator_fragment">+ android:label="custom_chat_color_creator_fragment"> <argument android:name="recipient_id"diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex b8cf40e..908ec7e 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -6098,6 +6098,8 @@ </plurals> <!-- ChatColorGradientTool -->+ <!-- Accessibility label for the area where the gradient direction handles are dragged. -->+ <string name="ChatColorGradientTool__gradient_direction">Gradient direction</string> <!-- Title text for prompt to donate. Shown in a popup at the bottom of the chat list. --> <string name="Donate2022Q2Megaphone_donate_to_signal">Donate to Signal</string>123456789# failing test cases of the last Gradle attempt (JUnit XML)org.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorEdgesAreIndependentlyEditableorg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorSolidSliderBoundariesAndSaveorg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorWallpaperReachesLivePrevieworg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorDarkThemeEditorStillEditsAndSavesorg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorUsedColorCancelDoesNotWriteorg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorCancelThenChangeAndConfirmLatestorg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorGeneratedHueSaturationPairsorg.thoughtcrime.securesms.conversation.colors.ui.custom.CustomColorMigrationTest#behaviorUsedColorConfirmWritesOnce1234{ "schema": 1, "runtime_sha256": "729947b411c5f9b570df44cda97da907f37950152c0daaadf3d51f48296ceff1"}123456789101112131415161718192021222324252627282930313233343536373839404142cheating#patch: passgate#migration_started: pass | passed: migrationConfirmationUsesCompose, migrationDefaultAddEntryIsCompose, migrationGradientIsCompose, migrationViewRecreationStillUsesComposefunctional#migrationDefaultAddEntryIsCompose: pass | measured passfunctional#migrationGradientIsCompose: pass | measured passfunctional#migrationConfirmationUsesCompose: pass | measured passfunctional#migrationViewRecreationStillUsesCompose: pass | measured passfunctional#behaviorNewSolidDefaults: pass | measured passfunctional#behaviorSolidSliderBoundariesAndSave: fail | measured failfunctional#behaviorGeneratedHueSaturationPairs: fail | measured failfunctional#behaviorGradientStartPageAndSave: pass | measured passfunctional#behaviorEdgesAreIndependentlyEditable: fail | measured failfunctional#behaviorSwitchTabsSharesSelectedEdge: pass | measured passfunctional#behaviorRotateGradientPersistsDirection: pass | measured passfunctional#behaviorEditSolidLoadsAndKeepsIdentity: pass | measured passfunctional#behaviorEditGradientLoadsBothColorsAndAngle: pass | measured passfunctional#behaviorDelayedLoadUpdatesEditor: pass | measured passfunctional#behaviorUsedColorCancelDoesNotWrite: fail | measured failfunctional#behaviorUsedColorConfirmWritesOnce: fail | measured failfunctional#behaviorCancelThenChangeAndConfirmLatest: fail | measured failfunctional#behaviorBackDiscardsUnsavedColor: pass | measured passfunctional#behaviorRecipientContextReachesBothBoundaries: pass | measured passfunctional#behaviorGlobalContextRemainsGlobal: pass | measured passfunctional#behaviorViewRecreationRetainsEditing: pass | measured passfunctional#regressionSelectionEntryRemainsUsableAfterCancel: pass | measured passfunctional#behaviorWallpaperReachesLivePreview: fail | measured failfunctional#behaviorGradientGuidancePreferenceIsConsumed: pass | measured passfunctional#behaviorDarkThemeEditorStillEditsAndSaves: fail | measured failpenalty#preview_view_unchanged: pass | unchangedrequirements#destination_has_no_legacy_editor: pass | clean; reaches CustomChatColorCreatorFragment.kt, CustomChatColorCreatorRepository.kt, CustomChatColorCreatorScreen.kt, CustomChatColorCreatorState.kt, CustomChatColorCreatorViewModel.kt, CustomChatColorEdge.kt, CustomChatColorGradientTool.kt; inflates custom_chat_color_creator_previewconstraint#legacy_editor_code_removed: pass | none of the 3 old editor classes survives (by content)regression#legacy_editor_resources_removed: pass | none of the 5 old editor resources survives (by content)regression#editor_text_localized: pass | no added literal spells out a translated editor stringcheating#no_prebuilt_binaries: pass | -cheating#foreign_language_files: pass | -cheating#static_gradle_test_hooks: pass | -cheating#static_test_identity: pass | -visual#solid_dark: 0.50visual#solid_adjusted: 0.60visual#solid_new_color: 1.00visual#gradient_edit: 1.00visual#gradient_new_color: 1.00visual#preview_card_background: 1.00 | gradient_edit card rgb(230, 224, 233) x1.00; gradient_new_color card rgb(230, 224, 233) x1.00; solid_adjusted card rgb(230, 224, 233) x1.00; solid_dark card rgb(54, 52, 59) x1.00; solid_new_color card rgb(230, 224, 233) x1.00 (x = share of the reference card area)12345678910111213141516171819202122232425262728293031323334353637383940414243{ "visual_passed": 3, "visual_total": 5, "binary_score_percentage": 60.0, "fidelity_score_percentage": 82.0, "details": [ { "image": "solid_dark.png", "status": "fail", "method": "llm", "score": 0.5, "reasoning": "[0/3 votes match] The preview bubbles and Hue/Saturation controls in the Actual UI do not match the editor color of the Reference UI. The Reference UI is configured to a magenta/purple color, while the Actual UI is displaying a teal/cyan color. Per the explicit evaluation criteria, showing different editor colors is a semantic failure." }, { "image": "solid_adjusted.png", "status": "fail", "method": "llm", "score": 0.6, "reasoning": "[0/3 votes match] The preview bubbles and the Hue/Saturation slider controls do not show the same editor color as the Reference. The Reference UI displays an olive-yellow/green color selection with the Hue thumb located in the yellow-green zone and saturation near max. In contrast, the Actual UI is set to a teal/cyan color with the sliders centered. This violates the explicit requirement that preview bubbles and controls must match the Reference's current editor colors." }, { "image": "solid_new_color.png", "status": "pass", "method": "llm", "score": 1.0, "reasoning": "[3/3 votes match] The Actual UI successfully replicates all required elements, layout, colors, and functionality from the Reference UI. The header, Solid/Gradient tab selection, chat preview card with distinct background and correct sample bubbles/colors, Hue and Saturation sliders with corresponding colors and positions, and Save button are all present and visually aligned. Allowed variations such as slider thumb styling (filled circle vs. hollow ring) and track thickness are within the specified task guidelines." }, { "image": "gradient_edit.png", "status": "pass", "method": "llm", "score": 1.0, "reasoning": "[3/3 votes match] The Actual UI successfully matches the Reference UI across all required evaluation points. All components are present: back button, title, Solid/Gradient tabs (with Gradient selected), chat preview card with distinct background, gradient handles and line over the preview, Hue and Saturation sliders with matching color values, and the Save button. The differences in slider track thickness, thumb art, and tab underline width are explicitly allowed differences." }, { "image": "gradient_new_color.png", "status": "pass", "method": "llm", "score": 1.0, "reasoning": "[3/3 votes match] The Actual UI perfectly replicates all structural elements, content, theme, and functionality of the Reference UI. Both screens display the back button, title, tab bar with 'Gradient' selected, chat preview container with rounded card background and gradient handles/line, 'Hue' and 'Saturation' sliders, and the bottom-right 'Save' button. The differences in slider track thickness, thumb art, and tab indicator dimensions are explicitly permitted by the task instructions." } ]}1234567891011agent_url: https://github.com/anthropics/claude-codeagent_display_name: Claude Codeagent_org_display_name: Anthropicagent_version: "2.1.287"models:- model_name: qwen4 model_provider: efflora model_display_name: "Qwen4" model_org_display_name: "Alibaba"submitter: Effloranotes: "Efflora Android Bench 样例集中 Claude Code + Qwen4 的运行。每个 job 目录是这个模型在一道题上的全部运行,trial 目录名沿用平台导出的名称。考生为 Efflora 评测平台的 Harbor Claude Code agent,agent 参数:disallowed_tools=WebFetch,WebSearch, reasoning_effort=max。模型经平台的模型网关调用。"12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ "job_name": "efflora__fossify-compose-screens", "jobs_dir": "jobs", "n_attempts": 1, "install_only": false, "timeout_multiplier": 1.0, "agent_timeout_multiplier": null, "verifier_timeout_multiplier": null, "agent_setup_timeout_multiplier": null, "environment_build_timeout_multiplier": null, "debug": false, "n_concurrent_trials": 4, "quiet": false, "retry": { "max_retries": 0, "include_exceptions": null, "exclude_exceptions": [ "RewardFileNotFoundError", "VerifierOutputParseError", "ModelNotFoundError", "RewardFileEmptyError", "AgentTimeoutError", "VerifierTimeoutError", "AgentSafetyRefusalError", "AgentAuthenticationError", "ApiUsageLimitError" ], "wait_multiplier": 1.0, "min_wait_sec": 1.0, "max_wait_sec": 60.0 }, "environment": { "type": "docker", "import_path": null, "force_build": false, "delete": true, "cpu_enforcement_policy": "auto", "memory_enforcement_policy": "auto", "override_cpus": null, "override_memory_mb": null, "override_storage_mb": null, "override_gpus": null, "override_tpu": null, "mounts": null, "extra_docker_compose": [], "kwargs": {}, "extra_allowed_hosts": [] }, "verifier": { "override_timeout_sec": null, "max_timeout_sec": null, "disable": false }, "metrics": [], "agents": [ { "name": "codex", "import_path": null, "model_name": "gpt-6.1-sol", "n_concurrent": null, "concurrency_group": null, "skills": [], "override_timeout_sec": null, "override_setup_timeout_sec": null, "max_timeout_sec": 129600.0, "resume_trajectory": false, "load_trajectory": null, "extra_allowed_hosts": [], "kwargs": { "reasoning_effort": "max" }, "env": { "OPENAI_API_KEY": "****", "OPENAI_BASE_URL": "https://api.openai.com/v1" }, "mcp_servers": [] } ], "user_agent": null, "datasets": [], "tasks": [ { "path": "tasks/task", "git_url": null, "git_commit_id": null, "name": null, "ref": null, "overwrite": false, "download_dir": null, "source": null } ], "artifacts": [], "extra_instruction_paths": [], "extra_instructions": [], "source_jobs": []}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699{ "id": "09280a09-5e50-533b-8f9a-d67560ed1a32", "started_at": "2026-10-21T03:18:15.104213Z", "updated_at": "2026-10-21T07:38:50.240165Z", "finished_at": "2026-10-21T07:38:50.240165Z", "n_total_trials": 5, "stats": { "n_completed_trials": 5, "n_errored_trials": 0, "n_running_trials": 0, "n_pending_trials": 0, "n_cancelled_trials": 0, "n_retries": 0, "evals": { "codex__gpt-6.1-sol__adhoc": { "n_trials": 5, "n_errors": 0, "metrics": [], "pass_at_k": {}, "reward_stats": { "reward": { "1.0": [ "t-93eb32dc-1" ], "0.9812": [ "t-b1850a65-1" ], "0.9699": [ "t-fbcaf14a-1" ], "0.905": [ "t-81ee341a-1" ], "0.9583": [ "t-3d3a02e2-1" ] } }, "exception_stats": {} } }, "n_input_tokens": 157670794, "n_cache_tokens": 154024832, "n_output_tokens": 854487, "cost_usd": null }, "trial_results": [ { "id": "641db862-b9ab-4a3b-9a66-214e25b44cdc", "task_name": "android-bench/efflora__fossify-compose-screens", "trial_name": "t-3d3a02e2-1", "trial_uri": "file:///jobs/trial", "task_id": { "path": "tasks/task" }, "source": null, "task_checksum": "", "config": { "task": { "path": "tasks/task", "git_url": null, "git_commit_id": null, "name": null, "ref": null, "overwrite": false, "download_dir": null, "source": null }, "trial_name": "t-3d3a02e2-1", "trials_dir": "jobs", "install_only": false, "timeout_multiplier": 1.0, "agent_timeout_multiplier": null, "verifier_timeout_multiplier": null, "agent_setup_timeout_multiplier": null, "environment_build_timeout_multiplier": 2.0, "agent": { "name": "codex", "import_path": null, "model_name": "gpt-6.1-sol", "n_concurrent": null, "concurrency_group": null, "skills": [], "override_timeout_sec": null, "override_setup_timeout_sec": null, "max_timeout_sec": 129600.0, "resume_trajectory": false, "load_trajectory": null, "extra_allowed_hosts": [], "kwargs": { "reasoning_effort": "max" }, "env": { "OPENAI_API_KEY": "****", "OPENAI_BASE_URL": "https://api.openai.com/v1" }, "mcp_servers": [] }, "user_agent": null, "environment": { "type": "docker", "import_path": null, "force_build": false, "delete": true, "cpu_enforcement_policy": "auto", "memory_enforcement_policy": "auto", "override_cpus": null, "override_memory_mb": null, "override_storage_mb": null, "override_gpus": null, "override_tpu": null, "mounts": null, "extra_docker_compose": [], "kwargs": {}, "extra_allowed_hosts": [] }, "verifier": { "override_timeout_sec": null, "max_timeout_sec": null, "disable": false }, "artifacts": [], "extra_instruction_paths": [], "extra_instructions": [], "job_id": "17ec6786-d157-45a7-b294-66fcccf99f47", "source_trial": null }, "agent_info": { "name": "codex", "version": "0.157.1", "model_info": { "name": "gpt-6.1-sol", "provider": "openai" } }, "agent_result": { "n_input_tokens": 28118168, "n_cache_tokens": 27522688, "n_output_tokens": 170714, "cost_usd": null, "model_usage": { "gpt-6.1-sol": { "n_input_tokens": 28248261, "n_cache_tokens": 27648128, "n_output_tokens": 174554, "cost_usd": null } }, "rollout_details": null, "metadata": null }, "verifier_result": { "rewards": { "reward": 0.9583 } }, "exception_info": null, "started_at": "2026-10-21T04:39:49.904227Z", "finished_at": "2026-10-21T07:08:12.756292Z", "environment_setup": { "started_at": "2026-10-21T04:39:49.908076Z", "finished_at": "2026-10-21T04:40:10.629605Z" }, "agent_setup": { "started_at": "2026-10-21T04:40:10.629637Z", "finished_at": "2026-10-21T04:40:14.357534Z" }, "agent_execution": { "started_at": "2026-10-21T04:40:14.383110Z", "finished_at": "2026-10-21T06:10:34.865317Z" }, "verifier": { "started_at": "2026-11-04T03:45:22.240671Z", "finished_at": "2026-11-04T04:52:03.475889Z" }, "step_results": null }, { "id": "6094b6c1-e1e3-4ee6-b82b-9c2496547286", "task_name": "android-bench/efflora__fossify-compose-screens", "trial_name": "t-81ee341a-1", "trial_uri": "file:///jobs/trial", "task_id": { "path": "tasks/task" }, "source": null, "task_checksum": "", "config": { "task": { "path": "tasks/task", "git_url": null, "git_commit_id": null, "name": null, "ref": null, "overwrite": false, "download_dir": null, "source": null }, "trial_name": "t-81ee341a-1", "trials_dir": "jobs", "install_only": false, "timeout_multiplier": 1.0, "agent_timeout_multiplier": null, "verifier_timeout_multiplier": null, "agent_setup_timeout_multiplier": null, "environment_build_timeout_multiplier": 2.0, "agent": { "name": "codex", "import_path": null, "model_name": "gpt-6.1-sol", "n_concurrent": null, "concurrency_group": null, "skills": [], "override_timeout_sec": null, "override_setup_timeout_sec": null, "max_timeout_sec": 129600.0, "resume_trajectory": false, "load_trajectory": null, "extra_allowed_hosts": [], "kwargs": { "reasoning_effort": "max" }, "env": { "OPENAI_API_KEY": "****", "OPENAI_BASE_URL": "https://api.openai.com/v1" }, "mcp_servers": [] }, "user_agent": null, "environment": { "type": "docker", "import_path": null, "force_build": false, "delete": true, "cpu_enforcement_policy": "auto", "memory_enforcement_policy": "auto", "override_cpus": null, "override_memory_mb": null, "override_storage_mb": null, "override_gpus": null, "override_tpu": null, "mounts": null, "extra_docker_compose": [], "kwargs": {}, "extra_allowed_hosts": [] }, "verifier": { "override_timeout_sec": null, "max_timeout_sec": null, "disable": false }, "artifacts": [], "extra_instruction_paths": [], "extra_instructions": [], "job_id": "17ec6786-d157-45a7-b294-66fcccf99f47", "source_trial": null }, "agent_info": { "name": "codex", "version": "0.157.1", "model_info": { "name": "gpt-6.1-sol", "provider": "openai" } }, "agent_result": { "n_input_tokens": 44070949, "n_cache_tokens": 43108608, "n_output_tokens": 230191, "cost_usd": null, "model_usage": { "gpt-6.1-sol": { "n_input_tokens": 44070949, "n_cache_tokens": 43108608, "n_output_tokens": 230191, "cost_usd": null } }, "rollout_details": null, "metadata": null }, "verifier_result": { "rewards": { "reward": 0.905 } }, "exception_info": null, "started_at": "2026-10-21T03:18:15.104213Z", "finished_at": "2026-10-21T07:38:50.240165Z", "environment_setup": { "started_at": "2026-10-21T03:18:15.108624Z", "finished_at": "2026-10-21T03:18:28.796719Z" }, "agent_setup": { "started_at": "2026-10-21T03:18:28.796739Z", "finished_at": "2026-10-21T03:18:32.497073Z" }, "agent_execution": { "started_at": "2026-10-21T03:18:32.512457Z", "finished_at": "2026-10-21T06:37:14.317046Z" }, "verifier": { "started_at": "2026-11-04T03:50:48.432027Z", "finished_at": "2026-11-04T04:59:35.213980Z" }, "step_results": null }, { "id": "09972a43-7880-4912-a4c9-22d53ba6cefc", "task_name": "android-bench/efflora__fossify-compose-screens", "trial_name": "t-93eb32dc-1", "trial_uri": "file:///jobs/trial", "task_id": { "path": "tasks/task" }, "source": null, "task_checksum": "", "config": { "task": { "path": "tasks/task", "git_url": null, "git_commit_id": null, "name": null, "ref": null, "overwrite": false, "download_dir": null, "source": null }, "trial_name": "t-93eb32dc-1", "trials_dir": "jobs", "install_only": false, "timeout_multiplier": 1.0, "agent_timeout_multiplier": null, "verifier_timeout_multiplier": null, "agent_setup_timeout_multiplier": null, "environment_build_timeout_multiplier": 2.0, "agent": { "name": "codex", "import_path": null, "model_name": "gpt-6.1-sol", "n_concurrent": null, "concurrency_group": null, "skills": [], "override_timeout_sec": null, "override_setup_timeout_sec": null, "max_timeout_sec": 129600.0, "resume_trajectory": false, "load_trajectory": null, "extra_allowed_hosts": [], "kwargs": { "reasoning_effort": "max" }, "env": { "OPENAI_API_KEY": "****", "OPENAI_BASE_URL": "https://api.openai.com/v1" }, "mcp_servers": [] }, "user_agent": null, "environment": { "type": "docker", "import_path": null, "force_build": false, "delete": true, "cpu_enforcement_policy": "auto", "memory_enforcement_policy": "auto", "override_cpus": null, "override_memory_mb": null, "override_storage_mb": null, "override_gpus": null, "override_tpu": null, "mounts": null, "extra_docker_compose": [], "kwargs": {}, "extra_allowed_hosts": [] }, "verifier": { "override_timeout_sec": null, "max_timeout_sec": null, "disable": false }, "artifacts": [], "extra_instruction_paths": [], "extra_instructions": [], "job_id": "17ec6786-d157-45a7-b294-66fcccf99f47", "source_trial": null }, "agent_info": { "name": "codex", "version": "0.157.1", "model_info": { "name": "gpt-6.1-sol", "provider": "openai" } }, "agent_result": { "n_input_tokens": 20232157, "n_cache_tokens": 19634304, "n_output_tokens": 148989, "cost_usd": null, "model_usage": { "gpt-6.1-sol": { "n_input_tokens": 20232157, "n_cache_tokens": 19634304, "n_output_tokens": 148989, "cost_usd": null } }, "rollout_details": null, "metadata": null }, "verifier_result": { "rewards": { "reward": 1.0 } }, "exception_info": null, "started_at": "2026-10-21T03:20:26.700667Z", "finished_at": "2026-10-21T05:31:39.964240Z", "environment_setup": { "started_at": "2026-10-21T03:20:26.705561Z", "finished_at": "2026-10-21T03:20:38.345380Z" }, "agent_setup": { "started_at": "2026-10-21T03:20:38.345400Z", "finished_at": "2026-10-21T03:20:42.050742Z" }, "agent_execution": { "started_at": "2026-10-21T03:20:42.072800Z", "finished_at": "2026-10-21T04:32:31.476968Z" }, "verifier": { "started_at": "2026-11-04T03:45:22.125553Z", "finished_at": "2026-11-04T04:57:10.309056Z" }, "step_results": null }, { "id": "529cb640-f142-4278-8f76-85f754706b00", "task_name": "android-bench/efflora__fossify-compose-screens", "trial_name": "t-b1850a65-1", "trial_uri": "file:///jobs/trial", "task_id": { "path": "tasks/task" }, "source": null, "task_checksum": "", "config": { "task": { "path": "tasks/task", "git_url": null, "git_commit_id": null, "name": null, "ref": null, "overwrite": false, "download_dir": null, "source": null }, "trial_name": "t-b1850a65-1", "trials_dir": "jobs", "install_only": false, "timeout_multiplier": 1.0, "agent_timeout_multiplier": null, "verifier_timeout_multiplier": null, "agent_setup_timeout_multiplier": null, "environment_build_timeout_multiplier": 2.0, "agent": { "name": "codex", "import_path": null, "model_name": "gpt-6.1-sol", "n_concurrent": null, "concurrency_group": null, "skills": [], "override_timeout_sec": null, "override_setup_timeout_sec": null, "max_timeout_sec": 129600.0, "resume_trajectory": false, "load_trajectory": null, "extra_allowed_hosts": [], "kwargs": { "reasoning_effort": "max" }, "env": { "OPENAI_API_KEY": "****", "OPENAI_BASE_URL": "https://api.openai.com/v1" }, "mcp_servers": [] }, "user_agent": null, "environment": { "type": "docker", "import_path": null, "force_build": false, "delete": true, "cpu_enforcement_policy": "auto", "memory_enforcement_policy": "auto", "override_cpus": null, "override_memory_mb": null, "override_storage_mb": null, "override_gpus": null, "override_tpu": null, "mounts": null, "extra_docker_compose": [], "kwargs": {}, "extra_allowed_hosts": [] }, "verifier": { "override_timeout_sec": null, "max_timeout_sec": null, "disable": false }, "artifacts": [], "extra_instruction_paths": [], "extra_instructions": [], "job_id": "17ec6786-d157-45a7-b294-66fcccf99f47", "source_trial": null }, "agent_info": { "name": "codex", "version": "0.157.1", "model_info": { "name": "gpt-6.1-sol", "provider": "openai" } }, "agent_result": { "n_input_tokens": 36485579, "n_cache_tokens": 35547776, "n_output_tokens": 120527, "cost_usd": null, "model_usage": { "gpt-6.1-sol": { "n_input_tokens": 36485579, "n_cache_tokens": 35547776, "n_output_tokens": 120527, "cost_usd": null } }, "rollout_details": null, "metadata": null }, "verifier_result": { "rewards": { "reward": 0.9812 } }, "exception_info": null, "started_at": "2026-10-21T03:23:20.880114Z", "finished_at": "2026-10-21T05:55:33.509512Z", "environment_setup": { "started_at": "2026-10-21T03:23:20.886004Z", "finished_at": "2026-10-21T03:27:38.253910Z" }, "agent_setup": { "started_at": "2026-10-21T03:27:38.253931Z", "finished_at": "2026-10-21T03:27:44.434003Z" }, "agent_execution": { "started_at": "2026-10-21T03:27:44.450659Z", "finished_at": "2026-10-21T04:57:09.824260Z" }, "verifier": { "started_at": "2026-11-04T03:50:02.517079Z", "finished_at": "2026-11-04T05:04:21.016997Z" }, "step_results": null }, { "id": "a65fbd71-bd81-44b2-b322-c8e25049f524", "task_name": "android-bench/efflora__fossify-compose-screens", "trial_name": "t-fbcaf14a-1", "trial_uri": "file:///jobs/trial", "task_id": { "path": "tasks/task" }, "source": null, "task_checksum": "", "config": { "task": { "path": "tasks/task", "git_url": null, "git_commit_id": null, "name": null, "ref": null, "overwrite": false, "download_dir": null, "source": null }, "trial_name": "t-fbcaf14a-1", "trials_dir": "jobs", "install_only": false, "timeout_multiplier": 1.0, "agent_timeout_multiplier": null, "verifier_timeout_multiplier": null, "agent_setup_timeout_multiplier": null, "environment_build_timeout_multiplier": 2.0, "agent": { "name": "codex", "import_path": null, "model_name": "gpt-6.1-sol", "n_concurrent": null, "concurrency_group": null, "skills": [], "override_timeout_sec": null, "override_setup_timeout_sec": null, "max_timeout_sec": 129600.0, "resume_trajectory": false, "load_trajectory": null, "extra_allowed_hosts": [], "kwargs": { "reasoning_effort": "max" }, "env": { "OPENAI_API_KEY": "****", "OPENAI_BASE_URL": "https://api.openai.com/v1" }, "mcp_servers": [] }, "user_agent": null, "environment": { "type": "docker", "import_path": null, "force_build": false, "delete": true, "cpu_enforcement_policy": "auto", "memory_enforcement_policy": "auto", "override_cpus": null, "override_memory_mb": null, "override_storage_mb": null, "override_gpus": null, "override_tpu": null, "mounts": null, "extra_docker_compose": [], "kwargs": {}, "extra_allowed_hosts": [] }, "verifier": { "override_timeout_sec": null, "max_timeout_sec": null, "disable": false }, "artifacts": [], "extra_instruction_paths": [], "extra_instructions": [], "job_id": "17ec6786-d157-45a7-b294-66fcccf99f47", "source_trial": null }, "agent_info": { "name": "codex", "version": "0.157.1", "model_info": { "name": "gpt-6.1-sol", "provider": "openai" } }, "agent_result": { "n_input_tokens": 28763941, "n_cache_tokens": 28211456, "n_output_tokens": 184066, "cost_usd": null, "model_usage": { "gpt-6.1-sol": { "n_input_tokens": 28784559, "n_cache_tokens": 28229248, "n_output_tokens": 184569, "cost_usd": null } }, "rollout_details": null, "metadata": null }, "verifier_result": { "rewards": { "reward": 0.9699 } }, "exception_info": null, "started_at": "2026-10-21T03:29:51.106432Z", "finished_at": "2026-10-21T06:06:33.590079Z", "environment_setup": { "started_at": "2026-10-21T03:29:51.111019Z", "finished_at": "2026-10-21T03:30:02.748855Z" }, "agent_setup": { "started_at": "2026-10-21T03:30:02.748878Z", "finished_at": "2026-10-21T03:30:06.459000Z" }, "agent_execution": { "started_at": "2026-10-21T03:30:06.484838Z", "finished_at": "2026-10-21T05:07:51.774088Z" }, "verifier": { "started_at": "2026-11-04T03:45:45.414298Z", "finished_at": "2026-11-04T04:56:04.969493Z" }, "step_results": null } ]}12345678910[ { "source": "/logs/artifacts", "destination": "artifacts/logs/artifacts", "type": "file", "status": "failed", "service": null, "exclude": [] }]1{"task":{"path":"tasks/task"},"trial_name":"t-3d3a02e2-1","trials_dir":"jobs","environment_build_timeout_multiplier":2.0,"agent":{"import_path":null,"model_name":"gpt-6.1-sol","max_timeout_sec":129600.0,"kwargs":{"reasoning_effort":"max"},"env":{"OPENAI_API_KEY":"****","OPENAI_BASE_URL":"https://api.openai.com/v1"},"name":"codex"},"environment":{"import_path":null,"kwargs":{},"type":"docker"},"job_id":"17ec6786-d157-45a7-b294-66fcccf99f47"}1{"id":"641db862-b9ab-4a3b-9a66-214e25b44cdc","task_name":"android-bench/efflora__fossify-compose-screens","trial_name":"t-3d3a02e2-1","trial_uri":"file:///jobs/trial","task_id":{"path":"tasks/task"},"source":null,"task_checksum":"","config":{"task":{"path":"tasks/task","git_url":null,"git_commit_id":null,"name":null,"ref":null,"overwrite":false,"download_dir":null,"source":null},"trial_name":"t-3d3a02e2-1","trials_dir":"jobs","install_only":false,"timeout_multiplier":1.0,"agent_timeout_multiplier":null,"verifier_timeout_multiplier":null,"agent_setup_timeout_multiplier":null,"environment_build_timeout_multiplier":2.0,"agent":{"name":"codex","import_path":null,"model_name":"gpt-6.1-sol","n_concurrent":null,"concurrency_group":null,"skills":[],"override_timeout_sec":null,"override_setup_timeout_sec":null,"max_timeout_sec":129600.0,"resume_trajectory":false,"load_trajectory":null,"extra_allowed_hosts":[],"kwargs":{"reasoning_effort":"max"},"env":{"OPENAI_API_KEY":"****","OPENAI_BASE_URL":"https://api.openai.com/v1"},"mcp_servers":[]},"user_agent":null,"environment":{"type":"docker","import_path":null,"force_build":false,"delete":true,"cpu_enforcement_policy":"auto","memory_enforcement_policy":"auto","override_cpus":null,"override_memory_mb":null,"override_storage_mb":null,"override_gpus":null,"override_tpu":null,"mounts":null,"extra_docker_compose":[],"kwargs":{},"extra_allowed_hosts":[]},"verifier":{"override_timeout_sec":null,"max_timeout_sec":null,"disable":false},"artifacts":[],"extra_instruction_paths":[],"extra_instructions":[],"job_id":"17ec6786-d157-45a7-b294-66fcccf99f47","source_trial":null},"agent_info":{"name":"codex","version":"0.157.1","model_info":{"name":"gpt-6.1-sol","provider":"openai"}},"agent_result":{"n_input_tokens":28118168,"n_cache_tokens":27522688,"n_output_tokens":170714,"cost_usd":null,"model_usage":{"gpt-6.1-sol":{"n_input_tokens":28248261,"n_cache_tokens":27648128,"n_output_tokens":174554,"cost_usd":null}},"rollout_details":null,"metadata":null},"verifier_result":{"rewards":{"reward":0.9583}},"exception_info":null,"started_at":"2026-10-21T04:39:49.904227Z","finished_at":"2026-10-21T07:08:12.756292Z","environment_setup":{"started_at":"2026-10-21T04:39:49.908076Z","finished_at":"2026-10-21T04:40:10.629605Z"},"agent_setup":{"started_at":"2026-10-21T04:40:10.629637Z","finished_at":"2026-10-21T04:40:14.357534Z"},"agent_execution":{"started_at":"2026-10-21T04:40:14.383110Z","finished_at":"2026-10-21T06:10:34.865317Z"},"verifier":{"started_at":"2026-11-04T03:45:22.240671Z","finished_at":"2026-11-04T04:52:03.475889Z"},"step_results":null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162{ "efflora__fossify-compose-screens": { "score": 0.0, "diagnostics": [ "pass_to_pass and fail_to_pass tests are not specified in the yaml, verifying all tests.", "Running test attempt: 1", "Test attempt 1: PASSED", "validation failed: visual#missing_screenshot_1" ], "status": "AGENT_FAILED_VALIDATION", "used_tokens": null, "exported_passed_tests": [], "exported_failed_tests": [], "partial_score": 0.9583, "pass_rate": 0.989, "validation_results": { "cheating#patch": 1.0, "functional#walk.archive_extract_to_chosen_folder": 1.0, "functional#walk.archive_folder_survives_rotation": 1.0, "functional#walk.archive_lists_entries": 1.0, "functional#walk.archive_password": 1.0, "functional#walk.archive_walk_into_folders_and_back": 1.0, "functional#walk.editor_edit_survives_process_death": 1.0, "functional#walk.editor_edit_survives_rotation": 1.0, "functional#walk.editor_menu_entries": 1.0, "functional#walk.editor_opens_file": 1.0, "functional#walk.editor_opens_from_other_apps": 1.0, "functional#walk.editor_save_as": 1.0, "functional#walk.editor_save_in_place": 1.0, "functional#walk.editor_search_bar": 1.0, "functional#walk.editor_search_survives_rotation": 1.0, "functional#walk.editor_unsaved_prompt_discard": 1.0, "functional#walk.editor_unsaved_prompt_save": 1.0, "functional#walk.favorites_add": 1.0, "functional#walk.favorites_empty_state": 1.0, "functional#walk.favorites_remove_by_selection": 1.0, "functional#walk.favorites_remove_from_row_menu": 1.0, "functional#walk.files_browse_and_breadcrumbs": 1.0, "functional#walk.files_create_new_file": 1.0, "functional#walk.files_create_new_folder": 1.0, "functional#walk.files_folder_restored_after_process_death": 1.0, "functional#walk.files_grid_and_list_view": 1.0, "functional#walk.files_pull_to_refresh_shows_external_changes": 1.0, "functional#walk.files_search_finds_nested_files": 1.0, "functional#walk.files_selection_compress": 1.0, "functional#walk.files_selection_copy_to_folder": 1.0, "functional#walk.files_selection_delete": 1.0, "functional#walk.files_selection_move_to_folder": 1.0, "functional#walk.files_selection_properties": 1.0, "functional#walk.files_selection_rename": 1.0, "functional#walk.files_selection_share": 1.0, "functional#walk.files_sort_by_size_descending": 1.0, "functional#walk.files_temporarily_show_hidden": 1.0, "functional#walk.font_size_dialog": 1.0, "functional#walk.settings_dialogs_and_links": 1.0, "functional#walk.settings_rows_complete": 1.0, "functional#walk.settings_switches_show_and_store_values": 1.0, "regression#walk.files_folder_item_counts": 1.0, "regression#walk.files_search_highlights_query": 1.0, "regression#walk.main_screen_unchanged": 1.0, "regression#walk.no_crash_recorded": 1.0, "regression#walk.update_keeps_settings": 1.0, "requirements#old_views_removed": 1.0, "requirements#screens_drawn_by_compose": 1.0, "requirements#uses_fossify_compose_blocks": 1.0, "requirements#compose_ui_tests_for_each_screen": 1.0, "constraint#lint_and_detekt_not_loosened": 1.0, "constraint#app_id_and_sdk_levels_unchanged": 1.0, "constraint#existing_dependency_versions_unchanged": 1.0, "constraint#all_flavors_build_debug_and_release": 1.0, "constraint#detekt_and_lint_pass": 1.0, "requirements#agent_unit_tests_pass": 1.0, "gate#migration_started": 1.0, "cheating#no_prebuilt_binaries": 1.0, "visual#settings": 1.0, "visual#editor": 1.0, "visual#favorites_empty": 1.0, "visual#archive": 1.0, "visual#files_list": 1.0, "visual#missing_screenshot_1": 0.0 }, "scoring_breakdown": { "base_score": 0.9583, "categories": { "functional": { "passed": 40, "total": 40, "weight": 0.45, "raw_weight": 0.45, "score": 1.0, "contribution": 0.45 }, "regression": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "requirements": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "visual": { "passed": 5, "total": 6, "weight": 0.25, "raw_weight": 0.25, "score": 0.8333, "contribution": 0.2083 }, "code_quality": { "passed": 0.68, "total": 1.0, "weight": 0.0, "raw_weight": 0.0, "score": 0.68, "contribution": 0.0, "violations_count": 4 } }, "multipliers_applied": [], "logs": [ "WARNING: Test 'Test removalThroughOverflowShowsEmptyStateAndPersists(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test nestedArchiveFolderSurvivesRotationAndBackTraversesParents(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteStillShowsConfirmationAndCancelKeepsTheFile(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test hidingGridFilenamesStillShowsFolderNamesAndSupportsSelection(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test showingHiddenFilesStillRequiresTheExistingPassword(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test passwordAndFolderAreRestoredWithoutAnotherPrompt(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test savedInstanceStateRestoresTheFolderInAFreshActivity(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test fontAndManagementRowsOpenTheirOriginalDialogs(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test createDocumentIntentUsesTheCheckButtonAndReturnsTheCurrentFolder(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test contentPickerFiltersMimeTypesAndConfirmsMultipleFilesWithoutFolders(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test emptyStateAddOpensPickerAndStoresTheChosenFolder(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test decompressActionStillUsesFolderPickerAndExtractsFiles(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test unchangedFilesAreNotCopiedIntoSavedStateAndDoNotBecomeDirtyAfterRestore(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressAndDragSelectsTheWholeFavoriteRange(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test selectionRemovesOnlySelectedFavorites(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test saveAsKeepsOriginalAndBackStillOffersSaveOrDiscard(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test externalContentIntentKeepsUnsavedTextInSavedInstanceState(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test listAndGridSupportLongPressDragRangeSelection(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test editorRetainsUnsavedTextCursorAndSearchAcrossRecreation(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test disabledRefreshAndSearchPlaceholdersRespectTheirConditions(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test olderAndroidHidesLanguageAndUntoggledEnglishRow(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test refreshAndCreateButtonUpdateTheFolder(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test settingsPreserveStoredChoicesAndConditionalRows(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchingScrollsAnOffScreenMatchIntoViewWithoutLosingTheQuery(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridShowsFilesAndCreateAction(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test realFilePathIntentAndCursorSelectionSurviveRecreation(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test filesNavigateAndRestoreFolderAndExposeSelectionActions(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored." ] }, "status_description": "Agent created a patch that fails the validate.sh", "code_quality_score": 0.68, "code_quality_violations": 4 }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121INFO | Android emulator version 37.2.12.0 (build_id 16428233) (CL:N/A)INFO | Graphics backend: gfxstreamINFO | Found systemPath /opt/android-sdk/system-images/android-36/google_apis/x86_64/INFO | Saving last run QEMU version for the AVD to 2INFO | Guest usage of host flag 'VulkanVirtualQueue' will be ignored.INFO | Guest GLES Driver: Auto (ext controls)ERROR | gpuChoiceBasedOnGpuOptions: Selected GPU option 'swiftshader_indirect' is not valid, switching to 'auto' mode.WARNING | Your GPU drivers may have a bug. Switching to software rendering.INFO | emuglConfig_init: vulkan_mode_selected:lavapipe gles_mode_selected:swangleINFO | Checking system compatibility:INFO | Checking: hasSufficientDiskSpaceINFO | Ok: Disk space requirements to run avd: `bench` are metINFO | Checking: hasSufficientHwGpuINFO | Ok: Hardware GPU compatibility checks are not requiredINFO | Checking: hasSufficientSystemINFO | Ok: System requirements to run avd: `bench` are metWARNING | File System is not ext4, disable QuickbootFileBacked featureWARNING | could not find /usr/share/zoneinfo/ directory. unable to determine host timezoneINFO | Storing crashdata in: /tmp/android-unknown/emu-crash-37.2.12.db, detection is enabled for process: 1092INFO | Initializing gfxstream backendINFO | startOpenglesRendererImpl: gpu infoINFO | INFO | initIcdPaths: ICD set to 'lavapipe', using Lavapipe ICDINFO | Setting ICD filenames for the loader = /opt/android-sdk/emulator/lib64/vulkan/lvp_icd.jsonINFO | SharedLibrary::open for [/opt/android-sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so]INFO | SharedLibrary::open for [/opt/android-sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so.1]INFO | SharedLibrary::open for [/opt/android-sdk/emulator/lib64/vulkan/libvulkan.so]INFO | Added library: /opt/android-sdk/emulator/lib64/vulkan/libvulkan.soINFO | Selecting Vulkan device: llvmpipe (LLVM 21.0.0, 256 bits), Version: 1.4.318INFO | Using Vulkan externalMemoryMode: OpaqueFd for VkEmulationINFO | Format VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16 does not support YCbCr sampler conversionINFO | SharedLibrary::open for [libX11]WARNING | Could not open libX11.so, try libX11.so.6INFO | SharedLibrary::open for [libX11.so.6]INFO | SharedLibrary::open for [libX11-xcb]WARNING | Could not open libX11-xcb.so, try libX11-xcb.so.1INFO | SharedLibrary::open for [libX11-xcb.so.1]INFO | Initializing VkEmulation features:INFO | glInteropSupported: falseINFO | useDeferredCommands: trueINFO | createResourceWithRequirements: trueINFO | useVulkanComposition: falseINFO | useVulkanNativeSwapchain: falseINFO | enable guestRenderDoc: falseINFO | ASTC LDR emulation mode: GpuINFO | enable ETC2 emulation: trueINFO | enable Ycbcr emulation: falseINFO | guestVulkanOnly: falseINFO | useDedicatedAllocations: falseINFO | guestVulkanMaxApiVersion: 1.3.0INFO | enableProtectedMemoryEmulation: falseINFO | Graphics Adapter Vendor Google (Google Inc.)INFO | Graphics Adapter Android Emulator OpenGL ES Translator (Google SwiftShader)INFO | Graphics API Version OpenGL ES 3.0 (OpenGL ES 3.0 SwiftShader 4.0.0.1)INFO | Graphics API Extensions GL_OES_EGL_sync GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_packed_depth_stencil GL_OES_vertex_half_float GL_OES_standard_derivatives GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_texture_format_BGRA8888 GL_APPLE_texture_format_BGRA8888 INFO | Graphics Device Extensions N/AINFO | Disabling sparse binding feature supportERROR | Setting read-only feature 'GLAsyncSwap' to '0'INFO | Feature 'GLAsyncSwap' (50) is overridden to 'disabled'INFO | Sending adb public key [QAAAAFnxLFkXuVVgko9GChSm0I1E0upYxvjDdNgBTurYF0JJ63WXp1KaXZfd5e5Yp9Sf4CkP6lAnEl7k/AS/x3qvOqZkh0SFUQZLjTLUVWixofnLkp4byPmEDK29PsiMLCFsM5QUN36oER5uSDSntJBrUhHnrNAqvvqfyUbrlVB6iZy0vIy5YI3BoMb4GR/GQ5pDAqlGNdG4+FkeRSK3joG8FqZY9y7w4nn/+vQuUVAfEmKEeaIND4Dwe1pz/YzqWvUw1Vd3TeL5ii5OaWoG6p76gmrBHsFH0RblH3qkXJ2e6KXKxSnyS1cDQHpr+poQ62EiZi5MtaNM4o1N9qXJnmQRpCwF5bu5usRMNytcbxTGDnBcp1QinijOM6CYq/hHkH+3jpIz22YM+4zwc36XdMBLQmyB/8fzBMjoAow+PlWoJLEhKw5IOFQK8xYtpsUNv83nNXGPD9QRbWon7hgJOjNKBmUwm0uTW/Z56JDsQmTrNod0p6G5zA23oD99P6sDmRDroJysnVqv4v/juZSCOTvLilWFYa8ApCq8SnhYWn1KFUPIQPA//XORxZCjgQ7vMjUCWIs+RHenTLJfeZcvV2/0AFL7AvakXhlZFmJZqn9K/4H/erlw1mBIBCj4jK1v9wBCce6NrwMyBf6BFcpQk17IkxvWSCsW9h8Si2XiyV5s8CXMY2UHTQEAAQA= @unknown]INFO | Userspace boot properties:INFO | androidboot.boot_devices=pci0000:00/0000:00:03.0 pci0000:00/0000:00:06.0INFO | androidboot.dalvik.vm.heapsize=576mINFO | androidboot.debug.hwui.renderer=skiaglINFO | androidboot.hardware=ranchuINFO | androidboot.hardware.gltransport=pipeINFO | androidboot.hardware.vulkan=ranchuINFO | androidboot.logcat=*:VINFO | androidboot.opengles.version=196608INFO | androidboot.qemu=1INFO | androidboot.qemu.adb.pubkey=QAAAAFnxLFkXuVVgko9GChSm0I1E0upYxvjDdNgBTurYF0JJ63WXp1KaXZfd5e5Yp9Sf4CkP6lAnEl7k/AS/x3qvOqZkh0SFUQZLjTLUVWixofnLkp4byPmEDK29PsiMLCFsM5QUN36oER5uSDSntJBrUhHnrNAqvvqfyUbrlVB6iZy0vIy5YI3BoMb4GR/GQ5pDAqlGNdG4+FkeRSK3joG8FqZY9y7w4nn/+vQuUVAfEmKEeaIND4Dwe1pz/YzqWvUw1Vd3TeL5ii5OaWoG6p76gmrBHsFH0RblH3qkXJ2e6KXKxSnyS1cDQHpr+poQ62EiZi5MtaNM4o1N9qXJnmQRpCwF5bu5usRMNytcbxTGDnBcp1QinijOM6CYq/hHkH+3jpIz22YM+4zwc36XdMBLQmyB/8fzBMjoAow+PlWoJLEhKw5IOFQK8xYtpsUNv83nNXGPD9QRbWon7hgJOjNKBmUwm0uTW/Z56JDsQmTrNod0p6G5zA23oD99P6sDmRDroJysnVqv4v/juZSCOTvLilWFYa8ApCq8SnhYWn1KFUPIQPA//XORxZCjgQ7vMjUCWIs+RHenTLJfeZcvV2/0AFL7AvakXhlZFmJZqn9K/4H/erlw1mBIBCj4jK1v9wBCce6NrwMyBf6BFcpQk17IkxvWSCsW9h8Si2XiyV5s8CXMY2UHTQEAAQA= @unknownINFO | androidboot.qemu.avd_name=benchINFO | androidboot.qemu.camera_hq_edge_processing=0INFO | androidboot.qemu.camera_protocol_ver=1INFO | androidboot.qemu.cpuvulkan.version=4206592INFO | androidboot.qemu.gltransport.drawFlushInterval=800INFO | androidboot.qemu.gltransport.name=pipeINFO | androidboot.qemu.hwcodec.avcdec=2INFO | androidboot.qemu.hwcodec.hevcdec=2INFO | androidboot.qemu.hwcodec.vpxdec=2INFO | androidboot.qemu.settings.system.screen_off_timeout=2147483647INFO | androidboot.qemu.skin=1080x2400INFO | androidboot.qemu.virtiowifi=1INFO | androidboot.qemu.vsync=60INFO | androidboot.serialno=EMULATOR37X2X12X0INFO | androidboot.vbmeta.digest=7466b5c28e6a3e1427b22ed2c317c6c7066294bde838d4d5243cce5d37992bd5INFO | androidboot.vbmeta.hash_alg=sha256INFO | androidboot.vbmeta.size=6848INFO | androidboot.veritymode=enforcingWARNING: cannnot unmap ptr 0x7fa5e6a01000 as it is in the protected range from 0x7fa526a00000 to 0x7fa5e6c00000Could not init `pa' audio driverINFO | Monitoring duration of emulator setup.WARNING | could not find /usr/share/zoneinfo/ directory. unable to determine host timezoneWARNING | Using fallback path for the emulator registration directory.WARNING | The emulator now requires a signed jwt token for gRPC access! Use the -grpc flag if you really want an open unprotected grpc portINFO | Using security allow list from: /opt/android-sdk/emulator/lib/emulator_access.jsonINFO | The active JSON Web Key Sets can be found here: /root/.android/avd/running/1092/jwks/a32338d6-d033-49b5-bdfe-2145415ad513/active.jwkINFO | Scanning /root/.android/avd/running/1092/jwks/a32338d6-d033-49b5-bdfe-2145415ad513 for jwk keys.INFO | Started GRPC server at 127.0.0.1:8554, security: Local, auth: +tokenWARNING | Using fallback path for the emulator registration directory.INFO | Advertising in: /root/.android/avd/running/pid_1092.iniINFO | Activated packet streamer for uwb emulationINFO | Successfully initialized netsim WiFiINFO | Activated packet streamer for bluetooth emulationINFO | Setting display: 0 configuration to: 1080x2400, dpi: 420x420 INFO | setDisplayActiveConfig: id:0, 1080x2400INFO | emulatorSetupEnvironment: Environment scene is not requiredUSER_INFO | Emulator is performing a full startup. This may take upto two minutes, or more.WARNING | Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.WARNING | Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.INFO | Boot completed in 28947 msINFO | Increasing screen off timeout, logcat buffer size to 2M.INFO | Created VkInstance:0x563553937000 for application:'' engine:''.INFO | Destroyed VkInstance:0x563553937000 for application:'' engine:''.INFO | Wait for emulator (pid 1092) 20 seconds to shutdown gracefully before kill;you can set environment variable ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL(in seconds) to change the default value (20 seconds)
USER_INFO | Snapshots have been disabled by the user, save request is ignored.INFO | Saving snapshot 'default_boot' took 0 msERROR | stop: Not implementedpulseaudio: Failed to initialize PA contextINFO | removeAllWARNING | Netsim Wifi dns:///localhost:32815 is gone due to Stream removed (CANCELLED)1234567891011[ { "phase": "verifier-generated", "source": "/logs/artifacts", "service": "main", "type": "directory", "exclude": [], "status": "ok", "destination": "artifacts/generated/logs/artifacts" }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preCoreDebugBuild UP-TO-DATE> Task :app:mergeCoreDebugNativeDebugMetadata NO-SOURCE> Task :app:dataBindingMergeDependencyArtifactsCoreDebug> Task :app:extractCoreDebugSupportedLocales> Task :app:mapCoreDebugSourceSetPaths> Task :app:generateCoreDebugResources> Task :app:generateCoreDebugLocaleConfig> Task :app:generateCoreDebugBuildConfig> Task :app:packageCoreDebugResources> Task :app:processCoreDebugNavigationResources> Task :app:generateCoreDebugAssets UP-TO-DATE> Task :app:javaPreCompileCoreDebug> Task :app:mergeCoreDebugResources> Task :app:parseCoreDebugLocalResources> Task :app:mergeCoreDebugAssets> Task :app:dataBindingGenBaseClassesCoreDebug> Task :app:compressCoreDebugAssets> Task :app:generateCoreDebugRFile> Task :app:generateCoreDebugGlobalSynthetics> Task :app:desugarCoreDebugFileDependencies> Task :app:checkCoreDebugDuplicateClasses> Task :app:checkCoreDebugAarMetadata> Task :app:compileCoreDebugNavigationResources> Task :app:mergeLibDexCoreDebug> Task :app:createCoreDebugCompatibleScreenManifests> Task :app:extractDeepLinksCoreDebug
> Task :app:processCoreDebugMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processCoreDebugManifest> Task :app:mergeCoreDebugJniLibFolders> Task :app:processCoreDebugManifestForPackage> Task :app:mergeCoreDebugNativeLibs
> Task :app:stripCoreDebugDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:validateSigningCoreDebug> Task :app:writeCoreDebugAppMetadata> Task :app:writeCoreDebugSigningConfigVersions> Task :app:processCoreDebugResources> Task :app:mergeExtDexCoreDebug
> Task :app:compileCoreDebugKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileCoreDebugJavaWithJavac> Task :app:processCoreDebugJavaRes> Task :app:mergeCoreDebugJavaResource> Task :app:dexBuilderCoreDebug> Task :app:mergeProjectDexCoreDebug> Task :app:packageCoreDebug> Task :app:createCoreDebugApkListingFileRedirect> Task :app:assembleCoreDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 34s42 actionable tasks: 42 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preCoreReleaseBuild UP-TO-DATE> Task :app:mergeCoreReleaseJniLibFolders> Task :app:mergeCoreReleaseNativeLibs
> Task :app:stripCoreReleaseDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:checkCoreReleaseDuplicateClasses> Task :app:dataBindingMergeDependencyArtifactsCoreRelease> Task :app:extractCoreReleaseNativeSymbolTables> Task :app:extractCoreReleaseSupportedLocales> Task :app:mergeCoreReleaseNativeDebugMetadata NO-SOURCE> Task :app:mapCoreReleaseSourceSetPaths> Task :app:generateCoreReleaseResources> Task :app:generateCoreReleaseLocaleConfig> Task :app:generateCoreReleaseBuildConfig> Task :app:packageCoreReleaseResources> Task :app:processCoreReleaseNavigationResources> Task :app:parseCoreReleaseLocalResources> Task :app:javaPreCompileCoreRelease> Task :app:mergeCoreReleaseArtProfile> Task :app:mergeCoreReleaseResources> Task :app:checkCoreReleaseAarMetadata> Task :app:generateCoreReleaseRFile> Task :app:dataBindingGenBaseClassesCoreRelease> Task :app:compileCoreReleaseNavigationResources> Task :app:createCoreReleaseCompatibleScreenManifests> Task :app:extractDeepLinksCoreRelease
> Task :app:processCoreReleaseMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processCoreReleaseManifest> Task :app:extractProguardFiles> Task :app:mergeCoreReleaseStartupProfile> Task :app:generateCoreReleaseAssets UP-TO-DATE> Task :app:mergeCoreReleaseAssets> Task :app:compressCoreReleaseAssets> Task :app:extractCoreReleaseVersionControlInfo> Task :app:writeCoreReleaseAppMetadata> Task :app:writeCoreReleaseSigningConfigVersions> Task :app:processCoreReleaseManifestForPackage> Task :app:processCoreReleaseResources> Task :app:optimizeCoreReleaseResources
> Task :app:compileCoreReleaseKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileCoreReleaseJavaWithJavac> Task :app:mergeCoreReleaseGeneratedProguardFiles> Task :app:processCoreReleaseJavaRes> Task :app:expandCoreReleaseArtProfileWildcards> Task :app:mergeCoreReleaseJavaResource> Task :app:produceCoreReleaseComposeMapping> Task :app:reportCoreReleaseComposeMappingErrors> Task :app:minifyCoreReleaseWithR8> Task :app:mergeCoreReleaseComposeMapping> Task :app:compileCoreReleaseArtProfile> Task :app:packageCoreRelease> Task :app:createCoreReleaseApkListingFileRedirect> Task :app:assembleCoreRelease
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 24s48 actionable tasks: 48 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preFossReleaseBuild UP-TO-DATE> Task :app:mergeFossReleaseJniLibFolders> Task :app:mergeFossReleaseNativeLibs> Task :app:checkFossReleaseDuplicateClasses
> Task :app:stripFossReleaseDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:dataBindingMergeDependencyArtifactsFossRelease> Task :app:extractFossReleaseNativeSymbolTables> Task :app:extractFossReleaseSupportedLocales> Task :app:mergeFossReleaseNativeDebugMetadata NO-SOURCE> Task :app:mapFossReleaseSourceSetPaths> Task :app:generateFossReleaseResources> Task :app:generateFossReleaseLocaleConfig> Task :app:generateFossReleaseBuildConfig> Task :app:packageFossReleaseResources> Task :app:processFossReleaseNavigationResources> Task :app:javaPreCompileFossRelease> Task :app:parseFossReleaseLocalResources> Task :app:mergeFossReleaseResources> Task :app:mergeFossReleaseArtProfile> Task :app:dataBindingGenBaseClassesFossRelease> Task :app:checkFossReleaseAarMetadata> Task :app:compileFossReleaseNavigationResources> Task :app:createFossReleaseCompatibleScreenManifests> Task :app:extractDeepLinksFossRelease> Task :app:generateFossReleaseRFile
> Task :app:processFossReleaseMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processFossReleaseManifest> Task :app:extractProguardFiles UP-TO-DATE> Task :app:mergeFossReleaseStartupProfile> Task :app:generateFossReleaseAssets UP-TO-DATE> Task :app:mergeFossReleaseAssets> Task :app:compressFossReleaseAssets> Task :app:extractFossReleaseVersionControlInfo> Task :app:writeFossReleaseAppMetadata> Task :app:writeFossReleaseSigningConfigVersions> Task :app:processFossReleaseManifestForPackage> Task :app:processFossReleaseResources> Task :app:optimizeFossReleaseResources
> Task :app:compileFossReleaseKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileFossReleaseJavaWithJavac> Task :app:mergeFossReleaseGeneratedProguardFiles> Task :app:processFossReleaseJavaRes> Task :app:expandFossReleaseArtProfileWildcards> Task :app:mergeFossReleaseJavaResource> Task :app:produceFossReleaseComposeMapping> Task :app:reportFossReleaseComposeMappingErrors> Task :app:minifyFossReleaseWithR8> Task :app:mergeFossReleaseComposeMapping> Task :app:compileFossReleaseArtProfile> Task :app:packageFossRelease> Task :app:createFossReleaseApkListingFileRedirect> Task :app:assembleFossRelease
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 26s48 actionable tasks: 47 executed, 1 up-to-dateConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preGplayDebugBuild UP-TO-DATE> Task :app:mergeGplayDebugNativeDebugMetadata NO-SOURCE> Task :app:dataBindingMergeDependencyArtifactsGplayDebug> Task :app:extractGplayDebugSupportedLocales> Task :app:mapGplayDebugSourceSetPaths> Task :app:generateGplayDebugResources> Task :app:generateGplayDebugLocaleConfig> Task :app:generateGplayDebugBuildConfig> Task :app:packageGplayDebugResources> Task :app:processGplayDebugNavigationResources> Task :app:generateGplayDebugAssets UP-TO-DATE> Task :app:javaPreCompileGplayDebug> Task :app:parseGplayDebugLocalResources> Task :app:mergeGplayDebugAssets> Task :app:compressGplayDebugAssets> Task :app:mergeGplayDebugResources> Task :app:generateGplayDebugRFile> Task :app:generateGplayDebugGlobalSynthetics> Task :app:dataBindingGenBaseClassesGplayDebug> Task :app:desugarGplayDebugFileDependencies> Task :app:checkGplayDebugDuplicateClasses> Task :app:checkGplayDebugAarMetadata> Task :app:mergeLibDexGplayDebug> Task :app:compileGplayDebugNavigationResources> Task :app:createGplayDebugCompatibleScreenManifests> Task :app:extractDeepLinksGplayDebug
> Task :app:processGplayDebugMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processGplayDebugManifest> Task :app:mergeGplayDebugJniLibFolders> Task :app:processGplayDebugManifestForPackage> Task :app:mergeGplayDebugNativeLibs
> Task :app:stripGplayDebugDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:validateSigningGplayDebug> Task :app:writeGplayDebugAppMetadata> Task :app:writeGplayDebugSigningConfigVersions> Task :app:processGplayDebugResources> Task :app:mergeExtDexGplayDebug
> Task :app:compileGplayDebugKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileGplayDebugJavaWithJavac> Task :app:processGplayDebugJavaRes> Task :app:mergeGplayDebugJavaResource> Task :app:dexBuilderGplayDebug> Task :app:mergeProjectDexGplayDebug> Task :app:packageGplayDebug> Task :app:createGplayDebugApkListingFileRedirect> Task :app:assembleGplayDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 33s42 actionable tasks: 42 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preGplayReleaseBuild UP-TO-DATE> Task :app:mergeGplayReleaseJniLibFolders> Task :app:mergeGplayReleaseNativeLibs> Task :app:checkGplayReleaseDuplicateClasses
> Task :app:stripGplayReleaseDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:dataBindingMergeDependencyArtifactsGplayRelease> Task :app:extractGplayReleaseNativeSymbolTables> Task :app:extractGplayReleaseSupportedLocales> Task :app:mergeGplayReleaseNativeDebugMetadata NO-SOURCE> Task :app:mapGplayReleaseSourceSetPaths> Task :app:generateGplayReleaseResources> Task :app:generateGplayReleaseLocaleConfig> Task :app:generateGplayReleaseBuildConfig> Task :app:packageGplayReleaseResources> Task :app:processGplayReleaseNavigationResources> Task :app:javaPreCompileGplayRelease> Task :app:mergeGplayReleaseResources> Task :app:mergeGplayReleaseArtProfile> Task :app:parseGplayReleaseLocalResources> Task :app:dataBindingGenBaseClassesGplayRelease> Task :app:checkGplayReleaseAarMetadata> Task :app:compileGplayReleaseNavigationResources> Task :app:createGplayReleaseCompatibleScreenManifests> Task :app:extractDeepLinksGplayRelease> Task :app:generateGplayReleaseRFile
> Task :app:processGplayReleaseMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processGplayReleaseManifest> Task :app:extractProguardFiles UP-TO-DATE> Task :app:mergeGplayReleaseStartupProfile> Task :app:generateGplayReleaseAssets UP-TO-DATE> Task :app:mergeGplayReleaseAssets> Task :app:compressGplayReleaseAssets> Task :app:extractGplayReleaseVersionControlInfo> Task :app:writeGplayReleaseAppMetadata> Task :app:writeGplayReleaseSigningConfigVersions> Task :app:processGplayReleaseManifestForPackage> Task :app:processGplayReleaseResources> Task :app:optimizeGplayReleaseResources
> Task :app:compileGplayReleaseKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileGplayReleaseJavaWithJavac> Task :app:mergeGplayReleaseGeneratedProguardFiles> Task :app:processGplayReleaseJavaRes> Task :app:expandGplayReleaseArtProfileWildcards> Task :app:mergeGplayReleaseJavaResource> Task :app:produceGplayReleaseComposeMapping> Task :app:reportGplayReleaseComposeMappingErrors> Task :app:minifyGplayReleaseWithR8> Task :app:mergeGplayReleaseComposeMapping> Task :app:compileGplayReleaseArtProfile> Task :app:packageGplayRelease> Task :app:createGplayReleaseApkListingFileRedirect> Task :app:assembleGplayRelease
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 24s48 actionable tasks: 47 executed, 1 up-to-dateConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html12345{ "score": 0.68, "violations_count": 4, "reasoning": "The patch modernizes multiple activities and components with Jetpack Compose while adding comprehensive Robolectric tests. However, it violates several standards from the Code Quality Checklist:\n\n1. **Defensive Programming & Null Safety (Not-null assertion operator `!!`)**:\n - In `FileItem.kt`, `AppCompatResources.getDrawable(context, R.drawable.ic_file_generic)!!` uses `!!` instead of safe fallback or `checkNotNull`/`requireNotNull`.\n - In `FilesScreen.kt` (`FileSelectionBar`), `action.icon!!` uses `!!` (which could crash if an action with `ifRoom = true` has a null icon, as `promoted` actions are not filtered for non-null icons).\n - In `FileShortcutOperations.kt`, `ResourcesCompat.getDrawable(..., activity.theme)!!` is used twice with `!!`.\n\n2. **Concurrency & Threading (Monotonic Time for intervals)**:\n - In `ReadTextActivity.kt`, `System.currentTimeMillis() - lastSavePromptTS > SAVE_DISCARD_PROMPT_INTERVAL` and `lastSavePromptTS = System.currentTimeMillis()` are used to measure the save/discard prompt elapsed interval. The checklist specifies using `SystemClock.elapsedRealtime()` because `currentTimeMillis()` is vulnerable to clock changes/drift.\n\n3. **Function Signatures & Naming (Parameter Ordering)**:\n - In `FileManagerScaffold.kt`, the mandatory parameter `content: @Composable ColumnScope.() -> Unit` is placed after optional parameters (`modifier: Modifier = Modifier` and `actions: @Composable RowScope.() -> Unit = {}`), violating the rule: 'Place mandatory parameters before optional parameters'.\n\n4. **Function Signatures & Naming (Boolean Traps)**:\n - Unnamed boolean arguments are passed in function calls violating the boolean trap rule, for example: `SearchPlaceholder(true)` / `SearchPlaceholder(false)` in `FilesScreen.kt`, `state.nextMatch(true)` / `state.nextMatch(false)` in `EditorScreen.kt`, and `visibility(files, true)` / `transfers.copyMoveTo(files, true)` in `FileSelectionOperations.kt`."}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162{ "efflora__fossify-compose-screens": { "score": 0.0, "diagnostics": [ "pass_to_pass and fail_to_pass tests are not specified in the yaml, verifying all tests.", "Running test attempt: 1", "Test attempt 1: PASSED", "validation failed: visual#missing_screenshot_1" ], "status": "AGENT_FAILED_VALIDATION", "used_tokens": null, "exported_passed_tests": [], "exported_failed_tests": [], "partial_score": 0.9583, "pass_rate": 0.989, "validation_results": { "cheating#patch": 1.0, "functional#walk.archive_extract_to_chosen_folder": 1.0, "functional#walk.archive_folder_survives_rotation": 1.0, "functional#walk.archive_lists_entries": 1.0, "functional#walk.archive_password": 1.0, "functional#walk.archive_walk_into_folders_and_back": 1.0, "functional#walk.editor_edit_survives_process_death": 1.0, "functional#walk.editor_edit_survives_rotation": 1.0, "functional#walk.editor_menu_entries": 1.0, "functional#walk.editor_opens_file": 1.0, "functional#walk.editor_opens_from_other_apps": 1.0, "functional#walk.editor_save_as": 1.0, "functional#walk.editor_save_in_place": 1.0, "functional#walk.editor_search_bar": 1.0, "functional#walk.editor_search_survives_rotation": 1.0, "functional#walk.editor_unsaved_prompt_discard": 1.0, "functional#walk.editor_unsaved_prompt_save": 1.0, "functional#walk.favorites_add": 1.0, "functional#walk.favorites_empty_state": 1.0, "functional#walk.favorites_remove_by_selection": 1.0, "functional#walk.favorites_remove_from_row_menu": 1.0, "functional#walk.files_browse_and_breadcrumbs": 1.0, "functional#walk.files_create_new_file": 1.0, "functional#walk.files_create_new_folder": 1.0, "functional#walk.files_folder_restored_after_process_death": 1.0, "functional#walk.files_grid_and_list_view": 1.0, "functional#walk.files_pull_to_refresh_shows_external_changes": 1.0, "functional#walk.files_search_finds_nested_files": 1.0, "functional#walk.files_selection_compress": 1.0, "functional#walk.files_selection_copy_to_folder": 1.0, "functional#walk.files_selection_delete": 1.0, "functional#walk.files_selection_move_to_folder": 1.0, "functional#walk.files_selection_properties": 1.0, "functional#walk.files_selection_rename": 1.0, "functional#walk.files_selection_share": 1.0, "functional#walk.files_sort_by_size_descending": 1.0, "functional#walk.files_temporarily_show_hidden": 1.0, "functional#walk.font_size_dialog": 1.0, "functional#walk.settings_dialogs_and_links": 1.0, "functional#walk.settings_rows_complete": 1.0, "functional#walk.settings_switches_show_and_store_values": 1.0, "regression#walk.files_folder_item_counts": 1.0, "regression#walk.files_search_highlights_query": 1.0, "regression#walk.main_screen_unchanged": 1.0, "regression#walk.no_crash_recorded": 1.0, "regression#walk.update_keeps_settings": 1.0, "requirements#old_views_removed": 1.0, "requirements#screens_drawn_by_compose": 1.0, "requirements#uses_fossify_compose_blocks": 1.0, "requirements#compose_ui_tests_for_each_screen": 1.0, "constraint#lint_and_detekt_not_loosened": 1.0, "constraint#app_id_and_sdk_levels_unchanged": 1.0, "constraint#existing_dependency_versions_unchanged": 1.0, "constraint#all_flavors_build_debug_and_release": 1.0, "constraint#detekt_and_lint_pass": 1.0, "requirements#agent_unit_tests_pass": 1.0, "gate#migration_started": 1.0, "cheating#no_prebuilt_binaries": 1.0, "visual#settings": 1.0, "visual#editor": 1.0, "visual#favorites_empty": 1.0, "visual#archive": 1.0, "visual#files_list": 1.0, "visual#missing_screenshot_1": 0.0 }, "scoring_breakdown": { "base_score": 0.9583, "categories": { "functional": { "passed": 40, "total": 40, "weight": 0.45, "raw_weight": 0.45, "score": 1.0, "contribution": 0.45 }, "regression": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "requirements": { "passed": 5, "total": 5, "weight": 0.15, "raw_weight": 0.15, "score": 1.0, "contribution": 0.15 }, "visual": { "passed": 5, "total": 6, "weight": 0.25, "raw_weight": 0.25, "score": 0.8333, "contribution": 0.2083 }, "code_quality": { "passed": 0.68, "total": 1.0, "weight": 0.0, "raw_weight": 0.0, "score": 0.68, "contribution": 0.0, "violations_count": 4 } }, "multipliers_applied": [], "logs": [ "WARNING: Test 'Test removalThroughOverflowShowsEmptyStateAndPersists(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test nestedArchiveFolderSurvivesRotationAndBackTraversesParents(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test deleteStillShowsConfirmationAndCancelKeepsTheFile(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test hidingGridFilenamesStillShowsFolderNamesAndSupportsSelection(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test showingHiddenFilesStillRequiresTheExistingPassword(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test passwordAndFolderAreRestoredWithoutAnotherPrompt(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test savedInstanceStateRestoresTheFolderInAFreshActivity(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test fontAndManagementRowsOpenTheirOriginalDialogs(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test createDocumentIntentUsesTheCheckButtonAndReturnsTheCurrentFolder(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test contentPickerFiltersMimeTypesAndConfirmsMultipleFilesWithoutFolders(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test emptyStateAddOpensPickerAndStoresTheChosenFolder(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test decompressActionStillUsesFolderPickerAndExtractsFiles(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test unchangedFilesAreNotCopiedIntoSavedStateAndDoNotBecomeDirtyAfterRestore(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test longPressAndDragSelectsTheWholeFavoriteRange(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test selectionRemovesOnlySelectedFavorites(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test saveAsKeepsOriginalAndBackStillOffersSaveOrDiscard(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test externalContentIntentKeepsUnsavedTextInSavedInstanceState(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test listAndGridSupportLongPressDragRangeSelection(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test editorRetainsUnsavedTextCursorAndSearchAcrossRecreation(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test disabledRefreshAndSearchPlaceholdersRespectTheirConditions(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test olderAndroidHidesLanguageAndUntoggledEnglishRow(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test refreshAndCreateButtonUpdateTheFolder(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test settingsPreserveStoredChoicesAndConditionalRows(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test searchingScrollsAnOffScreenMatchIntoViewWithoutLosingTheQuery(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test gridShowsFilesAndCreateAction(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test realFilePathIntentAndCursorSelectionSurviveRecreation(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.", "WARNING: Test 'Test filesNavigateAndRestoreFolderAndExposeSelectionActions(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored." ] }, "status_description": "Agent created a patch that fails the validate.sh", "code_quality_score": 0.68, "code_quality_violations": 4 }}1234567891011121314151617181920212223242526To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:detekt............................................................
60 kotlin files were analyzed.
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 10s1 actionable task: 1 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html1emulator ready123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683Config file not found at /tests/verifier/config.json, using defaults.2026-11-04 03:45:47,129 - __main__ - INFO - keep_tests enabled (args.keep_tests=True, open_test.patch exists=False)2026-11-04 03:45:47,130 - benchmark - WARNING - Test patch file for instance 'efflora__fossify-compose-screens' not found at: /tests/test.patch2026-11-04 03:45:47,130 - __main__ - INFO - Successfully created BenchmarkTask object for: efflora__fossify-compose-screens2026-11-04 03:45:47,130 - __main__ - INFO - Instance efflora__fossify-compose-screens: Using keep_tests=True2026-11-04 03:45:47,130 - __main__ - INFO - ======================================================================2026-11-04 03:45:47,130 - __main__ - INFO - STARTING BENCHMARK TASK: efflora__fossify-compose-screens2026-11-04 03:45:47,130 - __main__ - INFO - Repository: https://github.com/FossifyOrg/File-Manager.git2026-11-04 03:45:47,130 - __main__ - INFO - Work directory: /workspace/testbed2026-11-04 03:45:47,130 - __main__ - INFO - Patch file: None2026-11-04 03:45:47,130 - __main__ - INFO - Test commands: ['./gradlew :app:testFossDebugUnitTest --offline --console=plain --no-daemon -Dorg.gradle.jvmargs=-Xmx8g', 'bash /tests/run_connected.sh connectedFossDebugAndroidTest']2026-11-04 03:45:47,130 - __main__ - INFO - Keep tests: True2026-11-04 03:45:47,130 - __main__ - INFO - ======================================================================2026-11-04 03:45:47,130 - __main__ - INFO - Instance efflora__fossify-compose-screens: Setting JAVA_HOME to: /usr/lib/jvm/java-21-openjdk-amd642026-11-04 03:45:47,130 - __main__ - INFO - Instance efflora__fossify-compose-screens: Using working directory: /workspace/testbed2026-11-04 03:45:47,130 - root - INFO - Running command: pwd && ls, cwd=/workspace/testbedUnstaged changes after reset:M CONTRIBUTING.mdM app/build.gradle.ktsM app/src/main/kotlin/org/fossify/filemanager/activities/DecompressActivity.ktM app/src/main/kotlin/org/fossify/filemanager/activities/FavoritesActivity.ktM app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.ktM app/src/main/kotlin/org/fossify/filemanager/activities/ReadTextActivity.ktM app/src/main/kotlin/org/fossify/filemanager/activities/SettingsActivity.ktD app/src/main/kotlin/org/fossify/filemanager/adapters/DecompressItemsAdapter.ktD app/src/main/kotlin/org/fossify/filemanager/adapters/ManageFavoritesAdapter.ktM app/src/main/kotlin/org/fossify/filemanager/adapters/ViewPagerAdapter.ktM app/src/main/kotlin/org/fossify/filemanager/fragments/ItemsFragment.ktM app/src/main/kotlin/org/fossify/filemanager/fragments/MyViewPagerFragment.ktD app/src/main/kotlin/org/fossify/filemanager/views/GestureEditText.ktD app/src/main/res/layout/activity_decompress.xmlD app/src/main/res/layout/activity_favorites.xmlD app/src/main/res/layout/activity_read_text.xmlD app/src/main/res/layout/activity_settings.xmlD app/src/main/res/layout/item_decompression_list_file_dir.xmlD app/src/main/res/layout/item_manage_favorite.xmlD app/src/main/res/layout/items_fragment.xmlD app/src/main/res/menu/menu_decompress.xmlD app/src/main/res/menu/menu_editor.xmlD app/src/main/res/menu/menu_favorites.xmlM build.gradle.ktsM gradle/libs.versions.toml2026-11-04 03:45:47,366 - __main__ - INFO - Instance efflora__fossify-compose-screens: Skipping reverting and cleaning of test files as keep_tests is enabled.2026-11-04 03:45:47,366 - root - INFO - Running command: ./gradlew :app:assembleFossDebug --offline --console=plain --no-daemon -Dorg.gradle.jvmargs=-Xmx8g -Dorg.gradle.workers.max=8, cwd=/workspace/testbed2026-11-04 03:47:11,983 - root - INFO - build stdout: To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preFossDebugBuild UP-TO-DATE> Task :app:mergeFossDebugNativeDebugMetadata NO-SOURCE> Task :app:dataBindingMergeDependencyArtifactsFossDebug> Task :app:extractFossDebugSupportedLocales> Task :app:mapFossDebugSourceSetPaths> Task :app:generateFossDebugResources> Task :app:generateFossDebugLocaleConfig> Task :app:generateFossDebugBuildConfig> Task :app:packageFossDebugResources> Task :app:processFossDebugNavigationResources> Task :app:mergeFossDebugResources> Task :app:parseFossDebugLocalResources> Task :app:dataBindingGenBaseClassesFossDebug> Task :app:generateFossDebugAssets UP-TO-DATE> Task :app:javaPreCompileFossDebug> Task :app:mergeFossDebugAssets> Task :app:compressFossDebugAssets> Task :app:generateFossDebugRFile> Task :app:generateFossDebugGlobalSynthetics> Task :app:desugarFossDebugFileDependencies> Task :app:checkFossDebugDuplicateClasses> Task :app:checkFossDebugAarMetadata> Task :app:compileFossDebugKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:mergeExtDexFossDebug> Task :app:compileFossDebugJavaWithJavac> Task :app:processFossDebugJavaRes> Task :app:mergeLibDexFossDebug> Task :app:compileFossDebugNavigationResources> Task :app:createFossDebugCompatibleScreenManifests> Task :app:extractDeepLinksFossDebug
> Task :app:processFossDebugMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:processFossDebugManifest> Task :app:mergeFossDebugJniLibFolders> Task :app:mergeFossDebugNativeLibs> Task :app:validateSigningFossDebug> Task :app:writeFossDebugAppMetadata> Task :app:writeFossDebugSigningConfigVersions> Task :app:processFossDebugManifestForPackage
> Task :app:stripFossDebugDebugSymbolsUnable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.
> Task :app:mergeFossDebugJavaResource> Task :app:processFossDebugResources> Task :app:dexBuilderFossDebug> Task :app:mergeProjectDexFossDebug> Task :app:packageFossDebug> Task :app:createFossDebugApkListingFileRedirect> Task :app:assembleFossDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 1m 24s42 actionable tasks: 42 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html
2026-11-04 03:47:11,984 - root - INFO - build stderr: 2026-11-04 03:47:11,984 - root - INFO - Running command: /opt/android-sdk/emulator/emulator -list-avds, cwd=None2026-11-04 03:47:11,993 - root - INFO - Initiating shutdown of emulator ('bench')...2026-11-04 03:47:15,070 - root - INFO - Starting emulator ('bench') with wiped data...2026-11-04 03:47:20,075 - root - INFO - Waiting for emulator to boot...2026-11-04 03:47:45,173 - root - INFO - Emulator fully booted and ready!2026-11-04 03:47:45,173 - __main__ - INFO - ======================================================================2026-11-04 03:47:45,173 - root - INFO - Running test attempt: 12026-11-04 03:47:45,173 - __main__ - INFO - ======================================================================2026-11-04 03:47:45,173 - root - INFO - Running command: find . -type d -path '*/build/test-results/dropshots' -exec rm -rf {} +, cwd=/workspace/testbed2026-11-04 03:47:45,187 - root - INFO - Running command: find . -type d -path '*/build/paparazzi' -exec rm -rf {} +, cwd=/workspace/testbed2026-11-04 03:47:45,220 - root - INFO - Running command: find . -type d -path '*/build/outputs/roborazzi' -exec rm -rf {} +, cwd=/workspace/testbed2026-11-04 03:47:45,234 - root - INFO - Running command: find . -type f -name 'logcat-*.txt' -exec rm -f {} +, cwd=/workspace/testbed2026-11-04 03:47:45,248 - __main__ - INFO - Instance efflora__fossify-compose-screens: Executing: ./gradlew :app:testFossDebugUnitTest --offline --console=plain --no-daemon -Dorg.gradle.jvmargs=-Xmx8g2026-11-04 03:47:45,248 - root - INFO - Running command: ls /tests/verifier/test-dump-init-script.gradle, cwd=None2026-11-04 03:47:45,250 - root - INFO - Running command: ./gradlew :app:testFossDebugUnitTest --offline --console=plain --no-daemon -Dorg.gradle.jvmargs=-Xmx8g --continue -Pandroid.bench.test.log.file.path=/workspace/temp/tmp-jm55zxwi.txt --init-script=/tests/verifier/test-dump-init-script.gradle --rerun-tasks -Dorg.gradle.workers.max=4, cwd=/workspace/testbed2026-11-04 03:51:42,005 - root - INFO - exit_code: 02026-11-04 03:51:42,005 - root - INFO - is "BUILD SUCCESSFUL" in result.stdout: True2026-11-04 03:51:42,005 - root - INFO - Gradle test stdout: To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preFossDebugBuild UP-TO-DATE> Task :app:dataBindingMergeDependencyArtifactsFossDebug> Task :app:extractFossDebugSupportedLocales> Task :app:mapFossDebugSourceSetPaths> Task :app:generateFossDebugResources> Task :app:generateFossDebugLocaleConfig> Task :app:generateFossDebugBuildConfig> Task :app:packageFossDebugResources> Task :app:processFossDebugNavigationResources> Task :app:parseFossDebugLocalResources> Task :app:javaPreCompileFossDebug> Task :app:checkFossDebugAarMetadata> Task :app:compileFossDebugNavigationResources> Task :app:createFossDebugCompatibleScreenManifests> Task :app:extractDeepLinksFossDebug> Task :app:mergeFossDebugResources> Task :app:generateFossDebugRFile
> Task :app:processFossDebugMainManifest/workspace/testbed/app/src/main/AndroidManifest.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at AndroidManifest.xml:0 to remove other declarations but no other declaration present
> Task :app:dataBindingGenBaseClassesFossDebug> Task :app:processFossDebugManifest> Task :app:preFossDebugUnitTestBuild UP-TO-DATE> Task :app:javaPreCompileFossDebugUnitTest> Task :app:processFossDebugManifestForPackage> Task :app:generateFossDebugAssets UP-TO-DATE> Task :app:mergeFossDebugAssets
> Task :app:mergeFossDebugUnitTestManifest/workspace/testbed/app/build/intermediates/tmp/manifest/test/foss/debug/tempFile2ProcessTestManifest10450479814461767858.xml Warning: uses-permission#com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY was tagged at tempFile2ProcessTestManifest10450479814461767858.xml:0 to remove other declarations but no other declaration present
> Task :app:processFossDebugUnitTestManifest> Task :app:processFossDebugResources> Task :app:packageFossDebugUnitTestForUnitTest> Task :app:generateFossDebugUnitTestConfig
> Task :app:compileFossDebugKotlinw: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:192:17 'constructor(): Handler' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:262:13 'fun toggleHideOnScroll(hideOnScroll: Boolean): Unit' is deprecated. This feature is broken for now.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MainActivity.kt:504:23 Java type mismatch: inferred type is 'String?', but 'String' was expected.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:24 'static fun setOnActionExpandListener(p0: MenuItem!, p1: MenuItemCompat.OnActionExpandListener!): MenuItem!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/MimeTypesActivity.kt:248:90 'interface OnActionExpandListener : Any' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SaveAsActivity.kt:52:49 'fun <T : Parcelable!> getParcelableExtra(p0: String!): T?' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:81:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/activities/SimpleActivity.kt:86:29 'fun startActivityForResult(intent: Intent, requestCode: Int): Unit' is deprecated. This method has been deprecated in favor of using the Activity Result API which brings increased type safety via an {@link ActivityResultContract} and the prebuilt contracts for common intents available in {@link androidx.activity.result.contract.ActivityResultContracts}, provides hooks for testing, and allow receiving results in separate, testable classes independent from your activity. Use {@link #registerForActivityResult(ActivityResultContract, ActivityResultCallback)} passing in a {@link StartActivityForResult} object for the {@link ActivityResultContract}.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:376:38 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:418:22 'fun into(p0: Int, p1: Int): FutureTarget<Drawable!>!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:873:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'Array<(out) File!>?'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:972:11 Unchecked cast of 'List<ListItem>' to 'ArrayList<FileDirItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:979:42 Unchecked cast of 'Any' to 'ArrayList<ListItem>'.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/adapters/ItemsAdapter.kt:1152:34 'fun getDrawable(p0: Int): Drawable!' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:152:42 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:153:44 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:154:48 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:155:45 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:156:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.w: file:///workspace/testbed/app/src/main/kotlin/org/fossify/filemanager/fragments/StorageFragment.kt:157:43 'fun getColor(p0: Int): Int' is deprecated. Deprecated in Java.
> Task :app:compileFossDebugJavaWithJavac> Task :app:processFossDebugJavaRes> Task :app:bundleFossDebugClassesToCompileJar> Task :app:bundleFossDebugClassesToRuntimeJar> Task :app:compileFossDebugUnitTestKotlin> Task :app:compileFossDebugUnitTestJavaWithJavac NO-SOURCE> Task :app:processFossDebugUnitTestJavaRes
> Task :app:testFossDebugUnitTest
ArchiveComposeTest > passwordAndFolderAreRestoredWithoutAnotherPrompt STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000. System.logW: A resource failed to call close. System.logW: A resource failed to call close.
ArchiveComposeTest > passwordAndFolderAreRestoredWithoutAnotherPrompt PASSED
ArchiveComposeTest > decompressActionStillUsesFolderPickerAndExtractsFiles STANDARD_ERROR System.logW: A resource failed to call close. System.logW: A resource failed to call close. Invalid ID 0x00000000. Invalid ID 0x00000000.
ArchiveComposeTest > decompressActionStillUsesFolderPickerAndExtractsFiles PASSED
ArchiveComposeTest > nestedArchiveFolderSurvivesRotationAndBackTraversesParents PASSED
ArchiveComposeTest STANDARD_ERROR System.logW: A resource failed to call close.
Gradle Test Executor 1 STANDARD_ERROR System.logW: A resource failed to call close. System.logW: A resource failed to call close. System.logW: A resource failed to call close. System.logW: A resource failed to call close. System.logW: A resource failed to call close. System.logW: A resource failed to call close. System.logW: A resource failed to call close.
EditorComposeTest > searchingScrollsAnOffScreenMatchIntoViewWithoutLosingTheQuery PASSED
EditorComposeTest > realFilePathIntentAndCursorSelectionSurviveRecreation PASSED
EditorComposeTest > unchangedFilesAreNotCopiedIntoSavedStateAndDoNotBecomeDirtyAfterRestore PASSED
EditorComposeTest > editorRetainsUnsavedTextCursorAndSearchAcrossRecreation PASSED
EditorComposeTest > saveAsKeepsOriginalAndBackStillOffersSaveOrDiscard STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000.
EditorComposeTest > saveAsKeepsOriginalAndBackStillOffersSaveOrDiscard PASSED
EditorComposeTest > externalContentIntentKeepsUnsavedTextInSavedInstanceState STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000.
EditorComposeTest > externalContentIntentKeepsUnsavedTextInSavedInstanceState PASSED
FavoritesComposeTest > selectionRemovesOnlySelectedFavorites PASSED
FavoritesComposeTest > longPressAndDragSelectsTheWholeFavoriteRange PASSED
FavoritesComposeTest > removalThroughOverflowShowsEmptyStateAndPersists PASSED
FavoritesComposeTest > emptyStateAddOpensPickerAndStoresTheChosenFolder STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000.
FavoritesComposeTest > emptyStateAddOpensPickerAndStoresTheChosenFolder PASSED
FilesComposeTest > filesNavigateAndRestoreFolderAndExposeSelectionActions STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000.
FilesComposeTest > filesNavigateAndRestoreFolderAndExposeSelectionActions PASSED
FilesComposeTest > contentPickerFiltersMimeTypesAndConfirmsMultipleFilesWithoutFolders PASSED
FilesComposeTest > gridShowsFilesAndCreateAction PASSED
FilesComposeTest > hidingGridFilenamesStillShowsFolderNamesAndSupportsSelection PASSED
FilesComposeTest > savedInstanceStateRestoresTheFolderInAFreshActivity PASSED
FilesComposeTest > createDocumentIntentUsesTheCheckButtonAndReturnsTheCurrentFolder PASSED
FilesComposeTest > listAndGridSupportLongPressDragRangeSelection PASSED
FilesComposeTest > refreshAndCreateButtonUpdateTheFolder STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000.
FilesComposeTest > refreshAndCreateButtonUpdateTheFolder PASSED
FilesComposeTest > disabledRefreshAndSearchPlaceholdersRespectTheirConditions PASSED
FilesComposeTest > deleteStillShowsConfirmationAndCancelKeepsTheFile STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000.
FilesComposeTest > deleteStillShowsConfirmationAndCancelKeepsTheFile PASSED
SettingsComposeTest > olderAndroidHidesLanguageAndUntoggledEnglishRow PASSED
SettingsComposeTest > showingHiddenFilesStillRequiresTheExistingPassword STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000.
SettingsComposeTest > showingHiddenFilesStillRequiresTheExistingPassword PASSED
SettingsComposeTest > settingsPreserveStoredChoicesAndConditionalRows PASSED
SettingsComposeTest > fontAndManagementRowsOpenTheirOriginalDialogs STANDARD_ERROR Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000. Invalid ID 0x00000000.
SettingsComposeTest > fontAndManagementRowsOpenTheirOriginalDialogs PASSED
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 3m 56s35 actionable tasks: 35 executedConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html
2026-11-04 03:51:42,005 - root - INFO - Gradle test stderr: 2026-11-04 03:51:42,027 - __main__ - INFO - --- Command: ./gradlew :app:testFossDebugUnitTest --offline --console=plain --no-daemon -Dorg.gradle.jvmargs=-Xmx8g ---2026-11-04 03:51:42,027 - __main__ - INFO - --- Passed Tests: 27 ---2026-11-04 03:51:42,027 - __main__ - INFO - Test contentPickerFiltersMimeTypesAndConfirmsMultipleFilesWithoutFolders(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test createDocumentIntentUsesTheCheckButtonAndReturnsTheCurrentFolder(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test decompressActionStillUsesFolderPickerAndExtractsFiles(org.fossify.filemanager.ArchiveComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test deleteStillShowsConfirmationAndCancelKeepsTheFile(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test disabledRefreshAndSearchPlaceholdersRespectTheirConditions(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test editorRetainsUnsavedTextCursorAndSearchAcrossRecreation(org.fossify.filemanager.EditorComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test emptyStateAddOpensPickerAndStoresTheChosenFolder(org.fossify.filemanager.FavoritesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test externalContentIntentKeepsUnsavedTextInSavedInstanceState(org.fossify.filemanager.EditorComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test filesNavigateAndRestoreFolderAndExposeSelectionActions(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test fontAndManagementRowsOpenTheirOriginalDialogs(org.fossify.filemanager.SettingsComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test gridShowsFilesAndCreateAction(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test hidingGridFilenamesStillShowsFolderNamesAndSupportsSelection(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test listAndGridSupportLongPressDragRangeSelection(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test longPressAndDragSelectsTheWholeFavoriteRange(org.fossify.filemanager.FavoritesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test nestedArchiveFolderSurvivesRotationAndBackTraversesParents(org.fossify.filemanager.ArchiveComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test olderAndroidHidesLanguageAndUntoggledEnglishRow(org.fossify.filemanager.SettingsComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test passwordAndFolderAreRestoredWithoutAnotherPrompt(org.fossify.filemanager.ArchiveComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test realFilePathIntentAndCursorSelectionSurviveRecreation(org.fossify.filemanager.EditorComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test refreshAndCreateButtonUpdateTheFolder(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test removalThroughOverflowShowsEmptyStateAndPersists(org.fossify.filemanager.FavoritesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test saveAsKeepsOriginalAndBackStillOffersSaveOrDiscard(org.fossify.filemanager.EditorComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test savedInstanceStateRestoresTheFolderInAFreshActivity(org.fossify.filemanager.FilesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test searchingScrollsAnOffScreenMatchIntoViewWithoutLosingTheQuery(org.fossify.filemanager.EditorComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test selectionRemovesOnlySelectedFavorites(org.fossify.filemanager.FavoritesComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test settingsPreserveStoredChoicesAndConditionalRows(org.fossify.filemanager.SettingsComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test showingHiddenFilesStillRequiresTheExistingPassword(org.fossify.filemanager.SettingsComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - Test unchangedFilesAreNotCopiedIntoSavedStateAndDoNotBecomeDirtyAfterRestore(org.fossify.filemanager.EditorComposeTest)2026-11-04 03:51:42,027 - __main__ - INFO - --- Failed Tests: 0 ---2026-11-04 03:51:42,027 - __main__ - INFO - Instance efflora__fossify-compose-screens: Executing: bash /tests/run_connected.sh connectedFossDebugAndroidTest2026-11-04 03:51:42,027 - root - INFO - Running command: ls /tests/verifier/test-dump-init-script.gradle, cwd=None2026-11-04 03:51:42,029 - root - INFO - Running command: bash /tests/run_connected.sh connectedFossDebugAndroidTest --continue -Pandroid.bench.test.log.file.path=/workspace/temp/tmp-m_hafok7.txt --init-script=/tests/verifier/test-dump-init-script.gradle --rerun-tasks -Dorg.gradle.workers.max=4, cwd=/workspace/testbed2026-11-04 03:51:42,031 - root - INFO - exit_code: 02026-11-04 03:51:42,031 - root - INFO - is "BUILD SUCCESSFUL" in result.stdout: False2026-11-04 03:51:42,032 - root - INFO - Gradle test stdout: no androidTest sources: no on-device tests to run
2026-11-04 03:51:42,032 - root - INFO - Gradle test stderr: 2026-11-04 03:51:42,049 - __main__ - INFO - --- Command: bash /tests/run_connected.sh connectedFossDebugAndroidTest ---2026-11-04 03:51:42,049 - __main__ - INFO - --- Passed Tests: 0 ---2026-11-04 03:51:42,049 - __main__ - INFO - --- Failed Tests: 0 ---2026-11-04 03:51:42,049 - __main__ - INFO - ======================================================================2026-11-04 03:51:42,049 - __main__ - INFO - Instance efflora__fossify-compose-screens: Running global validation script: /tests/verifier/scoring/validate.sh2026-11-04 03:51:42,050 - root - INFO - Running command: bash /tests/verifier/scoring/validate.sh, cwd=/workspace/testbed2026-11-04 03:52:24,197 - __main__ - INFO - Instance efflora__fossify-compose-screens: Global validation script output: keep_tests=True: Keeping test file changes in submission patch for cheating analysis.AFC is enabled with max remote calls: 10.HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent "HTTP/1.1 200 OK"✅ PASS: [cheating#patch] No cheating detected.AFC is enabled with max remote calls: 10.HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent "HTTP/1.1 200 OK"📊 Code Quality Score: 0.6800🚨 Total Violations: 4💡 Reasoning: The patch modernizes multiple activities and components with Jetpack Compose while adding comprehensive Robolectric tests. However, it violates several standards from the Code Quality Checklist:
1. **Defensive Programming & Null Safety (Not-null assertion operator `!!`)**: - In `FileItem.kt`, `AppCompatResources.getDrawable(context, R.drawable.ic_file_generic)!!` uses `!!` instead of safe fallback or `checkNotNull`/`requireNotNull`. - In `FilesScreen.kt` (`FileSelectionBar`), `action.icon!!` uses `!!` (which could crash if an action with `ifRoom = true` has a null icon, as `promoted` actions are not filtered for non-null icons). - In `FileShortcutOperations.kt`, `ResourcesCompat.getDrawable(..., activity.theme)!!` is used twice with `!!`.
2. **Concurrency & Threading (Monotonic Time for intervals)**: - In `ReadTextActivity.kt`, `System.currentTimeMillis() - lastSavePromptTS > SAVE_DISCARD_PROMPT_INTERVAL` and `lastSavePromptTS = System.currentTimeMillis()` are used to measure the save/discard prompt elapsed interval. The checklist specifies using `SystemClock.elapsedRealtime()` because `currentTimeMillis()` is vulnerable to clock changes/drift.
3. **Function Signatures & Naming (Parameter Ordering)**: - In `FileManagerScaffold.kt`, the mandatory parameter `content: @Composable ColumnScope.() -> Unit` is placed after optional parameters (`modifier: Modifier = Modifier` and `actions: @Composable RowScope.() -> Unit = {}`), violating the rule: 'Place mandatory parameters before optional parameters'.
4. **Function Signatures & Naming (Boolean Traps)**: - Unnamed boolean arguments are passed in function calls violating the boolean trap rule, for example: `SearchPlaceholder(true)` / `SearchPlaceholder(false)` in `FilesScreen.kt`, `state.nextMatch(true)` / `state.nextMatch(false)` in `EditorScreen.kt`, and `visibility(files, true)` / `transfers.copyMoveTo(files, true)` in `FileSelectionOperations.kt`.=====================================================🎉 Validation Successful!=====================================================
2026-11-04 03:52:24,198 - __main__ - INFO - Instance efflora__fossify-compose-screens: Running validation script: /tests/validate.sh2026-11-04 03:52:24,198 - root - INFO - Running command: bash /tests/validate.sh, cwd=/workspace/testbed2026-11-04 04:51:59,781 - __main__ - INFO - Instance efflora__fossify-compose-screens: Validation script output: == the agent's Compose UI tests (results of the evaluator's runs){"total": 27, "passed": 27, "failed": [], "failures": {}}== every flavor in debug and release, detekt and lint ok assembleCoreDebug ok assembleGplayDebug ok assembleCoreRelease ok assembleFossRelease ok assembleGplayReleasedetekt=true lint=true flavors=5/5== start-state APK (built from the start commit with the image's fixed debug key)== visual screens (deterministic fixture){"installed": true, "taken": ["files_list", "settings", "favorites_empty", "editor", "archive"], "errors": {"files_selection": "selection counter did not settle in the expected format"}, "system_bars": {"waited_s": 0, "systemui_restarted": false, "palette": {"theme_setting": "{\"android.theme.customization.color_source\":\"preset\",\"android.theme.customization.system_palette\":\"7A90C8\",\"android.theme.customization.theme_style\":\"TONAL_SPOT\"}", "system_colours": {"system_accent1_100": "ffd9e2ff", "system_accent1_400": "ff7a90c8", "system_accent1_600": "ff475d92", "system_accent1_900": "ff001945", "system_neutral1_10": "fffefbff", "system_neutral1_900": "ff1a1b20"}, "ok": true, "system_colours_before": {"system_accent1_100": "ffdae2ff", "system_accent1_400": "ff7c8fc8", "system_accent1_600": "ff495d92", "system_accent1_900": "ff001849", "system_neutral1_10": "fffefbff", "system_neutral1_900": "ff1a1b20"}, "systemui_overlays": ["[ ] com.android.systemui:neutral", "[ ] com.android.systemui:accent", "[ ] com.android.systemui:dynamic"], "waited_s": 2}, "navigation": {"overlay": "com.android.internal.systemui.navbar.threebutton", "navbar_overlays": ["[x] com.android.internal.systemui.navbar.threebutton", "[ ] com.android.internal.systemui.navbar.twobutton", "[ ] com.android.internal.systemui.navbar.transparent", "[ ] com.android.internal.systemui.navbar.gestural"], "navigation_mode": "0", "navigation_bar_top": 2274, "ok": true, "waited_s": 2}, "cutout_top": 128, "status_bar_before": 128, "status_bar_after": 128, "sysui_demo_allowed": "1", "systemui_pid": "1091", "soft_keyboard": {"input_methods": ["com.google.android.tts/com.google.android.apps.speech.tts.googletts.settings.asr.voiceime.VoiceInputMethodService", "com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME"], "enabled_after": [], "bound_after": null}}, "screen_colours": {"background": [250, 248, 255], "text": [116, 115, 121], "accent": [71, 93, 146]}}== functional walkthrough: update from the start build, then every converted screen{"id": "update_keeps_settings", "weight": 4, "score": 1.0, "detail": "flipped ['Show hidden items', 'Enable pull-to-refresh from the top', 'Always skip delete confirmation dialog'], font Small: all shown as stored"}{"id": "browse_and_breadcrumbs", "weight": 3, "score": 1.0, "detail": "listing ok=True deep=True breadcrumb_up=True"}{"id": "sort_by_size_descending", "weight": 2, "score": 1.0, "detail": "size-descending order shown=['f1_172.txt', 'f0_903.txt', 'f3_453.txt', 'f2_728.txt'] expected=['f1_172.txt', 'f0_903.txt', 'f3_453.txt', 'f2_728.txt']"}{"id": "temporarily_show_hidden", "weight": 2, "score": 1.0, "detail": "hidden before=False shown after \"Temporarily show hidden\"=True \"Stop showing hidden\" offered and done=True list showing=True hidden again=True"}{"id": "search_finds_nested_files", "weight": 2, "score": 1.0, "detail": "search finds a file two folders down"}{"id": "search_highlights_query", "weight": 2, "score": 1.0, "detail": "highlighted pixels in \"f3_453.txt\": as a result for \"f3_453\"=867 (needs 400), listed=0; result background (250, 248, 255) text (0, 0, 0) highlight (71, 93, 146)"}{"id": "selection_rename", "weight": 2, "score": 1.0, "detail": "renamed on disk=True shown=True; other entries missing=[] item counts shown={'bravo86': 1, 'long': 40} on disk={'bravo86': 1, 'long': 40} hidden file shown=False"}{"id": "selection_copy_to_folder", "weight": 2, "score": 1.0, "detail": "copied=True original kept=True"}{"id": "selection_delete", "weight": 2, "score": 1.0, "detail": "confirmation=True deleted=True gone from list=True"}{"id": "selection_move_to_folder", "weight": 2, "score": 1.0, "detail": "in the target folder=True removed from here=True gone from list=True"}{"id": "folder_item_counts", "weight": 2, "score": 1.0, "detail": "item counts shown={'bravo86': 3, 'long': 40, 'turn22': 2} on disk={'bravo86': 3, 'long': 40, 'turn22': 2}"}{"id": "selection_compress", "weight": 2, "score": 1.0, "detail": "f3_453.zip holds the file=True (['f3_453.txt']) shown=True"}{"id": "selection_share", "weight": 1, "score": 1.0, "detail": "system share sheet opened: com.android.intentresolver/com.android.intentresolver.ChooserActivityLauncher"}{"id": "selection_properties", "weight": 1, "score": 1.0, "detail": "dialog=True name=True path=True size=True"}{"id": "create_new_folder", "weight": 2, "score": 1.0, "detail": "created=True shown=True"}{"id": "create_new_file", "weight": 2, "score": 1.0, "detail": "file created=True shown=True"}{"id": "grid_and_list_view", "weight": 2, "score": 1.0, "detail": "list at first=True (11 names) grid after switching=True (11 names) list again=True (11 names)"}{"id": "pull_to_refresh_shows_external_changes", "weight": 1, "score": 1.0, "detail": "file created outside the app appears after pull-to-refresh"}{"id": "folder_restored_after_process_death", "weight": 2, "score": 1.0, "detail": "process killed=True same folder on return=True"}{"id": "files_browse_and_breadcrumbs", "weight": 3, "score": 1.0, "detail": "listing ok=True deep=True breadcrumb_up=True"}{"id": "files_sort_by_size_descending", "weight": 2, "score": 1.0, "detail": "size-descending order shown=['f1_172.txt', 'f0_903.txt', 'f3_453.txt', 'f2_728.txt'] expected=['f1_172.txt', 'f0_903.txt', 'f3_453.txt', 'f2_728.txt']"}{"id": "files_temporarily_show_hidden", "weight": 2, "score": 1.0, "detail": "hidden before=False shown after \"Temporarily show hidden\"=True \"Stop showing hidden\" offered and done=True list showing=True hidden again=True"}{"id": "files_search_finds_nested_files", "weight": 2, "score": 1.0, "detail": "search finds a file two folders down"}{"id": "files_search_highlights_query", "weight": 2, "score": 1.0, "detail": "highlighted pixels in \"f3_453.txt\": as a result for \"f3_453\"=867 (needs 400), listed=0; result background (250, 248, 255) text (0, 0, 0) highlight (71, 93, 146)"}{"id": "files_selection_rename", "weight": 2, "score": 1.0, "detail": "renamed on disk=True shown=True; other entries missing=[] item counts shown={'bravo86': 1, 'long': 40} on disk={'bravo86': 1, 'long': 40} hidden file shown=False"}{"id": "files_selection_copy_to_folder", "weight": 2, "score": 1.0, "detail": "copied=True original kept=True"}{"id": "files_selection_delete", "weight": 2, "score": 1.0, "detail": "confirmation=True deleted=True gone from list=True"}{"id": "files_selection_move_to_folder", "weight": 2, "score": 1.0, "detail": "in the target folder=True removed from here=True gone from list=True"}{"id": "files_folder_item_counts", "weight": 2, "score": 1.0, "detail": "item counts shown={'bravo86': 3, 'long': 40, 'turn22': 2} on disk={'bravo86': 3, 'long': 40, 'turn22': 2}"}{"id": "files_selection_compress", "weight": 2, "score": 1.0, "detail": "f3_453.zip holds the file=True (['f3_453.txt']) shown=True"}{"id": "files_selection_share", "weight": 1, "score": 1.0, "detail": "system share sheet opened: com.android.intentresolver/com.android.intentresolver.ChooserActivityLauncher"}{"id": "files_selection_properties", "weight": 1, "score": 1.0, "detail": "dialog=True name=True path=True size=True"}{"id": "files_create_new_folder", "weight": 2, "score": 1.0, "detail": "created=True shown=True"}{"id": "files_create_new_file", "weight": 2, "score": 1.0, "detail": "file created=True shown=True"}{"id": "files_grid_and_list_view", "weight": 2, "score": 1.0, "detail": "list at first=True (11 names) grid after switching=True (11 names) list again=True (11 names)"}{"id": "files_pull_to_refresh_shows_external_changes", "weight": 1, "score": 1.0, "detail": "file created outside the app appears after pull-to-refresh"}{"id": "files_folder_restored_after_process_death", "weight": 2, "score": 1.0, "detail": "process killed=True same folder on return=True"}{"id": "settings_rows_complete", "weight": 3, "score": 1.0, "detail": "all rows and section headers present, conditional rows hidden"}{"id": "settings_switches_show_and_store_values", "weight": 4, "score": 1.0, "detail": "every switch reflects and writes its stored value"}{"id": "font_size_dialog", "weight": 2, "score": 1.0, "detail": "['Medium'] -> Large: row and stored value updated"}{"id": "settings_dialogs_and_links", "weight": 3, "score": 1.0, "detail": "{\"tabs\": true, \"date\": true, \"security\": true, \"customize\": true, \"favorites\": true}"}{"id": "favorites_empty_state", "weight": 2, "score": 1.0, "detail": "empty-state text and its add action shown"}{"id": "favorites_add", "weight": 3, "score": 1.0, "detail": "added ['Movies', 'Music'], stored ['/storage/emulated/0/Movies', '/storage/emulated/0/Music']"}{"id": "favorites_remove_by_selection", "weight": 2, "score": 1.0, "detail": "long-press selection + Remove deleted it"}{"id": "favorites_remove_from_row_menu", "weight": 2, "score": 1.0, "detail": "removed=True empty_state_again=True"}{"id": "editor_opens_file", "weight": 3, "score": 1.0, "detail": "title=True content_shown=True"}{"id": "editor_search_bar", "weight": 2, "score": 1.0, "detail": "query typed=True prev/next/close=True text_untouched=True closed=True"}{"id": "editor_menu_entries", "weight": 1, "score": 1.0, "detail": "search, save, save as, print and open with are offered"}{"id": "editor_edit_survives_rotation", "weight": 3, "score": 1.0, "detail": "unsaved edit kept in landscape=True and back in portrait=True"}{"id": "editor_search_survives_rotation", "weight": 2, "score": 1.0, "detail": "open with the query before=True in landscape=True back in portrait=True"}{"id": "editor_unsaved_prompt_discard", "weight": 2, "score": 1.0, "detail": "prompt=True closed=True file_unchanged=True"}{"id": "editor_save_in_place", "weight": 3, "score": 1.0, "detail": "written to the file=True, no unsaved prompt afterwards=True"}{"id": "editor_unsaved_prompt_save", "weight": 2, "score": 1.0, "detail": "saved=True closed=True"}{"id": "editor_save_as", "weight": 2, "score": 1.0, "detail": "copy113.txt written with the edited text"}{"id": "editor_opens_from_other_apps", "weight": 1, "score": 1.0, "detail": "VIEW intent from another app opens the editor"}{"id": "archive_lists_entries", "weight": 2, "score": 1.0, "detail": "title + top-level folder and file listed"}{"id": "archive_walk_into_folders_and_back", "weight": 2, "score": 1.0, "detail": "docs=True inner=True back=True back_to_root=True"}{"id": "archive_folder_survives_rotation", "weight": 2, "score": 1.0, "detail": "still inside docs after rotation=True and back=True"}{"id": "archive_extract_to_chosen_folder", "weight": 3, "score": 1.0, "detail": "extracted into /sdcard/Music/arch14"}{"id": "archive_password", "weight": 3, "score": 1.0, "detail": "wrong password rejected=True right password opens=True"}{"id": "editor_edit_survives_process_death", "weight": 3, "score": 1.0, "detail": "process killed=True unsaved edit restored=True (not silently saved=True)"}{"id": "main_screen_unchanged", "weight": 2, "score": 1.0, "detail": "tabs=True browse=True storage_tab=True"}{"id": "no_crash_recorded", "weight": 3, "score": 1.0, "detail": "crash buffer clean"}{"functional_score": 1.0}== requirements{"old_views_removed": 1.0, "screens_drawn_by_compose": 1.0, "uses_fossify_compose_blocks": 1.0, "compose_ui_tests_for_each_screen": 1.0, "lint_and_detekt_not_loosened": 1.0, "app_id_and_sdk_levels_unchanged": 1.0, "existing_dependency_versions_unchanged": 1.0}functional#walk.archive_extract_to_chosen_folder: 1.0 | extracted into /sdcard/Music/arch14functional#walk.archive_folder_survives_rotation: 1.0 | still inside docs after rotation=True and back=Truefunctional#walk.archive_lists_entries: 1.0 | title + top-level folder and file listedfunctional#walk.archive_password: 1.0 | wrong password rejected=True right password opens=Truefunctional#walk.archive_walk_into_folders_and_back: 1.0 | docs=True inner=True back=True back_to_root=Truefunctional#walk.editor_edit_survives_process_death: 1.0 | process killed=True unsaved edit restored=True (not silently saved=True)functional#walk.editor_edit_survives_rotation: 1.0 | unsaved edit kept in landscape=True and back in portrait=Truefunctional#walk.editor_menu_entries: 1.0 | search, save, save as, print and open with are offeredfunctional#walk.editor_opens_file: 1.0 | title=True content_shown=Truefunctional#walk.editor_opens_from_other_apps: 1.0 | VIEW intent from another app opens the editorfunctional#walk.editor_save_as: 1.0 | copy113.txt written with the edited textfunctional#walk.editor_save_in_place: 1.0 | written to the file=True, no unsaved prompt afterwards=Truefunctional#walk.editor_search_bar: 1.0 | query typed=True prev/next/close=True text_untouched=True closed=Truefunctional#walk.editor_search_survives_rotation: 1.0 | open with the query before=True in landscape=True back in portrait=Truefunctional#walk.editor_unsaved_prompt_discard: 1.0 | prompt=True closed=True file_unchanged=Truefunctional#walk.editor_unsaved_prompt_save: 1.0 | saved=True closed=Truefunctional#walk.favorites_add: 1.0 | added ['Movies', 'Music'], stored ['/storage/emulated/0/Movies', '/storage/emulated/0/Music']functional#walk.favorites_empty_state: 1.0 | empty-state text and its add action shownfunctional#walk.favorites_remove_by_selection: 1.0 | long-press selection + Remove deleted itfunctional#walk.favorites_remove_from_row_menu: 1.0 | removed=True empty_state_again=Truefunctional#walk.files_browse_and_breadcrumbs: 1.0 | listing ok=True deep=True breadcrumb_up=Truefunctional#walk.files_create_new_file: 1.0 | file created=True shown=Truefunctional#walk.files_create_new_folder: 1.0 | created=True shown=Truefunctional#walk.files_folder_restored_after_process_death: 1.0 | process killed=True same folder on return=Truefunctional#walk.files_grid_and_list_view: 1.0 | list at first=True (11 names) grid after switching=True (11 names) list again=True (11 names)functional#walk.files_pull_to_refresh_shows_external_changes: 1.0 | file created outside the app appears after pull-to-refreshfunctional#walk.files_search_finds_nested_files: 1.0 | search finds a file two folders downfunctional#walk.files_selection_compress: 1.0 | f3_453.zip holds the file=True (['f3_453.txt']) shown=Truefunctional#walk.files_selection_copy_to_folder: 1.0 | copied=True original kept=Truefunctional#walk.files_selection_delete: 1.0 | confirmation=True deleted=True gone from list=Truefunctional#walk.files_selection_move_to_folder: 1.0 | in the target folder=True removed from here=True gone from list=Truefunctional#walk.files_selection_properties: 1.0 | dialog=True name=True path=True size=Truefunctional#walk.files_selection_rename: 1.0 | renamed on disk=True shown=True; other entries missing=[] item counts shown={'bravo86': 1, 'long': 40} on disk={'bravo86': 1, 'long': 40} hidden file shown=Falsefunctional#walk.files_selection_share: 1.0 | system share sheet opened: com.android.intentresolver/com.android.intentresolver.ChooserActivityLauncherfunctional#walk.files_sort_by_size_descending: 1.0 | size-descending order shown=['f1_172.txt', 'f0_903.txt', 'f3_453.txt', 'f2_728.txt'] expected=['f1_172.txt', 'f0_903.txt', 'f3_453.txt', 'f2_728.txt']functional#walk.files_temporarily_show_hidden: 1.0 | hidden before=False shown after "Temporarily show hidden"=True "Stop showing hidden" offered and done=True list showing=True hidden again=Truefunctional#walk.font_size_dialog: 1.0 | ['Medium'] -> Large: row and stored value updatedfunctional#walk.settings_dialogs_and_links: 1.0 | {"tabs": true, "date": true, "security": true, "customize": true, "favorites": true}functional#walk.settings_rows_complete: 1.0 | all rows and section headers present, conditional rows hiddenfunctional#walk.settings_switches_show_and_store_values: 1.0 | every switch reflects and writes its stored valueregression#walk.files_folder_item_counts: 1.0 | item counts shown={'bravo86': 3, 'long': 40, 'turn22': 2} on disk={'bravo86': 3, 'long': 40, 'turn22': 2}regression#walk.files_search_highlights_query: 1.0 | highlighted pixels in "f3_453.txt": as a result for "f3_453"=867 (needs 400), listed=0; result background (250, 248, 255) text (0, 0, 0) highlight (71, 93, 146)regression#walk.main_screen_unchanged: 1.0 | tabs=True browse=True storage_tab=Trueregression#walk.no_crash_recorded: 1.0 | crash buffer cleanregression#walk.update_keeps_settings: 1.0 | flipped ['Show hidden items', 'Enable pull-to-refresh from the top', 'Always skip delete confirmation dialog'], font Small: all shown as storedrequirements#old_views_removed: 1.0 | XML layouts, toolbar menus and adapters of the four screens are gonerequirements#screens_drawn_by_compose: 1.0 | 5/5 screens are Compose-only: {'settings': 'ok', 'favorites': 'ok', 'editor': 'ok', 'archive': 'ok', 'files': 'ok'}requirements#uses_fossify_compose_blocks: 1.0 | commons compose theme used=True, commons settings components used=Truerequirements#compose_ui_tests_for_each_screen: 1.0 | 6 Compose UI test files, 27 test cases, screens covered: ['settings', 'favorites', 'editor', 'archive', 'files']constraint#lint_and_detekt_not_loosened: 1.0 | configs and baselines unchangedconstraint#app_id_and_sdk_levels_unchanged: 1.0 | {'package: name': 'org.fossify.filemanager.debug', 'minSdkVersion': '26', 'targetSdkVersion': '36'} vs {'package: name': 'org.fossify.filemanager.debug', 'minSdkVersion': '26', 'targetSdkVersion': '36'}constraint#existing_dependency_versions_unchanged: 1.0 | release runtime classpath: 182 of the start commit's 182 artifacts compared, 0 changedconstraint#all_flavors_build_debug_and_release: 1.0 | 6/6 of core/foss/gplay x debug/release buildconstraint#detekt_and_lint_pass: 1.0 | detekt=True lintFossDebug=Truerequirements#agent_unit_tests_pass: 1.0 | 27/27 Compose UI tests pass (at least 4 required); failed: []gate#migration_started: 1.0 | at least one screen is drawn by Composecheating#no_prebuilt_binaries: 1.0 | none added--- Visual Validation ---No test-class or test-case provided, skipping native log parsing.Using separate directories for evaluation: Ref=/tests/visual/ref, Actual=/logs/verifier/visual/actualFound 5 visual tasks to evaluate using LLM Judge...PASS: settings.png (LLM Score: 1.00)PASS: editor.png (LLM Score: 1.00)PASS: favorites_empty.png (LLM Score: 1.00)PASS: archive.png (LLM Score: 1.00)PASS: files_list.png (LLM Score: 1.00)
==================================================EXPECTED SCREENS: 6NATIVE PASSES: 0LLM PASSES: 5TOTAL VISUAL PASS RATE: 5/6 (83.33%)AVG FIDELITY SCORE: 83.33%==================================================
Wrote detailed visual status to /logs/verifier/validate_results.txt=====================================================🎉 Validation Successful!=====================================================
2026-11-04 04:51:59,781 - __main__ - INFO - Loaded check results (txt): {'cheating#patch': 1.0, 'functional#walk.archive_extract_to_chosen_folder': 1.0, 'functional#walk.archive_folder_survives_rotation': 1.0, 'functional#walk.archive_lists_entries': 1.0, 'functional#walk.archive_password': 1.0, 'functional#walk.archive_walk_into_folders_and_back': 1.0, 'functional#walk.editor_edit_survives_process_death': 1.0, 'functional#walk.editor_edit_survives_rotation': 1.0, 'functional#walk.editor_menu_entries': 1.0, 'functional#walk.editor_opens_file': 1.0, 'functional#walk.editor_opens_from_other_apps': 1.0, 'functional#walk.editor_save_as': 1.0, 'functional#walk.editor_save_in_place': 1.0, 'functional#walk.editor_search_bar': 1.0, 'functional#walk.editor_search_survives_rotation': 1.0, 'functional#walk.editor_unsaved_prompt_discard': 1.0, 'functional#walk.editor_unsaved_prompt_save': 1.0, 'functional#walk.favorites_add': 1.0, 'functional#walk.favorites_empty_state': 1.0, 'functional#walk.favorites_remove_by_selection': 1.0, 'functional#walk.favorites_remove_from_row_menu': 1.0, 'functional#walk.files_browse_and_breadcrumbs': 1.0, 'functional#walk.files_create_new_file': 1.0, 'functional#walk.files_create_new_folder': 1.0, 'functional#walk.files_folder_restored_after_process_death': 1.0, 'functional#walk.files_grid_and_list_view': 1.0, 'functional#walk.files_pull_to_refresh_shows_external_changes': 1.0, 'functional#walk.files_search_finds_nested_files': 1.0, 'functional#walk.files_selection_compress': 1.0, 'functional#walk.files_selection_copy_to_folder': 1.0, 'functional#walk.files_selection_delete': 1.0, 'functional#walk.files_selection_move_to_folder': 1.0, 'functional#walk.files_selection_properties': 1.0, 'functional#walk.files_selection_rename': 1.0, 'functional#walk.files_selection_share': 1.0, 'functional#walk.files_sort_by_size_descending': 1.0, 'functional#walk.files_temporarily_show_hidden': 1.0, 'functional#walk.font_size_dialog': 1.0, 'functional#walk.settings_dialogs_and_links': 1.0, 'functional#walk.settings_rows_complete': 1.0, 'functional#walk.settings_switches_show_and_store_values': 1.0, 'regression#walk.files_folder_item_counts': 1.0, 'regression#walk.files_search_highlights_query': 1.0, 'regression#walk.main_screen_unchanged': 1.0, 'regression#walk.no_crash_recorded': 1.0, 'regression#walk.update_keeps_settings': 1.0, 'requirements#old_views_removed': 1.0, 'requirements#screens_drawn_by_compose': 1.0, 'requirements#uses_fossify_compose_blocks': 1.0, 'requirements#compose_ui_tests_for_each_screen': 1.0, 'constraint#lint_and_detekt_not_loosened': 1.0, 'constraint#app_id_and_sdk_levels_unchanged': 1.0, 'constraint#existing_dependency_versions_unchanged': 1.0, 'constraint#all_flavors_build_debug_and_release': 1.0, 'constraint#detekt_and_lint_pass': 1.0, 'requirements#agent_unit_tests_pass': 1.0, 'gate#migration_started': 1.0, 'cheating#no_prebuilt_binaries': 1.0, 'visual#settings': 1.0, 'visual#editor': 1.0, 'visual#favorites_empty': 1.0, 'visual#archive': 1.0, 'visual#files_list': 1.0, 'visual#missing_screenshot_1': 0.0}2026-11-04 04:51:59,781 - __main__ - INFO - Loaded check results (code quality): score=0.68, violations=42026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test removalThroughOverflowShowsEmptyStateAndPersists(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test nestedArchiveFolderSurvivesRotationAndBackTraversesParents(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test deleteStillShowsConfirmationAndCancelKeepsTheFile(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test hidingGridFilenamesStillShowsFolderNamesAndSupportsSelection(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test showingHiddenFilesStillRequiresTheExistingPassword(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test passwordAndFolderAreRestoredWithoutAnotherPrompt(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test savedInstanceStateRestoresTheFolderInAFreshActivity(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test fontAndManagementRowsOpenTheirOriginalDialogs(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test createDocumentIntentUsesTheCheckButtonAndReturnsTheCurrentFolder(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test contentPickerFiltersMimeTypesAndConfirmsMultipleFilesWithoutFolders(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test emptyStateAddOpensPickerAndStoresTheChosenFolder(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test decompressActionStillUsesFolderPickerAndExtractsFiles(org.fossify.filemanager.ArchiveComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test unchangedFilesAreNotCopiedIntoSavedStateAndDoNotBecomeDirtyAfterRestore(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,782 - __main__ - WARNING - WARNING: Test 'Test longPressAndDragSelectsTheWholeFavoriteRange(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test selectionRemovesOnlySelectedFavorites(org.fossify.filemanager.FavoritesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test saveAsKeepsOriginalAndBackStillOffersSaveOrDiscard(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test externalContentIntentKeepsUnsavedTextInSavedInstanceState(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test listAndGridSupportLongPressDragRangeSelection(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test editorRetainsUnsavedTextCursorAndSearchAcrossRecreation(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test disabledRefreshAndSearchPlaceholdersRespectTheirConditions(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test olderAndroidHidesLanguageAndUntoggledEnglishRow(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test refreshAndCreateButtonUpdateTheFolder(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test settingsPreserveStoredChoicesAndConditionalRows(org.fossify.filemanager.SettingsComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test searchingScrollsAnOffScreenMatchIntoViewWithoutLosingTheQuery(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test gridShowsFilesAndCreateAction(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test realFilePathIntentAndCursorSelectionSurviveRecreation(org.fossify.filemanager.EditorComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - __main__ - WARNING - WARNING: Test 'Test filesNavigateAndRestoreFolderAndExposeSelectionActions(org.fossify.filemanager.FilesComposeTest)' did not match any category rules. It will be IGNORED and not scored.2026-11-04 04:51:59,783 - root - INFO - Scanning for build contents in: /workspace/testbed2026-11-04 04:52:00,026 - root - INFO - No build output directories or files found.2026-11-04 04:52:00,026 - __main__ - INFO - Instance efflora__fossify-compose-screens: --- Stopping emulator ---2026-11-04 04:52:00,026 - __main__ - INFO - Instance efflora__fossify-compose-screens: Starting aggressive environment teardown...2026-11-04 04:52:00,464 - __main__ - INFO - ======================================================================2026-11-04 04:52:00,464 - __main__ - INFO - TASK COMPLETED: efflora__fossify-compose-screens - FAILED (score: 0.0)2026-11-04 04:52:00,464 - __main__ - INFO - ======================================================================2026-11-04 04:52:00,464 - __main__ - INFO - Partial score: 0.95832026-11-04 04:52:00,465 - __main__ - INFO - Successfully wrote results to /logs/verifier/detailed_scores.json and copied to /logs/artifacts/_detailed_scores.json123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :app:preBuild UP-TO-DATE> Task :app:preFossDebugBuild UP-TO-DATE> Task :app:dataBindingMergeDependencyArtifactsFossDebug UP-TO-DATE> Task :app:extractFossDebugSupportedLocales UP-TO-DATE> Task :app:mapFossDebugSourceSetPaths UP-TO-DATE> Task :app:generateFossDebugLocaleConfig UP-TO-DATE> Task :app:generateFossDebugResources UP-TO-DATE> Task :app:mergeFossDebugResources UP-TO-DATE> Task :app:dataBindingGenBaseClassesFossDebug UP-TO-DATE> Task :app:generateFossDebugBuildConfig UP-TO-DATE> Task :app:packageFossDebugResources UP-TO-DATE> Task :app:processFossDebugNavigationResources UP-TO-DATE> Task :app:parseFossDebugLocalResources UP-TO-DATE> Task :app:generateFossDebugRFile UP-TO-DATE> Task :app:compileFossDebugKotlin UP-TO-DATE> Task :app:javaPreCompileFossDebug UP-TO-DATE> Task :app:compileFossDebugJavaWithJavac UP-TO-DATE> Task :app:checkFossDebugAarMetadata UP-TO-DATE> Task :app:compileFossDebugNavigationResources UP-TO-DATE> Task :app:createFossDebugCompatibleScreenManifests UP-TO-DATE> Task :app:extractDeepLinksFossDebug UP-TO-DATE> Task :app:processFossDebugMainManifest UP-TO-DATE> Task :app:processFossDebugManifest UP-TO-DATE> Task :app:processFossDebugManifestForPackage UP-TO-DATE> Task :app:processFossDebugResources UP-TO-DATE> Task :app:bundleFossDebugClassesToCompileJar UP-TO-DATE> Task :app:preFossDebugAndroidTestBuild SKIPPED> Task :app:generateFossDebugAndroidTestLintModel> Task :app:extractProguardFiles UP-TO-DATE> Task :app:generateFossDebugLintReportModel> Task :app:preFossDebugUnitTestBuild UP-TO-DATE> Task :app:generateFossDebugUnitTestLintModel> Task :app:lintAnalyzeFossDebugAndroidTest> Task :app:lintAnalyzeFossDebugUnitTest> Task :app:lintAnalyzeFossDebug
> Task :app:lintReportFossDebugWrote HTML report to file:///workspace/testbed/app/build/reports/lint-results-fossDebug.htmlWrote SARIF report to file:///workspace/testbed/app/build/reports/lint-results-fossDebug.sarifLint found 7 warnings (and 96 warnings filtered by baseline lint-baseline.xml)
11 errors/warnings were listed in the baseline file (/workspace/testbed/app/lint-baseline.xml) but not found in the project; perhaps they have been fixed?
> Task :app:lintFossDebug
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 41s33 actionable tasks: 8 executed, 25 up-to-dateConsider enabling configuration cache to speed up this build: https://docs.gradle.org/9.7.1/userguide/configuration_cache_enabling.html1234567891011121314151617181920212223242526To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.Daemon will be stopped at the end of the build
> Configure project :appWARNING: The option setting 'android.enableJetifier=true' is deprecated.The current default is 'false'.It will be removed in version 10.0 of the Android Gradle plugin.Add android.sync.suppressAgpWarnings=UNSUPPORTED_PROJECT_OPTION_USE to the gradle.properties file to suppress this warning.Warning: No signing config found. Build will be unsigned.
> Task :benchPrefetchprefetch :: 0 unresolved
> Task :app:benchPrefetchprefetch :app: 0 unresolved
[Incubating] Problems report is available at: file:///workspace/testbed/build/reports/problems/problems-report.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.7.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD SUCCESSFUL in 22s2 actionable tasks: 2 executed10.9583.gitattributes+2
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/agent/trajectory.jsonAdded
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/artifacts/manifest.jsonAdded+10
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/config.jsonAdded+1
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/result.jsonAdded+1
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/artifacts/generated/logs/artifacts/_detailed_scores.jsonAdded+181
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/artifacts/generated/logs/artifacts/_submission.patchAdded+1907
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/artifacts/manifest.jsonAdded+11
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/code_quality.jsonAdded+5
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/detailed_scores.jsonAdded+181
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/evaluator.logAdded
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/reward.txtAdded+1
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/submission.patchAdded+1907
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/test-stdout.txtAdded
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/test_failures.txtAdded+9
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/tests_manifest.jsonAdded+4
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/validate_results.txtAdded+42
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/gradient_edit.pngAdded

Large File Pointer Details
- SHA256: 5e6e219df038505908a9d75641534ecb01758bfa41d6f4b396bbb312ad89df50
- Pointer size: 130 Bytes
- Size of remote file: 57.3 kB
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/gradient_new_color.pngAdded

Large File Pointer Details
- SHA256: f9d00a08c2c19e47a5239d2b0f5e7378025d983520074dcf0abe47f0eb4e3b4f
- Pointer size: 130 Bytes
- Size of remote file: 37.6 kB
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/solid_adjusted.pngAdded

Large File Pointer Details
- SHA256: 9f45216609357211db09e4f9ad2508938ab6e5bc35a379a959f345042825be56
- Pointer size: 130 Bytes
- Size of remote file: 32.5 kB
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/solid_dark.pngAdded

Large File Pointer Details
- SHA256: b12844568a1016a6eb5f1d56268322b96b4e4947b306f0fd24935c7950e6a62b
- Pointer size: 130 Bytes
- Size of remote file: 32.9 kB
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual/actual/solid_new_color.pngAdded

Large File Pointer Details
- SHA256: 9f45216609357211db09e4f9ad2508938ab6e5bc35a379a959f345042825be56
- Pointer size: 130 Bytes
- Size of remote file: 32.5 kB
submissions/claude-code__qwen4/efflora__signal-custom-chat-color/t-da91280d-1/verifier/visual_score.jsonAdded+43
submissions/claude-code__qwen4/metadata.yamlAdded+11
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/config.jsonAdded+97
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/result.jsonAdded+699
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/agent/codex.txtAdded
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/agent/sessions/2026/10/21/rollout-2026-10-21T04-40-16-01a15cc2-8ea0-7dc3-bb4a-c7d1880fb5eb.jsonlAdded
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/agent/trajectory.jsonAdded
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/artifacts/manifest.jsonAdded+10
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/config.jsonAdded+1
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/result.jsonAdded+1
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/generated/logs/artifacts/_detailed_scores.jsonAdded+162
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/generated/logs/artifacts/_submission.patchAdded
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/generated/logs/artifacts/emulator_process_bench.logAdded+121
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/artifacts/manifest.jsonAdded+11
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleCoreDebug.logAdded+112
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleCoreRelease.logAdded+118
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleFossRelease.logAdded+118
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleGplayDebug.logAdded+112
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/build-assembleGplayRelease.logAdded+118
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/code_quality.jsonAdded+5
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/crash.logAdded
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/detailed_scores.jsonAdded+162
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/detekt.logAdded+26
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/emulator.logAdded+1
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/evaluator.logAdded+683
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/lint.logAdded+66
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/prefetch-1.logAdded+26
submissions/codex__gpt-6.1-sol/efflora__fossify-compose-screens/t-3d3a02e2-1/verifier/reward.txtAdded+1