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

1234567891011>>

/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DPacketEncoder.java32 * @param count the number of bytes in the packet buffer to write
34 public void writePacket(byte[] buffer, int count); argument
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
H A DListChangeRegistry.java44 callback.onItemRangeChanged(sender, listChanges.start, listChanges.count);
47 callback.onItemRangeInserted(sender, listChanges.start, listChanges.count);
51 listChanges.count);
54 callback.onItemRangeRemoved(sender, listChanges.start, listChanges.count);
77 * @param count The number of changed elements.
79 public void notifyChanged(ObservableList list, int start, int count) { argument
80 ListChanges listChanges = acquire(start, 0, count);
89 * @param count The number of elements that were inserted.
91 public void notifyInserted(ObservableList list, int start, int count) { argument
92 ListChanges listChanges = acquire(start, 0, count);
104 notifyMoved(ObservableList list, int from, int to, int count) argument
116 notifyRemoved(ObservableList list, int start, int count) argument
121 acquire(int start, int to, int count) argument
147 public int count; field in class:ListChangeRegistry.ListChanges
[all...]
/frameworks/native/libs/gui/
H A DDisplayEventReceiver.cpp60 status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { argument
61 if (int32_t(count) < 0)
65 mEventConnection->setVsyncRate(count);
81 size_t count) {
82 return DisplayEventReceiver::getEvents(mDataChannel, events, count);
86 Event* events, size_t count)
88 return BitTube::recvObjects(dataChannel, events, count);
92 Event const* events, size_t count)
94 return BitTube::sendObjects(dataChannel, events, count);
80 getEvents(DisplayEventReceiver::Event* events, size_t count) argument
85 getEvents(const sp<BitTube>& dataChannel, Event* events, size_t count) argument
91 sendEvents(const sp<BitTube>& dataChannel, Event const* events, size_t count) argument
/frameworks/rs/java/tests/Refocus/dataExtraction/
H A Dextract_ave.sh11 count=0
27 if (( count > 0 ));then
28 rNine=$((InitializeSum/count))
31 rTen=$((UnpackInputImageSum/count))
34 rZero=$((MarkLayerMaskSum/count))
37 rOne=$((ComputeLayerMatteBehindFocalDepthSum/count))
40 rTwo=$((ComputeIntegralImageForLayerBehindFocalDepthSum/count))
43 rThree=$((FilterLayerBehindFocalDepthSum/count))
46 rFour=$((updateSharpImageUsingFuzzyImageSum/count))
49 rFive=$((ComputeLayerMatteInFrontOfFocalDepthSum/count))
[all...]
/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.cpp67 ssize_t PipeReader::read(void *buffer, size_t count) argument
75 if (CC_LIKELY(count > (size_t) avail)) {
76 count = avail;
80 if (CC_LIKELY(red > count)) {
81 red = count;
87 if (CC_UNLIKELY((count -= red) > front)) {
88 count = front;
90 if (CC_LIKELY(count > 0)) {
91 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize);
92 red += count;
[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(const float* advances, const uint16_t* buf, size_t start, size_t count,
27 size_t getOffsetForAdvance(const float* advances, 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/base/core/java/android/os/health/
H A DHealthStats.java35 * be a count, a time, or some other type of value. The unit for a measurement
50 * A <b>timer</b> metric contains an {@code int} count and a {@code long} time,
130 int count;
136 count = in.readInt();
137 mTimerKeys = new int[count];
138 mTimerCounts = new int[count];
139 mTimerTimes = new long[count];
140 for (int i=0; i<count; i++) {
147 count = in.readInt();
148 mMeasurementKeys = new int[count];
[all...]
H A DTimerStat.java23 * A TimerStat object stores a count and a time.
49 * Construct an empty TimerStat object with the count and time set to 0.
55 * Construct a TimerStat object with the supplied count and time fields.
57 * @param count The count
60 public TimerStat(int count, long time) { argument
61 mCount = count;
90 * Set the count for this timer.
92 public void setCount(int count) { argument
93 mCount = count;
[all...]
/frameworks/minikin/libs/minikin/
H A DMeasurement.cpp32 size_t start, size_t count, size_t offset) {
44 if (offset < start + count && advances[offset - layoutStart] == 0.0f) {
49 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) {
56 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) {
70 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, argument
72 return getRunAdvance(advances, buf, start, start, count, offset);
83 size_t getOffsetForAdvance(const float* advances, 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(const float* advances, 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...]
/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.h36 count = 0;
41 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
42 copy(colors, positions, count);
46 copy(entry.colors.get(), entry.positions.get(), entry.count);
51 copy(entry.colors.get(), entry.positions.get(), entry.count);
71 uint32_t count; member in struct:android::uirenderer::GradientCacheEntry
74 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
75 this->count = count;
76 this->colors.reset(new uint32_t[count]);
[all...]
/frameworks/base/tools/aapt2/flatten/
H A DResourceTypeExtensions.h31 uint32_t count; member in struct:aapt::ResTable_entry_ext
/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetDebugMessageLog.java1 // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
4 int count,
19 // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
22 int count,
30 // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
33 int count,
43 // C function GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog )
46 int count,
3 glGetDebugMessageLog( 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 glGetDebugMessageLog( 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 glGetDebugMessageLog( int count, int[] sources, int sourcesOffset, int[] types, int typesOffset, int[] ids, int idsOffset, int[] severities, int severitiesOffset) argument
45 glGetDebugMessageLog( int count, java.nio.IntBuffer sources, java.nio.IntBuffer types, java.nio.IntBuffer ids, java.nio.IntBuffer severities) argument
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.java50 int count = 0;
54 if (server1 != null) count++;
55 if (server2 != null) count++;
56 if (server3 != null) count++;
66 if (count == 0) {
70 mXtraServers = new String[count];
71 count = 0;
72 if (server1 != null) mXtraServers[count++] = server1;
73 if (server2 != null) mXtraServers[count++] = server2;
74 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/libs/hwui/tests/unit/
H A DFatVectorTests.cpp96 int count = 0; local
100 v.emplace_back(&count);
102 EXPECT_EQ(0, count) << "Destruction shouldn't have happened yet";
104 EXPECT_EQ(1, count) << "Destruction should happen exactly once";
108 int count = 0; local
113 v.emplace_back(&count);
116 EXPECT_EQ(0, count) << "Destruction shouldn't have happened yet";
118 EXPECT_EQ(10, count) << "Destruction should happen exactly once";

Completed in 900 milliseconds

1234567891011>>