Home
last modified time | relevance | path

Searched refs:byte_array (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/modules/audio_processing/transient/
Dfile_utils.cc86 std::unique_ptr<uint8_t[]> byte_array(new uint8_t[2]); in ReadInt16BufferFromFile() local
91 size_t bytes_read = file->Read(byte_array.get(), 2); in ReadInt16BufferFromFile()
95 int16_t value = byte_array[1]; in ReadInt16BufferFromFile()
97 value += byte_array[0]; in ReadInt16BufferFromFile()
148 std::unique_ptr<uint8_t[]> byte_array(new uint8_t[4]); in ReadFloatBufferFromFile() local
153 size_t bytes_read = file->Read(byte_array.get(), 4); in ReadFloatBufferFromFile()
157 ConvertByteArrayToFloat(byte_array.get(), &buffer[floats_read]); in ReadFloatBufferFromFile()
171 std::unique_ptr<uint8_t[]> byte_array(new uint8_t[8]); in ReadDoubleBufferFromFile() local
176 size_t bytes_read = file->Read(byte_array.get(), 8); in ReadDoubleBufferFromFile()
180 ConvertByteArrayToDouble(byte_array.get(), &buffer[doubles_read]); in ReadDoubleBufferFromFile()
[all …]
/external/libchrome/base/android/
Djni_array.cc31 jbyteArray byte_array = env->NewByteArray(len); in ToJavaByteArray() local
33 DCHECK(byte_array); in ToJavaByteArray()
36 byte_array, 0, len, reinterpret_cast<const jbyte*>(bytes)); in ToJavaByteArray()
39 return ScopedJavaLocalRef<jbyteArray>(env, byte_array); in ToJavaByteArray()
129 ScopedJavaLocalRef<jbyteArray> byte_array = ToJavaByteArray( in ToJavaArrayOfByteArray() local
131 env->SetObjectArrayElement(joa, i, byte_array.obj()); in ToJavaArrayOfByteArray()
195 jbyteArray byte_array, in AppendJavaByteArrayToByteVector() argument
198 if (!byte_array) in AppendJavaByteArrayToByteVector()
200 size_t len = SafeGetArrayLength(env, byte_array); in AppendJavaByteArrayToByteVector()
205 env->GetByteArrayRegion(byte_array, 0, len, in AppendJavaByteArrayToByteVector()
[all …]
Djni_array.h80 jbyteArray byte_array,
85 jbyteArray byte_array,
Djni_array_unittest.cc323 ScopedJavaLocalRef<jbyteArray> byte_array = in TEST() local
326 ASSERT_TRUE(byte_array.obj()); in TEST()
328 env->SetObjectArrayElement(array.obj(), i, byte_array.obj()); in TEST()
/external/webrtc/test/fuzzers/
Daudio_encoder_fuzzer.cc44 auto byte_array = data.ReadByteArray(block_size_bytes); in FuzzAudioEncoder() local
47 byte_array.size() * sizeof(uint8_t)); in FuzzAudioEncoder()
48 memcpy(input_aligned.data(), byte_array.data(), byte_array.size()); in FuzzAudioEncoder()
Daudio_processing_fuzzer_helper.cc40 rtc::ArrayView<const uint8_t> byte_array = in GenerateFloatFrame() local
42 memmove(float_frames[i], byte_array.begin(), read_bytes); in GenerateFloatFrame()
/external/tflite-support/tensorflow_lite_support/java/src/native/task/vision/segmenter/
Dimage_segmenter_jni.cc115 jbyteArray byte_array = CreateByteArray( in ConvertToSegmentationResults() local
119 env->CallBooleanMethod(jmask_buffers, array_list_add_method, byte_array); in ConvertToSegmentationResults()
120 env->DeleteLocalRef(byte_array); in ConvertToSegmentationResults()
124 jbyteArray byte_array = CreateByteArray( in ConvertToSegmentationResults() local
127 env->CallBooleanMethod(jmask_buffers, array_list_add_method, byte_array); in ConvertToSegmentationResults()
128 env->DeleteLocalRef(byte_array); in ConvertToSegmentationResults()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc140 jbyteArray byte_array = static_cast<jbyteArray>(array); in WriteOneDimensionalArray() local
142 env->GetByteArrayRegion(byte_array, 0, num_elements, byte_dst); in WriteOneDimensionalArray()
196 jbyteArray byte_array = static_cast<jbyteArray>(dst); in ReadOneDimensionalArray() local
197 env->SetByteArrayRegion(byte_array, 0, len, in ReadOneDimensionalArray()
301 jbyteArray byte_array = static_cast<jbyteArray>(src); in AddStringDynamicBuffer() local
302 jsize byte_array_length = env->GetArrayLength(byte_array); in AddStringDynamicBuffer()
303 jbyte* bytes = env->GetByteArrayElements(byte_array, nullptr); in AddStringDynamicBuffer()
306 env->ReleaseByteArrayElements(byte_array, bytes, JNI_ABORT); in AddStringDynamicBuffer()
/external/llvm/test/CodeGen/Mips/cconv/
Dmemory-layout.ll71 @byte_array = global [2 x i8] [i8 1, i8 2], align 1
80 ; ALL-LABEL: byte_array:
82 ; ALL: .size byte_array, 2
/external/llvm-project/llvm/test/CodeGen/Mips/cconv/
Dmemory-layout.ll71 @byte_array = global [2 x i8] [i8 1, i8 2], align 1
80 ; ALL-LABEL: byte_array:
82 ; ALL: .size byte_array, 2
/external/capstone/bindings/python/
Dtest_m680x.py49 def to_hex_short_uc(byte_array): argument
50 return "".join("%02X" % b for b in byte_array)
/external/llvm-project/lldb/examples/python/
Ddisasm-stress-test.py104 def PrintByteArray(log_file, byte_array): argument
105 for byte in byte_array:
/external/skia/third_party/sfntly/
DBUILD.gn25 "$_src/sfntly/data/byte_array.cc",
/external/skqp/third_party/sfntly/
DBUILD.gn20 "../externals/sfntly/cpp/src/sfntly/data/byte_array.cc",
/external/skqp/platform_tools/libraries/include/
Darcore_c_api.h2249 void ArByteArray_release(uint8_t *byte_array);
/external/skia/platform_tools/libraries/include/
Darcore_c_api.h2249 void ArByteArray_release(uint8_t *byte_array);
/external/tensorflow/tensorflow/python/data/kernel_tests/
Diterator_test.py721 def _encode_raw(byte_array): argument
722 return bytes(bytearray(byte_array))