/external/toybox/kconfig/ |
confdata.c | 52 static char *conf_expand_value(const char *in) 61 while ((src = strchr(in, '$'))) { 62 strncat(res_value, in, src - in); 71 in = src; 73 strcat(res_value, in); 96 FILE *in = NULL; local 103 in = zconf_fopen(name); 108 in = zconf_fopen(name); 109 if (in) [all...] |
/external/toybox/toys/pending/ |
dd.c | 99 static struct io in, out; variable in typeref:struct:io 134 fprintf(stderr,"%llu+%llu records in\n%llu+%llu records out\n", st.in_full, st.in_part, 161 /* for C_BS, in/out is done as it is. so only in.sz is enough. 162 * With Single buffer there will be overflow in a read following partial read 164 in.buff = out.buff = xmalloc(in.sz + ((toys.optflags & C_BS)? 0: out.sz)); 165 in.bp = out.bp = in.buff; 168 if (!in.name) [all...] |
mke2fs.c | 63 -E stride= Set RAID stripe size (in blocks) 68 filetype Store file type info in directory entry 81 long inodes; // Total inodes in filesystem. 90 unsigned blocks; // Total blocks in the filesystem. 91 unsigned freeblocks; // Free blocks in the filesystem. 121 // Fill out index blocks in inode. 160 // Recursively calculate the number of blocks used by each inode in the tree. 189 // numbers of files (> 100,000) but can be done in very little code. 224 // precision, normalizing it to the start of the gregorian calendar in 1582, 280 // allocation bitmap that fits in one block (I.E. how many bits per block) 527 struct ext2_inode *in = (struct ext2_inode *)toybuf; local [all...] |
/external/vogar/src/vogar/commands/ |
Command.java | 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 140 BufferedReader in = new BufferedReader( local 144 while ((outputLine = in.readLine()) != null) { 234 // hard kill in 2 seconds
|
/external/zlib/src/contrib/blast/ |
blast.c | 3 * For conditions of distribution and use, see copyright notice in blast.h 11 * Ben Rudiak-Gould in comp.compression on August 13, 2001. Interestingly, the 12 * example Ben provided in the post is incorrect. The distance 110001 should 25 * 1.2 24 Oct 2012 - Add note about using binary mode in stdio 41 unsigned char *in; /* next input location */ member in struct:state 42 unsigned left; /* available input at in */ 44 int bitcnt; /* number of bits in bit buffer */ 52 unsigned next; /* index of next write location in out[] */ 59 * eight bits in the buffer. bits() works properly for need == 0. 63 * - Bits are stored in bytes from the least significant bit to the mos [all...] |
/external/zlib/src/contrib/inflate86/ |
inffast.S | 6 * For conditions of distribution and use, see copyright notice in zlib.h 16 * (8K-32K worked best for my 256K cpu cache) and how much overhead there is in 17 * stream processing I/O and crc32/addler32. In my case, this routine used 20 * I am confident that this version will work in the general case, but I have 30 * ID bit on eflags and then use the cpuid instruction) is used in many 41 * MMX mode because many of it's x86 ALU instructions execute in .5 cycles and 43 * the input stream since the MMX code grabs bits in chunks of 32, which 51 * structure offsets which are hard coded in this file. This was last tested 52 * with zlib-1.2.0 which is currently in beta testing, newer versions of this 140 * struct z_stream offsets, in zlib. 177 #define in 44 \/* unsigned char* *\/ define [all...] |
/external/zlib/src/contrib/puff/ |
puff.c | 4 * For conditions of distribution and use, see copyright notice in puff.h 20 * assumed to be 16 bits, for arrays in order to to conserve memory. The code 23 * In the comments below are "Format notes" that describe the inflate process 39 * - Simplify offs[] index in construct() 54 * - Add braces in puff() for else do [Gailly] 67 * - Add option in TEST code for puff to write the data 68 * - Add option in TEST code to skip input bytes 72 * 2.2 25 Apr 2010 - Fix bug in variable initializations [Oberhumer] 79 * 2.3 21 Jan 2013 - Check for invalid code length codes in dynamic blocks 91 #define MAXBITS 15 /* maximum bits in a code * 105 const unsigned char *in; \/* input buffer *\/ member in struct:state [all...] |
/external/zlib/src/examples/ |
gun.c | 3 * For conditions of distribution and use, see copyright notice in zlib.h 10 Fix return value for in() 19 1.5 9 Feb 2008 Avoid warning in latest version of gcc 21 1.7 12 Aug 2012 Update for z_const usage in zlib 1.2.8 27 decompresses the data in the named gzip files. If no arguments are given, 28 gun will decompress from stdin to stdout. The names must end in .gz, -gz, 47 encountered in an input file, it is the last stream in that file. 50 file are maintained in the final uncompressed file, to the extent that the 79 /* structure for infback() to pass to input function in() -- it maintains th 89 local unsigned in(void *in_desc, z_const unsigned char **buf) function [all...] |
gzappend.c | 7 warranty. In no event will the author be held liable for any damages 16 in a product, an acknowledgment in the product documentation would be 33 * - Add L to constants in lseek() calls 34 * - Remove some debugging information in error messages 37 * - Finish off gzip file in gztack() 40 * - Use in-place rotate instead of auxiliary buffer 49 avoid copying that file, in case it's large. Note that this results in the 57 number of unusued bits in the last input byte used. gzappend will not wor 392 unsigned char *in, *out; local [all...] |
/external/zlib/src/ |
gzguts.h | 3 * For conditions of distribution and use, see copyright notice in zlib.h 77 /* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */ 98 /* unlike snprintf (which is required in C99, yet still not supported by 100 termination of the result -- however this is only used in gzlib.c where 101 the result is assured to fit in the space provided */ 146 twice this must be able to fit in an unsigned type) */ 166 /* x.pos: current position in uncompressed data */ 173 unsigned char *in; /* input buffer */ member in struct:__anon21662 191 z_stream strm; /* stream structure in-place (not a pointer) */
|
inflate.c | 3 * For conditions of distribution and use, see copyright notice in zlib.h 16 * - Use pointers for available input and output checking in inffast.c 17 * - Remove input and output counters in inffast.c 19 * - Remove unnecessary second byte pull from length extra in inffast.c 20 * - Unroll direct copy to three copies per loop in inffast.c 24 * - Correct filename to inffixed.h for fixed tables in inflate.c 25 * - Make hbuf[] unsigned char to match parameter type in inflate.c 27 * to avoid negation problem on Alphas (64 bit) in inflate.c 30 * - Add comments on state->bits assertion in inffast.c 31 * - Add comments on op field in inftrees. 615 unsigned in, out; \/* save starting available input and output *\/ local [all...] |
/external/zlib/src/test/ |
infcover.c | 3 * For conditions of distribution and use, see copyright notice in zlib.h 37 request that exceeds this limit will result in an 55 /* these items are strung together in a linked list, one for each allocation */ 59 struct mem_item *next; /* pointer to next item in list, or NULL */ 64 struct mem_item *first; /* pointer to first item in list, or NULL */ 152 /* in any case, do the requested free with the standard library function */ 183 /* show the current total requested allocations in bytes */ 191 /* show the high water allocation in bytes */ 221 fprintf(stderr, "** %s: %lu bytes in %d blocks not freed\n", 238 /* Decode a hexadecimal string, set *len to length, in[] to the bytes. Thi 247 unsigned char *in; local 289 unsigned char *in, *out; local 511 unsigned char *in, *out, *win; local [all...] |
minigzip.c | 3 * For conditions of distribution and use, see copyright notice in zlib.h 13 * or in pipe mode. 61 #ifndef WIN32 /* unlink already in stdio.h for WIN32 */ 70 /* Map the Windows error number in ERROR to a locale-dependent error 267 unsigned char in[1]; local 278 got = fread(in, 1, 1, gz->file); 281 strm->next_in = in; 339 void gz_compress OF((FILE *in, gzFile out)); 341 int gz_compress_mmap OF((FILE *in, gzFile out)); 343 void gz_uncompress OF((gzFile in, FILE *out)) 462 FILE *in; local 502 gzFile in; local 633 FILE * in = fopen(*argv, "rb"); local [all...] |
/frameworks/base/cmds/media/src/com/android/commands/media/ |
Media.java | 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 250 InputStreamReader converter = new InputStreamReader(System.in); 251 BufferedReader in = new BufferedReader(converter); local 254 while ((line = in.readLine()) != null) {
|
/frameworks/base/core/java/android/gesture/ |
GestureStore.java | 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 122 * Get all the gesture entry names in the library 279 DataInputStream in = null; local 281 in = new DataInputStream((stream instanceof BufferedInputStream) ? stream : 290 final short versionNumber = in.readShort(); 293 readFormatV1(in); 302 if (closeStream) GestureUtils.closeStream(in); 306 private void readFormatV1(DataInputStream in) throws IOException { 311 // Number of entries in the librar [all...] |
/frameworks/base/core/java/android/security/keymaster/ |
KeymasterArguments.java | 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 30 * Serialization code for this and subclasses must be kept in sync with system/security/keystore 46 public KeymasterArguments createFromParcel(Parcel in) { 47 return new KeymasterArguments(in); 60 private KeymasterArguments(Parcel in) { 61 mArguments = in.createTypedArrayList(KeymasterArgument.CREATOR); 361 public void readFromParcel(Parcel in) { 362 in.readTypedList(mArguments, KeymasterArgument.CREATOR);
|
/frameworks/base/core/java/android/util/ |
Rational.java | 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 * <p>Increment each time the fields change in any way.</p> 142 * <p>The denominator may return {@code 0}, in which case the rational may represent 179 * <p>A finite value occurs when the denominator is not {@code 0}; in other words 219 * <li>Both have the same numerator and denominator in their reduced form</li> 280 // TODO: remove this duplicate function (used in CTS and the shim) 300 * @param numerator the numerator in a fraction 301 * @param denominator the denominator in a fraction 366 * identically to casting a floating point value to an {@code int}, in particular [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
Base64Test.java | 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 private String decodeString(String in) throws Exception { 33 byte[] out = Base64.decode(in, 0); 38 * Encodes the string 'in' using 'flags'. Asserts that decoding 41 private String encodeToString(String in, int flags) throws Exception { 42 String b64 = Base64.encodeToString(in.getBytes(), flags); 44 assertEquals(in, dec); 48 /** Assert that decoding 'in' throws IllegalArgumentException. */ 49 private void assertBad(String in) throws Exception 412 InputStream in = new Base64InputStream( local [all...] |
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioMixingRule.java | 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 270 Builder addRuleFromParcel(Parcel in) throws IllegalArgumentException { 271 int rule = in.readInt(); 274 int usage = in.readInt(); 279 int preset = in.readInt(); 283 in.readInt(); // assume there was in int value to read as for now they come in pair 284 throw new IllegalArgumentException("Illegal rule value " + rule + " in parcel") [all...] |
AudioPolicyConfig.java | 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 97 private AudioPolicyConfig(Parcel in) { 99 int nbMixes = in.readInt(); 103 int routeFlags = in.readInt(); 106 mixBuilder.setCallbackFlags(in.readInt()); 108 int sampleRate = in.readInt(); 109 int encoding = in.readInt(); 110 int channelMask = in.readInt(); 115 int nbRules = in.readInt() [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaTestUtil.java | 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 94 InputStream in = p.getInputStream(); local 96 while ((ch = in.read()) != -1) {
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
DefaultContainerService.java | 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 124 * @return returns status code according to those in 382 InputStream in = null; local 385 in = new FileInputStream(sourcePath); 388 Streams.copy(in, out); 391 IoUtils.closeQuietly(in);
|
/frameworks/compile/libbcc/bcinfo/tools/ |
main.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 236 FILE *in = fopen(inFile.c_str(), "r"); local 237 if (!in) { 245 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in); 250 fclose(in);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
TestDriver.java | 70 BufferedInputStream in = new BufferedInputStream(sock.getInputStream()); local 71 ByteBuffer payload = getResponse(in); 110 BufferedInputStream in = new BufferedInputStream(sock.getInputStream()); local 111 ByteBuffer payload = getResponse(in); 131 BufferedInputStream in = new BufferedInputStream(sock.getInputStream()); local 132 ByteBuffer payload = getResponse(in); 137 private static ByteBuffer getResponse(InputStream in) throws IOException { 138 ByteBuffer lengthBuffer = read( in, 2 ); 142 return read(in, length); 152 private static ByteBuffer read(InputStream in, int length) throws IOException [all...] |
/frameworks/rs/cpu_ref/ |
rsCpuIntrinsic3DLUT.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 55 extern "C" void rsdIntrinsic3DLUT_K(void *dst, void const *in, size_t count, 67 uchar4 *in = (uchar4 *)info->inPtr[0]; local 90 rsdIntrinsic3DLUT_K(out, in, len, 95 in += len; 101 int4 baseCoord = convert_int4(*in) * coordMul; 136 ret.w = in->w; 140 ALOGE("in %08x %08x %08x %08x", in->r, in->g, in->b, in->a) [all...] |