/frameworks/base/core/tests/coretests/src/android/os/ |
D | TraceTest.java | 43 int count = 0; in testNativeTracingFromJava() local 45 count = eMethod(); in testNativeTracingFromJava() 117 int count = 0; in aMethod() local 119 count += bMethod(); in aMethod() 122 count += cMethod(); in aMethod() 125 count += dMethod(ii); in aMethod() 127 return count; in aMethod() 135 int count = 0; in bMethod() local 137 count += cMethod(); in bMethod() 139 return count; in bMethod() [all …]
|
/frameworks/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/base/core/java/com/android/internal/midi/ |
D | MidiEventScheduler.java | 39 public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument 41 MidiEvent event = createScheduledEvent(msg, offset, count, timestamp); in onSend() 54 public int count = 0; field in MidiEventScheduler.MidiEvent 57 private MidiEvent(int count) { in MidiEvent() argument 59 data = new byte[count]; in MidiEvent() 62 private MidiEvent(byte[] msg, int offset, int count, long timestamp) { in MidiEvent() argument 64 data = new byte[count]; in MidiEvent() 65 System.arraycopy(msg, offset, data, 0, count); in MidiEvent() 66 this.count = count; in MidiEvent() 72 for (int i = 0; i < count; i++) { in toString() [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | HealthStats.java | 130 int count; in HealthStats() local 136 count = in.readInt(); in HealthStats() 137 mTimerKeys = new int[count]; in HealthStats() 138 mTimerCounts = new int[count]; in HealthStats() 139 mTimerTimes = new long[count]; in HealthStats() 140 for (int i=0; i<count; i++) { in HealthStats() 147 count = in.readInt(); in HealthStats() 148 mMeasurementKeys = new int[count]; in HealthStats() 149 mMeasurementValues = new long[count]; in HealthStats() 150 for (int i=0; i<count; i++) { in HealthStats() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 386 int count; in hasDesignator() local 388 for (int i = 0; i < length; i += count) { in hasDesignator() 389 count = 1; in hasDesignator() 393 count = skipQuotedText(inFormat, i, length); in hasDesignator() 407 int count = 1; in skipQuotedText() local 415 count++; in skipQuotedText() 424 count++; in skipQuotedText() 428 return count; in skipQuotedText() 440 int count; in format() local 446 for (int i = 0; i < len; i += count) { in format() [all …]
|
/frameworks/av/media/mtp/ |
D | MtpDataPacket.cpp | 35 ssize_t readExactBytes(int fd, void* buf, size_t count) { in readExactBytes() argument 36 if (count > SSIZE_MAX) { in readExactBytes() 40 while (read_count < count) { in readExactBytes() 41 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); in readExactBytes() 48 return read_count == count ? count : -1; in readExactBytes() 122 uint32_t count; in getAInt8() local 123 if (!getUInt32(count)) in getAInt8() 126 for (uint32_t i = 0; i < count; i++) { in getAInt8() 138 uint32_t count; in getAUInt8() local 139 if (!getUInt32(count)) in getAUInt8() [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/rs/tests/java_api/Refocus/dataExtraction/ |
D | extract_ave.sh | 11 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/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
D | ListChangeRegistryTest.java | 54 public void onItemRangeChanged(ObservableList sender, int start, int count) { in testNotifyChangedAll() 59 public void onItemRangeInserted(ObservableList sender, int start, int count) { in testNotifyChangedAll() 64 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) { in testNotifyChangedAll() 69 public void onItemRangeRemoved(ObservableList sender, int start, int count) { in testNotifyChangedAll() 91 public void onItemRangeChanged(ObservableList sender, int start, int count) { in testNotifyChanged() 93 assertEquals(expectedCount, count); in testNotifyChanged() 98 public void onItemRangeInserted(ObservableList sender, int start, int count) { in testNotifyChanged() 103 public void onItemRangeMoved(ObservableList sender, int from, int to, int count) { in testNotifyChanged() 108 public void onItemRangeRemoved(ObservableList sender, int start, int count) { in testNotifyChanged() 130 public void onItemRangeChanged(ObservableList sender, int start, int count) { in testNotifyInserted() [all …]
|
D | ObservableArrayListTest.java | 49 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) { in ListChange() argument 73 this.count = count; in ListChange() [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 | 49 ssize_t AudioBufferProviderSource::read(void *buffer, size_t count) in read() argument 55 mBuffer.frameCount = count; in read() 64 if (CC_UNLIKELY(count > available)) { in read() 65 count = available; in read() 69 memcpy(buffer, (char *) mBuffer.raw + (mConsumed * mFrameSize), count * mFrameSize); in read() 70 if (CC_UNLIKELY((mConsumed += count) >= mBuffer.frameCount)) { in read() 75 mFramesRead += count; in read() 79 return count; in read() 92 size_t count = total - accumulator; in readVia() local 93 if (CC_UNLIKELY(count == 0)) { in readVia() [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | value.cpp | 48 result.count = 1; in MakePODValue() 54 Value MakePtrValue(const BASE* values, int count) { in MakePtrValue() argument 57 result.value = malloc(sizeof(BASE) * count); in MakePtrValue() 58 memcpy(result.value, values, sizeof(BASE) * count); in MakePtrValue() 59 result.count = count; in MakePtrValue() 68 value->count = 1; in SetPODValue() 78 int SetPtrValue(Value* value, const BASE* new_values, int count) { in SetPtrValue() argument 81 value->value = malloc(sizeof(BASE) * count); in SetPtrValue() 82 value->count = count; in SetPtrValue() 84 if (value->type == TYPEID && value->count == count) { in SetPtrValue() [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | GLES31.java | 526 int count, in glProgramUniform1iv() argument 536 int count, in glProgramUniform1iv() argument 545 int count, in glProgramUniform2iv() argument 555 int count, in glProgramUniform2iv() argument 564 int count, in glProgramUniform3iv() argument 574 int count, in glProgramUniform3iv() argument 583 int count, in glProgramUniform4iv() argument 593 int count, in glProgramUniform4iv() argument 602 int count, in glProgramUniform1uiv() argument 612 int count, in glProgramUniform1uiv() argument [all …]
|
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/ |
D | ListChangeRegistry.java | 44 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); 79 public void notifyChanged(ObservableList list, int start, int count) { in notifyChanged() argument 80 ListChanges listChanges = acquire(start, 0, count); in notifyChanged() 91 public void notifyInserted(ObservableList list, int start, int count) { in notifyInserted() argument 92 ListChanges listChanges = acquire(start, 0, count); in notifyInserted() 104 public void notifyMoved(ObservableList list, int from, int to, int count) { in notifyMoved() argument 105 ListChanges listChanges = acquire(from, to, count); in notifyMoved() [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/libs/hwui/ |
D | GradientCache.h | 38 count = 0; in GradientCacheEntry() 43 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { in GradientCacheEntry() 44 copy(colors, positions, count); in GradientCacheEntry() 48 copy(entry.colors.get(), entry.positions.get(), entry.count); in GradientCacheEntry() 53 copy(entry.colors.get(), entry.positions.get(), entry.count); 73 uint32_t count; member 76 void copy(uint32_t* colors, float* positions, uint32_t count) { in copy() 77 this->count = count; in copy() 78 this->colors.reset(new uint32_t[count]); in copy() 79 this->positions.reset(new float[count]); in copy() [all …]
|
/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/base/core/java/android/content/ |
D | ContentProviderResult.java | 30 public final Integer count; field in ContentProviderResult 35 this.count = null; in ContentProviderResult() 38 public ContentProviderResult(int count) { in ContentProviderResult() argument 39 this.count = count; in ContentProviderResult() 46 count = source.readInt(); in ContentProviderResult() 49 count = null; in ContentProviderResult() 57 count = cpr.count; in ContentProviderResult() 63 dest.writeInt(count); in writeToParcel() 89 return "ContentProviderResult(count=" + count + ")"; in toString()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 66 if (entry.count == 0 || entry.type != TYPE_BYTE) { in filterUnsupportedFeatures() 68 __FUNCTION__, entry.count, entry.type); in filterUnsupportedFeatures() 73 capabilities.setCapacity(entry.count); in filterUnsupportedFeatures() 74 for (size_t i = 0; i < entry.count; i++) { in filterUnsupportedFeatures() 92 if (entry.count == 0 || entry.count % 4 || entry.type != TYPE_INT32) { in filterStreamConfigurations() 94 __FUNCTION__, entry.count, entry.type); in filterStreamConfigurations() 99 filteredStreamConfigs.setCapacity(entry.count); in filterStreamConfigurations() 101 for (size_t i=0; i < entry.count; i += STREAM_CONFIGURATION_SIZE) { in filterStreamConfigurations() 124 filteredDepthStreamConfigs.setCapacity(entry.count); in filterStreamConfigurations() 126 for (size_t i=0; i < entry.count; i += STREAM_CONFIGURATION_SIZE) { in filterStreamConfigurations() [all …]
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | GpsStatusTest.java | 123 int count = 10; in testAddSatellites() local 124 generateSatellitesData(count); in testAddSatellites() 129 generateSatellitesData(count); in testAddSatellites() 138 int count = 25; in testAddMoreSatellites() local 139 generateSatellitesData(count); in testAddMoreSatellites() 144 generateSatellitesData(count * 2); in testAddMoreSatellites() 153 int count = 25; in testAddLessSatellites() local 154 generateSatellitesData(count * 2); in testAddLessSatellites() 159 generateSatellitesData(count); in testAddLessSatellites() 188 int count, in verifySatellites() argument [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_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 …]
|
/frameworks/native/services/surfaceflinger/ |
D | EventThread.cpp | 59 mVSyncEvent[i].vsync.count = 0; in EventThread() 115 void EventThread::setVsyncRate(uint32_t count, in setVsyncRate() argument 117 if (int32_t(count) >= 0) { // server must protect against bad params in setVsyncRate() 119 const int32_t new_count = (count == 0) ? -1 : count; in setVsyncRate() 120 if (connection->count != new_count) { in setVsyncRate() 121 connection->count = new_count; in setVsyncRate() 133 if (connection->count < 0) { in requestNextVsync() 134 connection->count = 0; in requestNextVsync() 162 mVSyncEvent[0].vsync.count++; in onVSyncEvent() 188 const size_t count = signalConnections.size(); in threadLoop() local [all …]
|