/frameworks/base/core/tests/coretests/src/android/os/ |
D | TraceTest.java | 43 int count = 0; in testNativeTracingFromJava() local 45 count = eMethod(); in testNativeTracingFromJava() 116 int count = 0; in aMethod() local 118 count += bMethod(); in aMethod() 121 count += cMethod(); in aMethod() 124 count += dMethod(ii); in aMethod() 126 return count; in aMethod() 134 int count = 0; in bMethod() local 136 count += cMethod(); in bMethod() 138 return count; in bMethod() [all …]
|
/frameworks/av/services/audioflinger/ |
D | AudioResamplerFirProcessNeon.h | 54 int count, 92 [count] "+r" (count), 106 int count, 149 [count] "+r" (count), 164 int count, 217 [count] "+r" (count), 234 int count, 292 [count] "+r" (count), 310 int count, 356 [count] "+r" (count), [all …]
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | UnsafeByteSequence.java | 32 private int count; field in UnsafeByteSequence 39 return count; in size() 47 count = 0; in rewind() 51 if (count + length >= bytes.length) { in write() 52 byte[] newBytes = new byte[(count + length) * 2]; in write() 53 System.arraycopy(bytes, 0, newBytes, 0, count); in write() 56 System.arraycopy(buffer, offset, bytes, count, length); in write() 57 count += length; in write() 61 if (count == bytes.length) { in write() 62 byte[] newBytes = new byte[count * 2]; in write() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 102 uint32_t count; in getAInt8() local 103 if (!getUInt32(count)) in getAInt8() 106 for (uint32_t i = 0; i < count; i++) { in getAInt8() 118 uint32_t count; in getAUInt8() local 119 if (!getUInt32(count)) in getAUInt8() 122 for (uint32_t i = 0; i < count; i++) { in getAUInt8() 134 uint32_t count; in getAInt16() local 135 if (!getUInt32(count)) in getAInt16() 138 for (uint32_t i = 0; i < count; i++) { in getAInt16() 150 uint32_t count; in getAUInt16() local [all …]
|
D | MtpStringBuffer.cpp | 60 int count = 0; in set() local 64 while ((ch = *src++) != 0 && count < MTP_STRING_MAX_CHARACTER_NUMBER) { in set() 95 count++; in set() 100 mCharCount = count; in set() 104 int count = 0; in set() local 108 while ((ch = *src++) != 0 && count < MTP_STRING_MAX_CHARACTER_NUMBER) { in set() 119 count++; in set() 122 mCharCount = count; in set() 127 uint8_t count; in readFromPacket() local 128 if (!packet->getUInt8(count)) in readFromPacket() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | QuickRejectActivity.java | 55 int count = canvas.getSaveCount(); in onDraw() local 56 Log.d("OpenGLRenderer", "count=" + count); in onDraw() 57 count = canvas.save(); in onDraw() 58 Log.d("OpenGLRenderer", "count after save=" + count); in onDraw() 59 count = canvas.getSaveCount(); in onDraw() 60 Log.d("OpenGLRenderer", "getSaveCount after save=" + count); in onDraw() 62 count = canvas.getSaveCount(); in onDraw() 63 Log.d("OpenGLRenderer", "count after restore=" + count); in onDraw() 70 canvas.restoreToCount(count); in onDraw() 71 count = canvas.getSaveCount(); in onDraw() [all …]
|
/frameworks/av/media/libnbaio/ |
D | AudioBufferProviderSource.cpp | 50 size_t count, in read() argument 57 mBuffer.frameCount = count; in read() 66 if (CC_UNLIKELY(count > available)) { in read() 67 count = available; in read() 71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize); in read() 72 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { in read() 77 mFramesRead += count; in read() 81 return count; in read() 95 size_t count = total - accumulator; in readVia() local 96 if (CC_UNLIKELY(count == 0)) { in readVia() [all …]
|
D | PipeReader.cpp | 62 ssize_t PipeReader::read(void *buffer, size_t count, int64_t readPTS __unused) in read() argument 70 if (CC_LIKELY(count > (size_t) avail)) { in read() 71 count = avail; in read() 75 if (CC_LIKELY(red > count)) { in read() 76 red = count; in read() 82 if (CC_UNLIKELY((count -= red) > front)) { in read() 83 count = front; in read() 85 if (CC_LIKELY(count > 0)) { in read() 86 memcpy((char *) buffer + (red * mFrameSize), mPipe.mBuffer, count * mFrameSize); in read() 87 red += count; in read()
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES31.java | 519 int count, in glProgramUniform1iv() argument 529 int count, in glProgramUniform1iv() argument 538 int count, in glProgramUniform2iv() argument 548 int count, in glProgramUniform2iv() argument 557 int count, in glProgramUniform3iv() argument 567 int count, in glProgramUniform3iv() argument 576 int count, in glProgramUniform4iv() argument 586 int count, in glProgramUniform4iv() argument 595 int count, in glProgramUniform1uiv() argument 605 int count, in glProgramUniform1uiv() argument [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 441 int count; in hasDesignator() local 443 for (int i = 0; i < length; i += count) { in hasDesignator() 444 count = 1; in hasDesignator() 448 count = skipQuotedText(inFormat, i, length); in hasDesignator() 462 int count = 1; in skipQuotedText() local 470 count++; in skipQuotedText() 479 count++; in skipQuotedText() 483 return count; in skipQuotedText() 495 int count; in format() local 501 for (int i = 0; i < len; i += count) { in format() [all …]
|
/frameworks/base/core/java/android/os/ |
D | MemoryFile.java | 51 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; in native_read() argument 53 int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; in native_write() argument 198 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument 203 if (destOffset < 0 || destOffset > buffer.length || count < 0 in readBytes() 204 || count > buffer.length - destOffset in readBytes() 206 || count > mLength - srcOffset) { in readBytes() 209 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in readBytes() 222 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() argument 227 if (srcOffset < 0 || srcOffset > buffer.length || count < 0 in writeBytes() 228 || count > buffer.length - srcOffset in writeBytes() [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | value.cpp | 47 result.count = 1; in MakePODValue() 53 Value MakePtrValue(const BASE* values, int count) { in MakePtrValue() argument 56 result.value = malloc(sizeof(BASE) * count); in MakePtrValue() 57 memcpy(result.value, values, sizeof(BASE) * count); in MakePtrValue() 58 result.count = count; in MakePtrValue() 67 value->count = 1; in SetPODValue() 77 int SetPtrValue(Value* value, const BASE* new_values, int count) { in SetPtrValue() argument 80 value->value = malloc(sizeof(BASE) * count); in SetPtrValue() 81 value->count = count; in SetPtrValue() 83 if (value->type == TYPEID && value->count == count) { in SetPtrValue() [all …]
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/ |
D | PrimitiveFormat.java | 28 public static MutableFrameFormat createByteFormat(int count, int target) { in createByteFormat() argument 29 return createFormat(FrameFormat.TYPE_BYTE, count, target); in createByteFormat() 32 public static MutableFrameFormat createInt16Format(int count, int target) { in createInt16Format() argument 33 return createFormat(FrameFormat.TYPE_INT16, count, target); in createInt16Format() 36 public static MutableFrameFormat createInt32Format(int count, int target) { in createInt32Format() argument 37 return createFormat(FrameFormat.TYPE_INT32, count, target); in createInt32Format() 40 public static MutableFrameFormat createFloatFormat(int count, int target) { in createFloatFormat() argument 41 return createFormat(FrameFormat.TYPE_FLOAT, count, target); in createFloatFormat() 44 public static MutableFrameFormat createDoubleFormat(int count, int target) { in createDoubleFormat() argument 45 return createFormat(FrameFormat.TYPE_DOUBLE, count, target); in createDoubleFormat() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentProviderResult.java | 31 public final Integer count; field in ContentProviderResult 36 this.count = null; in ContentProviderResult() 39 public ContentProviderResult(int count) { in ContentProviderResult() argument 40 this.count = count; in ContentProviderResult() 47 count = source.readInt(); in ContentProviderResult() 50 count = null; in ContentProviderResult() 58 count = cpr.count; in ContentProviderResult() 64 dest.writeInt(count); in writeToParcel() 90 return "ContentProviderResult(count=" + count + ")"; in toString()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetFileDescriptor.java | 225 public int read(byte[] buffer, int offset, int count) throws IOException { in read() argument 228 if (count > mRemaining) count = (int)mRemaining; in read() 229 int res = super.read(buffer, offset, count); in read() 234 return super.read(buffer, offset, count); in read() 243 public long skip(long count) throws IOException { in skip() argument 246 if (count > mRemaining) count = mRemaining; in skip() 247 long res = super.skip(count); in skip() 252 return super.skip(count); in skip() 300 public void write(byte[] buffer, int offset, int count) throws IOException { in write() argument 303 if (count > mRemaining) count = (int)mRemaining; in write() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | EventThread.cpp | 58 mVSyncEvent[i].vsync.count = 0; in EventThread() 109 void EventThread::setVsyncRate(uint32_t count, in setVsyncRate() argument 111 if (int32_t(count) >= 0) { // server must protect against bad params in setVsyncRate() 113 const int32_t new_count = (count == 0) ? -1 : count; in setVsyncRate() 114 if (connection->count != new_count) { in setVsyncRate() 115 connection->count = new_count; in setVsyncRate() 124 if (connection->count < 0) { in requestNextVsync() 125 connection->count = 0; in requestNextVsync() 153 mVSyncEvent[0].vsync.count++; in onVSyncEvent() 179 const size_t count = signalConnections.size(); in threadLoop() local [all …]
|
/frameworks/base/libs/hwui/ |
D | GradientCache.h | 35 count = 0; in GradientCacheEntry() 40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry() 41 copy(colors, positions, count); in GradientCacheEntry() 45 copy(entry.colors, entry.positions, entry.count); in GradientCacheEntry() 58 copy(entry.colors, entry.positions, entry.count); 78 uint32_t count; member 81 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy() 82 this->count = count; in copy() 83 this->colors = new uint32_t[count]; in copy() 84 this->positions = new float[count]; in copy() [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | omxVCM4P2_TransRecBlockCoef_intra.c | 159 OMX_INT x, y, count, predDir; in omxVCM4P2_TransRecBlockCoef_intra() local 198 for (y = 0, count = 0; y < 8; y++) in omxVCM4P2_TransRecBlockCoef_intra() 200 for(x= 0; x < 8; x++, count++) in omxVCM4P2_TransRecBlockCoef_intra() 202 pTempBuf1[count] = pSrc[(y*srcStep) + x]; in omxVCM4P2_TransRecBlockCoef_intra() 214 for (y = 0, count = 0; y < 8; y++) in omxVCM4P2_TransRecBlockCoef_intra() 216 for(x = 0; x < 8; x++, count++) in omxVCM4P2_TransRecBlockCoef_intra() 219 pTempBuf1[count] = pTempBuf2[count]; in omxVCM4P2_TransRecBlockCoef_intra() 220 pDst[(y*dstStep) + x] = pTempBuf2[count]; in omxVCM4P2_TransRecBlockCoef_intra() 265 for(count = 0; count < 64; count++) in omxVCM4P2_TransRecBlockCoef_intra() 267 pRec[count] = armMax(0,pTempBuf3[count]); in omxVCM4P2_TransRecBlockCoef_intra()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/ |
D | h264bsd_interpolate_chroma_ver.s | 40 count RN 2 label 156 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1 157 ADD count, count, tmp2, LSL #24 ;// loop_y 158 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1 159 AND tmp2, count, #0x00F00000 ;// loop_x 173 ADD count, count, tmp2, LSL #8 205 SUBS count, count, #2<<28 208 AND tmp2, count, #0x00F00000 215 ADDS count, count, #0xE << 24 232 AND count, count, #0x00FFFFFF [all …]
|
D | h264bsd_interpolate_chroma_hor.s | 41 count RN 2 label 158 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1 159 ADD count, count, tmp2, LSL #24 ;// loop_y 160 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1 161 AND tmp2, count, #0x00F00000 ;// loop_x 175 ADD count, count, tmp2, LSL #8 210 SUBS count, count, #2<<28 213 AND tmp2, count, #0x00F00000 221 ADDS count, count, #0xE << 24 238 AND count, count, #0x00FFFFFF [all …]
|
/frameworks/av/media/img_utils/src/ |
D | EndianUtils.cpp | 48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { in write() argument 50 if((res = mOutput->write(buf, offset, count)) == OK) { in write() 51 mOffset += count; in write() 56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { in write() argument 57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count); in write() 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) { in DEFINE_WRITE() 74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count); in DEFINE_WRITE() 77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { in write() argument [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | stat_bits.c | 84 Word32 count; in tnsCount() local 88 count = 0; in tnsCount() 109 count += 1; in tnsCount() 111 count += 2; in tnsCount() 114 count += 1; in tnsCount() 117 count += 4; in tnsCount() 118 count += 3; in tnsCount() 121 count += 6; in tnsCount() 122 count += 5; in tnsCount() 126 count += 1; /*direction*/ in tnsCount() [all …]
|
/frameworks/native/libs/gui/ |
D | DisplayEventReceiver.cpp | 60 status_t DisplayEventReceiver::setVsyncRate(uint32_t count) { in setVsyncRate() argument 61 if (int32_t(count) < 0) in setVsyncRate() 65 mEventConnection->setVsyncRate(count); in setVsyncRate() 81 size_t count) { in getEvents() argument 82 return DisplayEventReceiver::getEvents(mDataChannel, events, count); in getEvents() 86 Event* events, size_t count) in getEvents() argument 88 return BitTube::recvObjects(dataChannel, events, count); in getEvents() 92 Event const* events, size_t count) in sendEvents() argument 94 return BitTube::sendObjects(dataChannel, events, count); in sendEvents()
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 55 jbyteArray destArray, jint count) in getDirectionalities() argument 66 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) { in getDirectionalities() 71 for (int i = 0; i < count; i++) { in getDirectionalities() 73 i + 1 < count && in getDirectionalities() 106 jint start, jint count, jbyteArray destArray) in getEastAsianWidths() argument 117 if (start < 0 || start > start + count in getEastAsianWidths() 118 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths() 119 || env->GetArrayLength(destArray) < count) { in getEastAsianWidths() 124 for (int i = 0; i < count; i++) { in getEastAsianWidths() 127 i + 1 < count && in getEastAsianWidths() [all …]
|
/frameworks/base/core/java/android/text/ |
D | TextDirectionHeuristics.java | 130 public boolean isRtl(char[] array, int start, int count) { in isRtl() argument 131 return isRtl(CharBuffer.wrap(array), start, count); in isRtl() 135 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() argument 136 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) { in isRtl() 142 return doCheck(cs, start, count); in isRtl() 145 private boolean doCheck(CharSequence cs, int start, int count) { in doCheck() argument 146 switch(mAlgorithm.checkRtl(cs, start, count)) { in doCheck() 179 int checkRtl(CharSequence cs, int start, int count); in checkRtl() argument 188 public int checkRtl(CharSequence cs, int start, int count) { in checkRtl() argument 190 for (int i = start, e = start + count; i < e && result == STATE_UNKNOWN; ++i) { in checkRtl() [all …]
|