/cts/tests/media/common/src/android/mediav2/common/cts/ |
D | EncoderConfigParams.java | 73 private EncoderConfigParams(Builder cfg) { in EncoderConfigParams() argument 74 if (cfg.mMediaType == null) { in EncoderConfigParams() 77 mIsAudio = cfg.mMediaType.startsWith("audio/"); in EncoderConfigParams() 78 boolean mIsVideo = cfg.mMediaType.startsWith("video/"); in EncoderConfigParams() 82 mMediaType = cfg.mMediaType; in EncoderConfigParams() 84 if (cfg.mSampleRate <= 0 || cfg.mChannelCount <= 0) { in EncoderConfigParams() 87 mSampleRate = cfg.mSampleRate; in EncoderConfigParams() 88 mChannelCount = cfg.mChannelCount; in EncoderConfigParams() 90 if (cfg.mCompressionLevel < 0 || cfg.mCompressionLevel > 8) { in EncoderConfigParams() 93 mCompressionLevel = cfg.mCompressionLevel; in EncoderConfigParams() [all …]
|
D | CodecEncoderTestBase.java | 586 public void encodeToMemory(String encoder, EncoderConfigParams cfg, RawResource res, in encodeToMemory() argument 593 mActiveEncCfg = cfg; in encodeToMemory() 610 public void encodeToMemory(String encoder, EncoderConfigParams cfg, RawResource res, in encodeToMemory() argument 613 encodeToMemory(encoder, cfg, res, new OutputManager(), frameLimit, saveToMem, muxOutput); in encodeToMemory()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPropertyConfigTest.java | 88 for (CarPropertyConfig cfg : mConfigs) { in testGetPropertyId() 89 int propId = cfg.getPropertyId(); in testGetPropertyId() 109 for (CarPropertyConfig cfg : mConfigs) { in testGetAccess_AreaIdConfigAccessDisabled() 110 int result = cfg.getAccess(); in testGetAccess_AreaIdConfigAccessDisabled() 118 for (CarPropertyConfig<?> cfg : mConfigs) { in testGetAccess_AreaIdConfigAccessEnabled() 122 for (AreaIdConfig<?> areaIdConfig : cfg.getAreaIdConfigs()) { in testGetAccess_AreaIdConfigAccessEnabled() 137 int propertyIdAccess = cfg.getAccess(); in testGetAccess_AreaIdConfigAccessEnabled() 161 for (CarPropertyConfig cfg : mConfigs) { in testGetAreaType() 164 result = cfg.getAreaType(); in testGetAreaType() 172 + VehiclePropertyIds.toString(cfg.getPropertyId())); in testGetAreaType() [all …]
|
D | CarPropertyValueTest.java | 70 for (CarPropertyConfig cfg : configs) { in setUp() 71 mPropIdToConfig.put(cfg.getPropertyId(), cfg); in setUp() local 73 if (cfg.getAccess() == CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ in setUp() 74 || cfg.getAccess() in setUp() 76 CarPropertyValue value = getCarPropertyValue(carPropertyManager, cfg, in setUp() 77 cfg.getAreaIds()[0]); in setUp() 79 Assert.assertEquals(value.getPropertyId(), cfg.getPropertyId()); in setUp() 84 List<? extends AreaIdConfig<?>> areaIdConfigs = cfg.getAreaIdConfigs(); in setUp() 90 CarPropertyValue value = getCarPropertyValue(carPropertyManager, cfg, in setUp() 93 Assert.assertEquals(value.getPropertyId(), cfg.getPropertyId()); in setUp() [all …]
|
D | CarPropertyManagerTest.java | 1258 for (CarPropertyConfig cfg : allConfigs) { in testGetPropertyConfig() 1259 assertThat(mCarPropertyManager.getCarPropertyConfig(cfg.getPropertyId())) in testGetPropertyConfig() 1274 for (CarPropertyConfig cfg : allConfigs) { in testGetAreaId() 1275 if (cfg.isGlobalProperty()) { in testGetAreaId() 1278 cfg.getPropertyId(), in testGetAreaId() 1282 int[] areaIds = cfg.getAreaIds(); in testGetAreaId() 1288 cfg.getPropertyId(), areaIdInConfig); in testGetAreaId() 7935 for (CarPropertyConfig cfg : configs) { 7936 int propId = cfg.getPropertyId(); 7937 List<AreaIdConfig<?>> areaIdConfigs = cfg.getAreaIdConfigs(); [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | EncoderInput.java | 72 public static RawResource getRawResource(EncoderConfigParams cfg) { in getRawResource() argument 73 if (cfg.mIsAudio) { in getRawResource() 74 if (cfg.mPcmEncoding == AudioFormat.ENCODING_PCM_FLOAT) { in getRawResource() 76 } else if (cfg.mPcmEncoding == AudioFormat.ENCODING_PCM_16BIT) { in getRawResource() 80 if (cfg.mColorFormat == COLOR_FormatYUV420Flexible) { in getRawResource() 82 } else if (cfg.mColorFormat == COLOR_FormatYUVP010) { in getRawResource()
|
D | EncoderLevelTest.java | 182 for (EncoderConfigParams cfg : mEncCfgParams) { in testVideoEncodeLevels() 184 MediaFormat formatNotForUse = cfg.getFormat(); in testVideoEncodeLevels() 191 mActiveEncCfg = cfg; in testVideoEncodeLevels() 193 configureCodec(cfg.getFormat(), false, true, true); in testVideoEncodeLevels() 200 EncoderConfigParams.Builder foreman = cfg.getBuilder().clone().setLevel( in testVideoEncodeLevels() 201 EncoderProfileLevelTest.getMinLevel(cfg.mMediaType, cfg.mWidth, in testVideoEncodeLevels() 202 cfg.mHeight, cfg.mFrameRate, cfg.mBitRate, cfg.mProfile)); in testVideoEncodeLevels() 206 validateEncodedPSNR(getRawResource(cfg), mMediaType, mMuxedOutputFile, true, false, in testVideoEncodeLevels()
|
D | EncoderProfileLevelTest.java | 567 private boolean shallSupportProfileAndLevel(EncoderConfigParams cfg) { in shallSupportProfileAndLevel() argument 569 Objects.requireNonNull(CDD_REQUIREMENTS_MAP.get(cfg.mMediaType)); in shallSupportProfileAndLevel() 584 if (cfg.mProfile == cddProfile) { in shallSupportProfileAndLevel() 585 if (!cfg.mIsAudio) { in shallSupportProfileAndLevel() 586 if (cfg.mLevel <= levelCdd) { in shallSupportProfileAndLevel() 587 if (cfg.mMediaType.equalsIgnoreCase(MediaFormat.MIMETYPE_VIDEO_H263) in shallSupportProfileAndLevel() 588 && cfg.mLevel != MediaCodecInfo.CodecProfileLevel.H263Level45 in shallSupportProfileAndLevel() 589 && cfg.mLevel > MediaCodecInfo.CodecProfileLevel.H263Level10) { in shallSupportProfileAndLevel() 648 for (EncoderConfigParams cfg : mEncCfgParams) { in testValidateProfileLevel() 649 mActiveEncCfg = cfg; in testValidateProfileLevel() [all …]
|
D | EncoderColorAspectsTest.java | 136 EncoderConfigParams cfg = foreman.build(); in prepareArgsList() local 137 testArgs[1] = cfg; in prepareArgsList()
|
/cts/tests/tests/provider/src/android/provider/cts/settings/ |
D | Settings_SystemTest.java | 93 Configuration cfg = new Configuration(); in testSystemSettings() local 94 System.getConfiguration(mContentResolver, cfg); in testSystemSettings() 95 float store = cfg.fontScale; in testSystemSettings() 128 cfg = new Configuration(); in testSystemSettings() 129 cfg.fontScale = 1.2f; in testSystemSettings() 130 assertTrue(System.putConfiguration(mContentResolver, cfg)); in testSystemSettings() 132 System.getConfiguration(mContentResolver, cfg); in testSystemSettings() 133 assertEquals(1.2f, cfg.fontScale, 0.001); in testSystemSettings() 149 cfg.fontScale = store; in testSystemSettings() 150 assertTrue(System.putConfiguration(mContentResolver, cfg)); in testSystemSettings()
|
/cts/apps/CameraITS/utils/ |
D | capture_request_utils.py | 206 fmt_configs = [cfg for cfg in configs if cfg['format'] == fmt_codes[fmt]] 207 out_configs = [cfg for cfg in fmt_configs if not cfg['input']] 208 out_sizes = [(cfg['width'], cfg['height']) for cfg in out_configs]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0034/ |
D | poc.cpp | 76 vpx_codec_dec_cfg_t cfg; in main() local 77 memset(&cfg, 0, sizeof(vpx_codec_dec_cfg_t)); in main() 78 cfg.threads = 1; in main() 79 FAIL_CHECK(vpx_codec_dec_init(&codec, &vpx_codec_vp8_dx_algo, &cfg, 0) == VPX_CODEC_OK); in main()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoEncoderInput.java | 69 public static RawResource getRawResource(EncoderConfigParams cfg) { in getRawResource() argument 74 int distance = manhattanDistance(cfg.mWidth, cfg.mHeight, element.getValue().mWidth, in getRawResource()
|
D | VideoEncoderAdaptiveBitRateTest.java | 115 EncoderConfigParams cfg, int[] segmentBitRates, in VideoEncoderAdaptiveBitRateTest() argument 117 super(encoder, mediaType, cfg, allTestParams); in VideoEncoderAdaptiveBitRateTest() 176 EncoderConfigParams cfg = mEncCfgParams[0].getBuilder().setBitRate(maxBitRate).build(); in testAdaptiveBitRate() local 177 MediaFormat format = cfg.getFormat(); in testAdaptiveBitRate()
|
D | VideoEncoderFrameRateTest.java | 122 EncoderConfigParams cfg = mEncCfgParams[0].getBuilder() in testEncoderFrameRateSupport() local 124 MediaFormat format = cfg.getFormat(); in testEncoderFrameRateSupport() 130 encodeToMemory(mCodecName, cfg, FRAME_LIMIT, true, false); in testEncoderFrameRateSupport()
|
D | VideoEncoderMaxBFrameTest.java | 96 public VideoEncoderMaxBFrameTest(String encoder, String mediaType, EncoderConfigParams cfg, in VideoEncoderMaxBFrameTest() argument 98 super(encoder, mediaType, cfg, allTestParams); in VideoEncoderMaxBFrameTest()
|
D | VideoEncoderValidationTestBase.java | 155 protected void encodeToMemory(String encoder, EncoderConfigParams cfg, int frameLimit, in encodeToMemory() argument 157 RawResource res = getRawResource(cfg); in encodeToMemory() 160 super.encodeToMemory(encoder, cfg, res, frameLimit, saveToMem, muxOutput); in encodeToMemory()
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | ResourcesTest.java | 101 final Configuration cfg = new Configuration(); in testResources() local 102 cfg.keyboard = Configuration.KEYBOARDHIDDEN_YES; in testResources() 106 final Resources r = new Resources(am, dm, cfg); in testResources() 277 final Configuration cfg = new Configuration(); in createNewResources() local 278 cfg.setToDefaults(); in createNewResources() 279 return new Resources(new AssetManager(), dm, cfg); in createNewResources() 285 final Configuration cfg = new Configuration(res.getConfiguration()); in testUpdateConfiguration() local 286 assertTrue(cfg.fontScale != 5); in testUpdateConfiguration() 288 cfg.fontScale = 5; in testUpdateConfiguration() 289 res.updateConfiguration(cfg, null); in testUpdateConfiguration() [all …]
|
/cts/apps/CameraITS/tests/scene4/ |
D | test_multi_camera_alignment.py | 446 fmt_configs = [cfg for cfg in configs if cfg['format'] == fmt_code] 447 out_configs = [cfg for cfg in fmt_configs if not cfg['input']] 448 out_sizes = [(cfg['width'], cfg['height']) for cfg in out_configs]
|
/cts/apps/CameraITS/ |
D | .gitignore | 9 its.target.cfg
|