Home
last modified time | relevance | path

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

123

/system/bt/embdrv/sbc/encoder/srce/
Dsbc_dct.c99 register int32_t x0, x1, x2, x3, x4, x5, x6, x7, temp; in SBC_FastIDCT8() local
114 temp = x0; in SBC_FastIDCT8()
117 SBC_IDCT_MULT(SBC_COS_PI_SUR_4, (temp - x4), in SBC_FastIDCT8()
126 temp = x2; in SBC_FastIDCT8()
129 SBC_IDCT_MULT(SBC_COS_3PI_SUR_8, (temp - x6), in SBC_FastIDCT8()
146 temp = x1; in SBC_FastIDCT8()
148 x5 = temp - x5; in SBC_FastIDCT8()
156 temp = x3; in SBC_FastIDCT8()
159 SBC_IDCT_MULT(SBC_COS_3PI_SUR_8, (temp - x7), in SBC_FastIDCT8()
184 int32_t temp; in SBC_FastIDCT8()
[all …]
/system/core/libpixelflinger/codeflinger/
Dblending.cpp34 component_t& temp, // incomming fragment / output in build_fog() argument
42 integer_t fragment(temp.reg, temp.h, temp.flags); in build_fog()
43 if (!(temp.flags & CORRUPTIBLE)) { in build_fog()
44 temp.reg = regs.obtain(); in build_fog()
45 temp.flags |= CORRUPTIBLE; in build_fog()
61 build_blendFOneMinusF(temp, factor, fragment, fogColor); in build_fog()
66 component_t& temp, // incomming fragment / output in build_blending() argument
79 if (!temp.size()) { in build_blending()
83 temp = component_t(regs.obtain(), CORRUPTIBLE); in build_blending()
129 if (fb.size() < temp.size()) { in build_blending()
[all …]
/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()
369 handle->temp = NULL; in sf_open_write()
402 free(handle->temp); in sf_close()
431 void *temp = NULL; in sf_readf_short() local
434 temp = malloc(desiredBytes); in sf_readf_short()
435 actualBytes = fread(temp, sizeof(char), desiredBytes, handle->stream); in sf_readf_short()
450 memcpy_to_i16_from_i32(ptr, (const int *) temp, actualFrames * handle->info.channels); in sf_readf_short()
451 free(temp); in sf_readf_short()
454 memcpy_to_i16_from_float(ptr, (const float *) temp, actualFrames * handle->info.channels); in sf_readf_short()
[all …]
Dchannels.c37 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); \
/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/bt/stack/smp/
Dp_256_multprecision.cc80 uint32_t temp; in multiprecision_add() local
84 temp = a[i] + carrier; in multiprecision_add()
85 carrier = (temp < carrier); in multiprecision_add()
86 temp += b[i]; in multiprecision_add()
87 carrier |= (temp < b[i]); in multiprecision_add()
88 c[i] = temp; in multiprecision_add()
97 uint32_t temp; in multiprecision_sub() local
101 temp = a[i] - borrow; in multiprecision_sub()
102 borrow = (temp > a[i]); in multiprecision_sub()
103 c[i] = temp - b[i]; in multiprecision_sub()
[all …]
/system/bt/gd/security/ecc/
Dmultprecision.cc85 uint32_t temp; in multiprecision_add() local
89 temp = a[i] + carrier; in multiprecision_add()
90 carrier = (temp < carrier); in multiprecision_add()
91 temp += b[i]; in multiprecision_add()
92 carrier |= (temp < b[i]); in multiprecision_add()
93 c[i] = temp; in multiprecision_add()
102 uint32_t temp; in multiprecision_sub() local
106 temp = a[i] - borrow; in multiprecision_sub()
107 borrow = (temp > a[i]); in multiprecision_sub()
108 c[i] = temp - b[i]; in multiprecision_sub()
[all …]
/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/bt/btif/src/
Dbtif_sdp_server.cc381 uint8_t temp[4]; in add_maps_sdp() local
382 uint8_t* p_temp = temp; in add_maps_sdp()
435 UINT_DESC_TYPE, (uint32_t)4, temp); in add_maps_sdp()
439 p_temp = temp; // The macro modifies p_temp, hence rewind. in add_maps_sdp()
442 UINT_DESC_TYPE, (uint32_t)2, temp); in add_maps_sdp()
469 uint8_t temp[4]; in add_mapc_sdp() local
470 uint8_t* p_temp = temp; in add_mapc_sdp()
512 UINT_DESC_TYPE, (uint32_t)4, temp); in add_mapc_sdp()
516 p_temp = temp; // The macro modifies p_temp, hence rewind. in add_mapc_sdp()
519 UINT_DESC_TYPE, (uint32_t)2, temp); in add_mapc_sdp()
[all …]
Dbtif_uid.cc50 uid_set_node_t* temp = node; in uid_set_destroy() local
52 osi_free(temp); in uid_set_destroy()
/system/bt/types/
Draw_address.cc56 char* temp = nullptr; in FromString() local
57 new_addr.address[i] = strtol(token.c_str(), &temp, 16); in FromString()
58 if (*temp != '\0') return false; in FromString()
Dclass_of_device.cc57 char* temp = nullptr; in FromString() local
58 values[i] = strtol(token.c_str(), &temp, 16); in FromString()
59 if (*temp != '\0') return false; in FromString()
/system/bt/gd/hci/
Daddress.cc82 char* temp = nullptr; in FromString() local
83 addr.address.at(5 - index) = std::strtol(token.c_str(), &temp, 16); in FromString()
84 if (temp == token.c_str()) { in FromString()
88 if (temp != (token.c_str() + token.size())) { in FromString()
Dclass_of_device.cc76 char* temp = nullptr; in FromString() local
77 values[index] = std::strtol(token.c_str(), &temp, 16); in FromString()
78 if (*temp != '\0') { in FromString()
/system/bt/bta/ar/
Dbta_ar.cc225 uint8_t temp[8], *p; in bta_ar_reg_avrc() local
253 p = temp; in bta_ar_reg_avrc()
256 UINT_DESC_TYPE, (uint32_t)2, (uint8_t*)temp); in bta_ar_reg_avrc()
274 uint8_t temp[8], *p; in bta_ar_dereg_avrc() local
296 p = temp; in bta_ar_dereg_avrc()
299 UINT_DESC_TYPE, (uint32_t)2, (uint8_t*)temp); in bta_ar_dereg_avrc()
/system/bt/utils/src/
Dbt_utils.cc97 int temp; in check_do_scheduling_group() local
98 if (sscanf(buf, "%d", &temp) == 1) { in check_do_scheduling_group()
99 g_DoSchedulingGroup[g_TaskIdx] = temp == 0; in check_do_scheduling_group()
/system/core/adb/daemon/
Djdwp_service.cpp192 std::string temp; in jdwp_process_list() local
197 if (temp.length() + next.length() > bufferlen) { in jdwp_process_list()
201 temp.append(next); in jdwp_process_list()
204 memcpy(buffer, temp.data(), temp.length()); in jdwp_process_list()
205 return temp.length(); in jdwp_process_list()
212 adb::proto::AppProcesses temp; // temporary result that may be longer than the given buffer in app_process_list() local
217 auto* entry = temp.add_process(); in app_process_list()
222 temp.SerializeToString(&serialized_message); in app_process_list()
227 output = temp; in app_process_list()
/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/
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/libpixelflinger/
Dfixed.cpp104 GGLfixed temp = bit + (r<<1); in gglSqrtx() local
105 if (bshift >= 8) temp <<= (bshift-8); in gglSqrtx()
106 else temp >>= (8-bshift); in gglSqrtx()
107 if (a >= temp) { in gglSqrtx()
109 a -= temp; in gglSqrtx()
/system/apex/apexer/
Dapexer.py281 with tempfile.NamedTemporaryFile(delete=False) as temp:
282 temp.write(build_info.android_manifest)
283 args.android_manifest = temp.name
308 with tempfile.NamedTemporaryFile(delete=False) as temp:
309 temp.write(build_info.file_contexts)
310 args.file_contexts = temp.name
318 with tempfile.NamedTemporaryFile(delete=False) as temp:
319 temp.write(build_info.canned_fs_config)
320 args.canned_fs_config = temp.name
427 with tempfile.NamedTemporaryFile(delete=False) as temp:
[all …]
/system/bt/stack/hid/
Dhidd_api.cc267 uint16_t temp; in HID_DevAddRecord() local
269 p = (uint8_t*)&temp; in HID_DevAddRecord()
272 UINT_DESC_TYPE, 2, (uint8_t*)&temp); in HID_DevAddRecord()
274 p = (uint8_t*)&temp; in HID_DevAddRecord()
277 UINT_DESC_TYPE, 2, (uint8_t*)&temp); in HID_DevAddRecord()
357 p = (uint8_t*)&temp; in HID_DevAddRecord()
360 UINT_DESC_TYPE, 2, (uint8_t*)&temp); in HID_DevAddRecord()
/system/bt/stack/avrc/
Davrc_sdp.cc191 uint8_t temp[8]; in AVRC_AddRecord() local
258 p = temp; in AVRC_AddRecord()
261 UINT_DESC_TYPE, (uint32_t)2, (uint8_t*)temp); in AVRC_AddRecord()
/system/tools/xsdc/build/
Dxsdc.go42 `${xsdcCmd} $in -p $pkgName -o ${out}.temp -j $args && ` +
43 `${config.SoongZipCmd} -jar -o ${out} -C ${out}.temp -D ${out}.temp && ` +
44 `rm -rf ${out}.temp`,

123