Home
last modified time | relevance | path

Searched refs:Config (Results 1 – 25 of 3086) sorted by relevance

12345678910>>...124

/external/robolectric/robolectric/src/test/java/org/robolectric/
DConfigTest.java13 import org.robolectric.annotation.Config;
19 Config defaults = Config.Builder.defaults().build(); in testDefaults()
27 Config.Implementation base = new Config.Builder().setSdk(16, 17, 18).build(); in withOverlay_withBaseSdk()
29 assertThat(sdksIn(overlay(base, new Config.Builder().build()))) in withOverlay_withBaseSdk()
32 assertThat(sdksIn(overlay(base, new Config.Builder().setSdk(16).build()))) in withOverlay_withBaseSdk()
35 assertThat(sdksIn(overlay(base, new Config.Builder().setMinSdk(16).build()))) in withOverlay_withBaseSdk()
38 assertThat(sdksIn(overlay(base, new Config.Builder().setMaxSdk(20).build()))) in withOverlay_withBaseSdk()
41 assertThat(sdksIn(overlay(base, new Config.Builder().setMinSdk(16).setMaxSdk(18).build()))) in withOverlay_withBaseSdk()
47 Config.Implementation base = new Config.Builder().setMinSdk(18).build(); in withOverlay_withBaseMinSdk()
49 assertThat(sdksIn(overlay(base, new Config.Builder().build()))) in withOverlay_withBaseMinSdk()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DConfigTest.java13 import org.robolectric.annotation.Config;
14 import org.robolectric.annotation.Config.Builder;
20 Config defaults = Config.Builder.defaults().build(); in testDefaults()
28 Config.Implementation base = new Config.Builder().setSdk(16, 17, 18).build(); in withOverlay_withBaseSdk()
30 assertThat(sdksIn(overlay(base, new Config.Builder().build()))) in withOverlay_withBaseSdk()
33 assertThat(sdksIn(overlay(base, new Config.Builder().setSdk(16).build()))) in withOverlay_withBaseSdk()
36 assertThat(sdksIn(overlay(base, new Config.Builder().setMinSdk(16).build()))) in withOverlay_withBaseSdk()
39 assertThat(sdksIn(overlay(base, new Config.Builder().setMaxSdk(20).build()))) in withOverlay_withBaseSdk()
42 assertThat(sdksIn(overlay(base, new Config.Builder().setMinSdk(16).setMaxSdk(18).build()))) in withOverlay_withBaseSdk()
48 Config.Implementation base = new Config.Builder().setMinSdk(18).build(); in withOverlay_withBaseMinSdk()
[all …]
DSdkPickerTest.java13 import org.robolectric.annotation.Config;
32 assertThat(sdkPicker.selectSdks(new Config.Builder().build(), usesSdk)) in withDefaultSdkConfig_shouldUseTargetSdkFromAndroidManifest()
41 assertThat(sdkPicker.selectSdks(new Config.Builder().setSdk(Config.ALL_SDKS).build(), usesSdk)) in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
50 assertThat(sdkPicker.selectSdks(new Config.Builder().setSdk(Config.ALL_SDKS).build(), usesSdk)) in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
60 assertThat(sdkPicker.selectSdks(new Config.Builder().setSdk(Config.ALL_SDKS).build(), usesSdk)) in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
69 assertThat(sdkPicker.selectSdks(new Config.Builder().setMinSdk(24).build(), usesSdk)) in withMinSdkHigherThanSupportedRange_shouldReturnNone()
81 new Config.Builder().setMinSdk(22).setMaxSdk(21).build(), usesSdk); in withMinSdkHigherThanMaxSdk_shouldThrowError()
94 sdkPicker.selectSdks(new Config.Builder().build(), usesSdk); in withTargetSdkLessThanMinSdk_shouldThrowError()
106 sdkPicker.selectSdks(new Config.Builder().build(), usesSdk); in withTargetSdkGreaterThanMaxSdk_shouldThrowError()
118 assertThat(sdkPicker.selectSdks(new Config.Builder().build(), usesSdk)) in shouldClipSdkRangeFromAndroidManifest()
[all …]
/external/catch2/include/internal/
Dcatch_config.cpp14 Config::Config( ConfigData const& data ) in Config() function in Catch::Config
39 std::string const& Config::getFilename() const { in getFilename()
43 bool Config::listTests() const { return m_data.listTests; } in listTests()
44 bool Config::listTestNamesOnly() const { return m_data.listTestNamesOnly; } in listTestNamesOnly()
45 bool Config::listTags() const { return m_data.listTags; } in listTags()
46 bool Config::listReporters() const { return m_data.listReporters; } in listReporters()
48 std::string Config::getProcessName() const { return m_data.processName; } in getProcessName()
49 std::string const& Config::getReporterName() const { return m_data.reporterName; } in getReporterName()
51 std::vector<std::string> const& Config::getTestsOrTags() const { return m_data.testsOrTags; } in getTestsOrTags()
52 … std::vector<std::string> const& Config::getSectionsToRun() const { return m_data.sectionsToRun; } in getSectionsToRun()
[all …]
/external/webrtc/net/dcsctp/packet/
Dtlv_trait.h60 template <typename Config>
66 static constexpr size_t kHeaderSize = Config::kHeaderSize;
68 static_assert(Config::kTypeSizeInBytes == 1 || Config::kTypeSizeInBytes == 2,
70 static_assert(Config::kHeaderSize >= kTlvHeaderSize,
72 static_assert((Config::kHeaderSize % 4 == 0),
74 static_assert((Config::kVariableLengthAlignment == 0 ||
75 Config::kVariableLengthAlignment == 1 ||
76 Config::kVariableLengthAlignment == 2 ||
77 Config::kVariableLengthAlignment == 4 ||
78 Config::kVariableLengthAlignment == 8),
[all …]
/external/webrtc/api/neteq/
Dneteq.cc17 NetEq::Config::Config() = default;
18 NetEq::Config::Config(const Config&) = default;
19 NetEq::Config::Config(Config&&) = default;
20 NetEq::Config::~Config() = default;
21 NetEq::Config& NetEq::Config::operator=(const Config&) = default;
22 NetEq::Config& NetEq::Config::operator=(Config&&) = default;
24 std::string NetEq::Config::ToString() const { in ToString()
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/integrationtests/nativegraphics/
DShadowNativeBitmapTest.java33 import android.graphics.Bitmap.Config;
62 @org.robolectric.annotation.Config(minSdk = O)
127 assertThrows(IllegalStateException.class, () -> bitmap.copy(Config.RGB_565, false)); in testCopyRecycled()
132 Config[] supportedConfigs = in testCopyConfigs()
133 new Config[] { in testCopyConfigs()
134 Config.ALPHA_8, Config.RGB_565, Config.ARGB_8888, Config.RGBA_F16, in testCopyConfigs()
136 for (Config src : supportedConfigs) { in testCopyConfigs()
137 for (Config dst : supportedConfigs) { in testCopyConfigs()
142 if (Config.ALPHA_8 == dst || Config.ALPHA_8 == src) { in testCopyConfigs()
160 bitmap = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testCopyMutableHwBitmap()
[all …]
/external/pigweed/pw_presubmit/py/
Dgitmodules_test.py52 def _run(self, config: gitmodules.Config, contents: str) -> None: argument
64 self._run(gitmodules.Config(), dotgitmodules(url='../foo'))
68 cfg: gitmodules.Config = gitmodules.Config(
85 cfg: gitmodules.Config = gitmodules.Config(validator=validator)
95 cfg: gitmodules.Config = gitmodules.Config(validator=validator)
100 cfg: gitmodules.Config = gitmodules.Config(
107 cfg: gitmodules.Config = gitmodules.Config(
115 cfg: gitmodules.Config = gitmodules.Config(
122 cfg: gitmodules.Config = gitmodules.Config(
128 cfg: gitmodules.Config = gitmodules.Config(
[all …]
/external/robolectric/robolectric/src/main/java/org/robolectric/plugins/
DConfigConfigurer.java7 import org.robolectric.annotation.Config;
14 public class ConfigConfigurer implements Configurer<Config> {
17 private final Config defaultConfig;
19 public static Config get(Configuration testConfig) { in get()
20 return testConfig.get(Config.class); in get()
24 this(packagePropertiesLoader, () -> new Config.Builder().build()); in ConfigConfigurer()
31 this.defaultConfig = Config.Builder.defaults().overlay(defaultConfigProvider.get()).build(); in ConfigConfigurer()
35 public Class<Config> getConfigClass() { in getConfigClass()
36 return Config.class; in getConfigClass()
41 public Config defaultConfig() { in defaultConfig()
[all …]
/external/scudo/standalone/
Dsize_class_map.h25 template <typename Config> struct SizeClassMapBase {
30 if (Config::MaxBytesCachedLog > 31 || Config::MaxSizeLog > 31) in getMaxCachedHint()
31 N = static_cast<u32>((1UL << Config::MaxBytesCachedLog) / Size); in getMaxCachedHint()
33 N = (1U << Config::MaxBytesCachedLog) / static_cast<u32>(Size); in getMaxCachedHint()
37 return static_cast<u16>(Max(1U, Min<u32>(Config::MaxNumCachedHint, N))); in getMaxCachedHint()
60 template <typename Config>
61 class FixedSizeClassMap : public SizeClassMapBase<Config> {
62 typedef SizeClassMapBase<Config> Base;
64 static const uptr MinSize = 1UL << Config::MinSizeLog;
65 static const uptr MidSize = 1UL << Config::MidSizeLog;
[all …]
/external/boringssl/src/ssl/test/runner/
Drunner.go396 var dummyConfig Config
564 config Config
600 resumeConfig *Config
753 func doExchange(test *testCase, config *Config, conn net.Conn, isResume bool, transcripts *[][]byte… argument
1369 var resumeConfig Config
1967 config: Config{
1977 config: Config{
1986 config: Config{
2006 config: Config{
2018 config: Config{
[all …]
/external/cronet/third_party/boringssl/src/ssl/test/runner/
Drunner.go396 var dummyConfig Config
564 config Config
600 resumeConfig *Config
753 func doExchange(test *testCase, config *Config, conn net.Conn, isResume bool, transcripts *[][]byte… argument
1369 var resumeConfig Config
1967 config: Config{
1977 config: Config{
1986 config: Config{
2006 config: Config{
2018 config: Config{
[all …]
/external/webrtc/rtc_base/experiments/
Dbalanced_degradation_settings.cc25 std::vector<BalancedDegradationSettings::Config> DefaultConfigs() { in DefaultConfigs()
93 bool IsValid(const std::vector<BalancedDegradationSettings::Config>& configs) { in IsValid()
139 std::vector<BalancedDegradationSettings::Config> GetValidOrDefault( in GetValidOrDefault()
140 const std::vector<BalancedDegradationSettings::Config>& configs) { in GetValidOrDefault()
149 const BalancedDegradationSettings::Config& config) { in GetThresholds()
187 const absl::optional<BalancedDegradationSettings::Config>& config) { in GetFps()
220 const absl::optional<BalancedDegradationSettings::Config>& config) { in GetKbps()
253 const absl::optional<BalancedDegradationSettings::Config>& config) { in GetKbpsRes()
311 BalancedDegradationSettings::Config::Config() = default;
313 BalancedDegradationSettings::Config::Config(int pixels, in Config() function in webrtc::BalancedDegradationSettings::Config
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapTest.java31 import org.robolectric.annotation.Config;
99 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in shouldCreateActiveBitmap()
104 assertThat(bitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in shouldCreateActiveBitmap()
109 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in hasAlpha()
116 @Config(minSdk = JELLY_BEAN_MR1)
118 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in hasMipmap()
125 @Config(minSdk = KITKAT)
127 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in getAllocationByteCount()
137 Bitmap bitmap = Bitmap.createBitmap(colors, 3, 2, Bitmap.Config.ARGB_8888); in shouldCreateBitmapWithColors()
140 assertThat(bitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in shouldCreateBitmapWithColors()
[all …]
DShadowDevicePolicyManagerTest.java68 import org.robolectric.annotation.Config;
100 @Config(minSdk = JELLY_BEAN_MR2)
111 @Config(minSdk = LOLLIPOP)
123 @Config(minSdk = JELLY_BEAN_MR2)
135 @Config(minSdk = JELLY_BEAN_MR2)
147 @Config(minSdk = JELLY_BEAN_MR2)
155 @Config(minSdk = N)
166 @Config(minSdk = N)
174 @Config(minSdk = LOLLIPOP)
185 @Config(minSdk = LOLLIPOP)
[all …]
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/graphics/
DBitmapTest.java35 import org.robolectric.annotation.Config;
51 @Config(minSdk = P)
76 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testEraseColor()
96 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testCopy()
97 Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false); in testCopy()
105 Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in testCopyAndEraseColor()
110 Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, true); in testCopyAndEraseColor()
137 assertThat(scaledBitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in getConfigAfterCompress()
145 assertThat(scaledBitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in getConfigAfterCreateScaledBitmap()
150 Bitmap bitmap1 = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in scaledBitmap_sameAs()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapTest.java26 import org.robolectric.annotation.Config;
44 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in shouldCreateActiveBitmap()
49 assertThat(bitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in shouldCreateActiveBitmap()
54 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in hasAlpha()
61 @Config(minSdk = JELLY_BEAN_MR1)
63 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in hasMipmap()
70 @Config(minSdk = KITKAT)
72 Bitmap bitmap = Bitmap.createBitmap(100, 200, Bitmap.Config.ARGB_8888); in getAllocationByteCount()
82 Bitmap bitmap = Bitmap.createBitmap(colors, 3, 2, Bitmap.Config.ARGB_8888); in shouldCreateBitmapWithColors()
85 assertThat(bitmap.getConfig()).isEqualTo(Bitmap.Config.ARGB_8888); in shouldCreateBitmapWithColors()
[all …]
DShadowDevicePolicyManagerTest.java44 import org.robolectric.annotation.Config;
69 @Config(minSdk = JELLY_BEAN_MR2)
80 @Config(minSdk = LOLLIPOP)
92 @Config(minSdk = JELLY_BEAN_MR2)
104 @Config(minSdk = JELLY_BEAN_MR2)
116 @Config(minSdk = JELLY_BEAN_MR2)
124 @Config(minSdk = N)
135 @Config(minSdk = N)
143 @Config(minSdk = LOLLIPOP)
154 @Config(minSdk = LOLLIPOP)
[all …]
/external/robolectric/robolectric/src/main/java/org/robolectric/
DConfigMerger.java17 import org.robolectric.annotation.Config;
33 private final Map<String, Config> packageConfigCache = new LinkedHashMap<String, Config>() {
49 public Config getConfig(Class<?> testClass, Method method, Config globalConfig) { in getConfig()
50 Config config = Config.Builder.defaults().build(); in getConfig()
54 Config packageConfig = cachedPackageConfig(packageName); in getConfig()
59 Config classConfig = (Config) clazz.getAnnotation(Config.class); in getConfig()
63 Config methodConfig = method.getAnnotation(Config.class); in getConfig()
84 private Config buildPackageConfig(String packageName) { in buildPackageConfig()
85 return Config.Implementation.fromProperties(getConfigProperties(packageName)); in buildPackageConfig()
131 private Config override(Config config, Config classConfig) { in override()
[all …]
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DConfigMerger.java17 import org.robolectric.annotation.Config;
21 private final Map<String, Config> packageConfigCache = new LinkedHashMap<String, Config>() {
37 public Config getConfig(Class<?> testClass, Method method, Config globalConfig) { in getConfig()
38 Config config = Config.Builder.defaults().build(); in getConfig()
42 Config packageConfig = cachedPackageConfig(packageName); in getConfig()
47 Config classConfig = (Config) clazz.getAnnotation(Config.class); in getConfig()
51 Config methodConfig = method.getAnnotation(Config.class); in getConfig()
72 private Config buildPackageConfig(String packageName) { in buildPackageConfig()
73 return Config.Implementation.fromProperties(getConfigProperties(packageName)); in buildPackageConfig()
119 private Config override(Config config, Config classConfig) { in override()
[all …]
/external/cronet/net/cert/
Dcert_verifier.cc58 CertVerifier::Config::Config() = default;
59 CertVerifier::Config::Config(const Config&) = default;
60 CertVerifier::Config::Config(Config&&) = default;
61 CertVerifier::Config::~Config() = default;
62 CertVerifier::Config& CertVerifier::Config::operator=(const Config&) = default;
63 CertVerifier::Config& CertVerifier::Config::operator=(Config&&) = default;
131 bool operator==(const CertVerifier::Config& lhs, in operator ==()
132 const CertVerifier::Config& rhs) { in operator ==()
145 bool operator!=(const CertVerifier::Config& lhs, in operator !=()
146 const CertVerifier::Config& rhs) { in operator !=()
Dcert_verifier.h46 struct NET_EXPORT Config { struct
47 Config();
48 Config(const Config&);
49 Config(Config&&);
50 ~Config();
51 Config& operator=(const Config&); argument
52 Config& operator=(Config&&); argument
209 virtual void SetConfig(const Config& config) = 0;
233 NET_EXPORT bool operator==(const CertVerifier::Config& lhs,
234 const CertVerifier::Config& rhs);
[all …]
/external/autotest/server/cros/faft/utils/
Dconfig_unittest.py24 cfg = config.Config(platform)
95 child_config = config.Config('childboard')
104 parent_config = config.Config('parentboard')
110 foo_config = config.Config('foo')
150 child_config = config.Config('childboard')
151 child_modelA_config = config.Config('childboard', 'modelA')
152 child_modelB_config = config.Config('childboard', 'modelB')
153 parent_config = config.Config('parentboard')
154 parent_modelA_config = config.Config('parentboard', 'modelA')
155 parent_modelB_config = config.Config('parentboard', 'modelB')
[all …]
/external/robolectric/robolectric/src/test/java/org/robolectric/plugins/
DDefaultSdkPickerTest.java16 import org.robolectric.annotation.Config;
42 assertThat(sdkPicker.selectSdks(buildConfig(new Config.Builder()), usesSdk)) in withDefaultSdk_shouldUseTargetSdkFromAndroidManifest()
51 …assertThat(sdkPicker.selectSdks(buildConfig(new Config.Builder().setSdk(Config.ALL_SDKS)), usesSdk… in withAllSdksConfig_shouldUseFullSdkRangeFromAndroidManifest()
61 …assertThat(sdkPicker.selectSdks(buildConfig(new Config.Builder().setSdk(Config.ALL_SDKS)), usesSdk… in withAllSdksConfigAndNoMinSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
72 …assertThat(sdkPicker.selectSdks(buildConfig(new Config.Builder().setSdk(Config.ALL_SDKS)), usesSdk… in withAllSdksConfigAndNoMaxSdkVersion_shouldUseFullSdkRangeFromAndroidManifest()
82 assertThat(sdkPicker.selectSdks(buildConfig(new Config.Builder().setMinSdk(24)), usesSdk)) in withMinSdkHigherThanSupportedRange_shouldReturnNone()
94 buildConfig(new Config.Builder().setMinSdk(22).setMaxSdk(21)), usesSdk); in withMinSdkHigherThanMaxSdk_shouldThrowError()
107 sdkPicker.selectSdks(buildConfig(new Config.Builder()), usesSdk); in withTargetSdkLessThanMinSdk_shouldThrowError()
119 sdkPicker.selectSdks(buildConfig(new Config.Builder()), usesSdk); in withTargetSdkGreaterThanMaxSdk_shouldThrowError()
131 assertThat(sdkPicker.selectSdks(buildConfig(new Config.Builder()), usesSdk)) in shouldClipSdkRangeFromAndroidManifest()
[all …]
/external/webrtc/call/
Dvideo_receive_stream.cc86 VideoReceiveStreamInterface::Config::Config(const Config&) = default;
87 VideoReceiveStreamInterface::Config::Config(Config&&) = default;
88 VideoReceiveStreamInterface::Config::Config( in Config() function in webrtc::VideoReceiveStreamInterface::Config
94 VideoReceiveStreamInterface::Config&
95 VideoReceiveStreamInterface::Config::operator=(Config&&) = default;
96 VideoReceiveStreamInterface::Config::Config::~Config() = default;
98 std::string VideoReceiveStreamInterface::Config::ToString() const { in ToString()
118 VideoReceiveStreamInterface::Config::Rtp::Rtp() = default;
119 VideoReceiveStreamInterface::Config::Rtp::Rtp(const Rtp&) = default;
120 VideoReceiveStreamInterface::Config::Rtp::~Rtp() = default;
[all …]

12345678910>>...124