Searched refs:count (Results 26 - 50 of 1030) sorted by relevance

1234567891011>>

/frameworks/av/media/img_utils/src/
H A DEndianUtils.cpp48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument
50 if((res = mOutput->write(buf, offset, count)) == OK) {
51 mOffset += count;
56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument
57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count);
61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \
62 return writeHelper<_type_>(buf, offset, count); \
72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument
74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count);
77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument
[all...]
/frameworks/av/media/libnbaio/
H A DPipe.cpp46 ssize_t Pipe::write(const void *buffer, size_t count) argument
48 // count == 0 is unlikely and not worth checking for
55 if (CC_LIKELY(written > count)) {
56 written = count;
60 if (CC_UNLIKELY((count -= written) > rear)) {
61 count = rear;
63 if (CC_LIKELY(count > 0)) {
64 memcpy(mBuffer, (char *) buffer + (written * mFrameSize), count * mFrameSize);
65 written += count;
H A DPipeReader.cpp62 ssize_t PipeReader::read(void *buffer, size_t count, int64_t readPTS __unused) argument
70 if (CC_LIKELY(count > (size_t) avail)) {
71 count = avail;
75 if (CC_LIKELY(red > count)) {
76 red = count;
82 if (CC_UNLIKELY((count -= red) > front)) {
83 count = front;
85 if (CC_LIKELY(count > 0)) {
86 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize);
87 red += count;
[all...]
H A DAudioBufferProviderSource.cpp50 size_t count,
57 mBuffer.frameCount = count;
66 if (CC_UNLIKELY(count > available)) {
67 count = available;
69 // count could be zero, either because count was zero on entry or
71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize);
72 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) {
77 mFramesRead += count;
78 // For better responsiveness with large values of count,
49 read(void *buffer, size_t count, int64_t readPTS) argument
95 size_t count = total - accumulator; local
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DKernelWakelockStats.java29 Entry(int count, long totalTime, int version) { argument
30 mCount = count;
/frameworks/minikin/include/minikin/
H A DMeasurement.h24 float getRunAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, size_t offset);
26 size_t getOffsetForAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count,
H A DGraphemeBreak.h37 static bool isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, size_t offset);
41 static size_t getTextRunCursor(const uint16_t* buf, size_t start, size_t count,
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_TransRecBlockCoef_intra.c159 OMX_INT x, y, count, predDir; local
198 for (y = 0, count = 0; y < 8; y++)
200 for(x= 0; x < 8; x++, count++)
202 pTempBuf1[count] = pSrc[(y*srcStep) + x];
214 for (y = 0, count = 0; y < 8; y++)
216 for(x = 0; x < 8; x++, count++)
219 pTempBuf1[count] = pTempBuf2[count];
220 pDst[(y*dstStep) + x] = pTempBuf2[count];
265 for(count
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/comm/src/
H A DomxVCCOMM_ComputeTextureErrorBlock.c77 OMX_INT x, y, count; local
89 for (y = 0, count = 0;
93 for (x = 0; x < 8; x++, count++)
95 pDst[count] = pSrc[x] - pSrcRef[count];
/frameworks/compile/libbcc/lib/Support/
H A DOutputFile.cpp30 ssize_t OutputFile::write(const void *pBuf, size_t count) { argument
35 if ((count <= 0) || (pBuf == nullptr)) {
37 ALOGW("OutputFile::write: count = %zu, buffer = %p", count, pBuf);
41 while (count > 0) {
42 ssize_t write_size = ::write(mFD, pBuf, count);
/frameworks/minikin/libs/minikin/
H A DMeasurement.cpp32 size_t count, size_t offset) {
44 if (offset < start + count && layout.getCharAdvance(offset - layoutStart) == 0.0f) {
49 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) {
56 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
70 float getRunAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, argument
72 return getRunAdvance(layout, buf, start, start, count, offset);
83 size_t getOffsetForAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, argument
87 for (size_t i = start; i < start + count; i++) {
88 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
104 for (size_t i = searchStart; i <= start + count;
31 getRunAdvance(Layout& layout, const uint16_t* buf, size_t layoutStart, size_t start, size_t count, size_t offset) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpStringBuffer.cpp59 // count the characters
60 int count = 0; local
64 while ((ch = *src++) != 0 && count < MTP_STRING_MAX_CHARACTER_NUMBER) {
95 count++;
100 mCharCount = count;
104 int count = 0; local
108 while ((ch = *src++) != 0 && count < MTP_STRING_MAX_CHARACTER_NUMBER) {
119 count++;
122 mCharCount = count;
127 uint8_t count; local
155 int count = mCharCount; local
[all...]
H A DMtpDataPacket.cpp102 uint32_t count; local
103 if (!getUInt32(count))
106 for (uint32_t i = 0; i < count; i++) {
118 uint32_t count; local
119 if (!getUInt32(count))
122 for (uint32_t i = 0; i < count; i++) {
134 uint32_t count; local
135 if (!getUInt32(count))
138 for (uint32_t i = 0; i < count; i++) {
150 uint32_t count; local
166 uint32_t count; local
182 uint32_t count; local
198 uint32_t count; local
214 uint32_t count; local
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.cpp48 result.count = 1;
54 Value MakePtrValue(const BASE* values, int count) { argument
57 result.value = malloc(sizeof(BASE) * count);
58 memcpy(result.value, values, sizeof(BASE) * count);
59 result.count = count;
68 value->count = 1;
78 int SetPtrValue(Value* value, const BASE* new_values, int count) { argument
81 value->value = malloc(sizeof(BASE) * count);
82 value->count
194 MakeIntArrayValue(const int* values, int count) argument
198 MakeFloatArrayValue(const float* values, int count) argument
218 SetIntArrayValue(Value* value, const int* new_values, int count) argument
222 SetFloatArrayValue(Value* value, const float* new_values, int count) argument
[all...]
/frameworks/base/libs/hwui/
H A DGradientCache.h37 count = 0;
42 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
43 copy(colors, positions, count);
47 copy(entry.colors.get(), entry.positions.get(), entry.count);
52 copy(entry.colors.get(), entry.positions.get(), entry.count);
72 uint32_t count; member in struct:android::uirenderer::GradientCacheEntry
75 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
76 this->count = count;
77 this->colors.reset(new uint32_t[count]);
[all...]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetDebugMessageLogKHR.java1 // C function GLuint glGetDebugMessageLogKHR ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
4 int count,
19 // C function GLuint glGetDebugMessageLogKHR ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
22 int count,
30 // C function GLuint glGetDebugMessageLogKHR ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
33 int count,
43 // C function GLuint glGetDebugMessageLogKHR ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
46 int count,
3 glGetDebugMessageLogKHR( int count, int bufSize, int[] sources, int sourcesOffset, int[] types, int typesOffset, int[] ids, int idsOffset, int[] severities, int severitiesOffset, int[] lengths, int lengthsOffset, byte[] messageLog, int messageLogOffset) argument
21 glGetDebugMessageLogKHR( int count, java.nio.IntBuffer sources, java.nio.IntBuffer types, java.nio.IntBuffer ids, java.nio.IntBuffer severities, java.nio.IntBuffer lengths, java.nio.ByteBuffer messageLog) argument
32 glGetDebugMessageLogKHR( int count, int[] sources, int sourcesOffset, int[] types, int typesOffset, int[] ids, int idsOffset, int[] severities, int severitiesOffset) argument
45 glGetDebugMessageLogKHR( int count, java.nio.IntBuffer sources, java.nio.IntBuffer types, java.nio.IntBuffer ids, java.nio.IntBuffer severities) argument
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java386 int count;
388 for (int i = 0; i < length; i += count) {
389 count = 1;
393 count = skipQuotedText(inFormat, i, length);
407 int count = 1;
415 count++;
424 count++;
428 return count;
440 int count;
446 for (int i = 0; i < len; i += count) {
533 getDayOfWeekString(LocaleData ld, int day, int count, int kind) argument
544 getMonthString(LocaleData ld, int month, int count, int kind) argument
558 getTimeZoneString(Calendar inDate, int count) argument
570 formatZoneOffset(int offset, int count) argument
589 getYearString(int year, int count) argument
[all...]
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java48 int count = 0;
52 if (server1 != null) count++;
53 if (server2 != null) count++;
54 if (server3 != null) count++;
64 if (count == 0) {
68 mXtraServers = new String[count];
69 count = 0;
70 if (server1 != null) mXtraServers[count++] = server1;
71 if (server2 != null) mXtraServers[count++] = server2;
72 if (server3 != null) mXtraServers[count
[all...]
/frameworks/av/media/img_utils/include/img_utils/
H A DInput.h43 * count argument will be read. Bytes will be written into the given buffer starting
49 virtual ssize_t read(uint8_t* buf, size_t offset, size_t count) = 0;
57 virtual ssize_t skip(size_t count);
/frameworks/base/tools/aapt2/
H A DLocale_test.cpp28 ssize_t count = lv.initFromParts(std::begin(parts), std::end(parts)); local
29 if (count < 0) {
33 if (count != 1) {
34 return ::testing::AssertionFailure() << count
50 ssize_t count = lv.initFromParts(std::begin(parts), std::end(parts)); local
51 if (count < 0) {
55 if (count != 2) {
56 return ::testing::AssertionFailure() << count
/frameworks/native/include/gui/
H A DBitTube.h57 T const* events, size_t count) {
58 return sendObjects(tube, events, count, sizeof(T));
65 T* events, size_t count) {
66 return recvObjects(tube, events, count, sizeof(T));
86 void const* events, size_t count, size_t objSize);
89 void* events, size_t count, size_t objSize);
56 sendObjects(const sp<BitTube>& tube, T const* events, size_t count) argument
64 recvObjects(const sp<BitTube>& tube, T* events, size_t count) argument
/frameworks/base/core/jni/
H A Dandroid_text_AndroidCharacter.cpp55 jbyteArray destArray, jint count)
66 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) {
71 for (int i = 0; i < count; i++) {
73 i + 1 < count &&
106 jint start, jint count, jbyteArray destArray)
117 if (start < 0 || start > start + count
118 || env->GetArrayLength(srcArray) < (start + count)
119 || env->GetArrayLength(destArray) < count) {
124 for (int i = 0; i < count;
54 getDirectionalities(JNIEnv* env, jobject obj, jcharArray srcArray, jbyteArray destArray, jint count) argument
105 getEastAsianWidths(JNIEnv* env, jobject obj, jcharArray srcArray, jint start, jint count, jbyteArray destArray) argument
148 mirror(JNIEnv* env, jobject obj, jcharArray charArray, jint start, jint count) argument
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DObservableArrayListTest.java49 public void onItemRangeChanged(ObservableList sender, int start, int count) {
50 mNotifications.add(new ListChange(CHANGE, start, count));
54 public void onItemRangeInserted(ObservableList sender, int start, int count) {
55 mNotifications.add(new ListChange(INSERT, start, count));
59 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) {
60 mNotifications.add(new ListChange(MOVE, from, to, count));
64 public void onItemRangeRemoved(ObservableList sender, int start, int count) {
65 mNotifications.add(new ListChange(REMOVE, start, count));
71 public ListChange(int change, int start, int count) { argument
73 this.count
79 ListChange(int change, int from, int to, int count) argument
89 public final int count; field in class:ObservableArrayListTest.ListChange
[all...]
/frameworks/base/core/java/android/os/
H A DMemoryFile.java51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException;
194 * @param count number of bytes to read.
198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
203 if (destOffset < 0 || destOffset > buffer.length || count < 0
204 || count > buffer.length - destOffset
206 || count > mLength - srcOffset) {
209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging);
219 * @param count number of bytes to write.
222 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) argument
50 native_read(FileDescriptor fd, long address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) argument
52 native_write(FileDescriptor fd, long address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) argument
303 read(byte buffer[], int offset, int count) argument
336 write(byte buffer[], int offset, int count) argument
[all...]
/frameworks/base/location/tests/locationtests/src/android/location/
H A DGpsStatusTest.java123 int count = 10;
124 generateSatellitesData(count);
129 generateSatellitesData(count);
138 int count = 25;
139 generateSatellitesData(count);
144 generateSatellitesData(count * 2);
153 int count = 25;
154 generateSatellitesData(count * 2);
159 generateSatellitesData(count);
188 int count,
186 verifySatellites( GpsStatus status, int count, int[] prns, float[] snrs, float[] elevations, float[] azimuth, int ephemerisMask, int almanacMask, int usedInFixMask) argument
254 set( GpsStatus status, int count, int[] prns, float[] snrs, float[] elevations, float[] azimuth, int ephemerisMask, int almanacMask, int usedInFixMask) argument
294 generateIntArray(int count) argument
308 generateFloatArray(int count) argument
327 generateSatellitesData(int count) argument
331 generateSatellitesData(int count, boolean reusePrns) argument
[all...]

Completed in 739 milliseconds

1234567891011>>