HomeSort by relevance Sort by last modified time
    Searched defs:in (Results 226 - 250 of 2266) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /ndk/sources/cxx-stl/llvm-libc++/libcxx/src/
hash.cpp 23 // handle all next_prime(i) for i in [1, 210), special case 0
138 // some potential prime numbers are not prime. In an ideal world, all potential
183 // If n is small enough, search in small_primes
189 // Start searching list of potential primes: L * k0 + indices[in]
194 size_t in = static_cast<size_t>(std::lower_bound(indices, indices + M, n - k0 * L) local
196 n = L * k0 + indices[in];
201 // 2. The i > sqrt(n), in which case n is prime.
561 if (++in == M)
564 in = 0;
566 n = L * k0 + indices[in];
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/
CopyUtils.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
53 * let you specify the buffer size because in modern VMs the impact on speed
58 * to the <code>copy</code> methods in <code>Buffered*</code> streams. For
61 * copy( new BufferedInputStream( in ), new BufferedOutputStream( out ) );
66 * would usually suggest wrapping in a BufferedInputStream. The
109 * @deprecated Use IOUtils. Will be removed in 2.0.
111 * Null handling behaviour changed in IOUtils (null data does not
123 * Instances should NOT be constructed in standard programming.
135 * @throws IOException In case of an I/O proble
156 ByteArrayInputStream in = new ByteArrayInputStream(input); local
176 ByteArrayInputStream in = new ByteArrayInputStream(input); local
248 InputStreamReader in = new InputStreamReader(input); local
267 InputStreamReader in = new InputStreamReader(input, encoding); local
310 StringReader in = new StringReader(input); local
    [all...]
  /packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
AutoCloseInputStream.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
26 * closed, so any allocated in-memory buffers can be freed even if the
42 * @param in underlying input stream
44 public AutoCloseInputStream(InputStream in) {
45 super(in);
62 in.close();
63 in = new ClosedInputStream();
71 * @return next byte in the stream, or -1 if no more bytes are available
75 int n = in.read()
    [all...]
  /system/core/libsparse/
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
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...]
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);
  /external/guava/guava-tests/test/com/google/common/io/
ByteStreamsTest.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
127 private static void skipHelper(long n, int expect, InputStream in)
129 ByteStreams.skipFully(in, n);
130 assertEquals(expect, in.read());
131 in.close();
139 ByteArrayDataInput in = ByteStreams.newDataInput(b); local
141 in.readInt();
148 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
149 assertEquals(0x12345678, in.readInt())
159 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
166 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
177 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
187 ByteArrayDataInput in = ByteStreams.newDataInput( local
197 ByteArrayDataInput in = ByteStreams.newDataInput(data); local
204 ByteArrayDataInput in = ByteStreams.newDataInput(data); local
212 ByteArrayDataInput in = ByteStreams.newDataInput(data); local
218 ByteArrayDataInput in = ByteStreams.newDataInput(data); local
226 ByteArrayDataInput in = ByteStreams.newDataInput(data); local
235 ByteArrayDataInput in = ByteStreams.newDataInput(data); local
240 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
245 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
258 ByteArrayDataInput in = ByteStreams.newDataInput(bytes); local
271 ByteArrayDataInput in = ByteStreams.newDataInput(bytes, 2); local
281 ByteArrayDataInput in = ByteStreams.newDataInput(new byte[2]); local
288 ByteArrayDataInput in = ByteStreams.newDataInput(bais); local
413 InputStream in = newTestStream(100); local
419 InputStream in = newTestStream(100); local
425 InputStream in = newTestStream(100); local
431 InputStream in = newTestStream(100); local
    [all...]
ByteSinkTest.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
67 ByteArrayInputStream in = new ByteArrayInputStream(bytes); local
68 sink.writeFrom(in);
75 TestInputStream in = new TestInputStream(new ByteArrayInputStream(new byte[10])); local
76 assertFalse(in.closed());
77 sink.writeFrom(in);
78 assertFalse(in.closed());
109 TestInputStream in = new TestInputStream( local
111 okSink.writeFrom(in);
    [all...]
CloseablesTest.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
79 TestInputStream in = new TestInputStream( local
81 Closeables.closeQuietly(in);
82 assertTrue(in.closed());
86 TestReader in = new TestReader(TestOption.CLOSE_THROWS); local
87 Closeables.closeQuietly(in);
88 assertTrue(in.closed());
110 expectLastCall().andThrow(new IOException("This should only appear in the "
129 // Close the closeable using the Closeables, passing in the swallowExceptio
    [all...]
IoTestCase.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
82 // fall back to copying URLs to files in the testDir == null block below
87 // testdata resources aren't file:// urls, so create a directory to store them in and then
113 * deleted in the tear-down for this test.
125 * Gets a temp dir for testing. The returned directory and all contents of it will be deleted in
138 * Creates a new temp file in the temp directory returned by {@link #getTempDir()}. The file will
139 * be deleted in the tear-down for this test.
164 InputStream in = url.openStream(); local
169 for (int read = in.read(buf); read != -1; read = in.read(buf))
    [all...]
  /art/test/137-cfi/src/
Main.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
72 // First do the in-process unwinding.
132 BufferedReader in = new BufferedReader(new FileReader("/proc/self/cmdline")); local
133 String s = in.readLine();
134 in.close();
  /cts/common/host-side/java-scanner/src/com/android/compatibility/common/scanner/
JavaScanner.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
76 final BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); local
79 while ((line = in.readLine()) != null) {
87 if (in != null) {
88 in.close();
129 // efficient than doing a check in each iteration of the loop.
  /cts/common/host-side/xml-plan-generator/tests/src/com/android/compatibility/common/xmlgenerator/
XmlPlanGeneratorTest.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
110 final Scanner in = new Scanner(p.getInputStream()); local
111 while (in.hasNextLine()) {
112 output.append(in.nextLine());
123 final ByteArrayInputStream in = new ByteArrayInputStream(input.getBytes()); local
124 final HashMap<String, TestSuite> suites = TestListParser.parse(in);
  /cts/hostsidetests/sample/src/android/sample/cts/
SampleHostTest.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
52 * The class name of the main activity in the APK.
129 Scanner in = new Scanner(logs); local
130 while (in.hasNextLine()) {
131 String line = in.nextLine();
136 in.close();
  /cts/tests/tests/security/src/android/security/cts/
HwRngTest.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 * Asserts that the {@code /dev/hw_random} device is configured in an acceptable way or is not
80 // In short, assert that:
82 // 2. a driver is selected in the hrwng framework, and
98 // 2. Assert that a driver is selected in the hrwng framework.
119 InputStream in = null; local
121 in = new FileInputStream(file);
122 return new String(readyFully(in), "US-ASCII");
124 closeSilently(in);
144 BufferedReader in = null; local
    [all...]
  /development/tools/idegen/src/
Configuration.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
59 throw new AssertionError("Not in root directory.");
101 // Look for user-specific excluded-paths file in current directory.
120 * source roots in our generated source directory (specifically,
146 // Do not check excludes in this branch.
169 * if the file doesn't have a package or if the file isn't in the
197 BufferedReader in = new BufferedReader(new FileReader(file)); local
200 while ((line = in.readLine()) != null) {
205 // line ends in a ";"
247 BufferedReader in = new BufferedReader(new FileReader(file)); local
    [all...]
  /external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/
ImageFactory.java 44 final InputStream in = loader.getResourceAsStream(name); local
45 final byte[] data = new byte[in.available()];
46 in.read(data);
47 in.close();
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/
ClassFileVersionTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
84 DataInputStream in = new DataInputStream(new FileInputStream( local
86 int magic = in.readInt();
90 expectedMinorVersion = in.readUnsignedShort();
91 expectedMajorVersion = in.readUnsignedShort();
92 in.close();
94 printErrorAndFail(thisCommandName + "has error in reading target class file!");
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/asn1/der/
SequenceTest.java 6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
79 protected Object getDecodedObject(BerInputStream in)
81 Object[] values = (Object[]) in.content;
149 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local
151 .decode(in));
178 protected Object getDecodedObject(BerInputStream in)
186 DerInputStream in = new DerInputStream((byte[]) testcases[i][1]); local
187 in.setVerify();
188 seqVerify.decode(in);
    [all...]
  /external/emma/core/java12/com/vladium/util/
Files.java 43 BufferedReader in = null; local
46 in = new BufferedReader (new FileReader (atfile), 8 * 1024); // uses default encoding
49 for (String line; (line = in.readLine ()) != null; )
59 if (in != null) try { in.close (); } catch (Exception ignore) {}
83 * Note that duplicate removal in classpaths affects ClassLoader.getResources().
86 * necessary for reproducing its behavior in Sun-compatible JVMs.
292 * A slightly stricter version of File.createTempFile() in J2SDK 1.3: it requires
301 * guarantees do not hold if files are created in the same directory outside
311 * @return writeable temp file descriptor [incorporates 'parentDir' in its pathname
    [all...]
  /external/guava/guava-tests/test/com/google/common/collect/
ImmutableClassToInstanceMapTest.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
75 Map<Class<?>, Object> in = Collections.emptyMap(); local
76 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in);
83 Map<Class<? extends Number>, Number> in = Maps.newHashMap(); local
84 in.put(Number.class, 0);
85 in.put(Double.class, Math.PI);
86 ClassToInstanceMap<Number> map = ImmutableClassToInstanceMap.copyOf(in);
117 Map<Class<?>, Object> in = Collections.emptyMap(); local
118 ClassToInstanceMap<Object> map = ImmutableClassToInstanceMap.copyOf(in);
123 ImmutableMap<Class<? extends Number>, ? extends Number> in local
    [all...]
  /external/jarjar/src/main/com/tonicsystems/jarjar/util/
IoUtil.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
41 InputStream in = new FileInputStream(from); local
45 pipe(in, out, buf);
50 in.close();
84 // treat them again and write them in output, wenn they not are empty directories
  /external/jmonkeyengine/engine/src/core/com/jme3/audio/
AudioStream.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
53 protected InputStream in; field in class:AudioStream
66 // This is what gets destroyed in reality
70 public void updateData(InputStream in, float duration){
71 if (id != -1 || this.in != null
    [all...]
  /external/jmonkeyengine/engine/src/core-plugins/com/jme3/font/plugins/
BitmapFontLoader.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
50 private BitmapFont load(AssetManager assetManager, String folder, InputStream in) throws IOException{
58 BufferedReader reader = new BufferedReader(new InputStreamReader(in));
169 InputStream in = null; local
171 in = info.openStream()
    [all...]
  /external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/
PFMLoader.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
76 private Image load(InputStream in, boolean needYFlip) throws IOException{
79 String fmtStr = readString(in);
88 String sizeStr = readString(in);
91 throw new IOException("Invalid size syntax in PFM file")
140 InputStream in = null; local
    [all...]
  /external/jmonkeyengine/engine/src/desktop/com/jme3/app/
AppletHarness.java 5 * Redistribution and use in source and binary forms, with or without
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
74 InputStream in = null; local
76 in = appCfg.openStream();
77 settings.load(in);
78 in.close()
    [all...]

Completed in 423 milliseconds

1 2 3 4 5 6 7 8 91011>>