/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/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 | 114 void process(int64_t pts); 221 void (*hook)(state_t* state, int64_t pts); // one of process__*, never NULL 233 virtual status_t getNextBuffer(Buffer* buffer, int64_t pts); 283 static void process__validate(state_t* state, int64_t pts); 284 static void process__nop(state_t* state, int64_t pts); 285 static void process__genericNoResampling(state_t* state, int64_t pts); 286 static void process__genericResampling(state_t* state, int64_t pts); 288 int64_t pts); 291 int64_t pts);
|
H A D | RecordTracks.h | 58 int64_t pts = kInvalidPTS);
|
H A D | PlaybackTracks.h | 83 int64_t pts = kInvalidPTS); 176 TimedBuffer(const sp<IMemory>& buffer, int64_t pts); 178 int64_t pts() const { return mPTS; } function in class:TimedTrack::TimedBuffer 193 int64_t pts); 200 int64_t pts);
|
H A D | AudioResampler.h | 57 virtual void setPTS(int64_t pts);
|
H A D | AudioMixer.cpp | 59 int64_t pts) { 62 status_t res = mTrackBufferProvider->getNextBuffer(pBuffer, pts); 630 void AudioMixer::process(int64_t pts) argument 632 mState.hook(&mState, pts); 636 void AudioMixer::process__validate(state_t* state, int64_t pts) argument 744 state->hook(state, pts); 1064 void AudioMixer::process__nop(state_t* state, int64_t pts) argument 1098 t3, pts, state->frameCount - outFrames); 1110 void AudioMixer::process__genericNoResampling(state_t* state, int64_t pts) argument 1122 t.bufferProvider->getNextBuffer(&t.buffer, pts); 58 getNextBuffer(AudioBufferProvider::Buffer *pBuffer, int64_t pts) argument 1209 process__genericResampling(state_t* state, int64_t pts) argument 1279 process__OneTrack16BitsStereoNoResampling(state_t* state, int64_t pts) argument [all...] |
H A D | Tracks.cpp | 274 int64_t pts) { 280 return tt->queueTimedBuffer(buffer, pts); 517 AudioBufferProvider::Buffer* buffer, int64_t pts) 1098 bufEnd = mTimedBufferQueue[trimEnd + 1].pts(); 1117 bufEnd += mTimedBufferQueue[trimEnd].pts(); 1176 const sp<IMemory>& buffer, int64_t pts) { 1188 mTimedBufferQueue.add(TimedBuffer(buffer, pts)); 1217 AudioBufferProvider::Buffer* buffer, int64_t pts) 1219 if (pts == AudioBufferProvider::kInvalidPTS) { 1257 if (!mMediaTimeTransform.doForwardTransform(head.pts(), 273 queueTimedBuffer(const sp<IMemory>& buffer, int64_t pts) argument 516 getNextBuffer( AudioBufferProvider::Buffer* buffer, int64_t pts) argument 1175 queueTimedBuffer( const sp<IMemory>& buffer, int64_t pts) argument 1216 getNextBuffer( AudioBufferProvider::Buffer* buffer, int64_t pts) argument 1483 TimedBuffer( const sp<IMemory>& buffer, int64_t pts) argument 1779 getNextBuffer(AudioBufferProvider::Buffer* buffer, int64_t pts) argument [all...] |
H A D | TrackBase.h | 66 virtual status_t getNextBuffer(AudioBufferProvider::Buffer* buffer, int64_t pts) = 0;
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityOptions.java | 212 int[] pts = new int[2]; 213 source.getLocationOnScreen(pts); 214 opts.mStartX = pts[0] + startX; 215 opts.mStartY = pts[1] + startY; 297 int[] pts = new int[2]; 298 source.getLocationOnScreen(pts); 299 opts.mStartX = pts[0] + startX; 300 opts.mStartY = pts[1] + startY;
|
/frameworks/base/libs/hwui/ |
H A D | PathTessellator.cpp | 555 2 + 4 + 6 + 2 + 3 * (2 * middlePts) = 14 + 6 * middlePts = 2 + 6 * pts 560 = 2 + 6 * pts + 6 * roundDivs 904 SkPoint pts[4]; local 906 while (SkPath::kDone_Verb != (v = iter.next(pts))) { 909 pushToVector(outputVertices, pts[0].x(), pts[0].y()); 910 ALOGV("Move to pos %f %f", pts[0].x(), pts[0].y()); 913 ALOGV("Close at pos %f %f", pts[0].x(), pts[ [all...] |
H A D | SkiaShader.cpp | 174 static void toUnitMatrix(const SkPoint pts[2], SkMatrix* matrix) { argument 175 SkVector vec = pts[1] - pts[0]; 180 matrix->setSinCos(-vec.fY, vec.fX, pts[0].fX, pts[0].fY); 181 matrix->postTranslate(-pts[0].fX, -pts[0].fY);
|
/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/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterView.java | 229 final int[] pts = res.getIntArray(R.array.batterymeter_bolt_points); 231 for (int i = 0; i < pts.length; i += 2) { 232 maxX = Math.max(maxX, pts[i]); 233 maxY = Math.max(maxY, pts[i + 1]); 235 final float[] ptsF = new float[pts.length]; 236 for (int i = 0; i < pts.length; i += 2) { 237 ptsF[i] = (float)pts[i] / maxX; 238 ptsF[i + 1] = (float)pts[i + 1] / maxY;
|
/frameworks/av/libvideoeditor/lvpp/ |
H A D | VideoEditorSRC.h | 38 virtual status_t getNextBuffer(Buffer* buffer, int64_t pts);
|
/frameworks/av/libvideoeditor/vss/src/ |
H A D | VideoEditorResampler.cpp | 29 virtual status_t getNextBuffer(Buffer* buffer, int64_t pts); 56 status_t VideoEditorResampler::getNextBuffer(AudioBufferProvider::Buffer *pBuffer, int64_t pts) { argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Shader.cpp | 114 SkPoint pts[2]; local 115 pts[0].set(SkFloatToScalar(x0), SkFloatToScalar(y0)); 116 pts[1].set(SkFloatToScalar(x1), SkFloatToScalar(y1)); 133 SkShader* shader = SkGradientShader::CreateLinear(pts, 244 SkPoint pts[2]; local 245 pts[0].set(SkFloatToScalar(x0), SkFloatToScalar(y0)); 246 pts[1].set(SkFloatToScalar(x1), SkFloatToScalar(y1)); 252 SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, 2, (SkShader::TileMode)tileMode);
|
/frameworks/av/media/libmedia/ |
H A D | IAudioTrack.cpp | 131 int64_t pts) { 135 data.writeInt64(pts); 246 uint64_t pts = data.readInt64(); local 247 reply->writeInt32(queueTimedBuffer(buffer, pts)); 130 queueTimedBuffer(const sp<IMemory>& buffer, int64_t pts) argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Canvas.java | 890 * specified by pts[], and its diameter is specified by the paint's stroke 897 * @param pts Array of points to draw [x0 y0 x1 y1 x2 y2 ...] 904 public native void drawPoints(float[] pts, int offset, int count, Paint paint); argument 909 public void drawPoints(float[] pts, Paint paint) { argument 910 drawPoints(pts, 0, pts.length, paint); 936 * in the pts array. Thus to draw 1 line, the array must contain at least 4 938 * drawLine(pts[0], pts[1], pts[ 949 drawLines(float[] pts, int offset, int count, Paint paint) argument 951 drawLines(float[] pts, Paint paint) argument [all...] |
H A D | Matrix.java | 668 * @param pts The array [x0, y0, x1, y1, ...] of points to transform. 670 public void mapPoints(float[] pts) { argument 671 mapPoints(pts, 0, pts, 0, pts.length >> 1);
|
/frameworks/base/core/java/android/view/ |
H A D | GLES20Canvas.java | 1013 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument 1016 if ((offset | count) < 0 || offset + count > pts.length) { 1021 nDrawLines(mRenderer, pts, offset, count, paint.mNativePaint); 1031 public void drawLines(float[] pts, Paint paint) { argument 1032 drawLines(pts, 0, pts.length, paint); 1134 public void drawPoints(float[] pts, Paint paint) { argument 1135 drawPoints(pts, 0, pts.length, paint); 1139 public void drawPoints(float[] pts, in argument [all...] |