HomeSort by relevance Sort by last modified time
    Searched refs:strategy (Results 1 - 25 of 889) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/objenesis/main/src/main/java/org/objenesis/strategy/
BaseInstantiatorStrategy.java 16 package org.objenesis.strategy;
InstantiatorStrategy.java 16 package org.objenesis.strategy;
21 * Defines a strategy to determine the best instantiator for a class.
  /external/squashfs-tools/squashfs-tools/
gzip_wrapper.h 42 (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
gzip_wrapper.c 33 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[0].selected)
406 struct gzip_strategy *strategy = &stream->strategy[i]; local
    [all...]
  /external/objenesis/main/src/main/java/org/objenesis/
ObjenesisBase.java 19 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
31 /** Strategy used by this Objenesi implementation to create classes */
32 protected final InstantiatorStrategy strategy; field in class:ObjenesisBase
34 /** Strategy cache. Key = Class, Value = InstantiatorStrategy */
38 * Constructor allowing to pick a strategy and using cache
40 * @param strategy Strategy to use
42 public ObjenesisBase(InstantiatorStrategy strategy) {
43 this(strategy, true)
    [all...]
ObjenesisSerializer.java 18 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
ObjenesisStd.java 18 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/
JreDeflateParametersTest.java 32 for (int strategy = 0; strategy <= 2; strategy++) {
34 JreDeflateParameters.of(level, strategy, nowrap);
40 private void assertIllegalArgumentException(int level, int strategy, boolean nowrap) {
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 <= 2; strategy++)
    [all...]
  /external/skia/src/android/
SkBitmapRegionDecoder.cpp 15 sk_sp<SkData> data, Strategy strategy) {
17 strategy);
21 SkStreamRewindable* stream, Strategy strategy) {
23 switch (strategy) {
  /frameworks/av/services/audiopolicy/engineconfigurable/src/
Usage.cpp 37 status_t Element<audio_usage_t>::set<routing_strategy>(routing_strategy strategy)
39 if (strategy >= NUM_STRATEGIES) {
42 ALOGD("%s: %d for Usage %s", __FUNCTION__, strategy, getName().c_str());
43 mApplicableStrategy = strategy;
Stream.cpp 40 * Set the strategy to follow for this stream.
41 * It checks if the strategy is valid.
43 * @param[in] strategy to be followed.
45 * @return NO_ERROR if the strategy is set correctly, error code otherwise.
48 status_t Element<audio_stream_type_t>::set<routing_strategy>(routing_strategy strategy)
50 if (strategy >= NUM_STRATEGIES) {
53 mApplicableStrategy = strategy;
54 ALOGD("%s: 0x%X for Stream %s", __FUNCTION__, strategy, getName().c_str());
  /external/archive-patcher/shared/src/main/java/com/google/archivepatcher/shared/
DeflateCompressor.java 25 * 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) {
    [all...]
JreDeflateParameters.java 20 * 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) {
102 if (level < 1 || level > 9 || strategy < 0 || strategy > 2) {
106 this.strategy = strategy
    [all...]
  /external/mockito/src/main/java/org/mockito/internal/configuration/injection/
MockInjectionStrategy.java 12 * 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) {
42 nextStrategy.thenTry(strategy);
44 nextStrategy = strategy;
    [all...]
  /libcore/dom/src/test/java/org/w3c/domts/
DocumentBuilderSetting.java 33 * strategy used to set or get property value.
35 private final DocumentBuilderSettingStrategy strategy; field in class:DocumentBuilderSetting
204 * @param strategy strategy, may not be null
209 DocumentBuilderSettingStrategy strategy) {
215 this.strategy = strategy;
232 return strategy.hasConflict(other.strategy);
241 return strategy.hasSetting(factory) == value
    [all...]
  /libcore/luni/src/test/java/tests/org/w3c/dom/
DocumentBuilderSetting.java 33 * strategy used to set or get property value.
35 private final DocumentBuilderSettingStrategy strategy; field in class:DocumentBuilderSetting
204 * @param strategy strategy, may not be null
209 DocumentBuilderSettingStrategy strategy) {
215 this.strategy = strategy;
232 return strategy.hasConflict(other.strategy);
241 return strategy.hasSetting(factory) == value
    [all...]
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/instr/
ProbeArrayStrategyFactoryTest.java 51 final IProbeArrayStrategy strategy = test(Opcodes.V1_1, 0, false, true, local
53 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
60 final IProbeArrayStrategy strategy = test(Opcodes.V1_2, 0, false, true, local
62 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
69 final IProbeArrayStrategy strategy = test(Opcodes.V1_3, 0, false, true, local
71 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
78 final IProbeArrayStrategy strategy = test(Opcodes.V1_4, 0, false, true, local
80 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass());
87 final IProbeArrayStrategy strategy = test(Opcodes.V1_5, 0, false, true, local
89 assertEquals(ClassFieldProbeArrayStrategy.class, strategy.getClass())
96 final IProbeArrayStrategy strategy = test(Opcodes.V1_6, 0, false, true, local
105 final IProbeArrayStrategy strategy = test(Opcodes.V1_7, 0, false, true, local
114 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, 0, false, true, local
126 final IProbeArrayStrategy strategy = test(Opcodes.V1_7, local
135 final IProbeArrayStrategy strategy = test(Opcodes.V1_7, local
144 IProbeArrayStrategy strategy = test(Opcodes.V1_7, Opcodes.ACC_INTERFACE, local
152 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, local
165 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, local
174 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, local
181 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, local
193 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, local
203 final IProbeArrayStrategy strategy = test(Opcodes.V1_8, local
243 final IProbeArrayStrategy strategy = ProbeArrayStrategyFactory local
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/
LruBitmapPool.java 24 private final LruPoolStrategy strategy; field in class:LruBitmapPool
36 LruBitmapPool(int maxSize, LruPoolStrategy strategy) {
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.get(width, height, config != null ? config : DEFAULT_CONFIG)
170 final LruPoolStrategy strategy; local
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/util/
FallbackStrategies.java 50 public interface Strategy<Input, Output> {
54 private final List<Strategy<Input, Output>> mChainedStrategies;
56 private FallbackStrategies(final Strategy<Input, Output> primaryStrategy) {
57 mChainedStrategies = new ArrayList<Strategy<Input, Output>>();
62 final Strategy<Input, Output> primaryStrategy) {
66 public FallbackStrategies<Input, Output> thenTry(final Strategy<Input, Output> strategy) {
68 mChainedStrategies.add(strategy);
75 final Strategy<Input, Output> strategy = mChainedStrategies.get(i) local
    [all...]
  /external/guava/guava/src/com/google/common/hash/
BloomFilter.java 64 * A strategy to translate T instances, to {@code numHashFunctions} bit indexes.
68 interface Strategy extends java.io.Serializable {
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) {
    [all...]
  /external/junit-params/src/main/java/junitparams/internal/parameters/
ParametersReader.java 17 "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/
run_io_throttle_test.sh 52 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/
SpyStubbingMisuseTest.java 18 Strategy mfoo = mock(Strategy.class);
32 public class Strategy {
40 Sampler(Strategy f) {
46 Strategy strategy; field in class:SpyStubbingMisuseTest.Producer
47 Producer(Strategy f) {
48 strategy = f;
51 return new Sampler(strategy);
  /frameworks/av/services/audiopolicy/engineconfigurable/interface/
AudioPolicyPluginInterface.h 33 * strategy, strategy to be followed by a usage or a stream, ...)
39 * Add a strategy to the engine
41 * @param[in] name of the strategy to add
46 * @return NO_ERROR if the strategy has been added successfully, error code otherwise.
91 * Set the device to be used by a strategy.
93 * @param[in] strategy: name of the strategy for which the device to use has to be set
94 * @param[in] devices; mask of devices to be used for the given strategy.
96 * @return true if the devices were set correclty for this strategy, false otherwise
    [all...]
  /frameworks/base/core/java/android/view/
VelocityTracker.java 40 private static native long nativeInitialize(String strategy);
63 * Obtains a velocity tracker with the specified strategy.
66 * @param strategy The strategy, or null to use the default.
71 public static VelocityTracker obtain(String strategy) {
72 if (strategy == null) {
75 return new VelocityTracker(strategy);
89 private VelocityTracker(String strategy) {
90 mPtr = nativeInitialize(strategy);
91 mStrategy = strategy;
    [all...]

Completed in 930 milliseconds

1 2 3 4 5 6 7 8 91011>>