Home
last modified time | relevance | path

Searched refs:mClusters (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/palette/
DWSMeansQuantizer.java53 private float[][] mClusters; field in WSMeansQuantizer
67 mClusters = new float[inClusters.length][3]; in WSMeansQuantizer()
71 mClusters[index++] = point; in WSMeansQuantizer()
100 if (mClusters.length > 0) { in quantize()
104 maxColors = Math.min(maxColors, mClusters.length); in quantize()
119 float[] cluster = mClusters[i]; in quantize()
128 boolean hadInputClusters = mClusters.length > 0; in initializeClusters()
130 int additionalClustersNeeded = maxColors - mClusters.length; in initializeClusters()
132 Log.d(TAG, "have " + mClusters.length + " clusters, want " + maxColors in initializeClusters()
150 float[][] clusters = Arrays.copyOf(mClusters, maxColors); in initializeClusters()
[all …]
/frameworks/minikin/include/minikin/
DLayoutCore.h60 uint16_t clusterAt(int glyphPos) const { return mClusters[glyphPos]; } in clusterAt()
76 std::vector<uint8_t> mClusters; // per glyph variable
/frameworks/minikin/libs/minikin/
DLayoutCore.cpp292 mClusters.reserve(count); in LayoutPiece()
457 mClusters.push_back(clusterBaseIndex); in LayoutPiece()
485 mClusters.shrink_to_fit(); in LayoutPiece()