Home
last modified time | relevance | path

Searched refs:sample (Results 1 – 25 of 133) sorted by relevance

123456

/packages/modules/NeuralNetworks/driver/sample/
DAndroid.bp68 name: "android.hardware.neuralnetworks@1.3-service-sample-all",
71 init_rc: ["config/android.hardware.neuralnetworks@1.3-service-sample-all.rc"],
72 vintf_fragments: ["config/android.hardware.neuralnetworks@1.3-service-sample-all.xml"],
76 name: "android.hardware.neuralnetworks@1.3-service-sample-float-fast",
79 init_rc: ["config/android.hardware.neuralnetworks@1.3-service-sample-float-fast.rc"],
80 vintf_fragments: ["config/android.hardware.neuralnetworks@1.3-service-sample-float-fast.xml"],
84 name: "android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack",
87 init_rc: ["config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.rc"],
89 "config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.xml",
101 name: "android.hardware.neuralnetworks@1.3-service-sample-float-slow",
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSamplePool.java32 SampleHolder sample = new SampleHolder(SampleHolder.BUFFER_REPLACEMENT_MODE_NORMAL); in acquireSample() local
33 sample.ensureSpaceForWrite(size); in acquireSample()
34 return sample; in acquireSample()
38 for (SampleHolder sample : mSamplePool) { in acquireSample()
40 if (sample.data.capacity() >= size in acquireSample()
42 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample()
43 smallestSufficientSample = sample; in acquireSample()
47 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
48 maxSample = sample; in acquireSample()
63 public synchronized void releaseSample(SampleHolder sample) { in releaseSample() argument
[all …]
DSampleChunk.java218 void write(SampleHolder sample, SampleChunk nextChunk) throws IOException { in write() argument
231 mChunk.write(sample, this); in write()
370 SampleHolder sample = mSamplePool.acquireSample(size); in read() local
371 sample.size = size; in read()
372 sample.flags = mAccessFile.readInt(); in read()
373 sample.timeUs = mAccessFile.readLong(); in read()
374 sample.clearData(); in read()
375 sample.data.put( in read()
381 sample.size)); in read()
382 offset += sample.size + SAMPLE_HEADER_LENGTH; in read()
[all …]
DSampleChunkIoHelper.java99 private final SampleHolder sample; field in SampleChunkIoHelper.IoParams
106 SampleHolder sample, in IoParams() argument
111 this.sample = sample; in IoParams()
240 SampleHolder sample = mReadSampleBuffers[index].poll(); in readSample() local
242 return sample; in readSample()
253 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
259 IoParams params = new IoParams(index, 0, sample, conditionVariable, null); in writeSample()
408 SampleHolder sample; in doOpenRead() local
409 while ((sample = mHandlerReadSampleBuffers[index].poll()) != null) { in doOpenRead()
410 mSamplePool.releaseSample(sample); in doOpenRead()
[all …]
DSampleQueue.java33 public void queueSample(SampleHolder sample) { in queueSample() argument
34 mQueue.offer(sample); in queueSample()
35 mLastQueuedPositionUs = sample.timeUs; in queueSample()
38 public int dequeueSample(SampleHolder sample) { in dequeueSample() argument
43 sample.ensureSpaceForWrite(sampleFromQueue.size); in dequeueSample()
44 sample.size = sampleFromQueue.size; in dequeueSample()
45 sample.flags = sampleFromQueue.flags; in dequeueSample()
46 sample.timeUs = sampleFromQueue.timeUs; in dequeueSample()
47 sample.clearData(); in dequeueSample()
48 sampleFromQueue.data.position(0).limit(sample.size); in dequeueSample()
[all …]
DSimpleSampleBuffer.java123 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
125 sample.data.position(0).limit(sample.size); in writeSample()
126 SampleHolder sampleToQueue = mSamplePool.acquireSample(sample.size); in writeSample()
127 sampleToQueue.size = sample.size; in writeSample()
129 sampleToQueue.data.put(sample.data); in writeSample()
130 sampleToQueue.timeUs = sample.timeUs; in writeSample()
131 sampleToQueue.flags = sample.flags; in writeSample()
DRecordingSampleBuffer.java183 public void writeSample(int index, SampleHolder sample, ConditionVariable conditionVariable) in writeSample() argument
185 mSampleChunkIoHelper.writeSample(index, sample, conditionVariable); in writeSample()
236 SampleHolder sample = mSampleChunkIoHelper.readSample(index); in maybeReadSample() local
237 if (sample != null) { in maybeReadSample()
238 queue.queueSample(sample); in maybeReadSample()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DInputBufferPool.java33 DecoderInputBuffer sample = in acquireSample() local
35 sample.ensureSpaceForWrite(size); in acquireSample()
36 return sample; in acquireSample()
40 for (DecoderInputBuffer sample : mInputBufferPool) { in acquireSample()
42 if (sample.data.capacity() >= size in acquireSample()
44 || smallestSufficientSample.data.capacity() > sample.data.capacity())) { in acquireSample()
45 smallestSufficientSample = sample; in acquireSample()
49 if (maxSample.data.capacity() < sample.data.capacity()) { in acquireSample()
50 maxSample = sample; in acquireSample()
65 public synchronized void releaseSample(DecoderInputBuffer sample) { in releaseSample() argument
[all …]
DSampleChunkIoHelper.java101 private final DecoderInputBuffer sample; field in SampleChunkIoHelper.IoParams
108 DecoderInputBuffer sample, in IoParams() argument
113 this.sample = sample; in IoParams()
282 DecoderInputBuffer sample = mReadSampleBuffers[index].poll(); in readSample() local
284 return sample; in readSample()
297 DecoderInputBuffer sample, in writeSample() argument
303 IoParams params = new IoParams(index, 0, sample, conditionVariable, null); in writeSample()
453 DecoderInputBuffer sample; in doOpenRead() local
454 while ((sample = mHandlerReadSampleBuffers[index].poll()) != null) { in doOpenRead()
455 mInputBufferPool.releaseSample(sample); in doOpenRead()
[all …]
DSampleChunk.java235 void write(DecoderInputBuffer sample, SampleChunk nextChunk) throws IOException { in write() argument
248 mChunk.write(sample, this); in write()
389 DecoderInputBuffer sample = mInputBufferPool.acquireSample(size); in read() local
394 sample.setFlags(flags); in read()
395 sample.timeUs = mAccessFile.readLong(); in read()
396 sample.data.clear(); in read()
397 sample.data.put( in read()
406 return sample; in read()
422 void write(DecoderInputBuffer sample, IoState state) throws IOException { in write() argument
428 int size = sample.data.position(); in write()
[all …]
DSampleQueue.java34 public void queueSample(DecoderInputBuffer sample) { in queueSample() argument
35 mQueue.offer(sample); in queueSample()
36 mLastQueuedPositionUs = sample.timeUs; in queueSample()
39 public int dequeueSample(DecoderInputBuffer sample) { in dequeueSample() argument
45 sample.ensureSpaceForWrite(size); in dequeueSample()
46 sample.setFlags((sampleFromQueue.isKeyFrame() ? C.BUFFER_FLAG_KEY_FRAME : 0) in dequeueSample()
49 sample.timeUs = sampleFromQueue.timeUs; in dequeueSample()
50 sample.data.clear(); in dequeueSample()
52 sample.data.put(sampleFromQueue.data); in dequeueSample()
DMemorySampleBuffer.java97 int index, DecoderInputBuffer sample, ConditionVariable conditionVariable) { in writeSample() argument
98 int size = sample.data.position(); in writeSample()
99 sample.data.position(0).limit(size); in writeSample()
102 sampleToQueue.data.put(sample.data); in writeSample()
103 sampleToQueue.timeUs = sample.timeUs; in writeSample()
104 sampleToQueue.setFlags((sample.isKeyFrame() ? C.BUFFER_FLAG_KEY_FRAME : 0) in writeSample()
105 | (sample.isDecodeOnly() ? C.BUFFER_FLAG_DECODE_ONLY : 0) in writeSample()
106 | (sample.isEncrypted() ? C.BUFFER_FLAG_ENCRYPTED : 0)); in writeSample()
DRecordingSampleBuffer.java183 DecoderInputBuffer sample, in writeSample() argument
185 mSampleChunkIoHelper.writeSample(index, sample, conditionVariable); in writeSample()
236 DecoderInputBuffer sample = mSampleChunkIoHelper.readSample(index); in maybeReadSample() local
237 if (sample != null) { in maybeReadSample()
238 queue.queueSample(sample); in maybeReadSample()
/packages/modules/NeuralNetworks/common/random/
Drandom_distributions.h88 typename Generator::ResultType sample = (*gen)(); in operator() local
91 result[i] = Uint16ToHalf(sample[i]); // Truncate the upper 16 bits. in operator()
112 typename Generator::ResultType sample = (*gen)(); in operator() local
115 result[i] = Uint16ToGfloat16(sample[i]); in operator()
136 typename Generator::ResultType sample = (*gen)(); in operator() local
139 result[i] = Uint32ToFloat(sample[i]); in operator()
160 typename Generator::ResultType sample = (*gen)(); in operator() local
163 result[i] = Uint64ToDouble(sample[2 * i], sample[2 * i + 1]); in operator()
188 typename Generator::ResultType sample = (*gen)(); in operator() local
191 result[i] = SignedAdd(lo_, sample[i] % range_); in operator()
[all …]
/packages/modules/NeuralNetworks/driver/sample_aidl/
DAndroid.bp72 name: "android.hardware.neuralnetworks-service-sample-all",
75 init_rc: ["config/android.hardware.neuralnetworks-service-sample-all.rc"],
76 vintf_fragments: ["config/android.hardware.neuralnetworks-service-sample-all.xml"],
80 name: "android.hardware.neuralnetworks-service-sample-float-fast",
83 init_rc: ["config/android.hardware.neuralnetworks-service-sample-float-fast.rc"],
84 vintf_fragments: ["config/android.hardware.neuralnetworks-service-sample-float-fast.xml"],
88 name: "android.hardware.neuralnetworks-service-sample-float-slow",
91 init_rc: ["config/android.hardware.neuralnetworks-service-sample-float-slow.rc"],
92 vintf_fragments: ["config/android.hardware.neuralnetworks-service-sample-float-slow.xml"],
96 name: "android.hardware.neuralnetworks-service-sample-quant",
[all …]
/packages/modules/NeuralNetworks/tools/
Dparse_benchmark.py51 sample = line.split(": ")[1]
52 name, value = sample.split("=")
93 for sample in data[name]:
95 print("{0:<34}{1:>10}".format(name, sample))
97 print(json.dumps({"benchmark": name, "sample": sample}))
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java416 SampleHolder sample = in queueSample() local
429 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
430 sample.size = mDecoderInputBuffer.data.position(); in queueSample()
431 sample.ensureSpaceForWrite(sample.size); in queueSample()
433 sample.data.position(0); in queueSample()
434 sample.data.put(mDecoderInputBuffer.data); in queueSample()
435 sample.data.flip(); in queueSample()
436 mPendingSamples.add(Pair.create(index, sample)); in queueSample()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DExoPlayerSampleExtractor.java372 DecoderInputBuffer sample = in queueSample() local
375 sample.setFlags( in queueSample()
379 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
381 sample.ensureSpaceForWrite(size); in queueSample()
383 sample.data.position(0).limit(size); in queueSample()
384 sample.data.put(mDecoderInputBuffer.data); in queueSample()
385 sample.data.flip(); in queueSample()
386 mPendingSamples.add(Pair.create(index, sample)); in queueSample()
/packages/modules/DnsResolver/
Dres_stats.cpp35 void res_stats_set_sample(res_sample* sample, time_t now, int rcode, int rtt) { in res_stats_set_sample() argument
37 sample->at = now; in res_stats_set_sample()
38 sample->rcode = rcode; in res_stats_set_sample()
39 sample->rtt = rtt; in res_stats_set_sample()
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/app/
DSampleDvbTunerModule.java16 package com.android.tv.tuner.sample.dvb.app;
23 import com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity;
24 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
DSampleDvbTuner.java17 package com.android.tv.tuner.sample.dvb.app;
26 import com.android.tv.tuner.sample.dvb.singletons.SampleDvbSingletons;
27 import com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService;
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/app/
DSampleNetworkTunerModule.java16 package com.android.tv.tuner.sample.network.app;
23 import com.android.tv.tuner.sample.network.setup.SampleNetworkTunerSetupActivity;
24 import com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService;
DSampleNetworkTuner.java17 package com.android.tv.tuner.sample.network.app;
26 import com.android.tv.tuner.sample.network.singletons.SampleNetworkSingletons;
27 import com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService;
/packages/apps/Car/SystemUI/samples/
DREADME.md3 Each sample demonstrates the effects of overriding some configs in AAOS SystemUI.
10 # Build all sample RRO's
12 # Install one of the sample RRO's
/packages/services/Telephony/testapps/TestRcsApp/TestApp/
DAndroid.bp32 required: ["privapp-permissions-com.google.android.sample.rcsclient.xml"]
36 name: "privapp-permissions-com.google.android.sample.rcsclient.xml",
37 src: "etc/permissions/privapp-permissions-com.google.android.sample.rcsclient.xml",

123456