Home
last modified time | relevance | path

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

123

/system/sepolicy/tools/fc_sort/
Dfc_sort.c139 file_context_node_t *temp; in fc_merge() local
152 temp = a; in fc_merge()
154 b = temp; in fc_merge()
169 temp = a_current->next; in fc_merge()
172 a_current->next->next = temp; in fc_merge()
213 file_context_bucket_t *temp; in fc_merge_sort() local
231 temp = current->next; in fc_merge_sort()
234 free(temp); in fc_merge_sort()
335 file_context_node_t *temp; in main() local
390 temp = (file_context_node_t *)calloc(1, sizeof(file_context_node_t)); in main()
[all …]
/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.cpp33 component_t& temp, // incomming fragment / output in build_fog() argument
41 integer_t fragment(temp.reg, temp.h, temp.flags); in build_fog()
42 if (!(temp.flags & CORRUPTIBLE)) { in build_fog()
43 temp.reg = regs.obtain(); in build_fog()
44 temp.flags |= CORRUPTIBLE; in build_fog()
60 build_blendFOneMinusF(temp, factor, fragment, fogColor); in build_fog()
65 component_t& temp, // incomming fragment / output in build_blending() argument
78 if (!temp.size()) { in build_blending()
82 temp = component_t(regs.obtain(), CORRUPTIBLE); in build_blending()
128 if (fb.size() < temp.size()) { in build_blending()
[all …]
Dtexturing.cpp898 int temp = scratches.obtain(); in filter32() local
913 AND(AL, 0, temp, mask, pixel); in filter32()
919 MUL(AL, 0, dh, temp, u); in filter32()
920 AND(AL, 0, temp, mask, reg_imm(pixel, LSR, 8)); in filter32()
921 MUL(AL, 0, dl, temp, u); in filter32()
929 AND(AL, 0, temp, mask, pixel); in filter32()
935 MLA(AL, 0, dh, temp, u, dh); in filter32()
936 AND(AL, 0, temp, mask, reg_imm(pixel, LSR, 8)); in filter32()
937 MLA(AL, 0, dl, temp, u, dl); in filter32()
944 AND(AL, 0, temp, mask, pixel); in filter32()
[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()
233 int32_t temp; \
236 temp = uint8x3_to_int32(*src_ptr++); \
237 temp += uint8x3_to_int32(*src_ptr++); \
238 *dst_ptr = int32_to_uint8x3(temp >> 1); \
/system/core/libpixelflinger/tests/arch-mips64/disassembler/
Dmips64_disassembler_test.cpp174 char temp[256], address[16]; in main() local
175 strcpy(temp, test->instr); in main()
177 strcat(temp, address); in main()
178 if(strcmp(instr, temp) != 0) in main()
183 "Actual : %s\n", test->code, temp, instr); in main()
195 char temp[256], address[16]; in main() local
196 strcpy(temp, test->instr); in main()
198 strcat(temp, address); in main()
199 if(strcmp(instr, temp) != 0) in main()
204 "Actual : '%s'\n", test->code, temp, instr); in main()
/system/core/libnetutils/
Dpacket.c96 uint16_t temp; in send_packet() local
121 temp = htons(IPPROTO_UDP); in send_packet()
122 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet()
123 temp = udp.len; in send_packet()
124 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet()
167 uint16_t temp; in receive_packet() local
243 temp = packet.udp.check; in receive_packet()
246 packet.udp.check = temp; in receive_packet()
249 if (temp != sum) { in receive_packet()
250 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/toolbox/upstream-netbsd/lib/libc/string/
Dswab.c50 char temp; in swab() local
63 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp in swab()
/system/bt/btif/src/
Dbtif_sdp_server.cc378 uint8_t temp[4]; in add_maps_sdp() local
379 uint8_t* p_temp = temp; in add_maps_sdp()
432 UINT_DESC_TYPE, (uint32_t)4, temp); in add_maps_sdp()
436 p_temp = temp; // The macro modifies p_temp, hence rewind. in add_maps_sdp()
439 UINT_DESC_TYPE, (uint32_t)2, temp); in add_maps_sdp()
466 uint8_t temp[4]; in add_mapc_sdp() local
467 uint8_t* p_temp = temp; in add_mapc_sdp()
509 UINT_DESC_TYPE, (uint32_t)4, temp); in add_mapc_sdp()
513 p_temp = temp; // The macro modifies p_temp, hence rewind. in add_mapc_sdp()
516 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/stack/smp/
Dp_256_multprecision.cc81 uint32_t temp; in multiprecision_add() local
85 temp = a[i] + carrier; in multiprecision_add()
86 carrier = (temp < carrier); in multiprecision_add()
87 temp += b[i]; in multiprecision_add()
88 carrier |= (temp < b[i]); in multiprecision_add()
89 c[i] = temp; in multiprecision_add()
99 uint32_t temp; in multiprecision_sub() local
103 temp = a[i] - borrow; in multiprecision_sub()
104 borrow = (temp > a[i]); in multiprecision_sub()
105 c[i] = temp - b[i]; in multiprecision_sub()
[all …]
/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/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()
/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/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.cpp180 void* temp = 0; in sort() local
187 if (!temp) { in sort()
191 temp = malloc(mItemSize); in sort()
192 if (!temp) return NO_MEMORY; in sort()
196 _do_destroy(temp, 1); in sort()
199 _do_copy(temp, item, 1); in sort()
212 } while (j>=0 && (cmp(curr, temp, state) > 0)); in sort()
215 _do_copy(next, temp, 1); in sort()
220 if (temp) { in sort()
221 _do_destroy(temp, 1); in sort()
[all …]
/system/core/libpixelflinger/
Dfixed.cpp115 GGLfixed temp = bit + (r<<1); in gglSqrtx() local
116 if (bshift >= 8) temp <<= (bshift-8); in gglSqrtx()
117 else temp >>= (8-bshift); in gglSqrtx()
118 if (a >= temp) { in gglSqrtx()
120 a -= temp; in gglSqrtx()
/system/bt/stack/hid/
Dhidd_api.cc268 uint16_t temp; in HID_DevAddRecord() local
270 p = (uint8_t*)&temp; in HID_DevAddRecord()
273 UINT_DESC_TYPE, 2, (uint8_t*)&temp); in HID_DevAddRecord()
275 p = (uint8_t*)&temp; in HID_DevAddRecord()
278 UINT_DESC_TYPE, 2, (uint8_t*)&temp); in HID_DevAddRecord()
362 p = (uint8_t*)&temp; in HID_DevAddRecord()
365 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/core/adb/
Djdwp_service.cpp182 std::string temp; in jdwp_process_list() local
191 if (temp.length() + next.length() > bufferlen) { in jdwp_process_list()
195 temp.append(next); in jdwp_process_list()
198 memcpy(buffer, temp.data(), temp.length()); in jdwp_process_list()
199 return temp.length(); in jdwp_process_list()
/system/chre/core/tests/
Dmemory_manager_test.cc92 node *temp = curr->next; in TEST() local
94 curr = temp; in TEST()
/system/bt/stack/a2dp/
Da2dp_api.cc178 uint8_t temp[8]; in A2DP_AddRecord() local
210 p = temp; in A2DP_AddRecord()
213 UINT_DESC_TYPE, (uint32_t)2, (uint8_t*)temp); in A2DP_AddRecord()
/system/chre/util/include/chre/util/
Dfixed_size_vector_impl.h146 ElementType& temp = *reinterpret_cast<ElementType *>(&tempStorage); in swap() local
147 uninitializedMoveOrCopy(&data()[index0], 1, &temp); in swap()
149 moveOrCopyAssign(data()[index1], temp); in swap()

123