/system/bt/audio_a2dp_hw/src/ |
H A D | audio_a2dp_hw.cc | 146 * the a2dp_stream_common (out or in) mutex. 921 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 925 DEBUG("write %zu bytes (fd %d)", bytes, out->common.audio_fd); 927 std::unique_lock<std::recursive_mutex> lock(*out->common.mutex); 928 if (out->common.state == AUDIO_A2DP_STATE_SUSPENDED || 929 out->common.state == AUDIO_A2DP_STATE_STOPPING) { 935 if ((out->common.state == AUDIO_A2DP_STATE_STOPPED) || 936 (out->common.state == AUDIO_A2DP_STATE_STANDBY)) { 937 if (start_audio_datapath(&out->common) < 0) { 940 } else if (out 990 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 998 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1008 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1120 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1128 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1140 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1162 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1204 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1315 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1339 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1386 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1581 struct a2dp_stream_out* out; local 1681 struct a2dp_stream_out* out = (struct a2dp_stream_out*)stream; local 1712 struct a2dp_stream_out* out = a2dp_dev->output; local [all...] |
/system/bt/audio_hearing_aid_hw/src/ |
H A D | audio_hearing_aid_hw.cc | 133 * the ha_stream_common (out or in) mutex. 876 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 880 DEBUG("write %zu bytes (fd %d)", bytes, out->common.audio_fd); 882 std::unique_lock<std::recursive_mutex> lock(*out->common.mutex); 883 if (out->common.state == AUDIO_HA_STATE_SUSPENDED || 884 out->common.state == AUDIO_HA_STATE_STOPPING) { 890 if ((out->common.state == AUDIO_HA_STATE_STOPPED) || 891 (out->common.state == AUDIO_HA_STATE_STANDBY)) { 892 if (start_audio_datapath(&out->common) < 0) { 895 } else if (out 945 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 953 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 963 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1081 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1089 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1101 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1123 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1165 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1284 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1308 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1328 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1523 struct ha_stream_out* out; local 1623 struct ha_stream_out* out = (struct ha_stream_out*)stream; local 1654 struct ha_stream_out* out = ha_dev->output; local [all...] |
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | synthesis-dct8.c | 83 PRIVATE void float_dct2_8(float* RESTRICT out, int32_t const* RESTRICT in) { argument 146 out[0] = (float)FLOAT_SCALE(L00, DCTII_8_SHIFT_0); 147 OI_ASSERT(VALID_INT16(out[0])); 148 out[4] = (float)FLOAT_SCALE(L01, DCTII_8_SHIFT_4); 149 OI_ASSERT(VALID_INT16(out[4])); 152 out[6] = (float)FLOAT_SCALE(L02, DCTII_8_SHIFT_6); 153 OI_ASSERT(VALID_INT16(out[6])); 154 out[2] = (float)FLOAT_SCALE(L03, DCTII_8_SHIFT_2); 155 OI_ASSERT(VALID_INT16(out[2])); 190 out[ 250 dct2_8(SBC_BUFFER_T* RESTRICT out, int32_t const* RESTRICT in) argument [all...] |
H A D | synthesis-sbc.c | 48 R turns out to be a sparse 16x8 matrix with the following non-zero 76 V. Furthermore, since R[4][0..7] are all zeros, one out of every 16 252 PRIVATE void dct2_8(SBC_BUFFER_T* RESTRICT out, int32_t const* RESTRICT x); 437 /* These values should be zero, since out[2] of the 4-band cosine modulation 526 PRIVATE void cosineModulateSynth4(SBC_BUFFER_T* RESTRICT out, argument 547 out[0] = (int16_t)-y2; 548 out[1] = (int16_t)-y3; 549 out[2] = (int16_t)0; 550 out[3] = (int16_t)y3; 551 out[ [all...] |
/system/bt/profile/avrcp/ |
H A D | device.cc | 1241 std::ostream& operator<<(std::ostream& out, const Device& d) { argument 1242 out << " " << d.address_.ToString(); 1243 if (d.IsActive()) out << " <Active>"; 1244 out << std::endl; 1245 out << " Current Volume: " << volumeToStr(d.volume_) << std::endl; 1246 out << " Current Browsed Player ID: " << d.curr_browsed_player_id_ 1248 out << " Registered Notifications: " << std::endl; 1250 out << " Track Changed" << std::endl; 1253 out << " Play Status" << std::endl; 1256 out << " Pla [all...] |
/system/bt/service/test/ |
H A D | parcelable_unittest.cc | 51 OUT out; local 52 parcel.readParcelable(&out); 54 EXPECT_EQ(out, in); 55 return in == out; 203 android::bluetooth::BluetoothGattService out; local 204 parcel.readParcelable(&out);
|
/system/bt/stack/smp/ |
H A D | aes.cc | 602 unsigned char out[N_BLOCK], const aes_context ctx[1]) { 621 copy_and_key(out, s1, ctx->ksch + r * N_BLOCK); 629 return_type aes_cbc_encrypt(const unsigned char* in, unsigned char* out, argument 635 memcpy(out, iv, N_BLOCK); 637 out += N_BLOCK; 649 unsigned char out[N_BLOCK], const aes_context ctx[1]) { 668 copy_and_key(out, s1, ctx->ksch); 676 return_type aes_cbc_decrypt(const unsigned char* in, unsigned char* out, argument 683 if (aes_decrypt(in, out, ctx) != EXIT_SUCCESS) return EXIT_FAILURE; 684 xor_block(out, i 601 aes_encrypt(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const aes_context ctx[1]) argument 648 aes_decrypt(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const aes_context ctx[1]) argument 717 aes_encrypt_128(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[N_BLOCK], unsigned char o_key[N_BLOCK]) argument 771 aes_decrypt_128(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[N_BLOCK], unsigned char o_key[N_BLOCK]) argument 837 aes_encrypt_256(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[2 * N_BLOCK], unsigned char o_key[2 * N_BLOCK]) argument 915 aes_decrypt_256(const unsigned char in[N_BLOCK], unsigned char out[N_BLOCK], const unsigned char key[2 * N_BLOCK], unsigned char o_key[2 * N_BLOCK]) argument [all...] |
/system/connectivity/wifilogd/ |
H A D | command_processor.cpp | 103 auto out = MakeSanitizedString(buffer_reader->GetBytesOrDie(effective_len), local 106 out += kBufferOverrunError; 109 return out; 113 std::string out(buf_len, '\0'); 114 std::replace_copy_if(buf, buf + buf_len, &out.front(), 117 return out;
|
H A D | local_utils.h | 62 // Copies a |T| out of |buf|, aborting if |buf| is too short to hold a |T|. 72 // "strict-aliasing" warnings try to call out.) 74 // data we're trying to read out. 79 T out; local 80 CHECK(buf_len >= sizeof(out)); 81 std::memcpy(&out, buf, sizeof(out)); 82 return out;
|
/system/core/adb/client/ |
H A D | usb_linux.cpp | 261 // we have a match. now we just need to figure out which is in and which is out. 369 // This ioctl must not have TEMP_FAILURE_RETRY because we send SIGALRM to break out. 370 usbdevfs_urb* out = nullptr; local 371 int res = ioctl(fd, USBDEVFS_REAPURB, &out); 388 D("[ urb @%p status = %d, actual = %d ]", out, out->status, out->actual_length); 390 if (out == &h->urb_in) { 399 if (out [all...] |
/system/core/adb/ |
H A D | sysdeps_win32.cpp | 1235 // If the console window is resized, emulate SIGWINCH by breaking out 1584 // Standard German. Figure this out at runtime so we know what to output for 1930 const char* out; local 1938 out = seqstr; 1941 out = seqbuf; 1947 out = seqbuf; 1963 g_console_input_buffer.insert(g_console_input_buffer.end(), out, out + outlen); 2115 // 2. _setmode(_O_BINARY) does not use WriteConsoleW() and the text comes out 2602 // If we encounter an error converting UTF-16, don't error-out o [all...] |
/system/core/adf/libadf/ |
H A D | adf.cpp | 39 adf_id_t **out) 49 *out = ret; 252 adf_id_t *in, size_t n_in, adf_id_t **out, 272 return adf_id_vector_to_array(ids, out); 283 adf_id_t *in, size_t n_in, adf_id_t **out) 285 return adf_interfaces_filter(dev, in, n_in, out, adf_interface_type_filter, 296 adf_id_t *in, size_t n_in, adf_id_t **out) 298 return adf_interfaces_filter(dev, in, n_in, out, adf_interface_flags_filter, 466 adf_id_t *in, size_t n_in, adf_id_t **out, 487 return adf_id_vector_to_array(ids, out); 38 adf_id_vector_to_array(const std::vector<adf_id_t> &in, adf_id_t **out) argument 251 adf_interfaces_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_interface_data *data, __u32 match), __u32 match) argument 281 adf_interfaces_filter_by_type(struct adf_device *dev, enum adf_interface_type type, adf_id_t *in, size_t n_in, adf_id_t **out) argument 295 adf_interfaces_filter_by_flag(struct adf_device *dev, __u32 flag, adf_id_t *in, size_t n_in, adf_id_t **out) argument 465 adf_overlay_engines_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_overlay_engine_data *data, void *cookie), void *cookie) argument 509 adf_overlay_engines_filter_by_format(struct adf_device *dev, const __u32 *formats, size_t n_formats, adf_id_t *in, size_t n_in, adf_id_t **out) argument [all...] |
/system/core/base/include/android-base/ |
H A D | parsedouble.h | 28 // Parse double value in the string 's' and sets 'out' to that value. 31 static inline bool ParseDouble(const char* s, double* out, argument 43 *out = result;
|
H A D | parseint.h | 29 // Parses the unsigned decimal integer in the string 's' and sets 'out' to 31 // otherwise valid values will be rejected. Returns boolean success; 'out' 34 bool ParseUint(const char* s, T* out, argument 46 *out = static_cast<T>(result); 52 bool ParseUint(const std::string& s, T* out, argument 54 return ParseUint(s.c_str(), out, max); 57 // Parses the signed decimal integer in the string 's' and sets 'out' to 60 // success; 'out' is untouched if parsing fails. 62 bool ParseInt(const char* s, T* out, argument 75 *out 81 ParseInt(const std::string& s, T* out, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) argument [all...] |
/system/core/cpio/ |
H A D | mkbootfs.c | 91 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) argument 103 fix_stat(out, s); 104 // fprintf(stderr, "_eject %s: mode=0%o\n", out, s->st_mode); 122 out, 128 if(strlen(out) != (unsigned int)olen) die("ACK!"); 153 static void _archive(char *in, char *out, int ilen, int olen); 159 static void _archive_dir(char *in, char *out, int ilen, int olen) argument 167 in, out, ilen, olen); 214 out[olen] = '/'; 215 memcpy(out 232 _archive(char *in, char *out, int ilen, int olen) argument 278 char out[8192]; local [all...] |
/system/core/fastboot/ |
H A D | fastboot.cpp | 691 // missing out new partitions. A device with new partitions can use "partition-exists" to 725 const char** out = reinterpret_cast<const char**>(malloc(sizeof(char*) * count)); local 726 if (out == nullptr) die("out of memory"); 729 out[i] = xstrdup(strip(val[i])); 732 fb_queue_require(product, var, invert, count, out);
|
H A D | usb_linux.cpp | 59 * under 2 seconds) but we'll time out after 3 seconds just in case. 149 int in, out; local 222 out = -1; 249 out = ept->bEndpointAddress; 261 info.has_bulk_out = (out != -1); 265 *ept_out_id = out; 338 int n, in, out, ifc; local 365 if (filter_usb_device(de->d_name, desc, n, writable, callback, &in, &out, &ifc) == 0) { 369 usb->ep_out = out;
|
/system/core/gatekeeperd/ |
H A D | IGateKeeperService.cpp | 51 uint8_t *out = NULL; local 55 desiredPasswordSize, &out, &outSize); 59 if (ret == 0 && outSize > 0 && out != NULL) { 65 memcpy(buf, out, outSize); 66 delete[] out; 122 uint8_t *out = NULL; local 127 &out, &outSize, &request_reenroll); 130 if (ret == 0 && outSize > 0 && out != NULL) { 136 memcpy(buf, out, outSize); 137 delete[] out; [all...] |
/system/core/healthd/tests/ |
H A D | AnimationParser_test.cpp | 65 animation::text_field out; local 67 EXPECT_TRUE(parse_text_field(TEST_XCENT_YCENT, &out)); 68 EXPECT_EQ(CENTER_VAL, out.pos_x); 69 EXPECT_EQ(CENTER_VAL, out.pos_y); 70 EXPECT_EQ(TEST_R, out.color_r); 71 EXPECT_EQ(TEST_G, out.color_g); 72 EXPECT_EQ(TEST_B, out.color_b); 73 EXPECT_EQ(TEST_A, out.color_a); 74 EXPECT_STREQ(TEST_FILE_NAME, out.font_file.c_str()); 76 EXPECT_TRUE(parse_text_field(TEST_XCENT_YVAL, &out)); [all...] |
/system/core/libappfuse/ |
H A D | FuseBuffer.cc | 214 // Before writing |out|, we need to copy data from |in|. 241 fuse_init_out* const out = &response.init_out; local 242 out->major = FUSE_KERNEL_VERSION; 243 out->minor = std::min(minor, 15u); 244 out->max_readahead = max_readahead; 245 out->flags = FUSE_ATOMIC_O_TRUNC | FUSE_BIG_WRITES; 246 out->max_background = 32; 247 out->congestion_threshold = 32; 248 out->max_write = kFuseMaxWrite;
|
/system/core/libcutils/ |
H A D | str_parms.cpp | 315 float out; local 323 out = strtof(value, &end); 327 *val = out;
|
/system/core/libmemunreachable/ |
H A D | Tarjan.h | 72 void Execute(Graph<T>& graph, SCCList<T>& out); 84 void TarjanAlgorithm<T>::Execute(Graph<T>& graph, SCCList<T>& out) { argument 98 out.swap(components_); 131 void Tarjan(Graph<T>& graph, SCCList<T>& out) { argument 133 tarjan.Execute(graph, out);
|
/system/core/libsparse/ |
H A D | img2simg.c | 49 int out; local 80 out = STDOUT_FILENO; 82 out = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); 83 if (out < 0) { 105 ret = sparse_file_write(s, out, false, true, false); 112 close(out);
|
H A D | output_file.c | 71 int (*write_data_chunk)(struct output_file *out, unsigned int len, 73 int (*write_fill_chunk)(struct output_file *out, unsigned int len, 75 int (*write_skip_chunk)(struct output_file *out, int64_t len); 76 int (*write_end_chunk)(struct output_file *out); 94 struct output_file out; member in struct:output_file_gz 99 container_of((_o), struct output_file_gz, out) 102 struct output_file out; member in struct:output_file_normal 107 container_of((_o), struct output_file_normal, out) 110 struct output_file out; member in struct:output_file_callback 116 container_of((_o), struct output_file_callback, out) 118 file_open(struct output_file *out, int fd) argument 126 file_skip(struct output_file *out, int64_t cnt) argument 139 file_pad(struct output_file *out, int64_t len) argument 152 file_write(struct output_file *out, void *data, size_t len) argument 174 file_close(struct output_file *out) argument 189 gz_file_open(struct output_file *out, int fd) argument 203 gz_file_skip(struct output_file *out, int64_t cnt) argument 216 gz_file_pad(struct output_file *out, int64_t len) argument 240 gz_file_write(struct output_file *out, void *data, size_t len) argument 259 gz_file_close(struct output_file *out) argument 280 callback_file_skip(struct output_file *out, int64_t off) argument 303 callback_file_write(struct output_file *out, void *data, size_t len) argument 310 callback_file_close(struct output_file *out) argument 347 write_sparse_skip_chunk(struct output_file *out, int64_t skip_len) argument 373 write_sparse_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 408 write_sparse_data_chunk(struct output_file *out, unsigned int len, void *data) argument 449 write_sparse_end_chunk(struct output_file *out) argument 482 write_normal_data_chunk(struct output_file *out, unsigned int len, void *data) argument 500 write_normal_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 525 write_normal_skip_chunk(struct output_file *out, int64_t len) argument 530 write_normal_end_chunk(struct output_file *out) argument 542 output_file_close(struct output_file *out) argument 548 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument 667 struct output_file *out; local 690 write_data_chunk(struct output_file *out, unsigned int len, void *data) argument 696 write_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 702 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument 755 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument 772 write_skip_chunk(struct output_file *out, int64_t len) argument [all...] |
H A D | simg2img.c | 41 int out; local 50 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); 51 if (out < 0) { 73 if (lseek(out, 0, SEEK_SET) == -1) { 78 if (sparse_file_write(s, out, false, false, false) < 0) { 86 close(out);
|