/external/chromium_org/third_party/WebKit/Source/platform/animation/ |
D | AnimationUtilities.h | 38 inline int blend(int from, int to, double progress) in blend() argument 40 return lround(from + (to - from) * progress); in blend() 45 inline T blend(T from, T to, double progress) in blend() argument 48 …eturn clampTo<T>(round(to > from ? from + (to - from) * progress : from - (from - to) * progress)); in blend() 51 inline double blend(double from, double to, double progress) in blend() argument 53 return from + (to - from) * progress; in blend() 56 inline float blend(float from, float to, double progress) in blend() argument 58 return static_cast<float>(from + (to - from) * progress); in blend() 61 inline LayoutUnit blend(LayoutUnit from, LayoutUnit to, double progress) in blend() argument 63 return from + (to - from) * progress; in blend() [all …]
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | progress.test | 12 # focus of this file is testing the 'progress callback'. 14 # $Id: progress.test,v 1.8 2007/06/15 14:53:53 danielk1977 Exp $ 19 # If the progress callback is not available in this build, skip this 21 ifcapable !progress { 45 # Test that the progress callback is invoked. 46 do_test progress-1.0 { 48 db progress 1 "[namespace code {incr counter}] ; expr 0" 54 do_test progress-1.0.1 { 55 db progress 57 do_test progress-1.0.2 { [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | progress.c | 31 struct ext2fs_numeric_progress_struct * progress, in ext2fs_numeric_progress_init() argument 48 memset(progress, 0, sizeof(*progress)); in ext2fs_numeric_progress_init() 50 progress->skip_progress++; in ext2fs_numeric_progress_init() 56 progress->max = max; in ext2fs_numeric_progress_init() 57 progress->log_max = int_log10(max); in ext2fs_numeric_progress_init() 67 struct ext2fs_numeric_progress_struct * progress, in ext2fs_numeric_progress_update() argument 74 if (progress->skip_progress) in ext2fs_numeric_progress_update() 81 printf("%*llu/%*llu", progress->log_max, val, in ext2fs_numeric_progress_update() 82 progress->log_max, progress->max); in ext2fs_numeric_progress_update() 83 fprintf(stdout, "%.*s", (2*progress->log_max)+1, backspaces); in ext2fs_numeric_progress_update() [all …]
|
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
D | FilterOperation.cpp | 34 …on> FilterOperation::blend(const FilterOperation* from, const FilterOperation* to, double progress) in blend() argument 38 return to->blend(from, progress); in blend() 39 return from->blend(0, 1 - progress); in blend() 42 …eration> BasicColorMatrixFilterOperation::blend(const FilterOperation* from, double progress) const in blend() 64 double result = blink::blend(fromAmount, m_amount, progress); in blend() 81 …n> BasicComponentTransferFilterOperation::blend(const FilterOperation* from, double progress) const in blend() 103 double result = blink::blend(fromAmount, m_amount, progress); in blend() 119 PassRefPtr<FilterOperation> BlurFilterOperation::blend(const FilterOperation* from, double progress… in blend() 123 …return BlurFilterOperation::create(m_stdDeviation.blend(Length(lengthType), progress, ValueRangeNo… in blend() 126 …return BlurFilterOperation::create(m_stdDeviation.blend(fromOp->m_stdDeviation, progress, ValueRan… in blend() [all …]
|
/external/qemu/distrib/jpeg-6b/ |
D | jdtrans.c | 57 if (cinfo->progress != NULL) in jpeg_read_coefficients() 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_read_coefficients() 66 if (cinfo->progress != NULL && in jpeg_read_coefficients() 68 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_read_coefficients() 70 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_read_coefficients() 108 if (cinfo->progress != NULL) in jpeg_build_huffman_index_progressive() 109 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_build_huffman_index_progressive() 133 if (cinfo->progress != NULL && in jpeg_build_huffman_index_progressive() 135 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_build_huffman_index_progressive() 137 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_build_huffman_index_progressive() [all …]
|
D | wrrle.c | 83 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in start_output_rle() local 139 if (progress != NULL) { in start_output_rle() 140 progress->total_extra_passes++; /* count file writing as separate pass */ in start_output_rle() 182 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in finish_output_rle() local 215 if (progress != NULL) { in finish_output_rle() 216 progress->pub.pass_limit = cinfo->output_height; in finish_output_rle() 217 progress->pub.pass_counter = 0; in finish_output_rle() 218 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); in finish_output_rle() 229 if (progress != NULL) { in finish_output_rle() 230 progress->pub.pass_counter++; in finish_output_rle() [all …]
|
D | rdrle.c | 86 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in start_input_rle() local 170 if (progress != NULL) { in start_input_rle() 172 progress->total_extra_passes++; in start_input_rle() 250 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in load_image() local 263 if (progress != NULL) { in load_image() 264 progress->pub.pass_limit = cinfo->image_height; in load_image() 265 progress->pub.pass_counter = 0; in load_image() 266 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); in load_image() 279 if (progress != NULL) { in load_image() 280 progress->pub.pass_counter++; in load_image() [all …]
|
/external/jpeg/ |
D | jdtrans.c | 57 if (cinfo->progress != NULL) in jpeg_read_coefficients() 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_read_coefficients() 66 if (cinfo->progress != NULL && in jpeg_read_coefficients() 68 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_read_coefficients() 70 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_read_coefficients() 108 if (cinfo->progress != NULL) in jpeg_build_huffman_index_progressive() 109 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_build_huffman_index_progressive() 133 if (cinfo->progress != NULL && in jpeg_build_huffman_index_progressive() 135 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_build_huffman_index_progressive() 137 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_build_huffman_index_progressive() [all …]
|
D | wrrle.c | 83 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in start_output_rle() local 139 if (progress != NULL) { in start_output_rle() 140 progress->total_extra_passes++; /* count file writing as separate pass */ in start_output_rle() 182 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in finish_output_rle() local 215 if (progress != NULL) { in finish_output_rle() 216 progress->pub.pass_limit = cinfo->output_height; in finish_output_rle() 217 progress->pub.pass_counter = 0; in finish_output_rle() 218 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); in finish_output_rle() 229 if (progress != NULL) { in finish_output_rle() 230 progress->pub.pass_counter++; in finish_output_rle() [all …]
|
D | rdrle.c | 86 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in start_input_rle() local 170 if (progress != NULL) { in start_input_rle() 172 progress->total_extra_passes++; in start_input_rle() 250 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in load_image() local 263 if (progress != NULL) { in load_image() 264 progress->pub.pass_limit = cinfo->image_height; in load_image() 265 progress->pub.pass_counter = 0; in load_image() 266 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); in load_image() 279 if (progress != NULL) { in load_image() 280 progress->pub.pass_counter++; in load_image() [all …]
|
/external/chromium_org/third_party/mesa/src/src/glsl/ |
D | opt_algebraic.cpp | 47 this->progress = false; in ir_algebraic_visitor() 70 bool progress; member in __anond2ed8b850111::ir_algebraic_visitor 118 this->progress = true; in reassociate_operands() 230 this->progress = true; in handle_expression() 242 this->progress = true; in handle_expression() 246 this->progress = true; in handle_expression() 263 this->progress = true; in handle_expression() 271 this->progress = true; in handle_expression() 278 this->progress = true; in handle_expression() 282 this->progress = true; in handle_expression() [all …]
|
D | glsl_parser_extras.cpp | 1032 GLboolean progress = GL_FALSE; in do_common_optimization() local 1034 progress = lower_instructions(ir, SUB_TO_ADD_NEG) || progress; in do_common_optimization() 1037 progress = do_function_inlining(ir) || progress; in do_common_optimization() 1038 progress = do_dead_functions(ir) || progress; in do_common_optimization() 1039 progress = do_structure_splitting(ir) || progress; in do_common_optimization() 1041 progress = do_if_simplification(ir) || progress; in do_common_optimization() 1042 progress = do_copy_propagation(ir) || progress; in do_common_optimization() 1043 progress = do_copy_propagation_elements(ir) || progress; in do_common_optimization() 1045 progress = do_dead_code(ir, uniform_locations_assigned) || progress; in do_common_optimization() 1047 progress = do_dead_code_unlinked(ir) || progress; in do_common_optimization() [all …]
|
/external/mesa3d/src/glsl/ |
D | opt_algebraic.cpp | 47 this->progress = false; in ir_algebraic_visitor() 70 bool progress; member in __anon357935720111::ir_algebraic_visitor 118 this->progress = true; in reassociate_operands() 230 this->progress = true; in handle_expression() 242 this->progress = true; in handle_expression() 246 this->progress = true; in handle_expression() 263 this->progress = true; in handle_expression() 271 this->progress = true; in handle_expression() 278 this->progress = true; in handle_expression() 282 this->progress = true; in handle_expression() [all …]
|
D | glsl_parser_extras.cpp | 1032 GLboolean progress = GL_FALSE; in do_common_optimization() local 1034 progress = lower_instructions(ir, SUB_TO_ADD_NEG) || progress; in do_common_optimization() 1037 progress = do_function_inlining(ir) || progress; in do_common_optimization() 1038 progress = do_dead_functions(ir) || progress; in do_common_optimization() 1039 progress = do_structure_splitting(ir) || progress; in do_common_optimization() 1041 progress = do_if_simplification(ir) || progress; in do_common_optimization() 1042 progress = do_copy_propagation(ir) || progress; in do_common_optimization() 1043 progress = do_copy_propagation_elements(ir) || progress; in do_common_optimization() 1045 progress = do_dead_code(ir, uniform_locations_assigned) || progress; in do_common_optimization() 1047 progress = do_dead_code_unlinked(ir) || progress; in do_common_optimization() [all …]
|
/external/chromium_org/chrome/browser/download/ |
D | download_status_updater_mac.mm | 100 CrNSProgressUserData(NSProgress* progress, const base::FilePath& target) 102 progress_.reset(progress); 108 NSProgress* progress() const { return progress_.get(); } 119 float progress) { 123 [dock_icon setProgress:progress]; 142 NSProgress* progress = [progress_class performSelector:@selector(alloc)]; 143 progress = [progress performSelector:@selector(initWithParent:userInfo:) 146 progress.kind = ProgressString(kNSProgressKindFileName); 149 [progress setUserInfoObject:source_url forKey: 153 progress.pausable = NO; [all …]
|
D | download_status_updater_unittest.cc | 191 float progress = -1; in TEST_F() local 193 EXPECT_TRUE(updater_->GetProgress(&progress, &download_count)); in TEST_F() 194 EXPECT_FLOAT_EQ(0.0f, progress); in TEST_F() 205 float progress = -1; in TEST_F() local 209 EXPECT_TRUE(updater_->GetProgress(&progress, &download_count)); in TEST_F() 210 EXPECT_FLOAT_EQ(0.0f, progress); in TEST_F() 226 float progress = -1; in TEST_F() local 228 EXPECT_TRUE(updater_->GetProgress(&progress, &download_count)); in TEST_F() 229 EXPECT_FLOAT_EQ((10+50)/(20.0f+60), progress); in TEST_F() 235 EXPECT_TRUE(updater_->GetProgress(&progress, &download_count)); in TEST_F() [all …]
|
/external/chromium_org/third_party/libjpeg_turbo/ |
D | jdapistd.c | 60 if (cinfo->progress != NULL) in jpeg_start_decompress() 61 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_start_decompress() 69 if (cinfo->progress != NULL && in jpeg_start_decompress() 71 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_start_decompress() 73 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_start_decompress() 113 if (cinfo->progress != NULL) { in output_pass_setup() 114 cinfo->progress->pass_counter = (long) cinfo->output_scanline; in output_pass_setup() 115 cinfo->progress->pass_limit = (long) cinfo->output_height; in output_pass_setup() 116 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in output_pass_setup() 168 if (cinfo->progress != NULL) { in jpeg_read_scanlines() [all …]
|
D | jdtrans.c | 57 if (cinfo->progress != NULL) in jpeg_read_coefficients() 58 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_read_coefficients() 66 if (cinfo->progress != NULL && in jpeg_read_coefficients() 68 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_read_coefficients() 70 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_read_coefficients() 135 if (cinfo->progress != NULL) { in transdecode_master_selection() 147 cinfo->progress->pass_counter = 0L; in transdecode_master_selection() 148 cinfo->progress->pass_limit = (long) cinfo->total_iMCU_rows * nscans; in transdecode_master_selection() 149 cinfo->progress->completed_passes = 0; in transdecode_master_selection() 150 cinfo->progress->total_passes = 1; in transdecode_master_selection()
|
D | wrrle.c | 83 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in start_output_rle() local 139 if (progress != NULL) { in start_output_rle() 140 progress->total_extra_passes++; /* count file writing as separate pass */ in start_output_rle() 182 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in finish_output_rle() local 215 if (progress != NULL) { in finish_output_rle() 216 progress->pub.pass_limit = cinfo->output_height; in finish_output_rle() 217 progress->pub.pass_counter = 0; in finish_output_rle() 218 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); in finish_output_rle() 229 if (progress != NULL) { in finish_output_rle() 230 progress->pub.pass_counter++; in finish_output_rle() [all …]
|
D | rdrle.c | 86 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in start_input_rle() local 170 if (progress != NULL) { in start_input_rle() 172 progress->total_extra_passes++; in start_input_rle() 250 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress; in load_image() local 263 if (progress != NULL) { in load_image() 264 progress->pub.pass_limit = cinfo->image_height; in load_image() 265 progress->pub.pass_counter = 0; in load_image() 266 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo); in load_image() 279 if (progress != NULL) { in load_image() 280 progress->pub.pass_counter++; in load_image() [all …]
|
/external/pdfium/core/src/fxcodec/libjpeg/ |
D | fpdfapi_jdapistd.c | 58 if (cinfo->progress != NULL) in jpeg_start_decompress() 59 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_start_decompress() 67 if (cinfo->progress != NULL && in jpeg_start_decompress() 69 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_start_decompress() 71 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_start_decompress() 111 if (cinfo->progress != NULL) { in output_pass_setup() 112 cinfo->progress->pass_counter = (long) cinfo->output_scanline; in output_pass_setup() 113 cinfo->progress->pass_limit = (long) cinfo->output_height; in output_pass_setup() 114 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in output_pass_setup() 167 if (cinfo->progress != NULL) { in jpeg_read_scanlines() [all …]
|
D | fpdfapi_jdtrans.c | 58 if (cinfo->progress != NULL) in jpeg_read_coefficients() 59 (*cinfo->progress->progress_monitor) ((j_common_ptr) cinfo); in jpeg_read_coefficients() 67 if (cinfo->progress != NULL && in jpeg_read_coefficients() 69 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) { in jpeg_read_coefficients() 71 cinfo->progress->pass_limit += (long) cinfo->total_iMCU_rows; in jpeg_read_coefficients() 127 if (cinfo->progress != NULL) { in transdecode_master_selection() 139 cinfo->progress->pass_counter = 0L; in transdecode_master_selection() 140 cinfo->progress->pass_limit = (long) cinfo->total_iMCU_rows * nscans; in transdecode_master_selection() 141 cinfo->progress->completed_passes = 0; in transdecode_master_selection() 142 cinfo->progress->total_passes = 1; in transdecode_master_selection()
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
D | InterpolableValue.cpp | 12 …bleValue> InterpolableNumber::interpolate(const InterpolableValue &to, const double progress) const in interpolate() 15 if (!progress) in interpolate() 17 if (progress == 1) in interpolate() 19 return create(m_value * (1 - progress) + toNumber.m_value * progress); in interpolate() 22 …lableValue> InterpolableBool::interpolate(const InterpolableValue &to, const double progress) const in interpolate() 24 if (progress < 0.5) { in interpolate() 30 …lableValue> InterpolableList::interpolate(const InterpolableValue &to, const double progress) const in interpolate() 35 if (!progress) { in interpolate() 38 if (progress == 1) { in interpolate() 46 result->set(i, m_values[i]->interpolate(*(toList.m_values[i]), progress)); in interpolate()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowProgressBar.java | 11 private int progress; field in ShadowProgressBar 29 if (progress > max) { in setMax() 30 progress = max; in setMax() 40 public void setProgress(int progress) { in setProgress() argument 41 if (!isIndeterminate()) this.progress = Math.min(max, progress); in setProgress() 46 return isIndeterminate ? 0 : progress; in getProgress() 71 if (!isIndeterminate()) setProgress(progress + diff); in incrementProgressBy()
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/workspace/ |
D | FileSystemWorkspaceBinding.js | 128 registerProgress: function(progress) argument 131 this._progresses[requestId] = progress; 144 var progress = this._progresses[requestId]; 145 if (!progress) 147 progress.setTotalWork(totalWork); 159 var progress = this._progresses[requestId]; 160 if (!progress) 162 progress.worked(worked); 173 var progress = this._progresses[requestId]; 174 if (!progress) [all …]
|