Searched refs:count (Results 126 - 150 of 783) sorted by relevance

1234567891011>>

/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java626 int count = data.length / eSize;
627 if ((eSize * count) != data.length) {
631 copy1DRangeFromUnchecked(xoff, count, data);
664 private void data1DChecks(int off, int count, int len, int dataSize) { argument
669 if(count < 1) {
672 if((off + count) > mCurrentCount) {
673 throw new RSIllegalArgumentException("Overflow, Available count " + mCurrentCount +
674 ", got " + count + " at offset " + off + ".");
700 * @param count The number of elements to be copied.
703 public void copy1DRangeFromUnchecked(int off, int count, in argument
716 copy1DRangeFromUnchecked(int off, int count, short[] d) argument
729 copy1DRangeFromUnchecked(int off, int count, byte[] d) argument
742 copy1DRangeFromUnchecked(int off, int count, float[] d) argument
757 copy1DRangeFrom(int off, int count, int[] d) argument
771 copy1DRangeFrom(int off, int count, short[] d) argument
785 copy1DRangeFrom(int off, int count, byte[] d) argument
799 copy1DRangeFrom(int off, int count, float[] d) argument
813 copy1DRangeFrom(int off, int count, Allocation data, int dataOff) argument
1241 createSized(RenderScript rs, Element e, int count, int usage) argument
1268 createSized(RenderScript rs, Element e, int count) argument
[all...]
/frameworks/av/media/libmedia/
H A DMemoryLeakTrackUtil.cpp91 size_t count = overallSize / infoSize; local
93 snprintf(buffer, SIZE, " Allocation count %i\n", count);
98 AllocEntry * entries = new AllocEntry[count];
100 for (size_t i = 0; i < count; i++) {
119 for (size_t i = 0; i < (count - 1); i++) {
142 for (size_t i = 0; i < count; i++) {
/frameworks/base/core/java/android/widget/
H A DRemoteViewsService.java152 int count = 0;
154 count = mFactory.getCount();
159 return count;
185 int count = 0;
187 count = mFactory.getViewTypeCount();
192 return count;
H A DSimpleCursorAdapter.java137 final int count = mTo.length;
141 for (int i = 0; i < count; i++) {
328 int count = from.length;
329 if (mFrom == null || mFrom.length != count) {
330 mFrom = new int[count];
332 for (i = 0; i < count; i++) {
/frameworks/base/core/jni/
H A Dandroid_os_MemoryFile.cpp74 jint count, jboolean unpinned)
83 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset);
88 return count;
93 jint count, jboolean unpinned)
102 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset);
107 return count;
72 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
91 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
/frameworks/base/libs/hwui/
H A DDisplayListRenderer.cpp305 int count = (meshWidth + 1) * (meshHeight + 1) * 2; local
307 vertices = refBuffer<float>(vertices, count);
309 colors = refBuffer<int>(colors, count);
381 status_t DisplayListRenderer::drawLines(float* points, int count, SkPaint* paint) { argument
382 points = refBuffer<float>(points, count);
385 addDrawOp(new (alloc()) DrawLinesOp(points, count, paint));
389 status_t DisplayListRenderer::drawPoints(float* points, int count, SkPaint* paint) { argument
390 points = refBuffer<float>(points, count);
393 addDrawOp(new (alloc()) DrawPointsOp(points, count, paint));
397 status_t DisplayListRenderer::drawTextOnPath(const char* text, int bytesCount, int count, argument
411 drawPosText(const char* text, int bytesCount, int count, const float* positions, SkPaint* paint) argument
424 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length, DrawOpMode drawOpMode) argument
441 drawRects(const float* rects, int count, SkPaint* paint) argument
[all...]
/frameworks/base/services/common_time/
H A Dutils.cpp96 ++last->count;
100 mRingBuffer[mWr].count = 1;
125 size_t count = mIsFull ? mSize : mWr; local
132 for (size_t i = 0; i < count; ++i) {
138 if (1 != mRingBuffer[ndx].count) {
143 mRingBuffer[ndx].count,
/frameworks/native/libs/ui/
H A DFence.cpp138 size_t count) const {
139 if (size != getFlattenedSize() || count != getFdCount()) {
150 size_t count) {
151 if (size != 0 || (count != 0 && count != 1)) {
159 if (count == 1) {
149 unflatten(void const* buffer, size_t size, int fds[], size_t count) argument
/frameworks/support/v4/java/android/support/v4/widget/
H A DSimpleCursorAdapter.java122 final int count = mTo.length;
126 for (int i = 0; i < count; i++) {
312 int count = from.length;
313 if (mFrom == null || mFrom.length != count) {
314 mFrom = new int[count];
316 for (i = 0; i < count; i++) {
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DMediaRouteProviderDescriptor.java59 final int count = routeBundles.size();
60 mRoutes = new ArrayList<MediaRouteDescriptor>(count);
61 for (int i = 0; i < count; i++) {
187 final int count = mRoutes.size();
188 ArrayList<Bundle> routeBundles = new ArrayList<Bundle>(count);
189 for (int i = 0; i < count; i++) {
/frameworks/wilhelm/src/itf/
H A DIBufferQueue.c68 ++thiz->mState.count;
73 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ?
96 thiz->mState.count = 0;
131 state.count = thiz->mState.count;
177 thiz->mState.count = 0;
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_MotionEstimationMB.c280 OMX_INT intraSAD, average, count, index, x, y; local
319 for (y = 0, index = count = 0; y < 16; y++, index += srcCurrStep - 16)
321 for(x = 0; x < 16; x++, count++, index++)
323 pTempSrcCurrBuf[count] = pSrcCurrBuf[index];
501 for (count = 0, average = 0; count < 256 ; count++)
503 average = average + pTempSrcCurrBuf[count];
510 for (count = 0; count < 25
[all...]
H A DarmVCM4P2_BlockMatch_Integer.c83 OMX_INT outer, inner, count,index; local
141 for (outer = 0, count = 0, index = 0, candSAD = 0;
145 for (inner = 0; inner < BlockSize; inner++, count++, index++)
147 candSAD += armAbs (pTempSrcRefBuf[index] - pSrcCurrBuf[count]);
H A DomxVCM4P2_DecodeBlockCoef_Intra.c109 OMX_INT predDir, predACDir, i, j, count; local
211 for (j = 0, count = 0; j < 8; j++)
213 for(i = 0; i < 8; i++, count++)
215 pDst[i] = armClip (0, 255, pTempBuf2[count]);
/frameworks/base/core/java/android/net/http/
H A DRequest.java283 int count = 0;
314 len = nis.read(buf, count, buf.length - count);
317 count += len;
320 if (len == -1 || count >= lowWater) {
321 if (HttpLog.LOGV) HttpLog.v("Request.readResponse() " + count);
322 mEventHandler.data(buf, count);
323 count = 0;
330 if (count > 0) {
332 mEventHandler.data(buf, count);
[all...]
/frameworks/base/core/java/android/view/
H A DGLES20RecordingCanvas.java160 public void drawLines(float[] pts, int offset, int count, Paint paint) { argument
161 super.drawLines(pts, offset, count, paint);
196 public void drawPoints(float[] pts, int offset, int count, Paint paint) { argument
197 super.drawPoints(pts, offset, count, paint);
208 public void drawPosText(char[] text, int index, int count, float[] pos, Paint paint) { argument
209 super.drawPosText(text, index, count, pos, paint);
232 public void drawText(char[] text, int index, int count, float x, float y, Paint paint) { argument
233 super.drawText(text, index, count, x, y, paint);
256 public void drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, argument
258 super.drawTextOnPath(text, index, count, pat
269 drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, int dir, Paint paint) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DZoomControlEmbedded.java45 int count = settings.getDoubleTapToastCount();
46 if (mZoomManager.isInZoomOverview() && count > 0) {
47 settings.setDoubleTapToastCount(--count);
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
H A DListWithScreenOfNoSelectablesTest.java72 for(int count = 0; count < maxDowns && mListView.getLastVisiblePosition() <= lastPosition; count++) {
/frameworks/native/services/surfaceflinger/
H A DEventThread.h49 // count >= 1 : continuous event. count is the vsync rate
50 // count == 0 : one-shot event that has not fired
51 // count ==-1 : one-shot event that fired this round / disabled
52 int32_t count; member in class:android::EventThread::Connection
58 virtual void setVsyncRate(uint32_t count);
71 void setVsyncRate(uint32_t count, const sp<Connection>& connection);
/frameworks/volley/tests/src/com/android/volley/toolbox/
H A DImageRequestTest.java92 int count;
93 while ((count = in.read(buffer)) != -1) {
94 bytes.write(buffer, 0, count);
/frameworks/av/include/media/nbaio/
H A DAudioBufferProviderSource.h45 virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
H A DAudioStreamOutSink.h48 virtual ssize_t write(const void *buffer, size_t count);
H A DNBAIO.h49 // attributes, rather than a struct with separate fields for format, sample rate, channel count,
53 // Sample rate and channel count are explicit, PCM interleaved 16-bit is assumed.
65 // Convert a sample rate in Hz and channel count to an NBAIO_Format
71 // Return the channel count of an NBAIO_Format
75 typedef ssize_t (*writeVia_t)(void *user, void *buffer, size_t count);
77 size_t count, int64_t readPTS);
147 // larger transfer count, however it will make a good faith effort to give an accurate estimate.
158 // count Maximum number of frames to transfer.
168 virtual ssize_t write(const void *buffer, size_t count) = 0;
177 // block Number of frames per block, that is a suggested value for 'count' i
[all...]
H A DPipeReader.h48 virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dton_stab.h95 Word16 count; member in struct:__anon616

Completed in 768 milliseconds

1234567891011>>