/frameworks/av/media/libaudioclient/tests/ |
D | record_test_output_v1.0_ref_walleye.txt | 6 format(0x1), channel mask(0x10), channel count(1), sample rate(48000) 7 frame count(4800), req. frame count(4800) 8 notif. frame count(960), req. notif. frame count(2400) 15 format(0x1), channel mask(0x10), channel count(1), sample rate(24000) 16 frame count(4800), req. frame count(4800) 17 notif. frame count(480), req. notif. frame count(2400) 24 format(0x1), channel mask(0x10), channel count(1), sample rate(16000) 25 frame count(4800), req. frame count(4800) 26 notif. frame count(320), req. notif. frame count(2400) 33 format(0x1), channel mask(0x10), channel count(1), sample rate(8000) [all …]
|
D | track_test_output_v1.0_ref_walleye.txt | 6 format(1), channel mask(3), channel count(2) 8 frame count(4800), req. frame count(4800) 9 notif. frame count(2400), req. notif. frame count(2400), req. notif. per buff(0) 11 output(13) AF latency (50) AF frame count(960) AF SampleRate(48000) 17 format(1), channel mask(3), channel count(2) 19 frame count(4800), req. frame count(4800) 20 notif. frame count(1600), req. notif. frame count(2400), req. notif. per buff(0) 22 output(13) AF latency (50) AF frame count(960) AF SampleRate(48000) 28 format(1), channel mask(3), channel count(2) 30 frame count(4800), req. frame count(4800) [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 | 132 int count; in HealthStats() local 138 count = in.readInt(); in HealthStats() 139 mTimerKeys = new int[count]; in HealthStats() 140 mTimerCounts = new int[count]; in HealthStats() 141 mTimerTimes = new long[count]; in HealthStats() 142 for (int i=0; i<count; i++) { in HealthStats() 149 count = in.readInt(); in HealthStats() 150 mMeasurementKeys = new int[count]; in HealthStats() 151 mMeasurementValues = new long[count]; in HealthStats() 152 for (int i=0; i<count; i++) { in HealthStats() [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/av/media/mtp/ |
D | MtpDataPacket.cpp | 36 ssize_t readExactBytes(int fd, void* buf, size_t count) { in readExactBytes() argument 37 if (count > SSIZE_MAX) { in readExactBytes() 41 while (read_count < count) { in readExactBytes() 42 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count); in readExactBytes() 49 return read_count == count ? count : -1; in readExactBytes() 123 uint32_t count; in getAInt8() local 124 if (!getUInt32(count)) in getAInt8() 127 for (uint32_t i = 0; i < count; i++) { in getAInt8() 139 uint32_t count; in getAUInt8() local 140 if (!getUInt32(count)) in getAUInt8() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | QuickRejectActivity.java | 55 int count = canvas.getSaveCount(); in onDraw() local 56 Log.d("HWUI", "count=" + count); in onDraw() 57 count = canvas.save(); in onDraw() 58 Log.d("HWUI", "count after save=" + count); in onDraw() 59 count = canvas.getSaveCount(); in onDraw() 60 Log.d("HWUI", "getSaveCount after save=" + count); in onDraw() 62 count = canvas.getSaveCount(); in onDraw() 63 Log.d("HWUI", "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/core/tests/coretests/src/android/os/ |
D | TraceTest.java | 114 int count = 0; in testNativeTracingFromJava() local 116 count = eMethod(); in testNativeTracingFromJava() 191 int count = 0; in aMethod() local 193 count += bMethod(); in aMethod() 196 count += cMethod(); in aMethod() 199 count += dMethod(ii); in aMethod() 201 return count; in aMethod() 209 int count = 0; in bMethod() local 211 count += cMethod(); in bMethod() 213 return count; in bMethod() [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | AutoMalloc.h | 38 explicit AutoTMalloc(size_t count) : fPtr(mallocIfCountThrowOnFail(count)) {} in AutoTMalloc() argument 44 void realloc(size_t count) { fPtr.reset(reallocIfCountThrowOnFail(count)); } in realloc() argument 47 T* reset(size_t count = 0) { 48 fPtr.reset(mallocIfCountThrowOnFail(count)); 75 T* mallocIfCountThrowOnFail(size_t count) { in mallocIfCountThrowOnFail() argument 77 if (count) { in mallocIfCountThrowOnFail() 78 newPtr = (T*)std::malloc(count * sizeof(T)); in mallocIfCountThrowOnFail() 79 LOG_ALWAYS_FATAL_IF(!newPtr, "failed to malloc %zu bytes", count * sizeof(T)); in mallocIfCountThrowOnFail() 83 T* reallocIfCountThrowOnFail(size_t count) { in reallocIfCountThrowOnFail() argument 85 if (count) { in reallocIfCountThrowOnFail() [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/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/libs/modules-utils/java/com/android/modules/utils/ |
D | ModifiedUtf8.java | 30 int count = 0, s = 0, a; in decode() local 31 while (count < utfSize) { in decode() 32 if ((out[s] = (char) in[offset + count++]) < '\u0080') { in decode() 35 if (count >= utfSize) { in decode() 36 throw new UTFDataFormatException("bad second byte at " + count); in decode() 38 int b = in[offset + count++]; in decode() 40 throw new UTFDataFormatException("bad second byte at " + (count - 1)); in decode() 44 if (count + 1 >= utfSize) { in decode() 45 throw new UTFDataFormatException("bad third byte at " + (count + 1)); in decode() 47 int b = in[offset + count++]; in decode() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ByteBucketArray_test.cpp | 63 int count = 0; in TEST() local 64 bba.forEachItem([&count](auto i, auto val) { in TEST() 65 ++count; in TEST() 87 ASSERT_EQ(4 * 16, count); in TEST() 96 int count = 0; in TEST() local 97 bba.forEachItem([&count](auto, auto) { ++count; }); in TEST() 98 ASSERT_EQ(1 * 16, count); in TEST() 102 int count = 0; in TEST() local 103 bba.forEachItem([&count](auto, auto) { ++count; }); in TEST() 104 ASSERT_EQ(0, count); in TEST()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetFileDescriptor.java | 250 public int read(byte[] buffer, int offset, int count) throws IOException { in read() argument 251 return mDelegateInputStream.read(buffer, offset, count); in read() 260 public long skip(long count) throws IOException { in skip() argument 261 return mDelegateInputStream.skip(count); in skip() 322 public int read(byte[] buffer, int offset, int count) throws IOException { in read() argument 325 if (count > mRemaining) count = (int) mRemaining; in read() 326 int res = super.read(buffer, offset, count); in read() 331 return super.read(buffer, offset, count); in read() 340 public long skip(long count) throws IOException { in skip() argument 343 if (count > mRemaining) count = mRemaining; in skip() [all …]
|
/frameworks/base/core/java/android/net/metrics/ |
D | NetworkMetrics.java | 81 pendingSummary.dnsLatencies.count(latencyMs); in addDnsResult() 82 pendingSummary.dnsErrorRate.count(isSuccess ? 0 : 1); in addDnsResult() 91 pendingSummary.connectErrorRate.count(isSuccess ? 0 : 1); in addConnectResult() 93 pendingSummary.connectLatencies.count(latencyMs); in addConnectResult() 102 pendingSummary.tcpLossRate.count(lost, sent); in addTcpStatsResult() 103 pendingSummary.roundTripTimeUs.count(rttUs); in addTcpStatsResult() 104 pendingSummary.sentAckTimeDiffenceMs.count(sentAckDiffMs); in addTcpStatsResult() 148 100 * dnsErrorRate.average(), dnsErrorRate.count)); in toString() 151 100 * connectErrorRate.average(), connectErrorRate.count)); in toString() 153 100 * tcpLossRate.average(), tcpLossRate.count, (int) tcpLossRate.sum)); in toString() [all …]
|
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/ |
D | Utils.kt | 38 conditionFunction: (count: Int) -> Boolean in wait() 41 var count = 0 in wait() variable 42 while (!conditionFunction(count)) { in wait() 47 count++ in wait() 48 Log.i(TAG, "Waiting for $description ($waited/$maxWait) #$count") in wait() 67 conditionFunction: (count: Int) -> Boolean in ensure() 70 var count = 0 in ensure() variable 74 count in ensure() 78 count++ in ensure() 79 Log.i(TAG, "Ensuring $description ($waited/$window) #$count") in ensure()
|
/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/camera/ndk/impl/ |
D | ACameraMetadata.cpp | 123 if (entry.count == 0 || entry.type != TYPE_BYTE) { in filterUnsupportedFeatures() 125 __FUNCTION__, entry.count, entry.type); in filterUnsupportedFeatures() 130 capabilities.setCapacity(entry.count); in filterUnsupportedFeatures() 131 for (size_t i = 0; i < entry.count; i++) { in filterUnsupportedFeatures() 156 for (size_t i = 0; i < entry.count; ++i) { in derivePhysicalCameraIds() 182 if (entry.count == 0) { in filterDurations() 187 if (entry.count % 4 || entry.type != TYPE_INT64) { in filterDurations() 189 __FUNCTION__, tag, entry.count, entry.type); in filterDurations() 194 filteredDurations.setCapacity(entry.count * 2); in filterDurations() 196 for (size_t i=0; i < entry.count; i += STREAM_CONFIGURATION_SIZE) { in filterDurations() [all …]
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiReceiver.java | 61 abstract public void onSend(byte[] msg, int offset, int count, long timestamp) in onSend() argument 103 public void send(byte[] msg, int offset, int count) throws IOException { in send() argument 105 send(msg, offset, count, 0L); in send() 123 public void send(byte[] msg, int offset, int count, long timestamp) in send() argument 126 while (count > 0) { in send() 127 int length = (count > messageSize ? messageSize : count); in send() 130 count -= length; in send()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/usage/ |
D | UserUsageStatsServiceTest.java | 170 int count = 0; in testQueryEarliestEventsForPackage() local 172 count++; in testQueryEarliestEventsForPackage() 180 assertEquals(2, count); in testQueryEarliestEventsForPackage() 207 int count = 0; in testQueryEarliestEventsForPackage_Caching() local 209 count++; in testQueryEarliestEventsForPackage_Caching() 217 assertEquals(2, count); in testQueryEarliestEventsForPackage_Caching() 225 count = 0; in testQueryEarliestEventsForPackage_Caching() 227 count++; in testQueryEarliestEventsForPackage_Caching() 235 assertEquals(2, count); in testQueryEarliestEventsForPackage_Caching() 245 count = 0; in testQueryEarliestEventsForPackage_Caching() [all …]
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 497 int count; in format() local 504 for (int i = 0; i < len; i += count) { in format() 505 count = 1; in format() 509 count = appendQuotedText(s, i); in format() 514 while ((i + count < len) && (s.charAt(i + count) == c)) { in format() 515 count++; in format() 525 replacement = zeroPad(inDate.get(Calendar.DATE), count); in format() 530 inDate.get(Calendar.DAY_OF_WEEK), count, c); in format() 539 replacement = zeroPad(hour, count); in format() 552 replacement = zeroPad(hour, count); in format() [all …]
|
/frameworks/base/core/java/android/os/ |
D | MemoryFile.java | 187 public int readBytes(byte[] buffer, int srcOffset, int destOffset, int count) in readBytes() argument 192 mMapping.get(buffer, destOffset, count); in readBytes() 196 return count; in readBytes() 209 public void writeBytes(byte[] buffer, int srcOffset, int destOffset, int count) in writeBytes() argument 214 mMapping.put(buffer, srcOffset, count); in writeBytes() 289 public int read(byte buffer[], int offset, int count) throws IOException { in read() argument 290 if (offset < 0 || count < 0 || offset + count > buffer.length) { in read() 295 count = Math.min(count, available()); in read() 296 if (count < 1) { in read() 299 int result = readBytes(buffer, mOffset, offset, count); in read() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ContentProviderResult.java | 37 public final @Nullable Integer count; field in ContentProviderResult 45 public ContentProviderResult(int count) { in ContentProviderResult() argument 46 this(null, count, null, null); in ContentProviderResult() 58 public ContentProviderResult(Uri uri, Integer count, Bundle extras, Throwable exception) { in ContentProviderResult() argument 60 this.count = count; in ContentProviderResult() 72 count = source.readInt(); in ContentProviderResult() 74 count = null; in ContentProviderResult() 91 count = cpr.count; in ContentProviderResult() 104 if (count != null) { in writeToParcel() 106 dest.writeInt(count); in writeToParcel() [all …]
|