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

1234567891011>>

/frameworks/base/drm/java/android/drm/
H A DDrmOutputStream.java93 public void write(byte[] buffer, int offset, int count) throws IOException { argument
94 Arrays.checkOffsetAndCount(buffer.length, offset, count);
97 if (count == buffer.length) {
100 exactBuffer = new byte[count];
101 System.arraycopy(buffer, offset, exactBuffer, 0, count);
/frameworks/base/media/java/android/media/midi/
H A DMidiInputPort.java76 public void onSend(byte[] msg, int offset, int count, long timestamp) throws IOException { argument
77 if (offset < 0 || count < 0 || offset + count > msg.length) {
78 throw new IllegalArgumentException("offset or count out of range");
80 if (count > MidiPortImpl.MAX_PACKET_DATA_SIZE) {
81 throw new IllegalArgumentException("count exceeds max message size");
88 int length = MidiPortImpl.packData(msg, offset, count, timestamp, mBuffer);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkSocket.java138 public boolean sendMessage(byte[] bytes, int offset, int count) argument
140 return sendMessage(bytes, offset, count, 0);
149 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs) argument
162 return (count == Os.write(mDescriptor, bytes, offset, count));
/frameworks/base/tools/aapt/
H A DPackage.cpp61 int count; local
112 count = processAssets(bundle, zip, outputSet);
113 if (count < 0) {
116 result = count;
121 printf("Generated %d file%s\n", count, (count==1) ? "" : "s");
124 count = processJarFiles(bundle, zip);
125 if (count < 0) {
128 result = count;
133 printf("Included %d file%s from jar/zip files.\n", count, (coun
220 ssize_t count = 0; local
406 size_t count = 0; local
430 ssize_t count = 0; local
[all...]
/frameworks/av/media/img_utils/include/img_utils/
H A DTiffWriter.h121 * - BAD_VALUE - The given count doesn't match the required count for
132 * was constructed with. The count and type are validated.
137 * - BAD_VALUE - The given count doesn't match the required count for
144 status_t addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd);
149 * with. The count and type are validated. If this succeeds, the resulting
155 * - BAD_VALUE - The given count doesn't match the required count for
161 status_t buildEntry(uint16_t tag, uint32_t count, cons
272 buildEntry(uint16_t tag, uint32_t count, const T* data, sp<TiffEntry>* outEntry) const argument
301 addEntry(uint16_t tag, uint32_t count, const T* data, uint32_t ifd) argument
314 uncheckedBuildEntry(uint16_t tag, TagType type, uint32_t count, Endianness end, const T* data) argument
[all...]
/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) {

Completed in 1763 milliseconds

1234567891011>>