/packages/modules/NeuralNetworks/driver/ |
D | Android.bp | 29 "android.hardware.neuralnetworks-service-sample-all", 30 "android.hardware.neuralnetworks-service-sample-limited", 31 "android.hardware.neuralnetworks-shim-service-sample", 34 "android.hardware.neuralnetworks-service-sample-all.rc", 35 "android.hardware.neuralnetworks-service-sample-all.xml", 36 "android.hardware.neuralnetworks-service-sample-limited.rc", 37 "android.hardware.neuralnetworks-service-sample-limited.xml", 38 "android.hardware.neuralnetworks-shim-service-sample.rc", 39 "android.hardware.neuralnetworks-shim-service-sample.xml", 44 name: "android.hardware.neuralnetworks-service-sample-all.rc", [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | SamplePool.java | 32 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 …]
|
D | SampleQueue.java | 33 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 …]
|
D | SampleChunk.java | 218 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 …]
|
D | SampleChunkIoHelper.java | 99 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 …]
|
D | SimpleSampleBuffer.java | 123 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()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | InputBufferPool.java | 33 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 …]
|
D | SampleQueue.java | 34 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()
|
D | SampleChunk.java | 235 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 …]
|
D | SampleChunkIoHelper.java | 101 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 …]
|
D | MemorySampleBuffer.java | 97 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()
|
/packages/modules/NeuralNetworks/common/random/ |
D | random_distributions.h | 97 typename Generator::ResultType sample = (*gen)(); in operator() local 100 result[i] = Uint16ToHalf(sample[i]); // Truncate the upper 16 bits. in operator() 121 typename Generator::ResultType sample = (*gen)(); in operator() local 124 result[i] = Uint16ToGfloat16(sample[i]); in operator() 145 typename Generator::ResultType sample = (*gen)(); in operator() local 148 result[i] = Uint32ToFloat(sample[i]); in operator() 169 typename Generator::ResultType sample = (*gen)(); in operator() local 172 result[i] = Uint64ToDouble(sample[2 * i], sample[2 * i + 1]); in operator() 197 typename Generator::ResultType sample = (*gen)(); in operator() local 200 result[i] = SignedAdd(lo_, sample[i] % range_); in operator() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/ |
D | MedAvgRotationFilter.java | 84 result.stream().mapToDouble(sample -> sin(sample.value)).sum(), in sortSamples() 85 result.stream().mapToDouble(sample -> cos(sample.value)).sum() in sortSamples() 94 Sample sample = result.get(index); in sortSamples() local 95 if (sample.value < lowestAngle) { in sortSamples() 96 result.set(index, new Sample(sample.value + 2 * F_PI, sample.timeMs, sample.fom)); in sortSamples()
|
/packages/modules/NeuralNetworks/driver/sample_hidl/ |
D | Android.bp | 80 name: "android.hardware.neuralnetworks@1.3-service-sample-all", 83 init_rc: ["config/android.hardware.neuralnetworks@1.3-service-sample-all.rc"], 84 vintf_fragments: ["config/android.hardware.neuralnetworks@1.3-service-sample-all.xml"], 88 name: "android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack", 91 init_rc: ["config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.rc"], 93 "config/android.hardware.neuralnetworks@1.3-service-sample-float-xnnpack.xml", 105 name: "android.hardware.neuralnetworks@1.3-service-sample-limited", 135 init_rc: ["config/android.hardware.neuralnetworks@1.3-service-sample-limited.rc"], 136 vintf_fragments: ["config/android.hardware.neuralnetworks@1.3-service-sample-limited.xml"],
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | Android.bp | 75 name: "android.hardware.neuralnetworks-service-sample-all", 78 init_rc: ["config/android.hardware.neuralnetworks-service-sample-all.rc"], 79 vintf_fragments: ["config/android.hardware.neuralnetworks-service-sample-all.xml"], 82 // android.hardware.neuralnetworks-service-sample-limited is a sAIDL vendor 94 // packages/modules/NeuralNetworks/driver/sample/Android.bp. 97 // refer to android.hardware.neuralnetworks-shim-service-sample defined in 100 name: "android.hardware.neuralnetworks-service-sample-limited", 126 init_rc: ["config/android.hardware.neuralnetworks-service-sample-limited.rc"], 127 vintf_fragments: ["config/android.hardware.neuralnetworks-service-sample-limited.xml"],
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | PowerFormatter.kt | 73 .map { sample -> formatSample(record.metadata.id, sample) } in <lambda>() method 84 private fun formatSample(id: String, sample: PowerRecordSample): FormattedSessionDetail { in <lambda>() 87 header = timeFormatter.formatTime(sample.time), in <lambda>() 88 headerA11y = timeFormatter.formatTime(sample.time), in <lambda>() 92 mapOf("value" to sample.power.inWatts)), in <lambda>() 96 mapOf("value" to sample.power.inWatts)), in <lambda>()
|
D | StepsCadenceFormatter.kt | 75 sample: StepsCadenceRecordSample in formatSample() 79 header = timeFormatter.formatTime(sample.time), in formatSample() 80 headerA11y = timeFormatter.formatTime(sample.time), in formatSample() 83 context.getString(R.string.steps_per_minute), mapOf("value" to sample.rate)), in formatSample() 87 mapOf("value" to sample.rate))) in formatSample()
|
D | CyclingPedalingCadenceFormatter.kt | 78 .map { sample -> in <lambda>() method 81 header = timeFormatter.formatTime(sample.time), in <lambda>() 82 headerA11y = timeFormatter.formatTime(sample.time), in <lambda>() 86 mapOf("count" to sample.revolutionsPerMinute)), in <lambda>() 90 mapOf("count" to sample.revolutionsPerMinute))) in <lambda>()
|
D | HeartRateFormatter.kt | 95 sample: HeartRateRecord.HeartRateSample in <lambda>() 99 header = timeFormatter.formatTime(sample.time), in <lambda>() 100 headerA11y = timeFormatter.formatTime(sample.time), in <lambda>() 101 title = formatSampleValue(R.string.heart_rate_value, sample.beatsPerMinute), in <lambda>() 102 titleA11y = formatSampleValue(R.string.heart_rate_long_value, sample.beatsPerMinute), in <lambda>()
|
/packages/modules/Bluetooth/system/embdrv/g722/fuzzer/ |
D | g722_fuzzer.cc | 52 const uint8_t* sample = buff.data() + i * 2; in fuzz_encode() local 53 int16_t left = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in fuzz_encode() 55 sample += 2; in fuzz_encode() 56 int16_t right = (int16_t)((*(sample + 1) << 8) + *sample) >> 1; in fuzz_encode()
|
/packages/modules/NeuralNetworks/tools/ |
D | parse_benchmark.py | 51 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/services/Car/tests/SampleVoiceAssistInputService/tests/src/com/android/car/voiceassist/sample/unittest/ |
D | VoiceAssistEventHandlerTest.java | 16 package com.android.car.voiceassistinput.sample.unittest; 35 import com.android.car.voiceassistinput.sample.R; 36 import com.android.car.voiceassistinput.sample.SampleVoiceAssistInputService; 37 import com.android.car.voiceassistinput.sample.VoiceAssistEventHandler;
|
/packages/modules/NeuralNetworks/driver/sample_shim/ |
D | Android.bp | 107 // android.hardware.neuralnetworks-shim-service-sample takes an existing Support 112 // android.hardware.neuralnetworks-service-sample-limited in the file 115 name: "android.hardware.neuralnetworks-shim-service-sample", 119 init_rc: ["config/android.hardware.neuralnetworks-shim-service-sample.rc"], 120 vintf_fragments: ["config/android.hardware.neuralnetworks-shim-service-sample.xml"],
|
/packages/apps/TV/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/app/ |
D | SampleDvbTunerModule.java | 16 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;
|
/packages/apps/TV/tuner/SampleNetworkTuner/src/com/android/tv/tuner/sample/network/app/ |
D | SampleNetworkTunerModule.java | 16 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;
|