Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 11 of 11) sorted by relevance

/frameworks/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java268 float[] ctr = new float[] { avgx, avgy }; in intersection() local
269 sort(poly, count, ctr); in intersection()
288 public static void sort(float[] poly, int polyLength, float[] ctr) { in sort() argument
289 quicksortCirc(poly, 0, polyLength - 1, ctr); in sort()
292 public static float angle(float x1, float y1, float[] ctr) { in angle() argument
293 return -(float) Math.atan2(x1 - ctr[0], y1 - ctr[1]); in angle()
305 private static void quicksortCirc(float[] points, int low, int high, float[] ctr) { in quicksortCirc() argument
308 float pivot = angle(points[p * 2], points[p * 2 + 1], ctr); in quicksortCirc()
310 while (angle(points[i * 2], points[i * 2 + 1], ctr) < pivot) { in quicksortCirc()
313 while (angle(points[j * 2], points[j * 2 + 1], ctr) > pivot) { in quicksortCirc()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DPreconditions.java148 long ctr = 0; in checkCollectionElementsNotNull() local
152 String.format("%s[%d] must not be null", valueName, ctr)); in checkCollectionElementsNotNull()
154 ++ctr; in checkCollectionElementsNotNull()
/frameworks/native/services/sensorservice/
DRingBuffer.h49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr);
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : in iterator() argument
178 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in iterator()
221 RingBuffer<T>::const_iterator::const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) : in const_iterator() argument
222 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in const_iterator()
/frameworks/av/media/libmedia/include/media/
DRingBuffer.h49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
75 const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr);
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : in iterator() argument
178 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in iterator()
221 RingBuffer<T>::const_iterator::const_iterator(const T* ptr, size_t size, size_t pos, size_t ctr) : in const_iterator() argument
222 mPtr{ptr}, mSize{size}, mPos{pos}, mCtr{ctr} {} in const_iterator()
/frameworks/base/identity/java/android/security/identity/
DUtil.java116 int ctr = 1; in computeHkdf() local
123 mac.update((byte) ctr); in computeHkdf()
128 ctr++; in computeHkdf()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java426 long ctr = 0; in checkCollectionElementsNotNull() local
430 String.format("%s[%d] must not be null", valueName, ctr)); in checkCollectionElementsNotNull()
432 ++ctr; in checkCollectionElementsNotNull()
/frameworks/base/core/java/com/android/internal/util/
DPreconditions.java465 long ctr = 0; in checkCollectionElementsNotNull() local
469 String.format("%s[%d] must not be null", valueName, ctr)); in checkCollectionElementsNotNull()
471 ++ctr; in checkCollectionElementsNotNull()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_DngCreator.cpp1661 size_t ctr = 0; in DngCreator_setup() local
1663 colorTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1664 colorTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup()
1675 ctr = 0; in DngCreator_setup()
1677 colorTransform2[ctr++] = entry2.data.r[i].numerator; in DngCreator_setup()
1678 colorTransform2[ctr++] = entry2.data.r[i].denominator; in DngCreator_setup()
1694 size_t ctr = 0; in DngCreator_setup() local
1696 calibrationTransform1[ctr++] = entry1.data.r[i].numerator; in DngCreator_setup()
1697 calibrationTransform1[ctr++] = entry1.data.r[i].denominator; in DngCreator_setup()
1709 ctr = 0; in DngCreator_setup()
[all …]
/frameworks/ml/nn/common/operations/
DGenerateProposals.cpp46 BoxEncodingCorner toBoxEncodingCorner(const BoxEncodingCenter& ctr) { in toBoxEncodingCorner() argument
47 return {.x1 = ctr.x - ctr.w / 2, in toBoxEncodingCorner()
48 .y1 = ctr.y - ctr.h / 2, in toBoxEncodingCorner()
49 .x2 = ctr.x + ctr.w / 2, in toBoxEncodingCorner()
50 .y2 = ctr.y + ctr.h / 2}; in toBoxEncodingCorner()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DParameterUtils.java262 int ctr = 0; in convertSizeListToArray() local
264 array[ctr++] = new Size(s.width, s.height); in convertSizeListToArray()
/frameworks/av/media/libstagefright/foundation/tests/
DAData_test.cpp85 EventCounter *ctr = new EventCounter(&destructions); in TEST_F() local
86 d.emplace<EventCounter *>(ctr); in TEST_F()
90 delete ctr; in TEST_F()