Searched refs:count (Results 151 - 175 of 1030) sorted by relevance

1234567891011>>

/frameworks/base/tools/aidl/
H A Doptions_test.cpp23 int count = 0; local
24 while (expected[count] != NULL) {
25 count++;
27 if (got.size() != count) {
30 for (int i=0; i<count; i++) {
50 size_t count = got.size(); local
51 for (size_t i=0; i<count; i++) {
240 const int count = sizeof(g_tests)/sizeof(g_tests[0]); local
241 int matches[count];
244 for (int i=0; i<count;
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DAssetAtlasService.java142 final int count = drawables.size();
143 for (int i = 0; i < count; i++) {
228 if (renderAtlas(mBuffer, atlas, config.count)) {
267 final int count = mBitmaps.size();
269 for (int i = 0; i < count; i++) {
398 int delta = r2.count - r1.count;
411 return new Configuration(result.type, result.width, result.height, result.count);
471 writer.write(String.valueOf(config.count));
504 int count
574 final int count; field in class:AssetAtlasService.Configuration
577 Configuration(Atlas.Type type, int width, int height, int count) argument
581 Configuration(Atlas.Type type, int width, int height, int count, int flags) argument
604 int count; field in class:AssetAtlasService.WorkerResult
606 WorkerResult(Atlas.Type type, int width, int height, int count) argument
[all...]
/frameworks/native/libs/gui/
H A DSensorEventQueue.cpp78 size_t count = min(numEvents, mAvailable); local
79 memcpy(events, mRecBuffer + mConsumed, count * sizeof(ASensorEvent));
80 mAvailable -= count;
81 mConsumed += count;
82 return static_cast<ssize_t>(count);
170 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { argument
171 for (int i = 0; i < count; ++i) {
H A DBufferItem.cpp82 size_t count = 0; local
84 count += mGraphicBuffer->getFdCount();
87 count += mFence->getFdCount();
89 return count;
99 void*& buffer, size_t& size, int*& fds, size_t& count) const {
114 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
120 status_t err = mFence->flatten(buffer, size, fds, count);
159 void const*& buffer, size_t& size, int const*& fds, size_t& count) {
170 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count);
177 status_t err = mFence->unflatten(buffer, size, fds, count);
158 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
[all...]
H A DBitTube.cpp146 void const* events, size_t count, size_t objSize)
149 ssize_t size = tube->write(vaddr, count*objSize);
153 "BitTube::sendObjects(count=%zu, size=%zu), res=%zd (partial events were sent!)",
154 count, objSize, size);
156 //ALOGE_IF(size<0, "error %d sending %d events", size, count);
161 void* events, size_t count, size_t objSize)
164 ssize_t size = tube->read(vaddr, count*objSize);
168 "BitTube::recvObjects(count=%zu, size=%zu), res=%zd (partial events were received!)",
169 count, objSize, size);
171 //ALOGE_IF(size<0, "error %d receiving %d events", size, count);
160 recvObjects(const sp<BitTube>& tube, void* events, size_t count, size_t objSize) argument
[all...]
/frameworks/base/libs/hwui/
H A DGradientCache.cpp43 uint32_t hash = JenkinsHashMix(0, count);
44 for (uint32_t i = 0; i < count; i++) {
52 int deltaInt = int(lhs.count) - int(rhs.count);
55 deltaInt = memcmp(lhs.colors.get(), rhs.colors.get(), lhs.count * sizeof(uint32_t));
58 return memcmp(lhs.positions.get(), rhs.positions.get(), lhs.count * sizeof(float));
125 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
126 GradientCacheEntry gradient(colors, positions, count);
130 texture = addLinearGradient(gradient, colors, positions, count);
140 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument
163 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
[all...]
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
H A DAdapterHelperTest.java194 void setupBasic(int count, int visibleStart, int visibleCount) { argument
196 log("setupBasic(" + count + "," + visibleStart + "," + visibleCount + ");");
198 mTestAdapter = new TestAdapter(count, mAdapterHelper);
847 final int count = 10;// + nextInt(random,100);
848 final int start = nextInt(random, count - 1);
849 final int layoutCount = Math.max(1, nextInt(random, count - start));
850 setupBasic(count, start, layoutCount);
964 AdapterHelper.UpdateOp op(int cmd, int start, int count) { argument
965 return new AdapterHelper.UpdateOp(cmd, start, count, null);
968 AdapterHelper.UpdateOp op(int cmd, int start, int count, Objec argument
972 addOp(int start, int count) argument
976 rmOp(int start, int count) argument
980 upOp(int start, int count, Object payload) argument
984 add(int start, int count) argument
1007 rm(int start, int count) argument
1020 up(int start, int count) argument
1027 up(int start, int count, Object payload) argument
1051 add(int index, int count) argument
1069 remove(int index, int count) argument
1078 update(int index, int count) argument
1082 update(int index, int count, Object payload) argument
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/
H A Dh264bsd_interpolate_hor_quarter.s38 count RN 2 label
140 ;// pack values to count register
146 MOV count, width
150 ADD count, count, tmp2, LSL #16
156 AND tmp1, count, #0x000F0000 ;// partHeight-1
157 AND tmp3, count, #0x00F00000 ;// partWidth-1
158 ADD count, count, tmp1, LSL #8
161 ADD count, coun
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java40 int count; field in class:CompositeCursorAdapter.Partition
59 return count == 0;
173 int count;
175 count = 0;
177 count = cursor.getCount();
180 if (count != 0 || partition.showIfEmpty) {
181 count++;
184 partition.count = count;
185 mCount += count;
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp572 static jfloat measureText_CIII(JNIEnv* env, jobject jpaint, jcharArray text, jint index, jint count, argument
578 if ((index | count) < 0 || (size_t)(index + count) > textLength) {
582 if (count == 0) {
592 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray + index, 0, count,
593 count);
605 int count = end - start; local
606 if ((start | count) < 0 || (size_t)end > textLength) {
610 if (count == 0) {
622 MinikinUtils::doLayout(&layout, paint, bidiFlags, typeface, textArray + start, 0, count, coun
651 dotextwidths(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar text[], int count, jfloatArray widths, jint bidiFlags) argument
679 getTextWidths___CIII_F(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jfloatArray widths) argument
695 int count = dotextwidths(env, paint, typeface, textArray + start, end - start, widths, bidiFlags); local
700 doTextRunAdvances(JNIEnv *env, Paint *paint, TypefaceImpl* typeface, const jchar *text, jint start, jint count, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument
737 getTextRunAdvances___CIIIIZ_FI(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint contextIndex, jint contextCount, jboolean isRtl, jfloatArray advances, jint advancesIndex) argument
764 doTextRunCursor(JNIEnv *env, Paint* paint, const jchar *text, jint start, jint count, jint flags, jint offset, jint opt) argument
822 getTextPath(JNIEnv* env, Paint* paint, TypefaceImpl* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument
841 getTextPath___C(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jint bidiFlags, jcharArray text, jint index, jint count, jfloat x, jfloat y, jlong pathHandle) argument
880 breakText(JNIEnv* env, const Paint& paint, TypefaceImpl* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, const bool forwardScan) argument
914 breakTextC(JNIEnv* env, jobject clazz, jlong paintHandle, jlong typefaceHandle, jcharArray jtext, jint index, jint count, jfloat maxWidth, jint bidiFlags, jfloatArray jmeasuredWidth) argument
950 int count = env->GetStringLength(jtext); local
957 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, TypefaceImpl* typeface, jint bidiFlags) argument
983 getCharArrayBounds(JNIEnv* env, jobject, jlong paintHandle, jlong typefaceHandle, jcharArray text, jint index, jint count, jint bidiFlags, jobject bounds) argument
1055 doRunAdvance(const Paint* paint, TypefaceImpl* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument
1076 doOffsetForAdvance(const Paint* paint, TypefaceImpl* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DTableLayout.java208 final int count = getChildCount();
209 for (int i = 0; i < count; i++) {
221 int count = getChildCount();
222 for (int i = 0; i < count; i++) {
291 int count = getChildCount();
292 for (int i = 0; i < count; i++) {
380 final int count = collapsedColumns.size();
381 for (int i = 0; i < count; i++) {
492 final int count = getChildCount();
493 for (int i = 0; i < count;
[all...]
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/av/media/libmedia/
H A DMemoryLeakTrackUtil.cpp97 size_t count = overallSize / infoSize; local
99 snprintf(buffer, SIZE, " Allocation count %i\n", count);
104 AllocEntry * entries = new AllocEntry[count];
106 for (size_t i = 0; i < count; i++) {
125 for (size_t i = 0; i < (count - 1); i++) {
151 for (size_t i = 0; i < count; i++) {
/frameworks/base/core/jni/
H A Dandroid_os_MemoryFile.cpp75 jint count, jboolean unpinned)
84 env->SetByteArrayRegion(buffer, destOffset, count, (const jbyte *)address + srcOffset);
89 return count;
94 jint count, jboolean unpinned)
103 env->GetByteArrayRegion(buffer, srcOffset, count, (jbyte *)address + destOffset);
108 return count;
73 android_os_MemoryFile_read(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
92 android_os_MemoryFile_write(JNIEnv* env, jobject clazz, jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, jint count, jboolean unpinned) argument
/frameworks/base/libs/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/cmds/installd/
H A Dinstalld.cpp222 static int readx(int s, void *_buf, int count) argument
226 if (count < 0) return -1;
227 while (n < count) {
228 r = read(s, buf + n, count - n);
243 static int writex(int s, const void *_buf, int count) argument
247 if (count < 0) return -1;
248 while (n < count) {
249 r = write(s, buf + n, count - n);
271 unsigned short count; local
316 count
713 unsigned short count; local
[all...]
/frameworks/native/libs/ui/
H A DFence.cpp140 status_t Fence::flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const {
141 if (size < getFlattenedSize() || count < getFdCount()) {
149 count--;
154 status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count) { argument
171 if (count < numFds) {
177 count--;
/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;
132 state.count = thiz->mState.count;
178 thiz->mState.count = 0;
/frameworks/wilhelm/tests/sandbox/
H A Dplaybq.c95 ssize_t count = audio_utils_fifo_read(&fifo, buffer, framesPerBuffer); local
97 if (0 >= count) {
99 count = framesPerBuffer;
102 if (count > 0) {
103 SLuint32 nbytes = count * sfframesize;
120 sf_count_t count; local
124 count = sf_readf_float(sndfile, (float *) temp, READ_FRAMES);
128 count = sf_readf_int(sndfile, (int *) temp, READ_FRAMES);
132 count = sf_readf_short(sndfile, (short *) temp, READ_FRAMES);
135 count
499 sf_count_t count; local
[all...]
H A Dplaybq.cpp95 ssize_t count = audio_utils_fifo_read(&fifo, buffer, framesPerBuffer); local
97 if (0 >= count) {
99 count = framesPerBuffer;
102 if (count > 0) {
103 SLuint32 nbytes = count * sfframesize;
120 sf_count_t count; local
124 count = sf_readf_float(sndfile, (float *) temp, READ_FRAMES);
128 count = sf_readf_int(sndfile, (int *) temp, READ_FRAMES);
132 count = sf_readf_short(sndfile, (short *) temp, READ_FRAMES);
135 count
499 sf_count_t count; local
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_MotionEstimationMB.c295 OMX_INT intraSAD, average, count, index, x, y; local
334 for (y = 0, index = count = 0; y < 16; y++, index += srcCurrStep - 16)
336 for(x = 0; x < 16; x++, count++, index++)
338 pTempSrcCurrBuf[count] = pSrcCurrBuf[index];
516 for (count = 0, average = 0; count < 256 ; count++)
518 average = average + pTempSrcCurrBuf[count];
525 for (count = 0; count < 25
[all...]
/frameworks/base/core/tests/coretests/src/android/app/backup/
H A DBackupDataTest.java91 int count = 0;
94 count++;
96 assertEquals("only one entity in this stream", 1, count);
112 int count = 0;
114 readAndVerifyEntity(bdi, KEYS[count], DATA[count].getBytes());
115 count++;
117 assertEquals("four entities in this stream", KEYS.length, count);
133 int count = 0;
135 readAndVerifyDeletedEntity(bdi, KEYS[count]);
[all...]

Completed in 682 milliseconds

1234567891011>>