/bionic/tests/ |
time_test.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 178 t.tm_isdst = 0; // "0 if Daylight Savings Time is not in effect". 183 t.tm_isdst = 2; // "positive if Daylight Savings Time is in effect" 621 timespec in; local 623 ASSERT_EQ(EINVAL, clock_nanosleep(-1, 0, &in, &out)); 627 timespec in; local 628 in.tv_sec = 1; 629 in.tv_nsec = 0; 630 ASSERT_EQ(EINVAL, clock_nanosleep(CLOCK_THREAD_CPUTIME_ID, 0, &in, nullptr)) [all...] |
/bootable/recovery/minui/ |
graphics.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 293 // fall back to the compiled-in font. 305 unsigned char* in = font.rundata; local 306 while((data = *in++)) {
|
/cts/apps/CtsVerifier/ |
Android.mk | 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 63 define java-files-in 75 $(call java-files-in, src/com/android/cts/verifier) \ 134 # turned off sensor power tests in initial L release 138 # Copy the necessary host-side scripts to include in the zip file:
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
BasePackageInstallTest.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 143 InputStream in = new FileInputStream(file); local 147 while ((c = in.read(buffer)) != -1) {
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
JdwpSecurityHostTest.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 178 // We need a dalvik-cache in /data/local/tmp so we have read-write access. 179 // Note: this will cause the runtime to optimize the DEX file (contained in 206 private InputStream in; field in class:JdwpSecurityHostTest.AdbJdwpOutputReader 211 // in the background. Since we know the tested app is already running, we only need to 216 in = adbProcess.getInputStream(); 218 // Read the output for 5s in a separate thread before stopping the command. 234 br = new BufferedReader(new InputStreamReader(in));
|
/cts/libs/vogar-expect/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 121 BufferedReader in = new BufferedReader( local 125 while ((outputLine = in.readLine()) != null) {
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.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 103 private byte[] inputStreamToBytes(InputStream in) throws IOException { 107 while ((len = in.read(buffer)) >= 0) { 110 in.close();
|
/dalvik/dx/src/com/android/dex/ |
TableOfContents.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 123 private void readMap(Dex.Section in) throws IOException { 124 int mapSize = in.readInt(); 127 short type = in.readShort(); 128 in.readShort(); // unused 130 int size = in.readInt(); 131 int offset = in.readInt();
|
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
ViewDebug$ViewServer.class | |
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
DexMergeTest.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 129 * Merging dex files uses pessimistic sizes that naturally leave gaps in the 190 private void copy(InputStream in, OutputStream out) throws IOException { 193 while ((count = in.read(buffer)) != -1) { 196 in.close();
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/development/samples/ToyVpn/src/com/example/android/toyvpn/ |
ToyVpnConnection.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 48 /** Time to wait in between losing the connection and retrying. */ 54 * necessary instead of keeping the network hardware up for hours on end in between. 115 // In this demo, all we need to know is the server address. 162 // Packets to be sent are queued in this input stream. 163 FileInputStream in = new FileInputStream(iface.getFileDescriptor()); local 172 // - when data has not been sent in a while, send empty keepalive messages. 173 // - when data has not been received in a while, assume the connection is broken. 179 // Assume that we did not make any progress in this iteration [all...] |
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/net/ |
FeedParser.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 35 * where each list element represents a single entry (post) in the XML feed. 42 // Constants indicting XML element names that we're interested in 53 * @param in Atom feed, as a stream. 58 public List<Entry> parse(InputStream in) 63 parser.setInput(in, null); 67 in.close(); 97 // article in the feed. 208 * Processes link tags in the feed [all...] |
/device/google/dragon/audio/hal/ |
iniparser.c | 96 @brief Get number of sections in a dictionary 98 @return int Number of sections found in dictionary 100 This function returns the number of sections found in a dictionary. 101 The test to recognize sections is done on the string stored in the 106 This clearly fails in the case a section name contains a colon, but 109 This function returns -1 in case of error. 131 @brief Get name for section n in a dictionary. 136 This function locates the n-th section in a dictionary and returns 140 This function returns NULL in case of error. 216 /* No section in file: dump all keys as they are * 631 FILE * in ; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
_localemodule.c | 6 provided that the above copyright notice appear in all copies.
216 /* if LC_NUMERIC is different in the C library, use saved value */
364 /* assume no change in size, first */
473 /* YESSTR and NOSTR are deprecated in glibc, since they are
475 done using gettext. So we don't expose it to Python in the
522 /* This is not available in all glibc versions that have CODESET. */
539 returns numeric values in the char* return value, which would
562 char *in;
local 563 if (!PyArg_ParseTuple(args, "s", &in))
565 return PyString_FromString(gettext(in));
575 char *domain, *in; local [all...] |
socketmodule.h | 10 # include <netinet/in.h>
98 struct sockaddr_in in;
member in union:sock_addr 133 double sock_timeout; /* Operation timeout in seconds;
143 The _ssl module needs access to the type object defined in
146 C API of a module in a struct which then gets exported to
149 The code in socketmodule.c defines this struct (which currently
157 a static copy of this struct in the importing module.
170 Now use the C API as if it were defined in the using
195 XXX named PySocketModule_APIObject in _ssl.c. It's unclear why it isn't
220 /* You *must* call this before using any of the functions in
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/ |
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:__anon5556 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.h 615 unsigned in, out; \/* save starting available input and output *\/ 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...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/zlib/ |
gzguts.h | 4 * For conditions of distribution and use, see copyright notice in zlib.h
83 /* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */
104 /* unlike snprintf (which is required in C99, yet still not supported by
106 termination of the result -- however this is only used in gzlib.c where
107 the result is assured to fit in the space provided */
152 twice this must be able to fit in an unsigned type) */
172 /* x.pos: current position in uncompressed data */
179 unsigned char *in; /* input buffer */
member in struct:__anon5611 197 z_stream strm; /* stream structure in-place (not a pointer) */
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
_localemodule.c | 6 provided that the above copyright notice appear in all copies.
216 /* if LC_NUMERIC is different in the C library, use saved value */
364 /* assume no change in size, first */
473 /* YESSTR and NOSTR are deprecated in glibc, since they are
475 done using gettext. So we don't expose it to Python in the
522 /* This is not available in all glibc versions that have CODESET. */
539 returns numeric values in the char* return value, which would
562 char *in;
local 563 if (!PyArg_ParseTuple(args, "s", &in))
565 return PyString_FromString(gettext(in));
575 char *domain, *in; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/ |
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.h 564 unsigned in, out; \/* save starting available input and output *\/ local [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
getnetbydns.c | 9 * 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
33 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS,
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
46 * copyright notice and this permission notice appear in all copies, and that
47 * the name of Digital Equipment Corporation not be used in advertising or
53 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
56 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 127 char *in, *st, *pauxt, *bp, **ap; local [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
TestSuiteFactory.java | 6 Redistribution and use in source and binary forms, with or without 11 2. Redistributions in binary form must reproduce the above copyright 12 notice, this list of conditions and the following disclaimer in the 20 IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 53 InputStream in = loader.getResourceAsStream(TEMPLATE_FILE); external variable declarations 54 if ( in == null ) { 57 Reader rd = new InputStreamReader(in); 63 * suite file in the same directory of the grammar file [all...] |