Searched refs:strategy (Results 1 - 25 of 182) sorted by relevance

12345678

/external/objenesis/main/src/main/java/org/objenesis/strategy/
H A DBaseInstantiatorStrategy.java16 package org.objenesis.strategy;
H A DInstantiatorStrategy.java16 package org.objenesis.strategy;
21 * Defines a strategy to determine the best instantiator for a class.
/external/squashfs-tools/squashfs-tools/
H A Dgzip_wrapper.h42 (s)->strategy = inswap_le16((s)->strategy); \
55 short strategy; member in struct:gzip_comp_opts
58 struct strategy { struct
60 int strategy; member in struct:strategy
65 int strategy; member in struct:gzip_strategy
73 struct gzip_strategy strategy[0]; member in struct:gzip_stream
H A Dgzip_wrapper.c33 static struct strategy strategy[] = { variable in typeref:struct:strategy
112 for(i = 0; strategy[i].name; i++) {
113 int n = strlen(strategy[i].name);
114 if((strncmp(name, strategy[i].name, n) == 0) &&
117 if(strategy[i].selected == 0) {
118 strategy[i].selected = 1;
125 if(strategy[i].name == NULL) {
127 "strategy\n");
152 if(strategy_count == 1 && strategy[
406 struct gzip_strategy *strategy = &stream->strategy[i]; local
[all...]
/external/perfetto/src/ftrace_reader/
H A Devent_info_unittest.cc48 ASSERT_FALSE(field.strategy);
65 ASSERT_FALSE(field.strategy);
71 TranslationStrategy strategy = kUint32ToUint32; local
72 ASSERT_FALSE(SetTranslationStrategy(kFtraceCString, kProtoUint64, &strategy));
73 ASSERT_EQ(strategy, kUint32ToUint32);
74 ASSERT_TRUE(SetTranslationStrategy(kFtraceCString, kProtoString, &strategy));
75 ASSERT_EQ(strategy, kCStringToString);
76 ASSERT_TRUE(SetTranslationStrategy(kFtracePid32, kProtoInt32, &strategy));
77 ASSERT_EQ(strategy, kPid32ToInt32);
78 ASSERT_TRUE(SetTranslationStrategy(kFtraceInode32, kProtoUint64, &strategy));
[all...]
/external/tensorflow/tensorflow/contrib/learn/python/learn/
H A Dexport_strategy_test.py33 strategy = export_strategy.ExportStrategy('foo', _export_fn)
34 self.assertTupleEqual(strategy, ('foo', _export_fn, None))
35 self.assertIs(strategy.export(None, None), model_path)
44 strategy = export_strategy.ExportStrategy('foo', _ckpt_export_fn)
45 self.assertTupleEqual(strategy, ('foo', _ckpt_export_fn, None))
46 self.assertIs(strategy.export(None, None, 'checkpoint'), ckpt_model_path)
57 strategy = export_strategy.ExportStrategy('foo', _ckpt_eval_export_fn)
58 self.assertTupleEqual(strategy, ('foo', _ckpt_eval_export_fn, None))
59 self.assertIs(strategy.export(None, None, 'checkpoint', 'eval'),
66 strategy
[all...]
/external/objenesis/main/src/main/java/org/objenesis/
H A DObjenesisBase.java19 import org.objenesis.strategy.InstantiatorStrategy;
24 * Base class to extend if you want to have a class providing your own default strategy. Can also be
32 protected final InstantiatorStrategy strategy; field in class:ObjenesisBase
38 * Constructor allowing to pick a strategy and using cache
40 * @param strategy Strategy to use
42 public ObjenesisBase(InstantiatorStrategy strategy) { argument
43 this(strategy, true);
47 * Flexible constructor allowing to pick the strategy and if caching should be used
49 * @param strategy Strategy to use
52 public ObjenesisBase(InstantiatorStrategy strategy, boolea argument
[all...]
H A DObjenesisSerializer.java18 import org.objenesis.strategy.SerializingInstantiatorStrategy;
28 * Default constructor using the {@link org.objenesis.strategy.SerializingInstantiatorStrategy}
35 * Instance using the {@link org.objenesis.strategy.SerializingInstantiatorStrategy} with or without caching
H A DObjenesisStd.java18 import org.objenesis.strategy.StdInstantiatorStrategy;
21 * Objenesis implementation using the {@link org.objenesis.strategy.StdInstantiatorStrategy}.
28 * Default constructor using the {@link org.objenesis.strategy.StdInstantiatorStrategy}
35 * Instance using the {@link org.objenesis.strategy.StdInstantiatorStrategy} with or without
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
H A DJreDeflateParametersTest.java32 for (int strategy = 0; strategy <= 2; strategy++) {
34 JreDeflateParameters.of(level, strategy, nowrap);
40 private void assertIllegalArgumentException(int level, int strategy, boolean nowrap) { argument
42 JreDeflateParameters.of(level, strategy, nowrap);
55 assertIllegalArgumentException(1, -1, true); // Bad strategy (insane value < 0)
56 assertIllegalArgumentException(1, 3, true); // Bad strategy (valid in zlib, unsupported in JRE)
68 for (int strategy = 0; strategy <
[all...]
/external/skia/src/android/
H A DSkBitmapRegionDecoder.cpp15 sk_sp<SkData> data, Strategy strategy) {
17 strategy);
21 SkStreamRewindable* stream, Strategy strategy) {
23 switch (strategy) {
14 Create( sk_sp<SkData> data, Strategy strategy) argument
20 Create( SkStreamRewindable* stream, Strategy strategy) argument
/external/skqp/src/android/
H A DSkBitmapRegionDecoder.cpp15 sk_sp<SkData> data, Strategy strategy) {
17 strategy);
21 SkStreamRewindable* stream, Strategy strategy) {
23 switch (strategy) {
14 Create( sk_sp<SkData> data, Strategy strategy) argument
20 Create( SkStreamRewindable* stream, Strategy strategy) argument
/external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
H A DDeflateCompressor.java25 * compression, the default strategy, and no-wrap by default along with a 32k read buffer and a 32k
36 * The compression strategy to use. Defaults to {@link Deflater#DEFAULT_STRATEGY}.
38 private int strategy = Deflater.DEFAULT_STRATEGY; field in class:DeflateCompressor
115 * Returns the strategy that will be used, from {@link Deflater}.
116 * @return the strategy
119 return strategy;
123 * Sets the strategy that will be used. Valid values can be found in {@link Deflater}. Defaults to
125 * @param strategy the strategy to be used
127 public void setStrategy(int strategy) { argument
[all...]
H A DJreDeflateParameters.java20 * two of these are frequently encountered: (level 6, strategy 0, nowrap) and (level 9, strategy 0,
86 * The strategy used by the deflate compressor.
88 public final int strategy; field in class:JreDeflateParameters
98 * @param strategy the strategy for the deflate compressor
101 private JreDeflateParameters(int level, int strategy, boolean nowrap) { argument
102 if (level < 1 || level > 9 || strategy < 0 || strategy > 2) {
106 this.strategy
110 of(int level, int strategy, boolean nowrap) argument
[all...]
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/
H A DMockInjectionStrategy.java12 * Injector strategy contract
17 * NOP Strategy that will always try the next strategy.
31 * Enqueue next injection strategy.
37 * @param strategy Queued strategy.
38 * @return The passed strategy instance to allow chaining.
40 public MockInjectionStrategy thenTry(MockInjectionStrategy strategy) { argument
42 nextStrategy.thenTry(strategy);
44 nextStrategy = strategy;
46 return strategy;
[all...]
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/
H A DProbeArrayStrategyFactoryTest.java51 final IProbeArrayStrategy strategy = test(Opcodes.V1_1, 0, false, true,
53 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
60 final IProbeArrayStrategy strategy = test(Opcodes.V1_2, 0, false, true,
62 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
69 final IProbeArrayStrategy strategy = test(Opcodes.V1_3, 0, false, true,
71 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
78 final IProbeArrayStrategy strategy = test(Opcodes.V1_4, 0, false, true,
80 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
87 final IProbeArrayStrategy strategy = test(Opcodes.V1_5, 0, false, true,
89 assertEquals(ClassFieldProbeArrayStrategy.class, strategy
[all...]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
H A DLruBitmapPool.java24 private final LruPoolStrategy strategy; field in class:LruBitmapPool
36 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { argument
39 this.strategy = strategy;
65 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) {
67 Log.v(TAG, "Reject bitmap from pool=" + strategy.logBitmap(bitmap) + " is mutable="
73 final int size = strategy.getSize(bitmap);
74 strategy.put(bitmap);
81 Log.v(TAG, "Put bitmap in pool=" + strategy.logBitmap(bitmap));
111 final Bitmap result = strategy
[all...]
/external/guava/guava/src/com/google/common/hash/
H A DBloomFilter.java64 * A strategy to translate T instances, to {@code numHashFunctions} bit indexes.
85 * Identifier used to encode this strategy, when marshalled as part of a BloomFilter.
88 * negative values are reserved for any custom, stateful strategy we may define
89 * (e.g. any kind of strategy that would depend on user input).
104 * The strategy we employ to map an element T to {@code numHashFunctions} bit indexes.
106 private final Strategy strategy; field in class:BloomFilter
112 Strategy strategy) {
120 this.strategy = checkNotNull(strategy);
130 return new BloomFilter<T>(bits.copy(), numHashFunctions, funnel, strategy);
111 BloomFilter(BitArray bits, int numHashFunctions, Funnel<? super T> funnel, Strategy strategy) argument
292 create( Funnel<? super T> funnel, int expectedInsertions , double fpp, Strategy strategy) argument
394 final Strategy strategy; field in class:BloomFilter.SerialForm
[all...]
/external/junit-params/src/main/java/junitparams/internal/parameters/
H A DParametersReader.java17 "Check that you have only used one supported parameters evaluation strategy. " +
40 for (ParametrizationStrategy strategy : strategies) {
41 if (strategy.isApplicable()) {
45 parameters = strategy.getParameters();
/external/ltp/testcases/kernel/controllers/io-throttle/
H A 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/mockito/src/test/java/org/mockitousage/misuse/
H A DSpyStubbingMisuseTest.java46 Strategy strategy; field in class:SpyStubbingMisuseTest.Producer
48 strategy = f;
51 return new Sampler(strategy);
/external/puffin/src/
H A Dsample_generator.h28 int strategy,
/external/desugar/test/java/com/google/devtools/build/android/desugar/runtime/
H A DThrowableExtensionTest.java197 MimicDesugaringStrategy strategy = new MimicDesugaringStrategy();
198 ExceptionForTest receiver = new ExceptionForTest(strategy);
200 strategy.addSuppressed(receiver, suppressed);
202 String trace = printStackTraceStderrToString(() -> strategy.printStackTrace(receiver));
209 MimicDesugaringStrategy strategy = new MimicDesugaringStrategy();
212 strategy.addSuppressed(receiver, suppressed);
216 stream -> strategy.printStackTrace(receiver, stream)))
221 writer -> strategy.printStackTrace(receiver, writer)))
224 assertThat(printStackTraceStderrToString(() -> strategy.printStackTrace(receiver)))
286 NullDesugaringStrategy strategy
381 private final MimicDesugaringStrategy strategy; field in class:ThrowableExtensionTest.ExceptionForTest
383 ExceptionForTest(MimicDesugaringStrategy strategy) argument
[all...]
H A DThrowableExtensionTestUtility.java21 * A utility class for testing ThrowableExtension. It uses reflection to get the strategy name, so
27 private static final String SYSTEM_PROPERTY_EXPECTED_STRATEGY = "expected.strategy";
46 Object strategy = method.invoke(null);
47 return strategy.getClass().getName();
/external/skia/include/android/
H A DSkBitmapRegionDecoder.h29 * @param strategy Strategy used for scaling and subsetting
32 static SkBitmapRegionDecoder* Create(sk_sp<SkData>, Strategy strategy);
36 * @param strategy Strategy used for scaling and subsetting
40 SkStreamRewindable* stream, Strategy strategy);

Completed in 717 milliseconds

12345678