/external/opencv/cv/src/ |
_cvkdtree.hpp | 303 accum_type dist; // distance from d to query point member in struct:CvKDTree::bbf_nn 305 : p(&_p), dist(_dist) { 308 return dist < rhs.dist; 315 accum_type dist; // minimum distance from bounds to query point member in struct:CvKDTree::bbf_node 317 : node(_node), dist(_dist) { 320 return dist > rhs.dist; 328 void pq_alternate(int alt_n, bbf_pqueue & pq, scalar_type dist) const { 333 pq.push_back(bbf_node(alt_n, dist)); 355 accum_type dist = 0; local [all...] |
cvgeometry.cpp | 216 int dist; local 230 dist = (ip.y - v0.y)*(v.x - v0.x) - (ip.x - v0.x)*(v.y - v0.y); 231 if( dist == 0 ) 234 dist = -dist; 235 counter += dist > 0; 259 double dist; local 281 dist = (double)(pt.y - v0.y)*(v.x - v0.x) - (double)(pt.x - v0.x)*(v.y - v0.y); 282 if( dist == 0 ) 285 dist = -dist [all...] |
/external/qemu/distrib/zlib-1.2.3/ |
inflate.c | 328 unsigned copy, dist; local 355 dist = state->wsize - state->write; 356 if (dist > copy) dist = copy; 357 zmemcpy(state->window + state->write, strm->next_out - copy, dist); 358 copy -= dist; 365 state->write += dist; 367 if (state->whave < state->wsize) state->whave += dist; [all...] |
/external/skia/src/core/ |
SkEdge.cpp | 165 SkFDot6 dist = cheap_distance(dx, dy); local 167 // shift down dist (it is currently in dot6) 168 // down by 5 should give us 1/2 pixel accuracy (assuming our dist is accurate...) 171 dist = (dist + (1 << 4)) >> 5; 173 // each subdivision (shift value) cuts this dist (error) by 1/4 174 return (32 - SkCLZ(dist)) >> 1;
|
/external/skia/src/gpu/ |
GrTextStrike.cpp | 380 double dist = outerval - innerval; local 381 if (dist <= -DISTANCE_FIELD_RANGE) { 383 } else if (dist > DISTANCE_FIELD_RANGE) { 386 val = (unsigned char)((DISTANCE_FIELD_RANGE-dist)*128.0/DISTANCE_FIELD_RANGE);
|
/external/skia/src/views/ |
SkTouchGesture.cpp | 76 float dist = (fSpeed0 - speed) / K0; local 78 // printf("---- time %g speed %g dist %g\n", t, speed, dist); 79 float tx = fDirection.fX * dist; 80 float ty = fDirection.fY * dist;
|
/external/skia/tests/ |
PathOpsQuadIntersectionTest.cpp | 366 SkDebugf("%s t=%1.9g (%1.9g,%1.9g) dist=%1.9g\n", __FUNCTION__, t, onQuad.fX, onQuad.fY, 421 double dist[3][3]; local 422 dist[1][1] = t1[1].distance(t2[1]); 429 dist[i][j] = t1[i].distance(t2[j]); 430 if (dist[best_i][best_j] > dist[i][j]) {
|
/external/stlport/test/eh/ |
test_insert.h | 48 size_t dist = 0; local 50 EH_DISTANCE( firstNew, lastNew, dist ); 52 EH_DISTANCE( Iter(firstNew), Iter(lastNew), dist ); local 54 return dist; 85 size_t dist = 0; local 87 EH_DISTANCE( firstNew, lastNew, dist ); 89 EH_DISTANCE( Iter(firstNew), Iter(lastNew), dist ); local 91 keys.reserve( dist );
|
/external/valgrind/main/VEX/useful/ |
smchash.c | 270 Int dist, totDist = 0, nNoDist = 0; local 281 dist = nSetBits(hRunning ^ hInit); 282 totDist += dist; 283 if (dist == 0) nNoDist++; 291 byteIx, bitIx, hRunning ^ hInit, dist); 299 printf("%4d measurements, %5.2f avg dist, %2d zeroes\n", 302 printf("%4d measurements, %5.2f avg dist\n",
|
/external/zlib/src/contrib/blast/ |
blast.c | 284 unsigned dist; /* distance for copy */ local 335 dist = decode(s, &distcode) << symbol; 336 dist += bits(s, symbol); 337 dist++; 338 if (s->first && dist > s->next) 344 from = to - dist; 346 if (s->next < dist) { 348 copy = dist;
|
/external/zlib/src/contrib/puff/ |
puff.c | 415 * corresponding number of extra bits are below in the static arrays dist[] 442 unsigned dist; /* distance for copy */ local 483 dist = dists[symbol] + bits(s, dext[symbol]); 485 if (dist > s->outcnt) 496 dist > s->outcnt ? 499 s->out[s->outcnt - dist]; [all...] |
/external/zlib/src/ |
inflate.c | 385 unsigned dist; local 411 dist = state->wsize - state->wnext; 412 if (dist > copy) dist = copy; 413 zmemcpy(state->window + state->wnext, end - copy, dist); 414 copy -= dist; 421 state->wnext += dist; 423 if (state->whave < state->wsize) state->whave += dist; [all...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
typing_weighting.h | 136 const float dist = traverseSession->getProximityInfoState(0)->getPointToKeyLength( local 138 const float weightedDistance = dist * ScoringParams::DISTANCE_WEIGHT_LENGTH;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/parallel/ |
random_shuffle.h | 67 difference_type** dist; member in struct:__gnu_parallel::DRandomShufflingGlobalData 133 // Indexing: dist[bin][processor] 136 difference_type* dist = new difference_type[sd->num_bins + 1]; local 142 dist[b] = 0; 154 ++(dist[oracle + 1]); 158 sd->dist[b][iam + 1] = dist[b]; 164 // Sum up bins, sd->dist[s + 1][d->num_threads] now contains the 167 __gnu_sequential::partial_sum(sd->dist[s + 1], 168 sd->dist[s + 1] + d->num_threads + 1 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_dist.py | 3 """Tests for distutils.dist.""" 11 from distutils.dist import Distribution, fix_help_options 13 import distutils.dist namespace 75 distutils.dist.DEBUG = True 82 distutils.dist.DEBUG = False 136 dist = klass(attrs={'author': u'Mister Café', 145 dist.metadata.write_pkg_file(open(my_file, 'w')) 148 dist = klass(attrs={'author': 'Mister Cafe', 155 dist.metadata.write_pkg_file(open(my_file2, 'w')) 169 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx' [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
test_dist.py | 3 """Tests for distutils.dist.""" 11 from distutils.dist import Distribution, fix_help_options 13 import distutils.dist namespace 75 distutils.dist.DEBUG = True 82 distutils.dist.DEBUG = False 136 dist = klass(attrs={'author': u'Mister Café', 145 dist.metadata.write_pkg_file(open(my_file, 'w')) 148 dist = klass(attrs={'author': 'Mister Cafe', 155 dist.metadata.write_pkg_file(open(my_file2, 'w')) 169 dist = Distribution(attrs={'author': 'xxx', 'name': 'xxx' [all...] |
/sdk/emulator/opengl/shared/OpenglCodecCommon/ |
GLSharedGroup.cpp | 89 GLint dist = location - m_Indexes[i].base; local 90 if (dist >= 0 && 91 (minDist < 0 || dist < minDist)) { 93 minDist = dist;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
WindowSurface.java | 167 int dist = Math.abs(mBrightLine-index); local 168 if (dist > 10) return 0; 169 return (255-(dist*(255/10))) << 8;
|
/external/chromium/chrome/browser/ui/views/ |
about_chrome_view.cc | 749 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); local 752 InstallUtil::GetChromeVersion(dist, false)); 755 installed_version.reset(InstallUtil::GetChromeVersion(dist, true)); [all...] |
/external/chromium_org/chrome/browser/ui/views/app_list/win/ |
app_list_service_win.cc | 116 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); local 117 return dist->GetIconIndex(BrowserDistribution::SHORTCUT_APP_LAUNCHER); 135 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); local 136 return dist->GetShortcutName(BrowserDistribution::SHORTCUT_APP_LAUNCHER); 177 // Using Chrome Binary dist: Chrome dist may not exist for the legacy 178 // App Launcher, and App Launcher dist may be "shadow", which does not
|
/external/chromium_org/chrome/installer/util/ |
installer_state.cc | 264 // For a single-install, the current browser dist is the operand. 335 // Returns the Chrome binaries directory for multi-install or |dist|'s directory 338 BrowserDistribution* dist) const { 339 DCHECK(dist); 343 return GetChromeInstallPath(system_install(), dist); 774 BrowserDistribution* dist = NULL; local 777 dist = multi_package_distribution_; 783 dist = product->distribution(); 785 result = state_key.Create(root_key_, dist->GetStateKey().c_str(), 792 LOG(ERROR) << "Failed opening key " << dist->GetStateKey( [all...] |
user_experiment.cc | 431 BrowserDistribution* dist = BrowserDistribution::GetSpecificDistribution( local 433 GetChromeUserDataPaths(dist, &user_data_dirs);
|
/external/chromium_org/third_party/skia/src/effects/ |
SkMagnifierImageFilter.cpp | 153 builder->fsCodeAppend("\t\t\tfloat dist = length(delta);\n"); 154 builder->fsCodeAppend("\t\t\tdist = max(2.0 - dist, 0.0);\n"); 155 builder->fsCodeAppend("\t\t\tweight = min(dist * dist, 1.0);\n"); 328 SkScalar dist = SkScalarSqrt(SkScalarSquare(x_dist) + local 330 dist = SkMaxScalar(kScalar2 - dist, 0); 331 weight = SkMinScalar(SkScalarSquare(dist), SK_Scalar1);
|
/external/chromium_org/third_party/skia/src/effects/gradients/ |
SkRadialGradient.cpp | 122 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); local 123 const unsigned fi = TileProc(dist); 368 const SkFixed dist = SkFloatToFixed(sk_float_sqrt(fx*fx + fy*fy)); local 369 const unsigned fi = TileProc(dist);
|
/external/chromium_org/third_party/skia/src/pathops/ |
SkPathOpsQuad.cpp | 34 double dist = pt.distanceSquared(onQuad); local 35 if (distMin > dist) { 36 distMin = dist;
|