/system/core/libsparse/ |
H A D | simg2img.c | 5 * 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 D | img2simg.c | 5 * 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 71 in = STDIN_FILENO; 73 in = open(argv[1], O_RDONLY | O_BINARY); 74 if (in < 0) { 90 len = lseek64(in, 0, SEEK_END); 91 lseek64(in, 0, SEEK_SET); 100 ret = sparse_file_read(s, in, false, false); 112 close(in); [all...] |
H A D | simg2simg.c | 5 * 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/media/audio_utils/include/audio_utils/ |
H A D | primitives.h | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 90 * Multiply-accumulate 16-bit terms with 32-bit result: return a + in*v. 93 int32_t mulAdd(int16_t in, int16_t v, int32_t a) argument 97 asm( "smlabb %[out], %[in], %[v], %[a] \n" 99 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) 103 return a + in * (int32_t)v; 108 * Multiply 16-bit terms with 32-bit result: return in*v. 111 int32_t mul(int16_t in, int16_ argument [all...] |
/system/extras/tests/bionic/libc/other/ |
H A D | test_zlib.c | 5 * 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/core/libzipfile/ |
H A D | zipfile.c | 7 #define DEF_MEM_LEVEL 8 // normally in zutil.h? 79 uninflate(unsigned char* out, int unlen, const unsigned char* in, int clen) argument 90 zstream.next_in = (void*)in;
|
/system/extras/ext4_utils/ |
H A D | ext2simg.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 180 const char *in = NULL; local 210 in = argv[optind++]; 226 infd = open(in, O_RDONLY); 235 build_sparse_ext(infd, in);
|
/system/media/audio_utils/ |
H A D | resampler.c | 5 ** 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 %d frames in and %d 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/cpio/ |
H A D | mkbootfs.c | 45 /* Each line in the canned file should be a path plus three ints (uid, 80 // Use the compiled-in fs_config() function. 88 // Nothing is special about this value, just picked something in the 148 static void _archive(char *in, char *out, int ilen, int olen); 154 static void _archive_dir(char *in, char *out, int ilen, int olen) argument 162 in, out, ilen, olen); 165 d = opendir(in); 166 if(d == 0) die("cannot open directory '%s'", in); 205 in[ilen] = '/'; 206 memcpy(in 225 _archive(char *in, char *out, int ilen, int olen) argument 270 char in[8192]; local [all...] |
/system/core/fastboot/ |
H A D | usb_linux.c | 5 * 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 66 * in drivers/usb/core/devio.c. 108 int in, out; local 207 in = -1; 224 in = ept->bEndpointAddress; 230 info.has_bulk_in = (in != -1); 234 *ept_in_id = in; 249 int n, in, ou local [all...] |
/system/core/libpixelflinger/ |
H A D | buffer.cpp | 6 ** 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/extras/libublock/ |
H A D | ublock.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 69 const void *in, size_t in_len, 76 assert(in); 82 in_h = (const struct ublock_init_in *)in; 105 const void *in, size_t in_len, 111 assert(in); 125 const void *in, size_t in_len, 133 assert(in); 139 in_h = (const struct ublock_read_in *)in; 68 ublock_handle_init(struct ublock_ctx *ub_ctx, const void *in, size_t in_len, void *out, size_t *out_len) argument 104 ublock_handle_ready(struct ublock_ctx *ub_ctx, const void *in, size_t in_len, void *out, size_t *out_len) argument 124 ublock_handle_read(struct ublock_ctx *ub_ctx, const void *in, size_t in_len, void *out, size_t *out_len) argument 154 ublock_handle_write(struct ublock_ctx *ub_ctx, const void *in, size_t in_len, void *out, size_t *out_len) argument 180 ublock_handle_request(struct ublock_ctx *ub_ctx, const void *in, size_t in_len, void *out, size_t *out_len) argument [all...] |
/system/security/keystore/ |
H A D | IKeystoreService.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 79 ALOGE("out of memory allocating output array in get"); 319 virtual int32_t sign(const String16& name, const uint8_t* in, size_t inLength, uint8_t** out, argument 327 memcpy(buf, in, inLength); 343 ALOGE("out of memory allocating output array in sign"); 356 virtual int32_t verify(const String16& name, const uint8_t* in, size_t inLength, argument 366 memcpy(buf, in, inLength); 404 ALOGE("out of memory allocating output array in get_pubkey"); 593 const void* in; local 691 const void* in; local 709 const void* in; local 735 const void* in; local [all...] |
H A D | keystore.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 60 * each file stores one key-value pair. Keys are encoded in file names, and 104 ALOGE("could not open keymaster device in %s (%s)", 167 * Returns the app ID (in the Android multi-user sense) for the current 175 * Returns the user ID (in the Android multi-user sense) for the current 202 * when WiFi can operate in its own namespace. 216 * Returns true if the callingUid is allowed to interact in the targetUid's 230 /* Here is the encoding of keys. This is necessary in order to allow arbitrary 231 * characters in key 238 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); local 249 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string()); local 277 decode_key_length(const char* in, size_t length) argument 291 decode_key(char* out, const char* in, size_t length) argument 542 int in = TEMP_FAILURE_RETRY(open(filename, O_RDONLY)); local 685 int in = TEMP_FAILURE_RETRY(open(mMasterKeyFile, O_RDONLY)); local 1272 int in = TEMP_FAILURE_RETRY(open(sMetaDataFile, O_RDONLY)); local [all...] |
/system/core/toolbox/ |
H A D | dd.c | 11 * 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 85 extern IO in, out; 107 IO in, out; /* input/output state */ variable 157 if (in.name == NULL) { 158 in.name = "stdin"; 159 in.fd = STDIN_FILENO; 161 in.fd = open(in [all...] |
/system/core/libcutils/ |
H A D | mq.c | 5 * 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 /** Next packet in the queue. */ 167 /** Keeps track of data coming in from the remote peer. */ 194 * Used in master only. Maps this peer proxy to other peer proxies to 289 newPacket->nextPacket = NULL; // Just in case. 491 // Store the socket in the message. 629 // filled in by masterProxyExpectConnection(). These fake creds will 691 // Fill in full credentials. 943 Buffer* in local 969 Buffer* in = peerProxy->inputBuffer; local [all...] |
/system/core/sh/ |
H A D | expand.c | 10 * Redistribution and use in source and binary forms, with or without 15 * 2. Redistributions in binary form must reproduce the above copyright 16 * notice, this list of conditions and the following disclaimer in the 81 struct ifsregion *next; /* next region in list */ 90 struct ifsregion ifsfirst; /* first struct in list of ifs regions */ 91 struct ifsregion *ifslastp; /* last struct in list */ 128 * placing the resulting list of arguments in arglist. If EXP_FULL is true, 199 case CTLENDVAR: /* end of expanding yyy in ${xxx-yyy} */ 232 * sort of a hack - expand tildes in variable 344 * evaluate, place result in (backe 411 struct backcmd in; local [all...] |