/external/skia/src/effects/ |
SkDiscretePathEffect.cpp | 47 SkScalar distance = 0; 51 distance += delta/2; 53 meas.getPosTan(distance, &p, &v); 57 distance += delta; 58 meas.getPosTan(distance, &p, &v);
|
Sk1DPathEffect.cpp | 17 SkScalar distance = this->begin(length); local 18 while (distance < length) { 19 SkScalar delta = this->next(dst, distance, meas); 23 distance += delta; 161 SkScalar SkPath1DPathEffect::next(SkPath* dst, SkScalar distance, 166 meas.getPosTan(distance, &pos, NULL); 171 meas.getMatrix(distance, &matrix); 175 morphpath(dst, fPath, meas, distance);
|
/frameworks/base/core/java/android/gesture/ |
InstanceLearner.java | 54 double distance; local 56 distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); 58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector); 61 if (distance == 0) { 64 weight = 1 / distance;
|
/external/openfst/src/include/fst/script/ |
rmepsilon.h | 26 #include <fst/script/shortest-distance.h> // for ShortestDistanceOptions 33 %include "nlp/fst/script/shortest-distance.h" 66 vector<typename Arc::Weight> *distance, 76 AutoQueue<StateId> queue(*fst, distance, EpsilonArcFilter<Arc>()); 80 RmEpsilon(fst, distance, ropts); 88 RmEpsilon(fst, distance, ropts); 96 RmEpsilon(fst, distance, ropts); 100 NaturalShortestFirstQueue<StateId, Weight> queue(*distance); 105 RmEpsilon(fst, distance, ropts); 113 RmEpsilon(fst, distance, ropts) 138 vector<typename Arc::Weight> distance; local [all...] |
shortest-distance.h | 28 #include <fst/shortest-distance.h> 36 // See nlp/fst/lib/shortest-distance.h for the template options class 73 const vector<typename Arc::Weight> *distance) { 74 return new AutoQueue<typename Arc::StateId>(fst, distance, ArcFilter()); 85 const vector<typename Arc::Weight> *distance) { 87 typename Arc::Weight>(*distance); 207 vector<typename Arc::Weight> distance; local 209 ShortestDistance(fst, &distance, args->arg3, args->arg4); 213 retval->resize(distance.size()); 215 for (unsigned i = 0; i < distance.size(); ++i) [all...] |
/external/openfst/src/include/fst/ |
shortest-path.h | 33 #include <fst/shortest-distance.h> 46 bool has_distance; // distance vector already contains the 47 // shortest distance from the initial state 68 // 'ifst'. 'distance' returns the shortest distances from the source 80 vector<typename Arc::Weight> *distance, 103 distance->clear(); 125 while (distance->size() < source) { 126 distance->push_back(Weight::Zero()); 131 distance->push_back(Weight::One()); 141 Weight sd = (*distance)[s] 489 vector<typename Arc::Weight> distance; local [all...] |
push.h | 31 #include <fst/shortest-distance.h> 40 // the output of ShortestDistance. 'distance' is the shortest distance from the 46 const vector<typename Arc::Weight> &distance, 49 return fst.Start() < distance.size() ? 50 distance[fst.Start()] : Arc::Weight::Zero(); 53 for (typename Arc::StateId s = 0; s < distance.size(); ++s) 54 sum = Plus(sum, Times(distance[s], fst.Final(s))); 102 vector<typename Arc::Weight> distance; local 103 ShortestDistance(*fst, &distance, type == REWEIGHT_TO_INITIAL, delta) [all...] |
/device/samsung/tuna/libsensors/ |
ProximitySensor.cpp | 60 mPendingEvent.distance = indexToValue(absinfo.value); 68 mPendingEvent.distance = indexToValue(event->value);
|
/external/jmonkeyengine/engine/src/android/com/jme3/util/ |
FastInteger.java | 240 * @param distance 245 public static int rotateLeft(int i, int distance) { 246 if (distance == 0) { 251 * implicitly masked with 0x1F, which the negation of 'distance' is 254 return ((i << distance) | (i >>> (-distance))); 263 * @param distance 268 public static int rotateRight(int i, int distance) { 269 if (distance == 0) { 274 * implicitly masked with 0x1F, which the negation of 'distance' i [all...] |
/external/webkit/Source/WebCore/history/ |
BackForwardController.h | 47 bool canGoBackOrForward(int distance) const; 48 void goBackOrForward(int distance);
|
/external/webkit/Source/WebCore/page/ |
History.h | 51 void go(int distance); 55 void go(ScriptExecutionContext*, int distance);
|
History.cpp | 84 void History::go(int distance) 89 m_frame->navigationScheduler()->scheduleHistoryNavigation(distance); 92 void History::go(ScriptExecutionContext* context, int distance) 105 m_frame->navigationScheduler()->scheduleHistoryNavigation(distance);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
KeyDetector.java | 33 * @param keyHysteresisDistance if the pointer movement distance is smaller than this, the 93 final int distance = key.squaredDistanceToEdge(touchX, touchY); local 95 if (primaryKey == null || distance < minDistance 96 || (distance == minDistance && isOnKey && key.mCode > primaryKey.mCode)) { 97 minDistance = distance;
|