Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 1388) sorted by relevance

12345678910>>...56

/frameworks/av/media/libaudioclient/tests/
Drecord_test_output_v1.0_ref_walleye.txt6 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 …]
Dtrack_test_output_v1.0_ref_walleye.txt6 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/tests/coretests/src/android/os/
DTraceTest.java43 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/base/core/java/android/os/health/
DHealthStats.java132 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/av/media/mtp/
DMtpDataPacket.cpp36 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/core/java/com/android/internal/midi/
DMidiEventScheduler.java39 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/rs/tests/java_api/Refocus/dataExtraction/
Dextract_ave.sh11 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DQuickRejectActivity.java55 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/
DAudioBufferProviderSource.cpp49 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/
Dvalue.cpp48 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/
DGLES31.java526 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/av/camera/ndk/impl/
DACameraMetadata.cpp65 if (entry.count == 0 || entry.type != TYPE_BYTE) { in filterUnsupportedFeatures()
67 __FUNCTION__, entry.count, entry.type); in filterUnsupportedFeatures()
72 capabilities.setCapacity(entry.count); in filterUnsupportedFeatures()
73 for (size_t i = 0; i < entry.count; i++) { in filterUnsupportedFeatures()
98 for (size_t i = 0; i < entry.count; ++i) { in derivePhysicalCameraIds()
122 if (entry.count == 0 || entry.count % 4 || entry.type != TYPE_INT64) { in filterDurations()
124 __FUNCTION__, tag, entry.count, entry.type); in filterDurations()
128 filteredDurations.setCapacity(entry.count * 2); in filterDurations()
130 for (size_t i=0; i < entry.count; i += STREAM_CONFIGURATION_SIZE) { in filterDurations()
208 if (entry.count > 0 && (entry.count % 4 || entry.type != TYPE_INT32)) { in filterStreamConfigurations()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
DPrimitiveFormat.java28 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/
DContentProviderResult.java31 public final Integer count; field in ContentProviderResult
39 public ContentProviderResult(int count) { in ContentProviderResult() argument
40 this(null, count, null); in ContentProviderResult()
49 public ContentProviderResult(Uri uri, Integer count, String failure) { in ContentProviderResult() argument
51 this.count = count; in ContentProviderResult()
62 count = source.readInt(); in ContentProviderResult()
64 count = null; in ContentProviderResult()
76 count = cpr.count; in ContentProviderResult()
88 if (count != null) { in writeToParcel()
90 dest.writeInt(count); in writeToParcel()
[all …]
/frameworks/base/core/java/android/net/metrics/
DNetworkMetrics.java83 pendingSummary.dnsLatencies.count(latencyMs); in addDnsResult()
84 pendingSummary.dnsErrorRate.count(isSuccess ? 0 : 1); in addDnsResult()
93 pendingSummary.connectErrorRate.count(isSuccess ? 0 : 1); in addConnectResult()
95 pendingSummary.connectLatencies.count(latencyMs); in addConnectResult()
104 pendingSummary.tcpLossRate.count(lost, sent); in addTcpStatsResult()
105 pendingSummary.roundTripTimeUs.count(rttUs); in addTcpStatsResult()
106 pendingSummary.sentAckTimeDiffenceMs.count(sentAckDiffMs); in addTcpStatsResult()
152 100 * dnsErrorRate.average(), dnsErrorRate.count)); in toString()
155 100 * connectErrorRate.average(), connectErrorRate.count)); in toString()
157 100 * tcpLossRate.average(), tcpLossRate.count, (int) tcpLossRate.sum)); in toString()
[all …]
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java229 public int read(byte[] buffer, int offset, int count) throws IOException { in read() argument
232 if (count > mRemaining) count = (int)mRemaining; in read()
233 int res = super.read(buffer, offset, count); in read()
238 return super.read(buffer, offset, count); in read()
247 public long skip(long count) throws IOException { in skip() argument
250 if (count > mRemaining) count = mRemaining; in skip()
251 long res = super.skip(count); in skip()
256 return super.skip(count); in skip()
304 public void write(byte[] buffer, int offset, int count) throws IOException { in write() argument
307 if (count > mRemaining) count = (int)mRemaining; in write()
[all …]
/frameworks/base/core/java/android/text/format/
DDateFormat.java476 int count; in format() local
483 for (int i = 0; i < len; i += count) { in format()
484 count = 1; in format()
488 count = appendQuotedText(s, i); in format()
493 while ((i + count < len) && (s.charAt(i + count) == c)) { in format()
494 count++; in format()
504 replacement = zeroPad(inDate.get(Calendar.DATE), count); in format()
509 inDate.get(Calendar.DAY_OF_WEEK), count, c); in format()
518 replacement = zeroPad(hour, count); in format()
531 replacement = zeroPad(hour, count); in format()
[all …]
/frameworks/av/media/img_utils/src/
DEndianUtils.cpp48 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/base/services/core/java/com/android/server/location/
DGpsPsdsDownloader.java55 int count = 0; in GpsPsdsDownloader() local
59 if (server1 != null) count++; in GpsPsdsDownloader()
60 if (server2 != null) count++; in GpsPsdsDownloader()
61 if (server3 != null) count++; in GpsPsdsDownloader()
71 if (count == 0) { in GpsPsdsDownloader()
75 mPsdsServers = new String[count]; in GpsPsdsDownloader()
76 count = 0; in GpsPsdsDownloader()
77 if (server1 != null) mPsdsServers[count++] = server1; in GpsPsdsDownloader()
78 if (server2 != null) mPsdsServers[count++] = server2; in GpsPsdsDownloader()
79 if (server3 != null) mPsdsServers[count++] = server3; in GpsPsdsDownloader()
[all …]
/frameworks/base/core/java/android/os/
DMemoryFile.java187 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/opt/net/wifi/service/java/com/android/server/wifi/util/
DIntCounter.java39 public int count; field in IntCounter.KeyCount
41 public KeyCount(int key, int count) { in KeyCount() argument
43 this.count = count; in KeyCount()
81 public void add(int key, int count) { in add() argument
84 put(key, curCount + count); in add()
120 T convert(int key, int count); in convert() argument
135 output[i] = converter.convert(kc.key, kc.count); in toProto()
145 return toProto(Int32Count.class, (key, count) -> { in toProto()
148 entry.count = count; in toProto()
/frameworks/base/core/jni/
Dandroid_text_AndroidCharacter.cpp56 jbyteArray destArray, jint count) in getDirectionalities() argument
67 if (env->GetArrayLength(srcArray) < count || env->GetArrayLength(destArray) < count) { in getDirectionalities()
72 for (int i = 0; i < count; i++) { in getDirectionalities()
74 i + 1 < count && in getDirectionalities()
109 jint start, jint count, jbyteArray destArray) in getEastAsianWidths() argument
120 if (start < 0 || start > start + count in getEastAsianWidths()
121 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths()
122 || env->GetArrayLength(destArray) < count) { in getEastAsianWidths()
128 for (int i = 0; i < count; i++) { in getEastAsianWidths()
131 i + 1 < count && in getEastAsianWidths()
[all …]
/frameworks/minikin/libs/minikin/
DMeasurement.cpp30 size_t start, size_t count, size_t offset) { in getRunAdvance() argument
42 if (offset < start + count && advances[offset - layoutStart] == 0.0f) { in getRunAdvance()
47 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) { in getRunAdvance()
54 if (GraphemeBreak::isGraphemeBreak(advances + (start - layoutStart), buf, start, count, in getRunAdvance()
69 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getRunAdvance() argument
71 return getRunAdvance(advances, buf, start, start, count, offset); in getRunAdvance()
82 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getOffsetForAdvance() argument
86 for (size_t i = start; i < start + count; i++) { in getOffsetForAdvance()
87 if (GraphemeBreak::isGraphemeBreak(advances, buf, start, count, i)) { in getOffsetForAdvance()
103 for (size_t i = searchStart; i <= start + count; i++) { in getOffsetForAdvance()
[all …]
/frameworks/base/media/java/android/media/midi/
DMidiReceiver.java61 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/core/java/android/view/animation/
DAnimationSet.java131 final int count = mAnimations.size(); in clone() local
134 for (int i = 0; i < count; i++) { in clone()
185 final int count = mAnimations.size(); in hasAlpha() local
188 for (int i = 0; i < count; i++) { in hasAlpha()
257 final int count = mAnimations.size(); in setStartTime() local
260 for (int i = 0; i < count; i++) { in setStartTime()
270 final int count = mAnimations.size(); in getStartTime() local
273 for (int i = 0; i < count; i++) { in getStartTime()
286 int count = animations.size(); in restrictDuration() local
288 for (int i = 0; i < count; i++) { in restrictDuration()
[all …]

12345678910>>...56