FDPT: Full Decrypt Path Testing Application
Cherry pick of http://go/ag/9326830 This is a merge of the full decrypt path testing CLs from the Widevine repo: http://go/wvgerrit/q/topic:FDPT-subsamples This is the Full Decrypt Path Testing application that can be used by device makers to verify that OEMCrypto is correctly decrypting content to secure buffers. Testing: Ran App. Bug: 113594822 Change-Id: Icbb1e2f2e762bac3cc1b7b20749922c14ea24449
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<PreferenceCategory
|
||||
android:key="pref_key_main_category"
|
||||
android:title="@string/pref_main_category">
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_use_level_1"
|
||||
android:title="@string/pref_use_level_1"
|
||||
android:summary="@string/pref_use_level_1_summary"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_use_secure_buffer"
|
||||
android:title="@string/pref_use_secure_buffer"
|
||||
android:summary="@string/pref_use_secure_buffer_summary"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<com.google.widevine.fulldecryptpathtesting.CodecPreference
|
||||
android:key="@string/key_codec"
|
||||
android:title="@string/pref_codec"
|
||||
android:summary="@string/pref_codec_summary"
|
||||
android:defaultValue="@string/default_codec"
|
||||
/>
|
||||
|
||||
<EditTextPreference
|
||||
android:key="@string/key_random_test_count"
|
||||
android:title="@string/pref_random_test_count"
|
||||
android:summary="@string/pref_random_test_count_summary"
|
||||
android:inputType="number"
|
||||
android:defaultValue="5000"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_cenc"
|
||||
android:title="@string/pref_test_cenc"
|
||||
android:summary="@string/pref_test_cenc_summary"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_cens"
|
||||
android:title="@string/pref_test_cens"
|
||||
android:summary="@string/pref_test_cens_summary"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_cbc1"
|
||||
android:title="@string/pref_test_cbc1"
|
||||
android:summary="@string/pref_test_cbc1_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_cbcs"
|
||||
android:title="@string/pref_test_cbcs"
|
||||
android:summary="@string/pref_test_cbcs_summary"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_max"
|
||||
android:title="@string/pref_test_max"
|
||||
android:summary="@string/pref_test_max_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_wrap"
|
||||
android:title="@string/pref_test_wrap"
|
||||
android:summary="@string/pref_test_wrap_summary"
|
||||
android:defaultValue="true"
|
||||
/>
|
||||
|
||||
<!-- TODO(b/139257871) This defaults to false because cbc1 is not -->
|
||||
<!-- handled correctly on most versions of Android at the CDM layer. -->
|
||||
<SwitchPreference
|
||||
android:key="@string/key_test_multi_subsample"
|
||||
android:title="@string/pref_test_multi_subsample"
|
||||
android:summary="@string/pref_test_multi_subsample_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
|
||||
<SwitchPreference
|
||||
android:key="@string/key_log_each_frame"
|
||||
android:title="@string/pref_log_each_frame"
|
||||
android:summary="@string/pref_log_each_frame_summary"
|
||||
android:defaultValue="false"
|
||||
/>
|
||||
|
||||
<EditTextPreference
|
||||
android:key="@string/key_random_seed"
|
||||
android:title="@string/pref_random_seed"
|
||||
android:summary="@string/pref_random_seed_summary"
|
||||
android:inputType="number"
|
||||
android:defaultValue=""
|
||||
/>
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Reference in New Issue
Block a user