/external/glide/library/tests/src/com/bumptech/glide/load/engine/bitmap_recycle/ |
SizeStrategyTest.java | 7 private SizeStrategy strategy; field in class:SizeStrategyTest 12 strategy = new SizeStrategy(); 16 assertNull(strategy.get(100, 100, Bitmap.Config.ARGB_8888)); 21 strategy.put(bitmap); 22 assertEquals(bitmap, strategy.get(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888)); 27 strategy.put(original); 28 assertEquals(original, strategy.get(800, 400, Bitmap.Config.RGB_565)); 33 strategy.put(original); 34 assertEquals(original, strategy.get(200, 800, Bitmap.Config.ARGB_8888)); 39 strategy.put(original) [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/glide/library/src/main/java/com/bumptech/glide/load/engine/bitmap_recycle/ |
LruBitmapPool.java | 12 private final LruPoolStrategy strategy; field in class:LruBitmapPool 23 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { 26 this.strategy = strategy; 33 strategy = new SizeStrategy(); 35 strategy = new AttributeStrategy(); 47 if (!bitmap.isMutable() || strategy.getSize(bitmap) > maxSize) { 51 final int size = strategy.getSize(bitmap); 52 strategy.put(bitmap); 58 Log.d(TAG, "Put bitmap in pool=" + strategy.logBitmap(bitmap)) [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.
|
BaseInstantiatorStrategy.java | 16 package org.objenesis.strategy;
|
/external/chromium_org/chrome/browser/devtools/ |
devtools_contents_resizing_strategy.cc | 25 const DevToolsContentsResizingStrategy& strategy) { 26 insets_ = strategy.insets(); 27 min_size_ = strategy.min_size(); 28 bounds_ = strategy.bounds(); 32 const DevToolsContentsResizingStrategy& strategy) { 33 return insets_ == strategy.insets() && min_size_ == strategy.min_size() && 34 bounds_ == strategy.bounds(); 38 const DevToolsContentsResizingStrategy& strategy, 47 const gfx::Insets& insets = strategy.insets() [all...] |
devtools_contents_resizing_strategy.h | 23 void CopyFrom(const DevToolsContentsResizingStrategy& strategy); 24 bool Equals(const DevToolsContentsResizingStrategy& strategy); 43 // Applies contents resizing strategy, producing bounds for devtools and 49 const DevToolsContentsResizingStrategy& strategy,
|
devtools_contents_resizing_strategy_unittest.cc | 25 DevToolsContentsResizingStrategy strategy( 33 strategy, container_size, 41 DevToolsContentsResizingStrategy strategy( 49 strategy, container_size, 57 DevToolsContentsResizingStrategy strategy( 65 strategy, container_size, 73 DevToolsContentsResizingStrategy strategy( 81 strategy, container_size, 89 DevToolsContentsResizingStrategy strategy( 97 strategy, container_size [all...] |
/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/chromium_org/chrome/test/chromedriver/client/ |
webelement.py | 20 def FindElement(self, strategy, target): 22 Command.FIND_CHILD_ELEMENT, {'using': strategy, 'value': target}) 24 def FindElements(self, strategy, target): 26 Command.FIND_CHILD_ELEMENTS, {'using': strategy, 'value': target})
|
/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/guava/guava/src/com/google/common/hash/ |
BloomFilter.java | 44 * A strategy to translate T instances, to {@code numHashFunctions} bit indexes. 46 interface Strategy extends java.io.Serializable { 70 * The strategy we employ to map an element T to {@code numHashFunctions} bit indexes. 72 private final Strategy strategy; field in class:BloomFilter 78 Strategy strategy) { 83 this.strategy = strategy; 91 return strategy.mightContain(object, funnel, numHashFunctions, bits) 220 final Strategy strategy; field in class:BloomFilter.SerialForm [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
Deflater.java | 88 * The default compression strategy. 98 * A compression strategy. 103 * A compression strategy. 145 private int strategy = DEFAULT_STRATEGY; field in class:Deflater 160 * The compression strategy can be specified with {@link #setStrategy}. A 171 * The compression strategy can be specified with {@link #setStrategy}. 184 * header. The strategy can be specified using {@link #setStrategy}. 191 streamHandle = createStream(compressLevel, strategy, noHeader); 350 * previous compression strategy or level settings. This 406 setLevelsImpl(compressLevel, strategy, streamHandle) [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...] |
/external/chromium_org/chrome/browser/renderer_host/ |
web_cache_manager.cc | 100 // Revise our allocation strategy to account for this new renderer. 247 AllocationStrategy* strategy) { 248 DCHECK(strategy); 276 AddToStrategy(active_renderers_, active_tactic, active_extra, strategy); 277 AddToStrategy(inactive_renderers_, inactive_tactic, inactive_extra, strategy); 279 // We succeeded in computing an allocation strategy. 286 AllocationStrategy* strategy) { 287 DCHECK(strategy); 306 // Record the allocation in our strategy. 307 strategy->push_back(Allocation(*iter, cache_size)) 396 AllocationStrategy strategy; local [all...] |
web_cache_manager_unittest.cc | 65 std::list< std::pair<int,size_t> >* strategy) { 71 strategy); 77 std::list< std::pair<int,size_t> >* strategy) { 81 strategy); 234 AllocationStrategy strategy; local 241 &strategy)); 242 EXPECT_TRUE(strategy.empty()); 249 &strategy)); 250 EXPECT_EQ(2U, strategy.size()); 252 AllocationStrategy::iterator iter = strategy.begin() 280 AllocationStrategy strategy; local 285 &strategy); local [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
AbstractClassGenerator.java | 39 private GeneratorStrategy strategy = DefaultGeneratorStrategy.INSTANCE; field in class:AbstractClassGenerator 144 * Set the strategy to use to create the bytecode from this generator. 147 public void setStrategy(GeneratorStrategy strategy) { 148 if (strategy == null) 149 strategy = DefaultGeneratorStrategy.INSTANCE; 150 this.strategy = strategy; 157 return strategy; 217 byte[] b = strategy.generate(this);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/formatting/ |
AndroidXmlFormatter.java | 76 AndroidXmlFormattingStrategy strategy = new AndroidXmlFormattingStrategy(); local 79 strategy.formatterStarts(context); 80 strategy.format(); 81 strategy.formatterStops();
|
/external/chromium_org/chrome/browser/prefs/ |
mock_validation_delegate.h | 29 strategy(tracking_strategy) {} 34 PrefHashFilter::PrefTrackingStrategy strategy; member in struct:MockValidationDelegate::ValidationEvent 68 PrefHashFilter::PrefTrackingStrategy strategy);
|
/external/guava/guava/src/com/google/common/base/ |
Splitter.java | 101 private final Strategy strategy; field in class:Splitter 104 private Splitter(Strategy strategy) { 105 this(strategy, false, CharMatcher.NONE, Integer.MAX_VALUE); 108 private Splitter(Strategy strategy, boolean omitEmptyStrings, 110 this.strategy = strategy; 141 return new Splitter(new Strategy() { [all...] |
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Splitter.java | 98 private final Strategy strategy; field in class:Splitter 101 private Splitter(Strategy strategy) { 102 this(strategy, false, CharMatcher.NONE, Integer.MAX_VALUE); 105 private Splitter(Strategy strategy, boolean omitEmptyStrings, 107 this.strategy = strategy; 138 return new Splitter(new Strategy() { [all...] |