Searched defs:positions (Results 1 - 25 of 25) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DLinearGradient.java47 @param positions May be null. The relative positions [0..1] of
52 public LinearGradient(float x0, float y0, float x1, float y1, int colors[], float positions[], argument
57 if (positions != null && colors.length != positions.length) {
66 mPositions = positions;
68 init(nativeCreate1(x0, y0, x1, y1, colors, positions, tile.nativeInt));
109 "colors and positions or start color and end color");
116 int colors[], float positions[], int tileMode);
115 nativeCreate1(float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
H A DSweepGradient.java44 * @param positions May be NULL. The relative position of
48 * If positions is NULL, then the colors are automatically
52 int colors[], float positions[]) {
56 if (positions != null && colors.length != positions.length) {
64 mPositions = positions;
65 init(nativeCreate1(cx, cy, colors, positions));
101 "colors and positions or start color and end color");
107 private static native long nativeCreate1(float x, float y, int colors[], float positions[]); argument
51 SweepGradient(float cx, float cy, int colors[], float positions[]) argument
H A DRadialGradient.java114 "colors and positions or center color and edge color");
121 int colors[], float positions[], int tileMode);
120 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
/frameworks/base/opengl/java/android/opengl/
H A DVisibility.java32 * @param positions the vertex positions (x, y, z).
33 * @param positionsOffset the index in the positions array where the data
46 * positions is null, positionsOffset < 0, indices is null,
50 float[] positions, int positionsOffset, char[] indices,
110 * @param positions positions in x, y, z triples
111 * @param positionsOffset offset into positions array
116 * @throws IllegalArgumentException if positions is null,
117 * positionsOffset < 0, positionsOffset > positions
49 visibilityTest(float[] ws, int wsOffset, float[] positions, int positionsOffset, char[] indices, int indicesOffset, int indexCount) argument
120 computeBoundingSphere(float[] positions, int positionsOffset, int positionsCount, float[] sphere, int sphereOffset) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DGradient_Delegate.java45 * @param positions May be null. The relative positions [0..1] of each
49 protected Gradient_Delegate(int colors[], float positions[]) { argument
53 if (positions != null && colors.length != positions.length) {
57 if (positions == null) {
59 positions = new float[colors.length];
60 positions[0] = 0.f;
61 positions[colors.length-1] = 1.f;
63 positions[
84 GradientPaint(int[] colors, float[] positions, TileMode tileMode) argument
[all...]
H A DRadialGradient_Delegate.java58 int colors[], float positions[], int tileMode) {
60 colors, positions, Shader_Delegate.getTileMode(tileMode));
67 return nativeCreate1(x, y, radius, new int[] { color0, color1 }, null /*positions*/,
82 * @param positions May be NULL. The relative position of each corresponding
87 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], argument
89 super(colors, positions);
100 int[] colors, float[] positions, TileMode mode) {
101 super(colors, positions, mode);
57 nativeCreate1(float x, float y, float radius, int colors[], float positions[], int tileMode) argument
99 RadialGradientPaint(float x, float y, float radius, int[] colors, float[] positions, TileMode mode) argument
H A DSweepGradient_Delegate.java55 /*package*/ static long nativeCreate1(float x, float y, int colors[], float positions[]) { argument
56 SweepGradient_Delegate newDelegate = new SweepGradient_Delegate(x, y, colors, positions);
62 return nativeCreate1(x, y, new int[] { color0, color1 }, null /*positions*/);
74 * @param positions May be NULL. The relative position of
78 * If positions is NULL, then the colors are automatically
82 int colors[], float positions[]) {
83 super(colors, positions);
93 float[] positions) {
94 super(colors, positions, null /*tileMode*/);
81 SweepGradient_Delegate(float cx, float cy, int colors[], float positions[]) argument
92 SweepGradientPaint(float cx, float cy, int[] colors, float[] positions) argument
H A DLinearGradient_Delegate.java59 int colors[], float positions[], int tileMode) {
61 colors, positions, Shader_Delegate.getTileMode(tileMode));
70 x0, y0, x1, y1, new int[] { color0, color1}, null /*positions*/,
84 * @param positions May be null. The relative positions [0..1] of each
90 int colors[], float positions[], TileMode tile) {
91 super(colors, positions);
110 float positions[], TileMode tile) {
111 super(colors, positions, tile);
57 nativeCreate1(LinearGradient thisGradient, float x0, float y0, float x1, float y1, int colors[], float positions[], int tileMode) argument
89 LinearGradient_Delegate(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
109 LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], float positions[], TileMode tile) argument
/frameworks/base/libs/hwui/
H A DGradientCache.h37 positions = NULL;
40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
41 copy(colors, positions, count);
45 copy(entry.colors, entry.positions, entry.count);
50 delete[] positions;
56 delete[] positions;
58 copy(entry.colors, entry.positions, entry.count);
77 float* positions; member in struct:android::uirenderer::GradientCacheEntry
81 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
84 this->positions
[all...]
H A DTextDropShadowCache.cpp45 if (positions) {
47 hash = JenkinsHashMix(hash, android::hash_type(positions[i]));
83 if (lhs.positions != rhs.positions) {
84 if (!lhs.positions) return -1;
85 if (!rhs.positions) return +1;
87 return memcmp(lhs.positions, rhs.positions, lhs.len << 2);
172 int numGlyphs, float radius, const float* positions) {
173 ShadowText entry(paint, radius, len, text, positions);
171 get(const SkPaint* paint, const char* text, uint32_t len, int numGlyphs, float radius, const float* positions) argument
[all...]
H A DGradientCache.cpp46 hash = JenkinsHashMix(hash, android::hash_type(positions[i]));
58 return memcmp(lhs.positions, rhs.positions, lhs.count * sizeof(float));
132 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
133 GradientCacheEntry gradient(colors, positions, count);
137 texture = addLinearGradient(gradient, colors, positions, count);
171 uint32_t* colors, float* positions, int count) {
188 generateTexture(colors, positions, texture);
241 void GradientCache::generateTexture(uint32_t* colors, float* positions, Texture* texture) { argument
265 float startPos = positions[
170 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
[all...]
H A DTextDropShadowCache.h37 flags(0), italicStyle(0.0f), scaleX(0), text(NULL), positions(NULL) {
42 const float* positions):
43 len(len), radius(radius), positions(positions) {
78 if (positions != NULL) {
80 positionsCopy.appendArray(positions, charCount * 2);
81 positions = positionsCopy.array();
93 const float* positions; member in struct:android::uirenderer::ShadowText
139 int numGlyphs, float radius, const float* positions);
41 ShadowText(const SkPaint* paint, float radius, uint32_t len, const char* srcText, const float* positions) argument
H A DDisplayListRenderer.cpp373 const float* positions, const SkPaint* paint) {
377 positions = refBuffer<float>(positions, count * 2);
380 DrawOp* op = new (alloc()) DrawPosTextOp(text, bytesCount, count, positions, paint);
396 float x, float y, const float* positions, const SkPaint* paint,
402 positions = refBuffer<float>(positions, count * 2);
415 x, y, positions, outlinePaint, totalAdvance, bounds)); // bounds?
422 x, y, positions, innerPaint, totalAdvance, bounds));
428 x, y, positions, pain
372 drawPosText(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument
395 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
[all...]
H A DFontRenderer.cpp595 uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) {
614 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions);
647 Font::BITMAP, dataBuffer, paddedWidth, paddedHeight, NULL, positions);
692 const float* positions, Rect* bounds, Functor* functor, bool forceFinish) {
699 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions);
594 renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) argument
690 renderPosText(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, Functor* functor, bool forceFinish) argument
H A DDisplayListOp.h1354 const float* positions, const SkPaint* paint)
1355 : DrawSomeTextOp(text, bytesCount, count, paint), mPositions(positions) {
1372 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds)
1374 mX(x), mY(y), mPositions(positions), mTotalAdvance(totalAdvance) {
1353 DrawPosTextOp(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument
1371 DrawTextOp(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument
H A DOpenGLRenderer.cpp2620 int bytesCount, int count, const float* positions,
2633 paint, text, bytesCount, count, textShadow.radius, positions);
2671 const float* positions, const SkPaint* paint) {
2699 drawTextShadow(paint, text, bytesCount, count, positions, fontRenderer,
2717 positions, hasActiveLayer ? &bounds : NULL, &functor)) {
2751 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds,
2782 drawTextShadow(paint, text, bytesCount, count, positions, fontRenderer,
2819 positions, hasActiveLayer ? &layerBounds : NULL, &functor, forceFinish);
2822 positions, hasActiveLayer ? &layerBounds : NULL, &functor, forceFinish);
2619 drawTextShadow(const SkPaint* paint, const char* text, int bytesCount, int count, const float* positions, FontRenderer& fontRenderer, int alpha, float x, float y) argument
2670 drawPosText(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument
2750 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
/frameworks/native/include/input/
H A DVelocityTracker.h79 // The idBits bitfield specifies the pointer ids of the pointers whose positions
81 // The positions array contains position information for each pointer in order by
83 void addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions);
131 const VelocityTracker::Position* positions) = 0;
163 const VelocityTracker::Position* positions);
178 VelocityTracker::Position positions[MAX_POINTERS]; member in struct:android::LeastSquaresVelocityTrackerStrategy::Movement
181 return positions[idBits.getIndexOfBit(id)];
206 const VelocityTracker::Position* positions);
240 const VelocityTracker::Position* positions);
256 VelocityTracker::Position positions[MAX_POINTER member in struct:android::LegacyVelocityTrackerStrategy::Movement
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java178 * Set positions as unselectable (a.k.a a separator)
180 public Params setPositionsUnselectable(int ...positions) { argument
181 for (int pos : positions) {
/frameworks/base/libs/hwui/font/
H A DFont.cpp300 int numGlyphs, int x, int y, const float* positions) {
302 0, 0, NULL, positions);
356 int numGlyphs, Rect *bounds, const float* positions) {
362 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions);
388 uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) {
421 int penX = x + (int) roundf(positions[(glyphsCount << 1)]);
422 int penY = y + (int) roundf(positions[(glyphsCount << 1) + 1]);
425 bitmap, bitmapW, bitmapH, bounds, positions);
299 render(const SkPaint* paint, const char *text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, const float* positions) argument
355 measure(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, Rect *bounds, const float* positions) argument
386 render(const SkPaint* paint, const char* text, uint32_t start, uint32_t len, int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH, Rect* bounds, const float* positions) argument
/frameworks/native/libs/input/
H A DVelocityTracker.cpp220 void VelocityTracker::addMovement(nsecs_t eventTime, BitSet32 idBits, const Position* positions) { argument
242 mStrategy->addMovement(eventTime, idBits, positions);
255 id, positions[index].x, positions[index].y,
313 Position positions[pointerCount]; local
320 positions[index].x = event->getHistoricalX(i, h);
321 positions[index].y = event->getHistoricalY(i, h);
323 addMovement(eventTime, idBits, positions);
329 positions[index].x = event->getX(i);
330 positions[inde
376 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument
710 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument
832 addMovement(nsecs_t eventTime, BitSet32 idBits, const VelocityTracker::Position* positions) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DBaseRecyclerViewInstrumentationTest.java587 public void changePositionsAndNotify(final int... positions) throws Throwable { argument
591 for (int i = 0; i < positions.length; i += 1) {
592 TestAdapter.super.notifyItemRangeChanged(positions[i], 1);
H A DRecyclerViewAnimationsTest.java743 RecyclerView.Recycler recycler, RecyclerView.State state, int... positions) {
746 for (int position : positions) {
844 Map<Integer, CollectPositionResult> positions
848 constraint.validate(state, positions.get(constraint.mPreLayoutPos),
863 Map<Integer, CollectPositionResult> positions
867 constraint.validate(state, positions.get(constraint.mPostLayoutPos),
1225 + " positions\n" + vh + "\n" + lm.getLog(),
1231 // ensures pre layout positions are continuous block. This is not necessarily a case
1236 assertTrue("pre layout positions should be distinct " + lm.getLog(),
742 collectPositions(RecyclerView recyclerView, RecyclerView.Recycler recycler, RecyclerView.State state, int... positions) argument
/frameworks/base/core/jni/android/graphics/
H A DSkiaCanvas.cpp119 virtual void drawText(const uint16_t* text, const float* positions, int count,
122 virtual void drawPosText(const uint16_t* text, const float* positions, int count,
677 void SkiaCanvas::drawText(const uint16_t* text, const float* positions, int count, argument
687 mCanvas->drawPosText(text, count << 1, reinterpret_cast<const SkPoint*>(positions), paintCopy);
690 void SkiaCanvas::drawPosText(const uint16_t* text, const float* positions, int count, int posCount, argument
695 posPtr[indx].fX = positions[indx << 1];
696 posPtr[indx].fY = positions[(indx << 1) + 1];
/frameworks/minikin/libs/minikin/
H A DLayout.cpp728 hb_glyph_position_t* positions = hb_buffer_get_glyph_positions(buffer, NULL); local
736 std::cout << positions[i].x_advance << " " << positions[i].y_advance << " " << positions[i].x_offset << " " << positions[i].y_offset << std::endl; std::cout << "DoLayout " << info[i].codepoint <<
737 ": " << HBFixedToFloat(positions[i].x_advance) << "; " << positions[i].x_offset << ", " << positions[i].y_offset << std::endl;
746 float xoff = HBFixedToFloat(positions[i].x_offset);
747 float yoff = -HBFixedToFloat(positions[
[all...]
/frameworks/native/services/inputflinger/
H A DInputReader.cpp4035 // pointer positions at the same time as other pointers that have just gone up.
4493 // pointer positions at the same time as other pointers that have just gone up.
4704 VelocityTracker::Position positions[MAX_POINTERS]; local
4709 positions[count].x = pointer.x * mPointerXMovementScale;
4710 positions[count].y = pointer.y * mPointerYMovementScale;
4713 mCurrentFingerIdBits, positions);

Completed in 1383 milliseconds