Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 39) sorted by relevance

12

/system/media/audio_utils/
Dtinysndfile.c32 uint8_t *temp; // realloc buffer used for shrinking 16 bits to 8 bits and byte-swapping member
77 handle->temp = NULL; in sf_open_read()
371 handle->temp = NULL; in sf_open_write()
404 free(handle->temp); in sf_close()
435 void *temp = NULL; in sf_readf_short() local
438 temp = malloc(desiredBytes); in sf_readf_short()
439 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_short()
454 memcpy_to_i16_from_i32(ptr, (const int *) temp, actualFrames * handle->info.channels); in sf_readf_short()
455 free(temp); in sf_readf_short()
458 memcpy_to_i16_from_float(ptr, (const float *) temp, actualFrames * handle->info.channels); in sf_readf_short()
[all …]
Dchannels.cpp37 int32_t temp = (val.c[0] << 24 | val.c[1] << 16 | val.c[2] << 8) >> 8; in uint8x3_to_int32() local
39 int32_t temp = (val.c[2] << 24 | val.c[1] << 16 | val.c[0] << 8) >> 8; in uint8x3_to_int32()
41 return clamp24(temp); in uint8x3_to_int32()
343 int32_t temp; \
346 temp = uint8x3_to_int32(*src_ptr++); \
347 temp += uint8x3_to_int32(*src_ptr++); \
348 *dst_ptr = int32_to_uint8x3(temp >> 1); \
Dprimitives.c339 const int32_t temp = *--src; in upmix_to_stereo_i16_from_mono_i16() local
341 dst[0] = temp; in upmix_to_stereo_i16_from_mono_i16()
342 dst[1] = temp; in upmix_to_stereo_i16_from_mono_i16()
359 const float temp = *--src; in upmix_to_stereo_float_from_mono_float() local
361 dst[0] = temp; in upmix_to_stereo_float_from_mono_float()
362 dst[1] = temp; in upmix_to_stereo_float_from_mono_float()
/system/core/libnetutils/
Dpacket.c93 uint16_t temp; in send_packet() local
118 temp = htons(IPPROTO_UDP); in send_packet()
119 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet()
120 temp = udp.len; in send_packet()
121 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet()
164 uint16_t temp; in receive_packet() local
240 temp = packet.udp.check; in receive_packet()
243 packet.udp.check = temp; in receive_packet()
246 if (temp != sum) { in receive_packet()
247 ALOGW("UDP header checksum failure (0x%x should be 0x%x)", sum, temp); in receive_packet()
/system/core/libcutils/
Dfs.cpp153 char temp[PATH_MAX]; in fs_write_atomic_int() local
154 if (snprintf(temp, PATH_MAX, "%s.XXXXXX", path) >= PATH_MAX) { in fs_write_atomic_int()
159 int fd = TEMP_FAILURE_RETRY(mkstemp(temp)); in fs_write_atomic_int()
161 ALOGE("Failed to open %s: %s", temp, strerror(errno)); in fs_write_atomic_int()
172 ALOGE("Failed to write %s: %s", temp, strerror(errno)); in fs_write_atomic_int()
176 ALOGE("Failed to close %s: %s", temp, strerror(errno)); in fs_write_atomic_int()
180 if (rename(temp, path) == -1) { in fs_write_atomic_int()
181 ALOGE("Failed to rename %s to %s: %s", temp, path, strerror(errno)); in fs_write_atomic_int()
190 unlink(temp); in fs_write_atomic_int()
/system/core/fs_mgr/liblp/
Dreader.cpp93 LpMetadataGeometry temp = *geometry; in ParseGeometry() local
94 memset(&temp.checksum, 0, sizeof(temp.checksum)); in ParseGeometry()
95 SHA256(&temp, temp.struct_size, temp.checksum); in ParseGeometry()
96 if (memcmp(temp.checksum, geometry->checksum, sizeof(temp.checksum)) != 0) { in ParseGeometry()
210 LpMetadataHeader temp = header; in ReadMetadataHeader() local
211 memset(&temp.header_checksum, 0, sizeof(temp.header_checksum)); in ReadMetadataHeader()
212 SHA256(&temp, temp.header_size, temp.header_checksum); in ReadMetadataHeader()
213 if (memcmp(temp.header_checksum, header.header_checksum, sizeof(temp.header_checksum)) != in ReadMetadataHeader()
/system/nfc/src/adaptation/
Ddebug_lmrt.cc122 std::vector<uint8_t> temp(0); in lmrt_update() local
126 temp.insert(temp.end(), tlv.begin(), tlv.end()); in lmrt_update()
129 committed_lmrt_tlvs.swap(temp); in lmrt_update()
/system/tools/aidl/
Daidl-format.sh77 local temp="$(mktemp)"
85 > "$temp"
86 mv "$temp" "$input"
/system/chre/util/tests/
Dsynchronized_expandable_memory_pool_test.cc66 ConstructorCount *temp = testMemoryPool.allocate(10); in TEST() local
67 ASSERT_NE(temp, nullptr); in TEST()
70 testMemoryPool.deallocate(temp); in TEST()
Dsegmented_queue_test.cc481 int temp = std::rand(); in TEST() local
486 ConstructorCount(temp, &segmentedQueueConstructedCounter))); in TEST()
488 ConstructorCount(temp, &referenceQueueConstructedCounter)); in TEST()
491 ConstructorCount(temp, &segmentedQueueConstructedCounter))); in TEST()
498 temp, &segmentedQueueConstructedCounter)); in TEST()
499 referenceDeque.emplace_back(temp, &referenceQueueConstructedCounter); in TEST()
502 temp, &segmentedQueueConstructedCounter)); in TEST()
/system/core/init/
Dperfboot.py112 temp = int(self._device.shell(['cat', temp_path])[0].rstrip())
113 max_temp = max(max_temp, temp)
114 if temp >= threshold:
115 return temp
128 temp = self._get_cpu_temp(threshold)
129 if temp < threshold:
130 logging.info('Current CPU temperature %s' % temp)
133 temp, threshold))
/system/core/libutils/binder/
DVectorImpl.cpp178 void* temp = nullptr; in sort() local
185 if (!temp) { in sort()
189 temp = malloc(mItemSize); in sort()
190 if (!temp) return NO_MEMORY; in sort()
194 _do_destroy(temp, 1); in sort()
197 _do_copy(temp, item, 1); in sort()
210 } while (j>=0 && (cmp(curr, temp, state) > 0)); in sort()
213 _do_copy(next, temp, 1); in sort()
218 if (temp) { in sort()
219 _do_destroy(temp, 1); in sort()
[all …]
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_decompress.cpp295 std::string temp; in Decompress() local
297 temp.resize(decompressed_size, '\0'); in Decompress()
298 decode_buffer = temp.data(); in Decompress()
299 decode_buffer_size = temp.size(); in Decompress()
321 if (temp.empty()) { in Decompress()
332 memcpy(buffer, temp.data() + ignore_bytes, max_copy); in Decompress()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabuf_sysfs_stats.cpp34 std::string temp; in ReadUintFromFile() local
36 if (!android::base::ReadFileToString(path, &temp)) { in ReadUintFromFile()
41 if (!android::base::ParseUint(android::base::Trim(temp), val)) { in ReadUintFromFile()
/system/apex/apexer/
Dapexer.py315 with tempfile.NamedTemporaryFile(delete=False) as temp:
316 temp.write(build_info.android_manifest)
317 args.android_manifest = temp.name
341 with tempfile.NamedTemporaryFile(delete=False) as temp:
342 temp.write(build_info.file_contexts)
343 args.file_contexts = temp.name
351 with tempfile.NamedTemporaryFile(delete=False) as temp:
352 temp.write(build_info.canned_fs_config)
353 args.canned_fs_config = temp.name
465 with tempfile.NamedTemporaryFile(delete=False, mode='w') as temp:
[all …]
/system/chre/core/tests/
Dmemory_manager_test.cc94 node *temp = curr->next; in TEST() local
96 curr = temp; in TEST()
/system/chre/util/include/chre/util/
Dmemory_pool_impl.h73 size_t temp; in containsAddress() local
74 return getBlockIndex(element, &temp); in containsAddress()
Dfixed_size_vector_impl.h161 ElementType &temp = *reinterpret_cast<ElementType *>(&tempStorage); in swap() local
162 uninitializedMoveOrCopy(&data()[index0], 1, &temp); in swap()
164 moveOrCopyAssign(data()[index1], temp); in swap()
Ddynamic_vector_impl.h312 ElementType &temp = *reinterpret_cast<ElementType *>(&tempStorage); in swap() local
313 uninitializedMoveOrCopy(&data()[index0], 1, &temp); in swap()
315 moveOrCopyAssign(data()[index1], temp); in swap()
/system/core/libsync/tests/
Dsync_test.cpp179 SyncFence temp(*begin(sources)); in SyncFence() local
181 temp = SyncFence(*itr, temp); in SyncFence()
183 if (temp.isValid()) { in SyncFence()
184 setFd(temp.getFd()); in SyncFence()
185 temp.clearFd(); in SyncFence()
/system/incremental_delivery/incfs/util/include/util/
Dmap_ptr.h190 const_iterator temp(*this);
192 return temp;
319 map_ptr<T1> temp = *this;
322 return temp;
/system/keymaster/km_openssl/
Dopenssl_utils.cpp164 const uint8_t* temp = km_cert->data; in GetEcdsa256KeyFromCert() local
165 X509_Ptr cert(d2i_X509(NULL, &temp, km_cert->data_length)); in GetEcdsa256KeyFromCert()
/system/apex/tools/
Ddeapexer.py274 with tempfile.TemporaryDirectory() as temp:
275 decompressed_apex = os.path.join(temp, 'temp.apex')
300 with tempfile.TemporaryDirectory() as temp:
301 decompressed_apex = os.path.join(temp, "temp.apex")
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/
Ddynamic_vector_impl.h312 ElementType &temp = *reinterpret_cast<ElementType *>(&tempStorage); in swap() local
313 uninitializedMoveOrCopy(&data()[index0], 1, &temp); in swap()
315 moveOrCopyAssign(data()[index1], temp); in swap()
/system/sepolicy/private/
Dderive_classpath.te31 # Allow writing to Pre-reboot Dexopt temp files.

12