Searched refs:count (Results 176 - 200 of 1169) sorted by relevance

1234567891011>>

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/
H A DTlvBufferUtilsTest.java79 int count = 0;
81 if (count == 0) {
85 } else if (count == 1) {
90 } else if (count == 2) {
97 ++count;
99 if (count != 3) {
111 count = 0;
113 if (count == 0) {
117 } else if (count == 1) {
125 ++count;
[all...]
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DPssTable.java65 final long count = getValue(key, PSS_SAMPLE_COUNT);
66 if (count == 0) {
75 setValue(key, PSS_SAMPLE_COUNT, count + inCount);
86 (long)(((val*(double)count)+(avgPss*(double)inCount)) / (count+inCount)));
100 (long)(((val*(double)count)+(avgUss*(double)inCount)) / (count+inCount)));
/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++) {
229 if (renderAtlas(mBuffer, atlas, config.count)) {
268 final int count = mBitmaps.size();
270 for (int i = 0; i < count; i++) {
399 int delta = r2.count - r1.count;
412 return new Configuration(result.type, result.width, result.height, result.count);
472 writer.write(String.valueOf(config.count));
505 int count
575 final int count; field in class:AssetAtlasService.Configuration
578 Configuration(Atlas.Type type, int width, int height, int count) argument
582 Configuration(Atlas.Type type, int width, int height, int count, int flags) argument
605 int count; field in class:AssetAtlasService.WorkerResult
607 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);
175 void SensorEventQueue::sendAck(const ASensorEvent* events, int count) { argument
176 for (int i = 0; i < count; ++i) {
H A DBufferItem.cpp88 size_t count = 0; local
90 count += mGraphicBuffer->getFdCount();
93 count += mFence->getFdCount();
95 return count;
105 void*& buffer, size_t& size, int*& fds, size_t& count) const {
120 status_t err = mGraphicBuffer->flatten(buffer, size, fds, count);
126 status_t err = mFence->flatten(buffer, size, fds, count);
165 void const*& buffer, size_t& size, int const*& fds, size_t& count) {
176 status_t err = mGraphicBuffer->unflatten(buffer, size, fds, count);
183 status_t err = mFence->unflatten(buffer, size, fds, count);
164 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));
108 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
109 GradientCacheEntry gradient(colors, positions, count);
113 texture = addLinearGradient(gradient, colors, positions, count);
123 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument
146 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.java196 void setupBasic(int count, int visibleStart, int visibleCount) { argument
198 log("setupBasic(" + count + "," + visibleStart + "," + visibleCount + ");");
200 mTestAdapter = new TestAdapter(count, mAdapterHelper);
861 final int count = 10;// + nextInt(random,100);
862 final int start = nextInt(random, count - 1);
863 final int layoutCount = Math.max(1, nextInt(random, count - start));
864 setupBasic(count, start, layoutCount);
978 AdapterHelper.UpdateOp op(int cmd, int start, int count) { argument
979 return new AdapterHelper.UpdateOp(cmd, start, count, null);
982 AdapterHelper.UpdateOp op(int cmd, int start, int count, Objec argument
986 addOp(int start, int count) argument
990 rmOp(int start, int count) argument
994 upOp(int start, int count, Object payload) argument
998 add(int start, int count) argument
1021 rm(int start, int count) argument
1034 up(int start, int count) argument
1041 up(int start, int count, Object payload) argument
1065 add(int index, int count) argument
1083 remove(int index, int count) argument
1092 update(int index, int count) argument
1096 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/av/services/camera/libcameraservice/common/
H A DCameraModule.cpp38 chars.update(ANDROID_CONTROL_AE_LOCK_AVAILABLE, &data, /*count*/1);
40 chars.update(ANDROID_CONTROL_AWB_LOCK_AVAILABLE, &data, /*count*/1);
43 if (entry.count > 1 || entry.data.u8[0] != ANDROID_CONTROL_SCENE_MODE_DISABLED) {
52 if (entry.count > 0) {
53 for (size_t i = 0; i < entry.count; i++) {
61 if (entry.count > 0) {
62 for (size_t i = 0; i < entry.count; i++) {
70 if (entry.count > 0) {
71 for (size_t i = 0; i < entry.count; i++) {
87 if (entry.count >
[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/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/include/media/stagefright/
H A DDataSource.h74 // Reads in "count" entries of type T into vector *x.
75 // Returns true if "count" entries can be read.
76 // If fewer than "count" entries can be read, return false. In this case,
85 bool getVector(off64_t offset, Vector<T>* x, size_t count,
145 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument
152 if (count == 0) {
161 for (i = 0; i + chunkSize < count; i += chunkSize) {
178 // There are (count - i) more records to read.
179 // Right now, (count - i) <= chunkSize.
180 // We do the same thing as above, but with chunkSize replaced by count
[all...]
/frameworks/av/media/libnbaio/
H A DMonoPipe.cpp67 ssize_t MonoPipe::write(const void *buffer, size_t count) argument
73 while (count > 0) {
77 if (CC_LIKELY(written > count)) {
78 written = count;
99 count -= written;
127 ns = count * (1350000000 / Format_sampleRate(mFormat));
/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/androidfw/
H A DLocaleData.cpp80 size_t count = 0; local
82 if (out != nullptr) out[count] = ancestor;
83 count++;
87 return count;
93 return count;
121 return (REPRESENTATIVE_LOCALES.count(packed_locale) != 0);
/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/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDocumentClipper.java59 int count = clipData.getItemCount();
60 if (count > 0) {
61 for (int i = 0; i < count; ++i) {
94 int count = clipData.getItemCount();
95 if (count == 0) {
100 for (int i = 0; i < count; ++i) {
/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.java121 final int count = mTo.length;
125 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.c67 ++thiz->mState.count;
72 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ?
97 thiz->mState.count = 0;
135 state.count = thiz->mState.count;
181 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...]

Completed in 667 milliseconds

1234567891011>>