| /libcore/luni/src/main/java/java/lang/ |
| Integer.java | 621 * @param distance 626 public static int rotateLeft(int i, int distance) { 627 // Shift distances are mod 32 (JLS3 15.19), so we needn't mask -distance 628 return (i << distance) | (i >>> -distance); 637 * @param distance 642 public static int rotateRight(int i, int distance) { 643 // Shift distances are mod 32 (JLS3 15.19), so we needn't mask -distance 644 return (i >>> distance) | (i << -distance); [all...] |
| Long.java | 640 * @param distance 645 public static long rotateLeft(long v, int distance) { 646 // Shift distances are mod 64 (JLS3 15.19), so we needn't mask -distance 647 return (v << distance) | (v >>> -distance); 656 * @param distance 661 public static long rotateRight(long v, int distance) { 662 // Shift distances are mod 64 (JLS3 15.19), so we needn't mask -distance 663 return (v >>> distance) | (v << -distance); [all...] |
| /external/v8/src/ia32/ |
| macro-assembler-ia32.h | 91 Label::Distance condition_met_distance = Label::kFar); 98 Label::Distance distance = Label::kFar) { 99 InNewSpace(object, scratch, zero, branch, distance); 107 Label::Distance distance = Label::kFar) { 108 InNewSpace(object, scratch, not_zero, branch, distance); 116 Label::Distance has_color_distance, 124 Label::Distance on_black_distance = Label::kFar); 135 Label::Distance distance) [all...] |
| /external/v8/test/mjsunit/ |
| debug-backtrace-text.js | 48 function distance(p, q) { function 56 a=[1,2,distance]; 79 // 0: Call distance on Point where distance is a property on the prototype 80 // 1: Call distance on Point where distance is a direct property 85 assertEquals("#<Array>[2](aka distance)(p=#<Point>, q=#<Point>)", exec_state.frame(2).invocationText());
|
| /external/jmonkeyengine/engine/src/android/com/jme3/audio/android/ |
| AndroidAudioRenderer.java | 224 float distance;
local 232 // Calc the distance to the listener
235 distance = FastMath.abs(distanceVector.length());
237 if (distance < src.getRefDistance()) {
238 distance = src.getRefDistance();
240 if (distance > src.getMaxDistance()) {
241 distance = src.getMaxDistance();
243 volume = src.getRefDistance() / distance;
|
| /frameworks/base/core/java/android/widget/ |
| OverScroller.java | 157 * @return The new X offset as an absolute distance from the origin. 166 * @return The new Y offset as an absolute distance from the origin. 186 * @return The start X offset as an absolute distance from the origin. 195 * @return The start Y offset as an absolute distance from the origin. 204 * @return The final X offset as an absolute distance from the origin. 213 * @return The final Y offset as an absolute distance from the origin. 256 * @param newX The new X offset as an absolute distance from the origin. 274 * @param newY The new Y offset as an absolute distance from the origin. 346 * Start scrolling by providing a starting point and the distance to travel. 354 * @param dx Horizontal distance to travel. Positive numbers will scroll th 858 float distance = mVelocity * mVelocity \/ (2.0f * Math.abs(mDeceleration)); local 915 double distance = 0.0; local [all...] |
| /external/openfst/src/include/fst/ |
| prune.h | 29 #include <fst/shortest-distance.h> 46 // If non-zero, passes in pre-computed shortest distance to final states. 47 const vector<Weight> *distance; member in class:fst::PruneOptions 57 distance(d), 117 if (!opts.distance) { 121 const vector<Weight> *fdistance = opts.distance ? opts.distance : &tmp; 242 if (!opts.distance) 244 const vector<Weight> *fdistance = opts.distance ? opts.distance : &tmp [all...] |
| /external/guava/guava/src/com/google/common/collect/ |
| RegularContiguousSet.java | 52 return contains(target) ? (int) domain.distance(first(), (C) target) : -1; 96 long distance = domain.distance(first(), last()); local 97 return (distance >= Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) distance + 1;
|
| /external/jmonkeyengine/engine/src/core/com/jme3/cinematic/ |
| MotionPath.java | 83 //computing traveled distance according to new time 86 //getting waypoint index and current value from new traveled distance 166 * compute the index of the waypoint and the interpolation value according to a distance 168 * @param distance the distance traveled on this path 171 public Vector2f getWayPointIndexForDistance(float distance) { 173 distance = distance % spline.getTotalLength(); 176 if (sum + len >= distance) { 177 return new Vector2f((float) i, (distance - sum) / len) [all...] |
| /external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
| MapModel2D.java | 139 // Get the distance between position and the centre for calculating 141 double distance = NavCalculator.computeLongDiff(centre.getLongitude(), local 144 // Use the distance from the centre to calculate the pixel x co-ordinate 145 double distanceInPixels = (distance / minutesPerPixel); 220 // Get the distance between position and the centre 221 double xDistance = distance(xCentre, p.getX()); 222 double yDistance = distance(pixelCentre.getY(), p.getY()); 252 * Calculates distance between two points on the map in pixels 255 * @return distance the distance between a and b in pixel 258 private double distance(double a, double b) { method in class:MapModel2D [all...] |
| NavCalculator.java | 19 private double distance; field in class:NavCalculator 33 /* The distance precision to use for distances */ 72 * Determines a Rhumb Line course and distance between two points 82 * Determines the rhumb line course and distance between two positions 100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse))); 102 RLSailing rl = new RLSailing(degCrs, (float) distance); 177 * Getter method for the distance between two points 178 * @return distance 182 return distance; 286 * a distance and an angle [all...] |
| /external/webkit/Tools/DumpRenderTree/gtk/ |
| ImageDiff.cpp | 120 float distance = sqrtf(red * red + green * green + blue * blue + alpha * alpha) / 2.0f; local 122 *currentDiffPixel++ = (unsigned char)(distance * 255.0f); 124 if (distance >= 1.0f / 255.0f) { 126 sum += distance; 127 maxDistance = max<float>(maxDistance, distance); 133 // different pixels and their difference amount i.e. the average distance
|
| /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/ext/pb_ds/detail/pat_trie_/ |
| split_fn_imps.hpp | 73 other.m_size = std::distance(other.PB_DS_CLASS_C_DEC::begin(), 154 std::distance(p_internal_nd->begin(), child_it) + 1; 159 std::distance(p_internal_nd->begin(), p_internal_nd->end()) - 181 _GLIBCXX_DEBUG_ASSERT(std::distance(p_internal_nd->begin(), 184 if (std::distance(p_internal_nd->begin(), p_internal_nd->end()) > 1)
|
| /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/ext/pb_ds/detail/pat_trie_/ |
| split_fn_imps.hpp | 73 other.m_size = std::distance(other.PB_DS_CLASS_C_DEC::begin(), 154 std::distance(p_internal_nd->begin(), child_it) + 1; 159 std::distance(p_internal_nd->begin(), p_internal_nd->end()) - 181 _GLIBCXX_DEBUG_ASSERT(std::distance(p_internal_nd->begin(), 184 if (std::distance(p_internal_nd->begin(), p_internal_nd->end()) > 1)
|
| /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/pat_trie_/ |
| split_fn_imps.hpp | 73 other.m_size = std::distance(other.PB_DS_CLASS_C_DEC::begin(), 154 std::distance(p_internal_nd->begin(), child_it) + 1; 159 std::distance(p_internal_nd->begin(), p_internal_nd->end()) - 181 _GLIBCXX_DEBUG_ASSERT(std::distance(p_internal_nd->begin(), 184 if (std::distance(p_internal_nd->begin(), p_internal_nd->end()) > 1)
|
| /prebuilts/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/pat_trie_/ |
| split_fn_imps.hpp | 73 other.m_size = std::distance(other.PB_DS_CLASS_C_DEC::begin(), 154 std::distance(p_internal_nd->begin(), child_it) + 1; 159 std::distance(p_internal_nd->begin(), p_internal_nd->end()) - 181 _GLIBCXX_DEBUG_ASSERT(std::distance(p_internal_nd->begin(), 184 if (std::distance(p_internal_nd->begin(), p_internal_nd->end()) > 1)
|
| /prebuilts/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/pat_trie_/ |
| split_fn_imps.hpp | 73 other.m_size = std::distance(other.PB_DS_CLASS_C_DEC::begin(), 154 std::distance(p_internal_nd->begin(), child_it) + 1; 159 std::distance(p_internal_nd->begin(), p_internal_nd->end()) - 181 _GLIBCXX_DEBUG_ASSERT(std::distance(p_internal_nd->begin(), 184 if (std::distance(p_internal_nd->begin(), p_internal_nd->end()) > 1)
|
| /prebuilts/ndk/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/pat_trie_/ |
| split_fn_imps.hpp | 73 other.m_size = std::distance(other.PB_DS_CLASS_C_DEC::begin(), 154 std::distance(p_internal_nd->begin(), child_it) + 1; 159 std::distance(p_internal_nd->begin(), p_internal_nd->end()) - 181 _GLIBCXX_DEBUG_ASSERT(std::distance(p_internal_nd->begin(), 184 if (std::distance(p_internal_nd->begin(), p_internal_nd->end()) > 1)
|
| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| PathMeasureTest.java | 50 float distance = 1f; local 54 mPathMeasure.getPosTan(distance, pos, tan); 61 assertFalse(mPathMeasure.getPosTan(distance, pos2, tan2));
|
| /external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/lodcalc/ |
| DistanceLodCalculator.java | 46 * Calculates the LOD of the terrain based on its distance from the 47 * cameras. Taking the minimum distance from all cameras. 66 float distance = getCenterLocation(terrainPatch).distance(locations.get(0)); local 85 if (distance < getLodDistanceThreshold() * (i + 1)*terrainPatch.getWorldScale().x || i == terrainPatch.getMaxLod()) { 89 //System.out.println("lod change: "+lod+" > "+i+" dist: "+distance); 140 * Gets the camera distance where the LOD level will change
|
| PerspectiveLodCalculator.java | 97 float distance = patchPos.distance(locations.get(0)); local 101 if (distance < entropyDistances[i] || i == patch.getMaxLod()){ 105 // System.out.println("lod change: "+lod+" > "+i+" dist: "+distance);
|
| /frameworks/base/core/java/android/view/ |
| FocusFinder.java | 387 * Fudge-factor opportunity: how to calculate distance given major and minor 463 * @return The distance from the edge furthest in the given direction 487 * @return The distance along the major axis w.r.t the direction from the 512 * Find the distance on the minor axis w.r.t the direction to the nearest 517 * @return The distance. 523 // the distance between the center verticals 529 // the distance between the center horizontals 573 int distance = Integer.MAX_VALUE; local 577 distance = x - touchableBounds.right + 1; 580 distance = touchableBounds.left [all...] |
| /device/samsung/crespo/libsensors/ |
| ProximitySensor.cpp | 62 mPendingEvent.distance = indexToValue(absinfo.value); 121 mPendingEvent.distance = indexToValue(event->value);
|
| /external/chromium/chrome/browser/ui/views/tab_contents/ |
| tab_contents_view_views.h | 84 virtual void OnNativeTabContentsViewWheelZoom(int distance) OVERRIDE; 107 void WheelZoom(int distance);
|
| /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/lights/ |
| LightHelper.java | 78 float distance = ((Number) structure.getFieldValue("dist")).floatValue();
local 79 ((PointLight) result).setRadius(distance);
|