Implement controller to disable transcoding cache

This is to provide users with control over whether to disable
transcoding cache or not.

By default we keep the transcoding cache enabled.

The controller resides within the Media transcoding settings under
Developer Options.

Test: Manual. Unit tests added.
Bug: 185246580
Change-Id: I5cc85e4a254c87b5c84c32a303e8294c918748c2
This commit is contained in:
Biswarup Pal
2021-04-14 11:29:13 +00:00
parent 42f8180428
commit 4da3dd1458
6 changed files with 138 additions and 3 deletions

View File

@@ -40,4 +40,9 @@
android:key="transcode_notification"
android:title="@string/transcode_notification"
settings:controller="com.android.settings.development.transcode.TranscodeNotificationPreferenceController" />
<SwitchPreference
android:key="transcode_disable_cache"
android:title="@string/transcode_disable_cache"
settings:controller="com.android.settings.development.transcode.TranscodeDisableCachePreferenceController" />
</PreferenceScreen>