Home
last modified time | relevance | path

Searched refs:strategy (Results 1 – 25 of 244) sorted by relevance

12345678910

/external/squashfs-tools/squashfs-tools/
Dgzip_wrapper.c33 static struct strategy strategy[] = { variable
112 for(i = 0; strategy[i].name; i++) { in gzip_options()
113 int n = strlen(strategy[i].name); in gzip_options()
114 if((strncmp(name, strategy[i].name, n) == 0) && in gzip_options()
117 if(strategy[i].selected == 0) { in gzip_options()
118 strategy[i].selected = 1; in gzip_options()
125 if(strategy[i].name == NULL) { in gzip_options()
152 if(strategy_count == 1 && strategy[0].selected) { in gzip_options_post()
154 strategy[0].selected = 0; in gzip_options_post()
190 for(i = 0; strategy[i].name; i++) in gzip_dump_options()
[all …]
Dgzip_wrapper.h42 (s)->strategy = inswap_le16((s)->strategy); \
55 short strategy; member
58 struct strategy { struct
60 int strategy; argument
65 int strategy; member
73 struct gzip_strategy strategy[0]; member
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/
DProbeArrayStrategyFactoryTest.java51 final IProbeArrayStrategy strategy = test(Opcodes.V1_1, 0, false, true, in testClass1() local
53 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass1()
60 final IProbeArrayStrategy strategy = test(Opcodes.V1_2, 0, false, true, in testClass2() local
62 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass2()
69 final IProbeArrayStrategy strategy = test(Opcodes.V1_3, 0, false, true, in testClass3() local
71 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass3()
78 final IProbeArrayStrategy strategy = test(Opcodes.V1_4, 0, false, true, in testClass4() local
80 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass4()
87 final IProbeArrayStrategy strategy = test(Opcodes.V1_5, 0, false, true, in testClass5() local
89 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass()); in testClass5()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
DLruBitmapPool.java24 private final LruPoolStrategy strategy; field in LruBitmapPool
36 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { in LruBitmapPool() argument
39 this.strategy = strategy; in LruBitmapPool()
65 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) { in put()
67 Log.v(TAG, "Reject bitmap from pool=" + strategy.logBitmap(bitmap) + " is mutable=" in put()
73 final int size = strategy.getSize(bitmap); in put()
74 strategy.put(bitmap); in put()
81 Log.v(TAG, "Put bitmap in pool=" + strategy.logBitmap(bitmap)); in put()
111 final Bitmap result = strategy.get(width, height, config != null ? config : DEFAULT_CONFIG); in getDirty()
114 Log.d(TAG, "Missing bitmap=" + strategy.logBitmap(width, height, config)); in getDirty()
[all …]
/external/guava/guava/src/com/google/common/hash/
DBloomFilter.java106 private final Strategy strategy; field in BloomFilter
112 Strategy strategy) { in BloomFilter() argument
120 this.strategy = checkNotNull(strategy); in BloomFilter()
130 return new BloomFilter<T>(bits.copy(), numHashFunctions, funnel, strategy); in copy()
138 return strategy.mightContain(object, funnel, numHashFunctions, bits); in mightContain()
164 return strategy.put(object, funnel, numHashFunctions, bits); in put()
210 (this.strategy.equals(that.strategy)) && in isCompatible()
233 checkArgument(this.strategy.equals(that.strategy), in putAll()
235 this.strategy, that.strategy); in putAll()
252 && this.strategy.equals(that.strategy); in equals()
[all …]
/external/objenesis/main/src/main/java/org/objenesis/
DObjenesisBase.java19 import org.objenesis.strategy.InstantiatorStrategy;
32 protected final InstantiatorStrategy strategy; field in ObjenesisBase
42 public ObjenesisBase(InstantiatorStrategy strategy) { in ObjenesisBase() argument
43 this(strategy, true); in ObjenesisBase()
52 public ObjenesisBase(InstantiatorStrategy strategy, boolean useCache) { in ObjenesisBase() argument
53 if(strategy == null) { in ObjenesisBase()
56 this.strategy = strategy; in ObjenesisBase()
62 return getClass().getName() + " using " + strategy.getClass().getName() in toString()
90 return strategy.newInstantiatorOf(clazz); in getInstantiatorOf()
94 ObjectInstantiator<?> newInstantiator = strategy.newInstantiatorOf(clazz); in getInstantiatorOf()
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DJreDeflateParametersTest.java32 for (int strategy = 0; strategy <= 2; strategy++) { in testOf_AllValidValues()
34 JreDeflateParameters.of(level, strategy, nowrap); in testOf_AllValidValues()
40 private void assertIllegalArgumentException(int level, int strategy, boolean nowrap) { in assertIllegalArgumentException() argument
42 JreDeflateParameters.of(level, strategy, nowrap); in assertIllegalArgumentException()
68 for (int strategy = 0; strategy <= 2; strategy++) { in testParseString()
70 JreDeflateParameters params = JreDeflateParameters.of(level, strategy, nowrap); in testParseString()
DDeflateCompressorTest.java134 for (int strategy = 0; strategy <= 2; strategy++) {
137 compressor.setStrategy(strategy);
138 Assert.assertEquals(strategy, compressor.getStrategy());
140 content[strategy] = new Content();
141 content[strategy].compressed = compressedContentOut.toByteArray();
142 content[strategy].uncompressed =
143 uncompressWithJavaInflater(compressor.isNowrap(), content[strategy].compressed);
144 Assert.assertArrayEquals(CONTENT, content[strategy].uncompressed);
DDefaultDeflateCompatibilityWindowTest.java80 for (int strategy = 0; strategy <= 1; strategy++) { in ensureHasAllKeys()
81 Assert.assertTrue(mappings.containsKey(JreDeflateParameters.of(level, strategy, true))); in ensureHasAllKeys()
82 Assert.assertTrue(mappings.containsKey(JreDeflateParameters.of(level, strategy, false))); in ensureHasAllKeys()
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DDeflateCompressor.java38 private int strategy = Deflater.DEFAULT_STRATEGY; field in DeflateCompressor
119 return strategy; in getStrategy()
127 public void setStrategy(int strategy) { in setStrategy() argument
128 if (deflater != null && strategy != this.strategy) { in setStrategy()
130 deflater.setStrategy(strategy); in setStrategy()
132 this.strategy = strategy; in setStrategy()
203 result.setStrategy(strategy); in createOrResetDeflater()
DJreDeflateParameters.java88 public final int strategy; field in JreDeflateParameters
101 private JreDeflateParameters(int level, int strategy, boolean nowrap) { in JreDeflateParameters() argument
102 if (level < 1 || level > 9 || strategy < 0 || strategy > 2) { in JreDeflateParameters()
106 this.strategy = strategy; in JreDeflateParameters()
110 public static JreDeflateParameters of(int level, int strategy, boolean nowrap) { in of() argument
111 int id = (level * 100) + (strategy * 10) + (nowrap ? 1 : 0); in of()
228 return "level=" + level + ",strategy=" + strategy + ",nowrap=" + nowrap; in toString()
/external/openssh/regress/unittests/test_helper/
Dfuzz.c61 int strategy; member
108 switch (fuzz->strategy) { in fuzz_fmt()
111 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
116 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
123 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
128 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
135 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
140 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
146 fuzz_ntop(fuzz->strategy), in fuzz_fmt()
264 fuzz, fuzz_ntop(fuzz->strategy), fuzz->o1, fuzz->o2, fuzz->slen)); in fuzz_strategy_done()
[all …]
/external/autotest/client/common_lib/hosts/
Drepair_unittest.py972 strategy = hosts.RepairStrategy(verify_data, [])
975 strategy._verify_root._dependency_list,
991 strategy = hosts.RepairStrategy(verify_data, [])
995 strategy._verify_root._dependency_list, [parent])
1016 strategy = hosts.RepairStrategy(verify_data, [])
1021 strategy._verify_root._dependency_list,
1048 strategy = hosts.RepairStrategy(verify_data, [])
1053 strategy._verify_root._dependency_list,
1072 strategy = hosts.RepairStrategy(verify_data, [])
1078 strategy.verify(self._fake_host, silent)
[all …]
/external/curl/lib/
Ddict.c131 char *strategy = NULL; in dict_do() local
157 strategy = strchr(database, ':'); in dict_do()
158 if(strategy) { in dict_do()
159 *strategy++ = (char)0; in dict_do()
160 nthdef = strchr(strategy, ':'); in dict_do()
175 if((strategy == NULL) || (*strategy == (char)0)) { in dict_do()
176 strategy = (char *)"."; in dict_do()
192 strategy, in dict_do()
/external/ltp/testcases/kernel/controllers/io-throttle/
Drun_io_throttle_test.sh52 for strategy in 0 1; do
66 /bin/echo $dev:$limit:$strategy:$limit > \
82 if [ $strategy -eq 0 ]; then
107 echo "ERROR: error code $ret during test $tasks.$strategy.$i. Exiting test."
115 echo "TPASS Block device I/O bandwidth controller: test $tasks.$strategy.$i PASSED";
117 echo "TFAIL Block device I/O bandwidth controller: test $tasks.$strategy.$i FAILED";
/external/zopfli/src/zopflipng/
Dzopflipng_bin.cc198 ZopfliPNGFilterStrategy strategy = kStrategyZero; in main() local
201 case '0': strategy = kStrategyZero; break; in main()
202 case '1': strategy = kStrategyOne; break; in main()
203 case '2': strategy = kStrategyTwo; break; in main()
204 case '3': strategy = kStrategyThree; break; in main()
205 case '4': strategy = kStrategyFour; break; in main()
206 case 'm': strategy = kStrategyMinSum; break; in main()
207 case 'e': strategy = kStrategyEntropy; break; in main()
208 case 'p': strategy = kStrategyPredefined; break; in main()
209 case 'b': strategy = kStrategyBruteForce; break; in main()
[all …]
/external/skia/src/android/
DSkBitmapRegionDecoder.cpp15 sk_sp<SkData> data, Strategy strategy) { in Create() argument
17 strategy); in Create()
21 SkStreamRewindable* stream, Strategy strategy) { in Create() argument
23 switch (strategy) { in Create()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DSplitter.java103 private final Strategy strategy; field in Splitter
106 private Splitter(Strategy strategy) { in Splitter() argument
107 this(strategy, false, CharMatcher.NONE, Integer.MAX_VALUE); in Splitter()
110 private Splitter(Strategy strategy, boolean omitEmptyStrings, in Splitter() argument
112 this.strategy = strategy; in Splitter()
258 return new Splitter(strategy, true, trimmer, limit);
283 return new Splitter(strategy, omitEmptyStrings, trimmer, limit);
316 return new Splitter(strategy, omitEmptyStrings, trimmer, limit);
344 return strategy.iterator(this, sequence);
/external/guava/guava/src/com/google/common/base/
DSplitter.java106 private final Strategy strategy; field in Splitter
109 private Splitter(Strategy strategy) { in Splitter() argument
110 this(strategy, false, CharMatcher.NONE, Integer.MAX_VALUE); in Splitter()
113 private Splitter(Strategy strategy, boolean omitEmptyStrings, in Splitter() argument
115 this.strategy = strategy; in Splitter()
316 return new Splitter(strategy, true, trimmer, limit);
341 return new Splitter(strategy, omitEmptyStrings, trimmer, limit);
374 return new Splitter(strategy, omitEmptyStrings, trimmer, limit);
402 return strategy.iterator(this, sequence);
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
DMockInjectionStrategy.java40 public MockInjectionStrategy thenTry(MockInjectionStrategy strategy) {
42 nextStrategy.thenTry(strategy);
44 nextStrategy = strategy;
46 return strategy;
/external/caliper/examples/src/main/java/examples/
DCopyArrayBenchmark.java241 @Param Strategy strategy; field in CopyArrayBenchmark
284 dummy += System.identityHashCode(strategy.copy(objectArray)); in objects()
292 dummy += System.identityHashCode(strategy.copy(booleanArray)); in booleans()
300 dummy += System.identityHashCode(strategy.copy(byteArray)); in bytes()
308 dummy += System.identityHashCode(strategy.copy(charArray)); in chars()
316 dummy += System.identityHashCode(strategy.copy(doubleArray)); in doubles()
324 dummy += System.identityHashCode(strategy.copy(floatArray)); in floats()
332 dummy += System.identityHashCode(strategy.copy(intArray)); in ints()
340 dummy += System.identityHashCode(strategy.copy(longArray)); in longs()
348 dummy += System.identityHashCode(strategy.copy(shortArray)); in shorts()
DVarargsBenchmark.java128 @Param private Strategy strategy; field in VarargsBenchmark
164 dummy += strategy.one(data[i % dataLength]); in oneArgument()
174 dummy += strategy.two(data[i % dataLength], data[(i + 1) % dataLength]); in twoArguments()
184 dummy += strategy.three( in threeArguments()
197 dummy += strategy.four( in fourArguments()
211 dummy += strategy.five( in fiveArguments()
226 dummy += strategy.six( in sixArguments()
/external/junit-params/src/main/java/junitparams/internal/parameters/
DParametersReader.java40 for (ParametrizationStrategy strategy : strategies) { in read()
41 if (strategy.isApplicable()) { in read()
45 parameters = strategy.getParameters(); in read()
/external/mockito/src/test/java/org/mockitousage/misuse/
DSpyStubbingMisuseTest.java46 Strategy strategy; field in SpyStubbingMisuseTest.Producer
48 strategy = f; in Producer()
51 return new Sampler(strategy); in produce()
/external/desugar/java/com/google/devtools/build/android/desugar/runtime/
DThrowableExtension.java47 AbstractDesugaringStrategy strategy;
51 strategy = new ReuseDesugaringStrategy();
53 strategy = new MimicDesugaringStrategy();
55 strategy = new NullDesugaringStrategy();
66 strategy = new NullDesugaringStrategy();
68 STRATEGY = strategy;

12345678910