/frameworks/base/core/java/android/gesture/ |
H A D | Instance.java | 73 float[] pts; 76 pts = temporalSampler(orientationType, gesture); 77 instance = new Instance(gesture.getID(), pts, label); 80 pts = spatialSampler(gesture); 81 instance = new Instance(gesture.getID(), pts, label); 91 float[] pts = GestureUtils.temporalSampling(gesture.getStrokes().get(0), 93 float[] center = GestureUtils.computeCentroid(pts); 94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]); 107 GestureUtils.translate(pts, [all...] |
H A D | GestureStroke.java | 88 private GestureStroke(RectF bbx, float len, float[] pts, long[] times) { argument 91 points = pts.clone(); 162 final float[] pts = GestureUtils.temporalSampling(this, numSample); 165 GestureUtils.translate(pts, -rect.left, -rect.top); 170 GestureUtils.scale(pts, scale, scale); 177 final int count = pts.length; 180 float x = pts[i]; 181 float y = pts[i + 1]; 202 final float[] pts = points; 211 out.writeFloat(pts[ [all...] |
H A D | GestureUtils.java | 143 final float[] pts = new float[size]; 145 pts[i] = (strokepoints[i] + preDx) * sx + postDx; 146 pts[i + 1] = (strokepoints[i + 1] + preDy) * sy + postDy; 151 float segmentStartX = pts[i] < 0 ? 0 : pts[i]; 152 float segmentStartY = pts[i + 1] < 0 ? 0 : pts[i + 1]; 273 float[] pts = stroke.points; 274 float lstPointX = pts[0]; 275 float lstPointY = pts[ [all...] |
/frameworks/base/libs/hwui/ |
H A D | ShadowTessellator.cpp | 216 SkPoint pts[4]; local 220 while (SkPath::kDone_Verb != (v = iter.next(pts))) { 223 arrayForDirection.add((Vector2){pts[0].x(), pts[0].y()}); 226 arrayForDirection.add((Vector2){pts[1].x(), pts[1].y()}); 229 arrayForDirection.add((Vector2){pts[1].x(), pts[1].y()}); 230 arrayForDirection.add((Vector2){pts[2].x(), pts[ [all...] |
H A D | DrawProfiler.cpp | 213 float pts[4]; local 214 pts[0] = 0.0f; 215 pts[1] = pts[3] = canvas->getViewportHeight() - (FRAME_THRESHOLD * mVerticalUnit); 216 pts[2] = canvas->getViewportWidth(); 217 canvas->drawLines(pts, 4, &paint);
|
H A D | PathTessellator.cpp | 570 2 + 4 + 6 + 2 + 3 * (2 * middlePts) = 14 + 6 * middlePts = 2 + 6 * pts 575 = 2 + 6 * pts + 6 * roundDivs 924 SkPoint pts[4]; local 926 while (SkPath::kDone_Verb != (v = iter.next(pts))) { 929 pushToVector(outputVertices, pts[0].x(), pts[0].y()); 930 ALOGV("Move to pos %f %f", pts[0].x(), pts[0].y()); 933 ALOGV("Close at pos %f %f", pts[0].x(), pts[ [all...] |
H A D | SkiaShader.cpp | 303 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { argument 304 SkVector vec = pts[1] - pts[0]; 309 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); 310 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
|
/frameworks/av/include/media/ |
H A D | AudioBufferProvider.h | 46 // pts is the local time when the next sample yielded by getNextBuffer 62 virtual status_t getNextBuffer(Buffer* buffer, int64_t pts = kInvalidPTS) = 0;
|
H A D | IAudioTrack.h | 79 int64_t pts) = 0;
|
/frameworks/av/include/media/nbaio/ |
H A D | SourceAudioBufferProvider.h | 34 virtual status_t getNextBuffer(Buffer *buffer, int64_t pts);
|
/frameworks/av/services/audioflinger/ |
H A D | AudioMixer.h | 123 void process(int64_t pts); 241 typedef void (*process_hook_t)(state_t* state, int64_t pts); 273 virtual status_t getNextBuffer(Buffer* buffer, int64_t pts); 405 static void process__validate(state_t* state, int64_t pts); 406 static void process__nop(state_t* state, int64_t pts); 407 static void process__genericNoResampling(state_t* state, int64_t pts); 408 static void process__genericResampling(state_t* state, int64_t pts); 410 int64_t pts); 436 static void process_NoResampleOneTrack(state_t* state, int64_t pts);
|
H A D | PlaybackTracks.h | 87 int64_t pts = kInvalidPTS); 182 TimedBuffer(const sp<IMemory>& buffer, int64_t pts); 184 int64_t pts() const { return mPTS; } function in class:TimedTrack::TimedBuffer 198 int64_t pts); 205 int64_t pts); 310 int64_t pts);
|
H A D | RecordTracks.h | 64 int64_t pts = kInvalidPTS); 114 int64_t pts);
|
H A D | AudioResampler.h | 63 virtual void setPTS(int64_t pts);
|
H A D | Tracks.cpp | 323 int64_t pts) { 334 return tt->queueTimedBuffer(buffer, pts); 596 AudioBufferProvider::Buffer* buffer, int64_t pts __unused) 1259 bufEnd = mTimedBufferQueue[trimEnd + 1].pts(); 1278 bufEnd += mTimedBufferQueue[trimEnd].pts(); 1337 const sp<IMemory>& buffer, int64_t pts) { 1349 mTimedBufferQueue.add(TimedBuffer(buffer, pts)); 1378 AudioBufferProvider::Buffer* buffer, int64_t pts) 1380 if (pts == AudioBufferProvider::kInvalidPTS) { 1418 if (!mMediaTimeTransform.doForwardTransform(head.pts(), 322 queueTimedBuffer(const sp<IMemory>& buffer, int64_t pts) argument 1336 queueTimedBuffer( const sp<IMemory>& buffer, int64_t pts) argument 1377 getNextBuffer( AudioBufferProvider::Buffer* buffer, int64_t pts) argument 1644 TimedBuffer( const sp<IMemory>& buffer, int64_t pts) argument 1897 getNextBuffer( AudioBufferProvider::Buffer* buffer, int64_t pts) argument 2177 getNextBuffer( AudioBufferProvider::Buffer* buffer, int64_t pts) argument [all...] |
H A D | AudioMixer.cpp | 123 int64_t pts) 126 // this, pBuffer, pBuffer->frameCount, pts); 128 status_t res = mTrackBufferProvider->getNextBuffer(pBuffer, pts); 136 status_t res = mTrackBufferProvider->getNextBuffer(&mBuffer, pts); 1042 void AudioMixer::process(int64_t pts) argument 1044 mState.hook(&mState, pts); 1048 void AudioMixer::process__validate(state_t* state, int64_t pts) argument 1177 state->hook(state, pts); 1502 void AudioMixer::process__nop(state_t* state, int64_t pts) argument 1537 t3, pts, stat 122 getNextBuffer(AudioBufferProvider::Buffer *pBuffer, int64_t pts) argument 1549 process__genericNoResampling(state_t* state, int64_t pts) argument 1657 process__genericResampling(state_t* state, int64_t pts) argument 1727 process__OneTrack16BitsStereoNoResampling(state_t* state, int64_t pts) argument 1971 process_NoResampleOneTrack(state_t* state, int64_t pts) argument [all...] |
H A D | FastMixer.cpp | 398 int64_t pts; local 399 if (outputSink == NULL || (OK != outputSink->getNextWriteTimestamp(&pts))) { 400 pts = AudioBufferProvider::kInvalidPTS; 404 mixer->process(pts);
|
H A D | TrackBase.h | 96 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, int64_t pts) = 0;
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityOptions.java | 284 int[] pts = new int[2]; 285 source.getLocationOnScreen(pts); 286 opts.mStartX = pts[0] + startX; 287 opts.mStartY = pts[1] + startY; 369 int[] pts = new int[2]; 370 source.getLocationOnScreen(pts); 371 opts.mStartX = pts[0] + startX; 372 opts.mStartY = pts[1] + startY; 437 int[] pts = new int[2]; 438 source.getLocationOnScreen(pts); [all...] |
/frameworks/av/media/libnbaio/ |
H A D | SourceAudioBufferProvider.cpp | 48 status_t SourceAudioBufferProvider::getNextBuffer(Buffer *buffer, int64_t pts) argument 68 ssize_t actual = mSource->read(mAllocated, buffer->frameCount, pts);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Shader.cpp | 93 SkPoint pts[2]; local 94 pts[0].set(x0, y0); 95 pts[1].set(x1, y1); 107 SkShader* shader = SkGradientShader::CreateLinear(pts, 120 SkPoint pts[2]; local 121 pts[0].set(x0, y0); 122 pts[1].set(x1, y1); 128 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 263 final int[] pts = res.getIntArray(R.array.batterymeter_bolt_points); 265 for (int i = 0; i < pts.length; i += 2) { 266 maxX = Math.max(maxX, pts[i]); 267 maxY = Math.max(maxY, pts[i + 1]); 269 final float[] ptsF = new float[pts.length]; 270 for (int i = 0; i < pts.length; i += 2) { 271 ptsF[i] = (float)pts[i] / maxX; 272 ptsF[i + 1] = (float)pts[i + 1] / maxY;
|
/frameworks/av/media/libmedia/ |
H A D | IAudioTrack.cpp | 137 int64_t pts) { 141 data.writeInt64(pts); 252 uint64_t pts = data.readInt64(); local 253 reply->writeInt32(queueTimedBuffer(buffer, pts)); 136 queueTimedBuffer(const sp<IMemory>& buffer, int64_t pts) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 1039 * specified by pts[], and its diameter is specified by the paint's stroke 1046 * @param pts Array of points to draw [x0 y0 x1 y1 x2 y2 ...] 1053 public void drawPoints(float[] pts, int offset, int count, @NonNull Paint paint) { argument 1054 native_drawPoints(mNativeCanvasWrapper, pts, offset, count, paint.mNativePaint); 1060 public void drawPoints(@NonNull float[] pts, @NonNull Paint paint) { argument 1061 drawPoints(pts, 0, pts.length, paint); 1090 * in the pts array. Thus to draw 1 line, the array must contain at least 4 1092 * drawLine(pts[0], pts[ 1103 drawLines(float[] pts, int offset, int count, Paint paint) argument 1107 drawLines(@onNull float[] pts, @NonNull Paint paint) argument 2022 native_drawPoints(long canvasHandle, float[] pts, int offset, int count, long paintHandle) argument 2028 native_drawLines(long canvasHandle, float[] pts, int offset, int count, long paintHandle) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 762 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument 765 if ((offset | count) < 0 || offset + count > pts.length) { 768 nDrawLines(mRenderer, pts, offset, count, paint.mNativePaint); 775 public void drawLines(float[] pts, Paint paint) { argument 776 drawLines(pts, 0, pts.length, paint); 823 public void drawPoints(float[] pts, Paint paint) { argument 824 drawPoints(pts, 0, pts.length, paint); 828 public void drawPoints(float[] pts, in argument [all...] |