frameworks/av
リビジョン | 3cd2149e942015e709b0829b6f6269b6da3315a4 (tree) |
---|---|
日時 | 2019-08-23 10:50:21 |
作者 | Pawin Vongmasa <pawin@goog...> |
コミッター | android-build-merger |
Codec2 VTS: Move device resource files to data/local/tmp
am: f08d61d30e
Change-Id: I8515c53d9b0e4a5375359aca877102d2e5758b09
@@ -1,31 +1,36 @@ | ||
1 | -## Codec2 VTS Hal @ 1.0 tests ## | |
2 | ---- | |
3 | -#### master : | |
1 | +# Codec2 VTS Hal @ 1.0 tests # | |
2 | + | |
3 | +## master : | |
4 | 4 | Functionality of master is to enumerate all the Codec2 components available in C2 media service. |
5 | 5 | |
6 | -usage: VtsHalMediaC2V1\_0TargetMasterTest -I default | |
6 | +usage: `VtsHalMediaC2V1_0TargetMasterTest -I default` | |
7 | 7 | |
8 | -#### component : | |
8 | +## component : | |
9 | 9 | Functionality of component test is to validate common functionality across all the Codec2 components available in C2 media service. For a standard C2 component, these tests are expected to pass. |
10 | 10 | |
11 | -usage: VtsHalMediaC2V1\_0TargetComponentTest -I software -C <comp name> | |
12 | -example: VtsHalMediaC2V1\_0TargetComponentTest -I software -C c2.android.vorbis.decoder | |
11 | +usage: `VtsHalMediaC2V1_0TargetComponentTest -I software -C <comp name>` | |
12 | + | |
13 | +example: `VtsHalMediaC2V1_0TargetComponentTest -I software -C c2.android.vorbis.decoder` | |
14 | + | |
15 | +## audio : | |
16 | +Functionality of audio test is to validate audio specific functionality of Codec2 components. The resource files for this test are taken from `frameworks/av/media/codec2/hidl/1.0/vts/functional/res`. The path to these files on the device can be specified with `-P`. (If the device path is omitted, `/data/local/tmp/media/` is the default value.) | |
17 | + | |
18 | +usage: `VtsHalMediaC2V1_0TargetAudioDecTest -I default -C <comp name> -P <path to resource files>` | |
19 | + | |
20 | +usage: `VtsHalMediaC2V1_0TargetAudioEncTest -I software -C <comp name> -P <path to resource files>` | |
21 | + | |
22 | +example: `VtsHalMediaC2V1_0TargetAudioDecTest -I software -C c2.android.flac.decoder -P /data/local/tmp/media/` | |
13 | 23 | |
14 | -#### audio : | |
15 | -Functionality of audio test is to validate audio specific functionality Codec2 components. The resource files for this test are taken from media/codec2/hidl/1.0/vts/functional/res. The path to these files on the device is required to be given for bitstream tests. | |
24 | +example: `VtsHalMediaC2V1_0TargetAudioEncTest -I software -C c2.android.opus.encoder -P /data/local/tmp/media/` | |
16 | 25 | |
17 | -usage: VtsHalMediaC2V1\_0TargetAudioDecTest -I default -C <comp name> -P /sdcard/media/ | |
18 | -usage: VtsHalMediaC2V1\_0TargetAudioEncTest -I software -C <comp name> -P /sdcard/media/ | |
26 | +## video : | |
27 | +Functionality of video test is to validate video specific functionality of Codec2 components. The resource files for this test are taken from `frameworks/av/media/codec2/hidl/1.0/vts/functional/res`. The path to these files on the device can be specified with `-P`. (If the device path is omitted, `/data/local/tmp/media/` is the default value.) | |
19 | 28 | |
20 | -example: VtsHalMediaC2V1\_0TargetAudioDecTest -I software -C c2.android.flac.decoder -P /sdcard/media/ | |
21 | -example: VtsHalMediaC2V1\_0TargetAudioEncTest -I software -C c2.android.opus.encoder -P /sdcard/media/ | |
29 | +usage: `VtsHalMediaC2V1_0TargetVideoDecTest -I default -C <comp name> -P <path to resource files>` | |
22 | 30 | |
23 | -#### video : | |
24 | -Functionality of video test is to validate video specific functionality Codec2 components. The resource files for this test are taken from media/codec2/hidl/1.0/vts/functional/res. The path to these files on the device is required to be given for bitstream tests. | |
31 | +usage: `VtsHalMediaC2V1_0TargetVideoEncTest -I software -C <comp name> -P <path to resource files>` | |
25 | 32 | |
26 | -usage: VtsHalMediaC2V1\_0TargetVideoDecTest -I default -C <comp name> -P /sdcard/media/ | |
27 | -usage: VtsHalMediaC2V1\_0TargetVideoEncTest -I software -C <comp name> -P /sdcard/media/ | |
33 | +example: `VtsHalMediaC2V1_0TargetVideoDecTest -I software -C c2.android.avc.decoder -P /data/local/tmp/media/` | |
28 | 34 | |
29 | -example: VtsHalMediaC2V1\_0TargetVideoDecTest -I software -C c2.android.avc.decoder -P /sdcard/media/ | |
30 | -example: VtsHalMediaC2V1\_0TargetVideoEncTest -I software -C c2.android.vp9.encoder -P /sdcard/media/ | |
35 | +example: `VtsHalMediaC2V1_0TargetVideoEncTest -I software -C c2.android.vp9.encoder -P /data/local/tmp/media/` | |
31 | 36 |
@@ -118,7 +118,7 @@ class ComponentTestEnvironment : public ::testing::VtsHalHidlTargetTestEnvBase { | ||
118 | 118 | registerTestService<IComponentStore>(); |
119 | 119 | } |
120 | 120 | |
121 | - ComponentTestEnvironment() : res("/sdcard/media/") {} | |
121 | + ComponentTestEnvironment() : res("/data/local/tmp/media/") {} | |
122 | 122 | |
123 | 123 | void setComponent(const char* _component) { component = _component; } |
124 | 124 |