/external/glide/library/tests/src/com/bumptech/glide/load/engine/bitmap_recycle/ |
H A D | 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 [all...] |
/external/objenesis/main/src/org/objenesis/ |
H A D | 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
33 protected final InstantiatorStrategy strategy;
field in class:ObjenesisBase 39 * Constructor allowing to pick a strategy and using cache
41 * @param strategy Strategy to use
43 public ObjenesisBase(InstantiatorStrategy strategy) {
argument 44 this(strategy, true);
48 * Flexible constructor allowing to pick the strategy and if caching should be used
50 * @param strategy Strategy to use
53 public ObjenesisBase(InstantiatorStrategy strategy, boolea argument [all...] |
H A D | 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
|
H A D | 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/ |
H A D | LruBitmapPool.java | 12 private final LruPoolStrategy strategy; field in class:LruBitmapPool 23 LruBitmapPool(int maxSize, LruPoolStrategy strategy) { argument 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 [all...] |
/external/objenesis/main/src/org/objenesis/strategy/ |
H A D | InstantiatorStrategy.java | 16 package org.objenesis.strategy;
21 * Defines a strategy to determine the best instantiator for a class.
|
H A D | BaseInstantiatorStrategy.java | 16 package org.objenesis.strategy;
|
/external/chromium_org/chrome/browser/devtools/ |
H A D | devtools_contents_resizing_strategy.cc | 22 const DevToolsContentsResizingStrategy& strategy) { 23 bounds_ = strategy.bounds(); 24 hide_inspected_contents_ = strategy.hide_inspected_contents(); 28 const DevToolsContentsResizingStrategy& strategy) { 29 return bounds_ == strategy.bounds() && 30 hide_inspected_contents_ == strategy.hide_inspected_contents(); 34 const DevToolsContentsResizingStrategy& strategy, 41 const gfx::Rect& bounds = strategy.bounds(); 42 if (bounds.size().IsEmpty() && !strategy.hide_inspected_contents()) { 21 CopyFrom( const DevToolsContentsResizingStrategy& strategy) argument 27 Equals( const DevToolsContentsResizingStrategy& strategy) argument 33 ApplyDevToolsContentsResizingStrategy( const DevToolsContentsResizingStrategy& strategy, const gfx::Size& container_size, gfx::Rect* new_devtools_bounds, gfx::Rect* new_contents_bounds) argument
|
H A D | devtools_contents_resizing_strategy.h | 21 void CopyFrom(const DevToolsContentsResizingStrategy& strategy); 22 bool Equals(const DevToolsContentsResizingStrategy& strategy); 37 // Applies contents resizing strategy, producing bounds for devtools and 43 const DevToolsContentsResizingStrategy& strategy,
|
/external/mockito/src/org/mockito/internal/configuration/injection/ |
H A D | 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) { argument 42 nextStrategy.thenTry(strategy); 44 nextStrategy = strategy; 46 return strategy; [all...] |
/external/chromium_org/chrome/test/chromedriver/client/ |
H A D | 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})
|
/external/guava/guava/src/com/google/common/hash/ |
H A D | BloomFilter.java | 44 * A strategy to translate T instances, to {@code numHashFunctions} bit indexes. 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); 99 strategy.put(object, funnel, numHashFunctions, bits); 220 final Strategy strategy; field in class:BloomFilter.SerialForm 226 this.strategy 77 BloomFilter(BitArray bits, int numHashFunctions, Funnel<T> funnel, Strategy strategy) argument [all...] |
/external/ceres-solver/internal/ceres/ |
H A D | 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 [all...] |
/external/chromium_org/components/web_cache/browser/ |
H A D | web_cache_manager.cc | 90 // Revise our allocation strategy to account for this new renderer. 233 AllocationStrategy* strategy) { 234 DCHECK(strategy); 262 AddToStrategy(active_renderers_, active_tactic, active_extra, strategy); 263 AddToStrategy(inactive_renderers_, inactive_tactic, inactive_extra, strategy); 265 // We succeeded in computing an allocation strategy. 272 AllocationStrategy* strategy) { 273 DCHECK(strategy); 292 // Record the allocation in our strategy. 293 strategy 228 AttemptTactic( AllocationTactic active_tactic, const WebCache::UsageStats& active_stats, AllocationTactic inactive_tactic, const WebCache::UsageStats& inactive_stats, AllocationStrategy* strategy) argument 269 AddToStrategy(const std::set<int>& renderers, AllocationTactic tactic, size_t extra_bytes_to_allocate, AllocationStrategy* strategy) argument 298 EnactStrategy(const AllocationStrategy& strategy) argument 380 AllocationStrategy strategy; local [all...] |
H A D | web_cache_manager_unittest.cc | 67 std::list< std::pair<int,size_t> >* strategy) { 73 strategy); 79 std::list< std::pair<int,size_t> >* strategy) { 83 strategy); 236 AllocationStrategy strategy; local 243 &strategy)); 244 EXPECT_TRUE(strategy.empty()); 251 &strategy)); 252 EXPECT_EQ(2U, strategy.size()); 254 AllocationStrategy::iterator iter = strategy 62 AttemptTactic(WebCacheManager* h, int active_tactic, const WebCache::UsageStats& active_stats, int inactive_tactic, const WebCache::UsageStats& inactive_stats, std::list< std::pair<int,size_t> >* strategy) argument 75 AddToStrategy(WebCacheManager* h, std::set<int> renderers, int tactic, size_t extra_bytes_to_allocate, std::list< std::pair<int,size_t> >* strategy) argument 282 AllocationStrategy strategy; local 287 &strategy); local [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
H A D | 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) { argument 148 if (strategy == null) 149 strategy = DefaultGeneratorStrategy.INSTANCE; 150 this.strategy = strategy; 157 return strategy; 217 byte[] b = strategy.generate(this);
|
/external/chromium_org/chrome/browser/prefs/ |
H A D | mock_validation_delegate.h | 29 strategy(tracking_strategy) {} 34 PrefHashFilter::PrefTrackingStrategy strategy; member in struct:MockValidationDelegate::ValidationEvent 68 PrefHashFilter::PrefTrackingStrategy strategy);
|
H A D | mock_validation_delegate.cc | 59 PrefHashFilter::PrefTrackingStrategy strategy) { 61 ValidationEvent(pref_path, value_state, reset_action, strategy)); 55 RecordValidation( const std::string& pref_path, PrefHashStoreTransaction::ValueState value_state, TrackedPreferenceHelper::ResetAction reset_action, PrefHashFilter::PrefTrackingStrategy strategy) argument
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
H A D | contents_layout_manager.cc | 22 const DevToolsContentsResizingStrategy& strategy) { 23 if (strategy_.Equals(strategy)) 26 strategy_.CopyFrom(strategy); 21 SetContentsResizingStrategy( const DevToolsContentsResizingStrategy& strategy) argument
|
/external/chromium_org/chrome/browser/extensions/api/copresence/ |
H A D | copresence_translations.cc | 36 BroadcastScanConfiguration TranslateStrategy(const Strategy& strategy) { argument 37 bool only_broadcast = strategy.only_broadcast && *strategy.only_broadcast; 38 bool only_scan = strategy.only_scan && *strategy.only_scan; 50 // The strategy may be null (unspecified), so we pass it as a pointer. 51 void SetTokenExchangeStrategy(const Strategy* strategy, argument 54 if (strategy) { 55 BroadcastScanConfiguration config = TranslateStrategy(*strategy); 60 strategy [all...] |
/external/guava/guava/src/com/google/common/base/ |
H A D | Splitter.java | 101 private final Strategy strategy; field in class:Splitter 104 private Splitter(Strategy strategy) { argument 105 this(strategy, false, CharMatcher.NONE, Integer.MAX_VALUE); 108 private Splitter(Strategy strategy, boolean omitEmptyStrings, argument 110 this.strategy = strategy; 302 return new Splitter(strategy, true, trimmer, limit); 327 return new Splitter(strategy, omitEmptyStrings, trimmer, limit); 360 return new Splitter(strategy, omitEmptyStrings, trimmer, limit); 381 return strategy [all...] |
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
H A D | Splitter.java | 98 private final Strategy strategy; field in class:Splitter 101 private Splitter(Strategy strategy) { argument 102 this(strategy, false, CharMatcher.NONE, Integer.MAX_VALUE); 105 private Splitter(Strategy strategy, boolean omitEmptyStrings, argument 107 this.strategy = strategy; 244 return new Splitter(strategy, true, trimmer, limit); 269 return new Splitter(strategy, omitEmptyStrings, trimmer, limit); 302 return new Splitter(strategy, omitEmptyStrings, trimmer, limit); 323 return strategy [all...] |
/external/emma/core/java12/com/vladium/util/ |
H A D | ClassLoaderResolver.java | 110 * Gets the current classloader selection strategy setting. 118 * Sets the classloader selection strategy to be used by subsequent calls 122 * @param strategy new strategy [may not be null] 125 public static synchronized IClassLoadStrategy setStrategy (final IClassLoadStrategy strategy) argument 127 if (strategy == null) throw new IllegalArgumentException ("null input: strategy"); 130 s_strategy = strategy;
|
/external/chromium_org/ui/events/gesture_detection/ |
H A D | velocity_tracker_state.h | 24 explicit VelocityTrackerState(VelocityTracker::Strategy strategy);
|
/external/zopfli/src/zopflipng/ |
H A D | zopflipng_bin.cc | 72 " use block split strategy 3\n" 96 "--splitting=[0-3]: block split strategy:" 103 " strategy)\n" 198 ZopfliPNGFilterStrategy strategy = kStrategyZero; local 201 case '0': strategy = kStrategyZero; break; 202 case '1': strategy = kStrategyOne; break; 203 case '2': strategy = kStrategyTwo; break; 204 case '3': strategy = kStrategyThree; break; 205 case '4': strategy = kStrategyFour; break; 206 case 'm': strategy [all...] |