/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/base/libs/hwui/ |
D | GradientCache.h | 36 count = 0; in GradientCacheEntry() 41 GradientCacheEntry(uint32_t* colors, float* positions, int count) { in GradientCacheEntry() 42 copy(colors, positions, count); in GradientCacheEntry() 46 copy(entry.colors, entry.positions, entry.count); in GradientCacheEntry() 59 copy(entry.colors, entry.positions, entry.count); 67 LTE_INT(count) { in LTE_INT() 68 int result = memcmp(colors, rhs.colors, count * sizeof(uint32_t)); in LTE_INT() 71 result = memcmp(positions, rhs.positions, count * sizeof(float)); in LTE_INT() 80 int count; member 85 void copy(uint32_t* colors, float* positions, int count) { in copy() [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 << mBitShift), count << mBitShift); 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) 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 << mBitShift), mPipe.mBuffer, count << mBitShift); in read() 87 red += count; in read()
|
/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 93 int count = getUInt32(); in getAInt8() local 94 for (int i = 0; i < count; i++) in getAInt8() 101 int count = getUInt32(); in getAUInt8() local 102 for (int i = 0; i < count; i++) in getAUInt8() 109 int count = getUInt32(); in getAInt16() local 110 for (int i = 0; i < count; i++) in getAInt16() 117 int count = getUInt32(); in getAUInt16() local 118 for (int i = 0; i < count; i++) in getAUInt16() 125 int count = getUInt32(); in getAInt32() local 126 for (int i = 0; i < count; i++) in getAInt32() [all …]
|
D | MtpStringBuffer.cpp | 65 int count = 0; in set() local 90 count++; in set() 95 mCharCount = count; in set() 99 int count = 0; in set() local 103 while ((ch = *src++) != 0 && count < 255) { in set() 114 count++; in set() 117 mCharCount = count; in set() 122 int count = packet->getUInt8(); in readFromPacket() local 124 for (int i = 0; i < count; i++) { in readFromPacket() 138 mCharCount = count; in readFromPacket() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 460 int count; in hasSeconds() local 462 for (int i = 0; i < length; i += count) { in hasSeconds() 463 count = 1; in hasSeconds() 467 count = skipQuotedText(inFormat, i, length); in hasSeconds() 481 int count = 1; in skipQuotedText() local 489 count++; in skipQuotedText() 498 count++; in skipQuotedText() 502 return count; in skipQuotedText() 515 int count; in format() local 519 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 193 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument 198 if (destOffset < 0 || destOffset > buffer.length || count < 0 in readBytes() 199 || count > buffer.length - destOffset in readBytes() 201 || count > mLength - srcOffset) { in readBytes() 204 return native_read(mFD, mAddress, buffer, srcOffset, destOffset, count, mAllowPurging); in readBytes() 217 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() argument 222 if (srcOffset < 0 || srcOffset > buffer.length || count < 0 in writeBytes() 223 || 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/services/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 133 int count = 0; in set_addresses() local 142 count = BAD_ARGUMENT; in set_addresses() 148 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses() 155 count = BAD_ARGUMENT; in set_addresses() 159 if (count) { in set_addresses() 160 sprintf(ifr4.ifr_name, "%s:%d", name, count); in set_addresses() 163 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses() 170 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses() 175 ++count; in set_addresses() 178 if (count == BAD_ARGUMENT) { in set_addresses() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | AssetFileDescriptor.java | 195 public int read(byte[] buffer, int offset, int count) throws IOException { in read() argument 198 if (count > mRemaining) count = (int)mRemaining; in read() 199 int res = super.read(buffer, offset, count); in read() 204 return super.read(buffer, offset, count); in read() 213 public long skip(long count) throws IOException { in skip() argument 216 if (count > mRemaining) count = mRemaining; in skip() 217 long res = super.skip(count); in skip() 222 return super.skip(count); in skip() 270 public void write(byte[] buffer, int offset, int count) throws IOException { in write() argument 273 if (count > mRemaining) count = (int)mRemaining; in write() [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/native/services/surfaceflinger/ |
D | EventThread.cpp | 48 mVSyncEvent[i].vsync.count = 0; in EventThread() 74 void EventThread::setVsyncRate(uint32_t count, in setVsyncRate() argument 76 if (int32_t(count) >= 0) { // server must protect against bad params in setVsyncRate() 78 const int32_t new_count = (count == 0) ? -1 : count; in setVsyncRate() 79 if (connection->count != new_count) { in setVsyncRate() 80 connection->count = new_count; in setVsyncRate() 89 if (connection->count < 0) { in requestNextVsync() 90 connection->count = 0; in requestNextVsync() 123 mVSyncEvent[type].vsync.count++; in onVSyncReceived() 150 const size_t count = signalConnections.size(); in threadLoop() local [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm11_asm/ |
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 …]
|
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_ver.s | 42 count RN 2 label 164 ADD count, count, tmp2, LSL #16 ;// chromaPartHeight-1 165 ADD count, count, tmp2, LSL #24 ;// loop_y 166 ADD count, count, tmp1, LSL #20 ;// chromaPartWidth-1 167 AND tmp2, count, #0x00F00000 ;// loop_x 190 ADD count, count, tmp2, LSL #8 234 SUBS count, count, #2<<28 237 AND tmp2, count, #0x00F00000 244 ADDS count, count, #0xE << 24 261 AND count, count, #0x00FFFFFF [all …]
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | omxVCM4P2_TransRecBlockCoef_intra.c | 144 OMX_INT x, y, count, predDir; in omxVCM4P2_TransRecBlockCoef_intra() local 183 for (y = 0, count = 0; y < 8; y++) in omxVCM4P2_TransRecBlockCoef_intra() 185 for(x= 0; x < 8; x++, count++) in omxVCM4P2_TransRecBlockCoef_intra() 187 pTempBuf1[count] = pSrc[(y*srcStep) + x]; in omxVCM4P2_TransRecBlockCoef_intra() 199 for (y = 0, count = 0; y < 8; y++) in omxVCM4P2_TransRecBlockCoef_intra() 201 for(x = 0; x < 8; x++, count++) in omxVCM4P2_TransRecBlockCoef_intra() 204 pTempBuf1[count] = pTempBuf2[count]; in omxVCM4P2_TransRecBlockCoef_intra() 205 pDst[(y*dstStep) + x] = pTempBuf2[count]; in omxVCM4P2_TransRecBlockCoef_intra() 250 for(count = 0; count < 64; count++) in omxVCM4P2_TransRecBlockCoef_intra() 252 pRec[count] = armMax(0,pTempBuf3[count]); in omxVCM4P2_TransRecBlockCoef_intra()
|
/frameworks/base/core/jni/android/graphics/ |
D | Shader.cpp | 118 size_t count = env->GetArrayLength(colorArray); in LinearGradient_create1() local 121 SkAutoSTMalloc<8, SkScalar> storage(posArray ? count : 0); in LinearGradient_create1() 125 AutoJavaFloatArray autoPos(env, posArray, count); in LinearGradient_create1() 128 for (size_t i = 0; i < count; i++) { in LinearGradient_create1() 135 pos, count, in LinearGradient_create1() 147 size_t count = env->GetArrayLength(colorArray); in LinearGradient_postCreate1() local 156 size_t stopCount = count; in LinearGradient_postCreate1() 160 AutoJavaFloatArray autoPos(env, posArray, count); in LinearGradient_postCreate1() 164 missLast = posValues[count - 1] != 1.0f; in LinearGradient_postCreate1() 173 for (size_t i = missFirst; i < count + missFirst; i++) { in LinearGradient_postCreate1() [all …]
|
D | Paint.cpp | 386 …static jfloat measureText_CII(JNIEnv* env, jobject jpaint, jcharArray text, int index, int count) { in measureText_CII() argument 391 if ((index | count) < 0 || (size_t)(index + count) > textLength) { in measureText_CII() 395 if (count == 0) { in measureText_CII() 403 TextLayout::getTextRunAdvances(paint, textArray, index, count, textLength, in measureText_CII() 415 int count = end - start; in measureText_StringII() local 416 if ((start | count) < 0 || (size_t)end > textLength) { in measureText_StringII() 420 if (count == 0) { in measureText_StringII() 428 TextLayout::getTextRunAdvances(paint, textArray, start, count, textLength, in measureText_StringII() 455 …static int dotextwidths(JNIEnv* env, SkPaint* paint, const jchar text[], int count, jfloatArray wi… in dotextwidths() argument 459 if (count < 0 || !widths) { in dotextwidths() [all …]
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 54 …getDirectionalities(JNIEnv* env, jobject obj, jcharArray srcArray, jbyteArray destArray, int count) in getDirectionalities() argument 65 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) { in getDirectionalities() 70 for (int i = 0; i < count; i++) { in getDirectionalities() 72 i + 1 < count && in getDirectionalities() 105 int start, int count, jbyteArray destArray) in getEastAsianWidths() argument 116 if (start < 0 || start > start + count in getEastAsianWidths() 117 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths() 118 || env->GetArrayLength(destArray) < count) { in getEastAsianWidths() 123 for (int i = 0; i < count; i++) { in getEastAsianWidths() 126 i + 1 < count && in getEastAsianWidths() [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/base/core/java/android/content/ |
D | ContentProviderResult.java | 29 public final Integer count; field in ContentProviderResult 34 this.count = null; in ContentProviderResult() 37 public ContentProviderResult(int count) { in ContentProviderResult() argument 38 this.count = count; in ContentProviderResult() 45 count = source.readInt(); in ContentProviderResult() 48 count = null; in ContentProviderResult() 56 dest.writeInt(count); in writeToParcel() 82 return "ContentProviderResult(count=" + count + ")"; in toString()
|
/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/java/android/text/ |
D | SpannableStringInternal.java | 99 int count = mSpanCount; in setSpan() local 103 for (int i = 0; i < count; i++) { in setSpan() 140 int count = mSpanCount; in removeSpan() local 144 for (int i = count - 1; i >= 0; i--) { in removeSpan() 149 int c = count - (i + 1); in removeSpan() 164 int count = mSpanCount; in getSpanStart() local 168 for (int i = count - 1; i >= 0; i--) { in getSpanStart() 178 int count = mSpanCount; in getSpanEnd() local 182 for (int i = count - 1; i >= 0; i--) { in getSpanEnd() 192 int count = mSpanCount; in getSpanFlags() local [all …]
|