/external/webkit/Source/WebCore/platform/audio/ |
Distance.cpp | 33 #include "Distance.h" 51 double DistanceEffect::gain(double distance) 53 // don't go beyond maximum distance 54 distance = min(distance, m_maxDistance); 56 // if clamped, don't get closer than reference distance 58 distance = max(distance, m_refDistance); 62 return linearGain(distance); 65 return inverseGain(distance); [all...] |
Distance.h | 34 // Distance models are defined according to the OpenAL specification 46 // Returns scalar gain for the given distance the current distance model is used 47 double gain(double distance); 57 // Distance params 67 double linearGain(double distance); 68 double inverseGain(double distance); 69 double exponentialGain(double distance);
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/ |
CollisionResult.java | 52 private float distance; field in class:CollisionResult 55 public CollisionResult(Geometry geometry, Vector3f contactPoint, float distance, int triangleIndex) { 58 this.distance = distance; 62 public CollisionResult(Vector3f contactPoint, float distance) { 64 this.distance = distance; 83 this.distance = dist; 102 if (distance < other.distance) [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
AreaUtils.java | 55 * @param distance The distance from camera to object. 59 public static float calcScreenArea(BoundingVolume bound, float distance, float screenWidth) { 61 return calcScreenArea((BoundingSphere) bound, distance, screenWidth); 63 return calcScreenArea((BoundingBox) bound, distance, screenWidth); 68 private static float calcScreenArea(BoundingSphere bound, float distance, float screenWidth) { 74 float radius = (bound.getRadius() * screenWidth) / (distance * 2); 78 private static float calcScreenArea(BoundingBox bound, float distance, float screenWidth) { 83 return ((radiusSquare * screenWidth * screenWidth) / (distance * distance * 4)) * FastMath.PI [all...] |
/external/webkit/Source/WebCore/history/ |
BackForwardController.cpp | 47 bool BackForwardController::canGoBackOrForward(int distance) const 49 return m_page->canGoBackOrForward(distance); 52 void BackForwardController::goBackOrForward(int distance) 54 m_page->goBackOrForward(distance);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/ |
GridMatch.java | 25 * edge, or a margin, or centering, or a gap distance from another edge and so on. 28 /** The distance to the matched edge - used to pick best matches */ 29 public final int distance; field in class:GridMatch 51 * @param distance the absolute distance from the ideal match - used to find the best 57 * @param margin a margin distance to add to the actual location from the matched line 59 GridMatch(SegmentType type, int distance, int matchedLine, int cellIndex, 63 this.distance = distance; 74 if (distance != o.distance) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
PathMeasure.java | 76 * Pins distance to 0 <= distance <= getLength(), and then computes the 81 * @param distance The distance along the current contour to sample 86 public boolean getPosTan(float distance, float pos[], float tan[]) { 91 return native_getPosTan(native_instance, distance, pos, tan); 98 * Pins distance to 0 <= distance <= getLength(), and then computes the 102 * @param distance The distance along the associated pat [all...] |
/external/openfst/src/script/ |
shortest-distance.cc | 19 #include <fst/script/shortest-distance.h> 25 void ShortestDistance(const FstClass &fst, vector<WeightClass> *distance, 27 ShortestDistanceArgs1 args(fst, distance, opts); 34 void ShortestDistance(const FstClass &ifst, vector<WeightClass> *distance, 36 ShortestDistanceArgs2 args(ifst, distance, reverse, delta);
|
/external/skia/include/core/ |
SkPathMeasure.h | 39 /** Pins distance to 0 <= distance <= getLength(), and then computes 44 bool getPosTan(SkScalar distance, SkPoint* position, SkVector* tangent); 51 /** Pins distance to 0 <= distance <= getLength(), and then computes 56 bool getMatrix(SkScalar distance, SkMatrix* matrix, MatrixFlags flags = kGetPosAndTan_MatrixFlag); 57 /** Given a start and stop distance, return in dst the intervening segment(s). 87 SkScalar fDistance; // total distance up to this point 100 SkScalar compute_quad_segs(const SkPoint pts[3], SkScalar distance, 102 SkScalar compute_cubic_segs(const SkPoint pts[3], SkScalar distance, [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SelectionHandle.java | 107 * Determines whether the given {@link LayoutPoint} is within the given distance in 108 * layout coordinates. The distance should incorporate at least the equivalent 109 * distance to the control coordinate space {@link #PIXEL_RADIUS}, but usually with a 113 * @param distance the distance from the center of the handle to check whether the 115 * @return true if the given point is within the given distance of this handle 117 public boolean contains(LayoutPoint point, int distance) { 118 return (point.x >= centerX - distance 119 && point.x <= centerX + distance 120 && point.y >= centerY - distance [all...] |
/external/openfst/src/include/fst/ |
shortest-distance.h | 1 // shortest-distance.h 19 // Functions and classes to find shortest distance in an FST. 62 // Computation state of the shortest-distance algorithm. Reusable 67 // may not be freed before this class. Vector 'distance' should not be 78 vector<Weight> *distance, 81 : fst_(fst), distance_(distance), state_queue_(opts.state_queue), 103 vector<Weight> rdistance_; // Relaxation distance. 112 // Compute the shortest distance. If 'source' is kNoStateId, use 222 // Shortest-distance algorithm: this version allows fine control 225 // This computes the shortest distance from the 'opts.source' state t 325 vector<Weight> distance; local [all...] |
/external/openfst/src/include/fst/script/ |
prune.h | 35 const vector<WeightClass> *distance; member in struct:fst::script::PruneOptions 42 distance(d), 50 // If the original opts.distance is not NULL, a new distance will be 61 vector<Weight> *distance = 0; local 63 if (opts.distance) { 64 distance = new vector<Weight>(opts.distance->size()); 65 for (unsigned i = 0; i < opts.distance->size(); ++i) { 66 (*distance)[i] = *((*opts.distance)[i].GetWeight<Weight>()) [all...] |
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
shortest-path.h | 27 #include "fst/lib/shortest-distance.h" 39 bool has_distance; // distance vector already contains the 40 // shortest distance from the initial state 51 // 'ifst'. 'distance' returns the shortest distances from the source 63 vector<typename Arc::Weight> *distance, 85 distance->clear(); 95 while (distance->size() < source) { 96 distance->push_back(Weight::Zero()); 101 distance->push_back(Weight::One()); 111 Weight sd = (*distance)[s] 353 vector<typename Arc::Weight> distance; local [all...] |
/external/skia/src/core/ |
SkPathMeasure.cpp | 100 SkScalar distance, int mint, int maxt, int ptIndex) { 106 distance = this->compute_quad_segs(tmp, distance, mint, halft, ptIndex); 107 distance = this->compute_quad_segs(&tmp[2], distance, halft, maxt, ptIndex); 109 SkScalar d = SkPoint::Distance(pts[0], pts[2]); 112 distance += d; 114 seg->fDistance = distance; 120 return distance; 124 SkScalar distance, int mint, int maxt, int ptIndex) 150 SkScalar d, distance = 0; local [all...] |
/external/chromium/chrome/browser/ui/views/tab_contents/ |
native_tab_contents_view_delegate.h | 33 virtual void OnNativeTabContentsViewWheelZoom(int distance) = 0;
|
/external/webkit/Source/WebCore/svg/ |
ColorDistance.h | 41 float distance() const;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/ext/pb_ds/detail/list_update_map_/ |
info_fn_imps.hpp | 45 { return std::distance(begin(), end()); }
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/ext/pb_ds/detail/list_update_map_/ |
info_fn_imps.hpp | 45 { return std::distance(begin(), end()); }
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/ext/pb_ds/detail/list_update_map_/ |
info_fn_imps.hpp | 45 { return std::distance(begin(), end()); }
|
/prebuilts/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/list_update_map_/ |
info_fn_imps.hpp | 45 { return std::distance(begin(), end()); }
|
/prebuilts/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/list_update_map_/ |
info_fn_imps.hpp | 45 { return std::distance(begin(), end()); }
|
/prebuilts/ndk/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/list_update_map_/ |
info_fn_imps.hpp | 45 { return std::distance(begin(), end()); }
|
/external/javassist/src/main/javassist/bytecode/ |
LineNumberAttribute.java | 131 int distance = 0; local 133 distance = lineNumber(0) - line; 139 if ((d < 0 && d > distance) 140 || (d >= 0 && (d < distance || distance < 0))) { 141 distance = d; 148 res.line = line + distance;
|
/external/skia/tests/ |
PathCoverageTest.cpp | 48 static inline uint32_t estimate_pointCount(int distance) { 50 int shift = 30 - SkCLZ(distance); 70 int distance = estimate_distance(points); local 71 return estimate_pointCount(distance); 75 int distance = estimate_distance(points); local 76 return compute_pointCount(SkIntToScalar(distance), tol); 80 SkScalar distance = compute_distance(points); local 81 return estimate_pointCount(SkScalarRound(distance)); 85 SkScalar distance = compute_distance(points); local 86 return compute_pointCount(distance, tol) [all...] |
/external/openfst/src/bin/ |
fstshortestdistance.cc | 26 #include <fst/script/shortest-distance.h> 39 string usage = "Finds shortest distance(s) in an FST.\n\n Usage: "; 41 usage += " [in.fst [distance.txt]]\n"; 56 vector<s::WeightClass> distance; 83 s::ShortestDistance(*ifst, &distance, FLAGS_reverse, FLAGS_delta); 87 s::ShortestDistance(*ifst, &distance, opts); 90 s::WritePotentials(out_fname, distance);
|