/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/org/objenesis/ |
ObjenesisBase.java | 22 import org.objenesis.strategy.InstantiatorStrategy;
25 * Base class to extend if you want to have a class providing your own default strategy. Can also be
32 /** Strategy used by this Objenesi implementation to create classes */
33 protected final InstantiatorStrategy strategy;
field in class:ObjenesisBase 35 /** Strategy cache. Key = Class, Value = InstantiatorStrategy */
39 * Constructor allowing to pick a strategy and using cache
41 * @param strategy Strategy to use
43 public ObjenesisBase(InstantiatorStrategy strategy) {
44 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/objenesis/main/src/org/objenesis/strategy/ |
InstantiatorStrategy.java | 16 package org.objenesis.strategy;
21 * Defines a strategy to determine the best instantiator for a class.
|
/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/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/ec2/ |
placementgroup.py | 30 def __init__(self, connection=None, name=None, strategy=None, state=None): 33 self.strategy = strategy 42 elif name == 'strategy': 43 self.strategy = value
|
/external/mockito/src/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/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...] |
/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...] |
/external/skia/include/android/ |
SkBitmapRegionDecoder.h | 23 enum Strategy { 30 * @param strategy Strategy used for scaling and subsetting 34 SkData* data, Strategy strategy); 38 * @param strategy Strategy used for scaling and subsetting 42 SkStreamRewindable* stream, Strategy strategy);
|
/external/skia/src/android/ |
SkBitmapRegionDecoder.cpp | 17 SkData* data, Strategy strategy) { 19 strategy); 23 SkStreamRewindable* stream, Strategy strategy) { 25 switch (strategy) {
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
LauncherStrategyFactory.java | 71 ILauncherStrategy strategy = launcherStrategy.newInstance(); local 72 strategy.setUiDevice(mUiDevice); 73 mInstanceMap.put(strategy.getSupportedLauncherPackage(), strategy); local
|
/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...] |
/external/ceres-solver/internal/ceres/ |
dogleg_strategy_test.cc | 139 DoglegStrategy strategy(options_); 142 TrustRegionStrategy::Summary summary = strategy.ComputeStep(pso, 159 DoglegStrategy strategy(options_); 162 TrustRegionStrategy::Summary summary = strategy.ComputeStep(pso, 179 DoglegStrategy strategy(options_); 182 TrustRegionStrategy::Summary summary = strategy.ComputeStep(pso, 206 DoglegStrategy strategy(options_); 209 strategy.ComputeStep(pso, jacobian_.get(), residual_.data(), x_.data()); 212 const Matrix basis = strategy.subspace_basis(); 218 const Vector gradient = strategy.gradient() [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
Deflater.java | 81 private int level, strategy; field in class:Deflater 116 * Compression strategy best used for data consisting mostly of small 123 * Compression strategy for Huffman coding only. 128 * Default compression strategy. 169 this.strategy = DEFAULT_STRATEGY; 263 * Sets the compression strategy to the specified value. 264 * @param strategy the new compression strategy 265 * @exception IllegalArgumentException if the compression strategy is 268 public void setStrategy(int strategy) { [all...] |