Searched refs:count (Results 1 - 25 of 747) sorted by relevance

1234567891011>>

/frameworks/base/tests/CoreTests/android/core/
H A DLowLevelNetRunner.java24 private int count = 0; field in class:LowLevelNetRunner
30 count++;
34 * Decrement the run count. If this returns to zero notify any
38 count--;
39 if (count <= 0) {
/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristic.java25 boolean isRtl(char[] text, int start, int count); argument
H A DTextWatcher.java26 * the <code>count</code> characters beginning at <code>start</code>
32 int count, int after);
35 * the <code>count</code> characters beginning at <code>start</code>
40 public void onTextChanged(CharSequence s, int start, int before, int count); argument
31 beforeTextChanged(CharSequence s, int start, int count, int after) argument
H A DAndroidCharacter.java33 * Fill in the first <code>count</code> bytes of <code>dest</code> with the
34 * directionalities from the first <code>count</code> chars of <code>src</code>.
39 int count);
55 * Fill the first <code>count</code> bytes of <code>dest</code> with the
56 * East Asian Width from <code>count</code> chars of <code>src</code>
66 * @param count maximum number of characters to measure
70 int count, byte[] dest);
79 * @param count maximum number of characters to mirror
82 public native static boolean mirror(char[] text, int start, int count); argument
38 getDirectionalities(char[] src, byte[] dest, int count) argument
69 getEastAsianWidths(char[] src, int start, int count, byte[] dest) argument
/frameworks/compile/libbcc/lib/Support/
H A DInputFile.cpp26 ssize_t InputFile::read(void *pBuf, size_t count) { argument
31 if ((count <= 0) || (pBuf == NULL)) {
33 ALOGW("InputFile::read: count = %zu, buffer = %p", count, pBuf);
37 while (count > 0) {
38 ssize_t read_size = ::read(mFD, pBuf, count);
/frameworks/base/core/tests/coretests/src/android/os/
H A DTraceTest.java43 int count = 0;
45 count = eMethod();
116 int count = 0;
118 count += bMethod();
121 count += cMethod();
124 count += dMethod(ii);
126 return count;
134 int count = 0;
136 count += cMethod();
138 return count;
[all...]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/comm/src/
H A DomxVCCOMM_Copy16x16.c60 OMX_INT count,index, x, y; local
71 for (y = 0, count = 0, index = 0; y < 16; y++, count = count + step - 16)
73 for (x = 0; x < 16; x++, count++, index++)
75 pDst[index] = pSrc[count];
H A DomxVCCOMM_Copy8x8.c60 OMX_INT count,index, x, y; local
71 for (y = 0, count = 0, index = 0; y < 8; y++, count = count + step - 8)
73 for (x = 0; x < 8; x++, count++, index++)
75 pDst[index] = pSrc[count];
H A DomxVCCOMM_ComputeTextureErrorBlock_SAD.c65 OMX_INT x, y, count; local
78 for (y = 0, count = 0, *pDstSAD = 0;
82 for (x = 0; x < 8; x++, count++)
84 pDst[count] = pSrc[x] - pSrcRef[count];
85 *pDstSAD += armAbs(pDst[count]);
H A DomxVCCOMM_ComputeTextureErrorBlock.c62 OMX_INT x, y, count; local
74 for (y = 0, count = 0;
78 for (x = 0; x < 8; x++, count++)
80 pDst[count] = pSrc[x] - pSrcRef[count];
/frameworks/base/media/java/android/drm/mobile1/
H A DDrmConstraintInfo.java26 * The constraint of count.
28 private int count; field in class:DrmConstraintInfo
49 count = -1;
56 * Get the count constraint.
58 * @return the count or -1 if no limit.
61 return count;
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
H A DPrimitiveFormat.java28 public static MutableFrameFormat createByteFormat(int count, int target) { argument
29 return createFormat(FrameFormat.TYPE_BYTE, count, target);
32 public static MutableFrameFormat createInt16Format(int count, int target) { argument
33 return createFormat(FrameFormat.TYPE_INT16, count, target);
36 public static MutableFrameFormat createInt32Format(int count, int target) { argument
37 return createFormat(FrameFormat.TYPE_INT32, count, target);
40 public static MutableFrameFormat createFloatFormat(int count, int target) { argument
41 return createFormat(FrameFormat.TYPE_FLOAT, count, target);
44 public static MutableFrameFormat createDoubleFormat(int count, int target) { argument
45 return createFormat(FrameFormat.TYPE_DOUBLE, count, targe
68 createFormat(int baseType, int count, int target) argument
[all...]
/frameworks/base/libs/hwui/
H A DGradientCache.h36 count = 0;
41 GradientCacheEntry(uint32_t* colors, float* positions, int count) { argument
42 copy(colors, positions, count);
46 copy(entry.colors, entry.positions, entry.count);
59 copy(entry.colors, entry.positions, entry.count);
67 LTE_INT(count) {
68 int result = memcmp(colors, rhs.colors, count * sizeof(uint32_t));
71 result = memcmp(positions, rhs.positions, count * sizeof(float));
80 int count; member in struct:android::uirenderer::GradientCacheEntry
85 void copy(uint32_t* colors, float* positions, int count) { argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DQuickRejectActivity.java55 int count = canvas.getSaveCount();
56 Log.d("OpenGLRenderer", "count=" + count);
57 count = canvas.save();
58 Log.d("OpenGLRenderer", "count after save=" + count);
59 count = canvas.getSaveCount();
60 Log.d("OpenGLRenderer", "getSaveCount after save=" + count);
62 count = canvas.getSaveCount();
63 Log.d("OpenGLRenderer", "count afte
[all...]
/frameworks/base/core/java/android/nfc/
H A DTechListParcel.java42 int count = mTechLists.length;
43 dest.writeInt(count);
44 for (int i = 0; i < count; i++) {
53 int count = source.readInt();
54 String[][] techLists = new String[count][];
55 for (int i = 0; i < count; i++) {
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothOutputStream.java60 * Writes {@code count} bytes from the byte array {@code buffer} starting
67 * @param count
73 * if {@code offset < 0} or {@code count < 0}, or if
74 * {@code offset + count} is bigger than the length of
78 public void write(byte[] b, int offset, int count) throws IOException { argument
82 if ((offset | count) < 0 || count > b.length - offset) {
85 mSocket.write(b, offset, count);
/frameworks/base/core/java/android/content/
H A DContentProviderResult.java25 * to have exactly one of {@link #uri} or {@link #count} set.
29 public final Integer count; field in class:ContentProviderResult
34 this.count = null;
37 public ContentProviderResult(int count) { argument
38 this.count = count;
45 count = source.readInt();
48 count = null;
56 dest.writeInt(count);
82 return "ContentProviderResult(count
[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/av/media/libnbaio/
H A DPipe.cpp43 ssize_t Pipe::write(const void *buffer, size_t count) argument
45 // count == 0 is unlikely and not worth checking for
52 if (CC_LIKELY(written > count)) {
53 written = count;
57 if (CC_UNLIKELY((count -= written) > rear)) {
58 count = rear;
60 if (CC_LIKELY(count > 0)) {
61 memcpy(mBuffer, (char *) buffer + (written << mBitShift), count << mBitShift);
62 written += count;
H A DPipeReader.cpp62 ssize_t PipeReader::read(void *buffer, size_t count, int64_t readPTS) 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 << mBitShift), mPipe.mBuffer, count << mBitShift);
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 << mBitShift), count << mBitShift);
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/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
H A DomxVCM4P2_TransRecBlockCoef_intra.c144 OMX_INT x, y, count, predDir; local
183 for (y = 0, count = 0; y < 8; y++)
185 for(x= 0; x < 8; x++, count++)
187 pTempBuf1[count] = pSrc[(y*srcStep) + x];
199 for (y = 0, count = 0; y < 8; y++)
201 for(x = 0; x < 8; x++, count++)
204 pTempBuf1[count] = pTempBuf2[count];
205 pDst[(y*dstStep) + x] = pTempBuf2[count];
250 for(count
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java195 public int read(byte[] buffer, int offset, int count) throws IOException { argument
198 if (count > mRemaining) count = (int)mRemaining;
199 int res = super.read(buffer, offset, count);
204 return super.read(buffer, offset, count);
213 public long skip(long count) throws IOException { argument
216 if (count > mRemaining) count = mRemaining;
217 long res = super.skip(count);
222 return super.skip(count);
270 write(byte[] buffer, int offset, int count) argument
[all...]
/frameworks/base/media/mca/filterfw/native/core/
H A Dvalue.cpp47 result.count = 1;
53 Value MakePtrValue(const BASE* values, int count) { argument
56 result.value = malloc(sizeof(BASE) * count);
57 memcpy(result.value, values, sizeof(BASE) * count);
58 result.count = count;
67 value->count = 1;
77 int SetPtrValue(Value* value, const BASE* new_values, int count) { argument
80 value->value = malloc(sizeof(BASE) * count);
81 value->count
193 MakeIntArrayValue(const int* values, int count) argument
197 MakeFloatArrayValue(const float* values, int count) argument
217 SetIntArrayValue(Value* value, const int* new_values, int count) argument
221 SetFloatArrayValue(Value* value, const float* new_values, int count) argument
[all...]
/frameworks/compile/linkloader/lib/
H A DStubLayout.cpp27 StubLayout::StubLayout() : table(NULL), count(0) {
32 count = count_;
44 if (count == 0) {
56 count--;
61 size_t StubLayout::calcStubTableSize(size_t count) const {
62 return count * getUnitStubSize();

Completed in 331 milliseconds

1234567891011>>