Searched defs:in (Results 1 - 23 of 23) sorted by relevance

/system/core/libsparse/
H A Dsimg2img.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
40 int in; local
59 in = STDIN_FILENO;
61 in = open(argv[i], O_RDONLY | O_BINARY);
62 if (in < 0) {
68 s = sparse_file_import(in, true, false);
82 close(in);
H A Dimg2simg.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
48 int in; local
70 in = STDIN_FILENO;
72 in = open(argv[1], O_RDONLY | O_BINARY);
73 if (in < 0) {
89 len = lseek64(in, 0, SEEK_END);
90 lseek64(in, 0, SEEK_SET);
99 ret = sparse_file_read(s, in, false, false);
111 close(in);
[all...]
H A Dsimg2simg.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
44 int in; local
61 in = open(argv[1], O_RDONLY | O_BINARY);
62 if (in < 0) {
67 s = sparse_file_import(in, true, false);
112 close(in);
/system/extras/tests/bionic/libc/other/
H A Dtest_zlib.c5 * Redistribution and use in source and binary forms, with or without
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
50 unsigned char in[CHUNK]; local
63 strm.avail_in = fread(in, 1, CHUNK, source);
69 strm.next_in = in;
72 compression if all of source has been read in */
84 /* done when last data in file processed */
98 static unsigned char in[CHUNK]; local
113 strm.avail_in = fread(in,
[all...]
/system/media/audio_utils/
H A Dchannels.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
47 inline uint8x3_t int32_to_uint8x3(int32_t in) { argument
50 out.c[2] = in;
51 out.c[1] = in >> 8;
52 out.c[0] = in >> 16;
54 out.c[0] = in;
55 out.c[1] = in >> 8;
56 out.c[2] = in >> 16;
64 * Move from back to front so that the conversion can be done in
[all...]
H A Dresampler.c5 ** you may not use this file except in compliance with the License.
10 ** Unless required by applicable law or agreed to in writing, software
32 uint32_t in_sample_rate; // input sampling rate in Hz
33 uint32_t out_sample_rate; // output sampling rate in Hz
37 size_t frames_in; // number of frames in input buffer
41 int32_t speex_delay_ns; // delay introduced by speex resampler in ns
99 // make sure that the number of frames present in rsmp->in_buf (rsmp->frames_in) is at
139 "ReSampler::resample() remaining %zu frames in and %zu frames out",
153 int16_t *in,
160 if (rsmp == NULL || in
152 resampler_resample_from_input(struct resampler_itfe *resampler, int16_t *in, size_t *inFrameCount, int16_t *out, size_t *outFrameCount) argument
[all...]
/system/core/libzipfile/
H A Dzipfile.c7 #define DEF_MEM_LEVEL 8 // normally in zutil.h?
79 uninflate(unsigned char* out, int unlen, const unsigned char* in, int clen) argument
89 zstream.next_in = (void*)in;
/system/extras/ext4_utils/
H A Dext2simg.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
120 const char *in = NULL; local
150 in = argv[optind++];
166 infd = open(in, O_RDONLY);
175 build_sparse_ext(infd, in);
/system/extras/verity/
H A Dverify_boot_signature.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
87 * @param offset Receives the offset in bytes
129 BIO *in = NULL; local
139 if ((in = BIO_new_fd(fd, BIO_NOCLOSE)) == NULL) {
144 if ((*bs = ASN1_item_d2i_bio(ASN1_ITEM_rptr(BootSignature), in, bs)) == NULL) {
146 BIO_free(in);
150 BIO_free(in);
156 * the length in authenticated attributes matches the actual length of
190 /* Confirm that the length of the image matches with the length in
[all...]
H A Dbuild_verity_tree.cpp73 const unsigned char *in, size_t in_size,
81 hash_block(md, in + i, block_size, salt, salt_size, out, &s);
72 hash_blocks(const EVP_MD *md, const unsigned char *in, size_t in_size, unsigned char *out, size_t *out_size, const unsigned char *salt, size_t salt_size, size_t block_size) argument
/system/media/audio_utils/include/audio_utils/
H A Dprimitives.h5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
26 /* The memcpy_* conversion routines are designed to work in-place on same dst as src
83 * Each float should be in the range -1.0 to 1.0. Values outside that range are clamped,
120 * The packed 24 bit input is stored in native endian format in a uint8_t byte array.
132 * The packed 24 bit output is stored in native endian format in a uint8_t byte array.
311 * the destination channel mask. Unmatched channels in the destination channel mask
312 * are zero filled. Unmatched channels in th
705 mulAdd(int16_t in, int16_t v, int32_t a) argument
723 mul(int16_t in, int16_t v) argument
[all...]
/system/core/cpio/
H A Dmkbootfs.c45 /* Each line in the canned file should be a path plus three ints (uid,
80 // Use the compiled-in fs_config() function.
89 // Nothing is special about this value, just picked something in the
149 static void _archive(char *in, char *out, int ilen, int olen);
155 static void _archive_dir(char *in, char *out, int ilen, int olen) argument
163 in, out, ilen, olen);
166 d = opendir(in);
167 if(d == 0) die("cannot open directory '%s'", in);
206 in[ilen] = '/';
207 memcpy(in
228 _archive(char *in, char *out, int ilen, int olen) argument
273 char in[8192]; local
[all...]
/system/core/libmincrypt/
H A Dp256.c4 * Redistribution and use in source and binary forms, with or without
8 * * Redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in the
30 // WARNING: Implementing these functions in a constant-time manner is far from
332 const p256_int* in,
334 if (out != in) *out = *in;
331 p256_mod(const p256_int* MOD, const p256_int* in, p256_int* out) argument
H A Dp256_ec.c4 * Redistribution and use in source and binary forms, with or without
8 * * Redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in the
30 // WARNING: Implementing these functions in a constant-time manner is far from
53 * That is, each limb is alternately 29 or 28-bits wide in little-endian
61 * Finally, the values stored in an felem are in Montgomery form. So the value
191 /* felem_reduce_carry adds a multiple of p in order to cancel |carry|,
201 /* carry < 2**3 thus (carry << 11) < 2**14 and we added 2**28 in the
208 /* This may underflow if carry is non-zero but, if so, we'll fix it in th
218 felem_sum(felem out, const felem in, const felem in2) argument
256 felem_diff(felem out, const felem in, const felem in2) argument
480 felem_square(felem out, const felem in) argument
529 felem_mul(felem out, const felem in, const felem in2) argument
598 felem_assign(felem out, const felem in) argument
609 felem_inv(felem out, const felem in) argument
761 felem_is_zero_vartime(const felem in) argument
977 copy_conditional(felem out, const felem in, limb mask) argument
1179 to_montgomery(felem out, const p256_int* in) argument
1200 from_montgomery(p256_int* out, const felem in) argument
[all...]
/system/core/libpixelflinger/
H A Dbuffer.cpp6 ** you may not use this file except in compliance with the License.
11 ** Unless required by applicable law or agreed to in writing, software
38 static uint32_t downshift_component(uint32_t in, uint32_t v,
323 uint32_t downshift_component( uint32_t in, uint32_t v, argument
365 in |= v<<dl;
370 in |= v<<shift;
376 if (shift > 0) in |= v>>shift;
377 else if (shift < 0) in |= v<<shift;
378 else in |= v;
380 return in;
[all...]
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Ddd.c11 * Redistribution and use in source and binary forms, with or without
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
78 IO in, out; /* input/output state */ variable
157 if (in.name == NULL) {
158 in.name = "stdin";
159 in.fd = STDIN_FILENO;
160 in.ops = &ddfops_stdfd;
162 in.ops = prog_ops;
163 in
[all...]
/system/core/fastboot/
H A Dusb_linux.c5 * Redistribution and use in source and binary forms, with or without
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
58 /* Timeout in seconds for usb_wait_for_disconnect.
60 * under 2 seconds) but we'll time out after 3 seconds just in case.
73 * in drivers/usb/core/devio.c.
85 /* True if name isn't a valid name for a USB device in /sys/bus/usb/devices.
124 int in, out; local
153 * requests while they're in the middle of flashing.
196 in
306 int n, in, out, ifc; local
[all...]
/system/core/libutils/
H A DString8.cpp5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
29 * functions and constants in android namespace.
78 static char* allocFromUTF8(const char* in, size_t len) argument
85 memcpy(str, in, len);
95 static char* allocFromUTF16(const char16_t* in, size_t len) argument
99 const ssize_t bytes = utf16_to_utf8_length(in, len);
111 utf16_to_utf8(in, len, str);
115 static char* allocFromUTF32(const char32_t* in, size_t len) argument
121 const ssize_t bytes = utf32_to_utf8_length(in, le
[all...]
/system/security/keystore/
H A DIKeystoreService.cpp6 ** you may not use this file except in compliance with the License.
11 ** Unless required by applicable law or agreed to in writing, software
94 ALOGE("out of memory allocating output array in get");
345 virtual int32_t sign(const String16& name, const uint8_t* in, size_t inLength, uint8_t** out, argument
353 memcpy(buf, in, inLength);
369 ALOGE("out of memory allocating output array in sign");
382 virtual int32_t verify(const String16& name, const uint8_t* in, size_t inLength, argument
392 memcpy(buf, in, inLength);
430 ALOGE("out of memory allocating output array in get_pubkey");
679 const void* in; local
792 const void* in; local
810 const void* in; local
836 const void* in; local
[all...]
H A Dkeystore.cpp5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
66 * each file stores one key-value pair. Keys are encoded in file names, and
117 ALOGE("could not open keymaster device in %s (%s)",
219 * Returns the app ID (in the Android multi-user sense) for the current
227 * Returns the user ID (in the Android multi-user sense) for the current
279 * when WiFi can operate in its own namespace.
293 * Returns true if the callingUid is allowed to interact in the targetUid's
310 * the keys in any way (e.g., signing).
316 /* Here is the encoding of keys. This is necessary in orde
324 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); local
335 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); local
356 decode_key_length(const char* in, size_t length) argument
370 decode_key(char* out, const char* in, size_t length) argument
637 int in = TEMP_FAILURE_RETRY(open(filename, O_RDONLY)); local
792 int in = TEMP_FAILURE_RETRY(open(mMasterKeyFile, O_RDONLY)); local
1476 int in = TEMP_FAILURE_RETRY(open(sMetaDataFile, O_RDONLY)); local
[all...]
/system/core/adf/libadf/
H A Dadf.c5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
259 adf_id_t *in, size_t n_in, adf_id_t **out,
269 int fd = adf_interface_open(dev, in[i], O_RDONLY);
291 ids_ret[n] = in[i];
313 adf_id_t *in, size_t n_in, adf_id_t **out)
315 return adf_interfaces_filter(dev, in, n_in, out, adf_interface_type_filter,
326 adf_id_t *in, size_t n_in, adf_id_t **out)
328 return adf_interfaces_filter(dev, in, n_in, out, adf_interface_flags_filter,
496 adf_id_t *in, size_
258 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
311 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
325 adf_interfaces_filter_by_flag(struct adf_device *dev, __u32 flag, adf_id_t *in, size_t n_in, adf_id_t **out) argument
495 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
561 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/extras/f2fs_utils/
H A Df2fs_sparseblock.c140 SLOGD("entry %d in journal entries is for segment %d",i, le32_to_cpu(segno_in_journal(info->sit_sums, i)));
219 /* Read the 1st cp block in this CP pack */
232 /* Read the 2nd cp block in this CP pack */
440 SLOGE("Error getting SIT entries in summary area");
500 /* check the SIT entries in the journal */
584 char *in = argv[1]; local
588 if ((infd = open(in, O_RDONLY)) < 0) {
/system/keymaster/
H A Docb.c8 / copyright notice and this permission notice appear in all copies.
36 / encrypted in-place), but no other pair of pointers may be equal.
48 #define OCB_KEY_LEN 16 /* 0, 16, 24 or 32. 0 means set in ae_init */
49 #define OCB_TAG_LEN 16 /* 0 to 16. 0 means set in ae_init */
51 /* This implementation has built-in support for multiple AES APIs. Set any
59 / space in ae_ctx), generated as needed (slightly slowing encryption and
62 / are used for L values in ae_ctx. Plaintext and ciphertexts shorter than
67 / will be shorter than 2^(L_TABLE_SZ+4) bytes in length. This results
68 / in better performance. */
91 #define inline __inline /* MSVC doesn't recognize "inline" in
116 } in, out; local
553 AES_encrypt(const unsigned char* in, unsigned char* out, const AES_KEY* key) argument
564 AES_decrypt(const unsigned char* in, unsigned char* out, const AES_KEY* key) argument
[all...]

Completed in 456 milliseconds