/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactory4Test.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 71 InputStream is = Support_Resources.getResourceStream("hyts_badpem.cer"); local 73 fact.generateCertificate(is); 77 is.close(); 91 InputStream is = certUrl.openStream(); local 92 Collection certs = fact.generateCertificates(is); 113 InputStream is = certUrl.openStream(); local 114 CRL crl = fact.generateCRL(is); 134 InputStream is = certUrl.openStream() local [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_HttpTests.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 67 InputStream is; local 74 is = connector.getInputStream(); 77 c = is.read(); 79 c = is.read(); 81 c = is.read(); 82 is.close(); 94 is = connector.getInputStream(); 97 c = is.read() [all...] |
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
CharInfo.java | 13 * distributed under the License is distributed on an "AS IS" BASIS, 87 /** This flag is an optimization for HTML entities. It false if entities 97 /** Array of values is faster access than a set of bits 99 * the value is true if the character in an attribute value 104 /** Array of values is faster access than a set of bits 106 * the value is true if the character in a text node 111 /** An array of bits to record if the character is in the set. 112 * Although information in this array is complete, the 113 * isSpecialAttrASCII array is used first because access to its value 209 InputStream is = null; local [all...] |
Encodings.java | 13 * distributed under the License is distributed on an "AS IS" BASIS, 40 * This class is not a public API. It is only public because it 41 * is used outside of this package. 57 * This is not a public API. 61 * @throws UnsupportedEncodingException There is no convertor 107 * This is not a public API. 110 * @return The object that is used to determine if 151 * A fast and cheap way to uppercase a String that is 317 final InputStream is; local [all...] |
OutputPropertiesFactory.java | 13 * distributed under the License is distributed on an "AS IS" BASIS, 38 * This class is a factory to generate a set of default properties 42 * may be modified to non-default values before the SerializerFactory is used to 51 * that is used to create or configure a serializer. Here are the non-standard keys: 56 * properties value is a the number of whitespaces to indent by per 60 * This non-standard property key is used to set the name of the fully qualified 66 * This non-standard property key is used to specify the name of the property file 68 * file is has the name of the entity and the numeric (base 10) value 72 * This non-standard property key is used to set a value of "yes" if the href values for HTML serialization shoul 357 InputStream is = null; local [all...] |
/external/junit/src/junit/runner/ |
BaseTestRunner.java | 91 * Returns the Test corresponding to the given suite. This is 238 InputStream is= null; local 240 is= new FileInputStream(getPreferencesFile()); 242 getPreferences().load(is); 245 if (is != null) 246 is.close();
|
/external/linux-tools-perf/config/ |
utilities.mak | 12 # This is used as the common way to specify 14 # newlines; the default is a bizarre string. 27 # The only solution is to change each newline into 47 # the default escape is a bizarre string. 49 # NOTE: The escape is used directly as a string constant 50 # in an `awk' program that is delimited by shell 63 # the default escape is a bizarre string. 65 # NOTE: The escape is used directly as an extended regular 66 # expression constant in an `awk' program that is 70 # (The bash shell has a bug where `{gsub(...),...}' is [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
TextureLibrary.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 34 * requesting parties via allocateTexture(). However, the texture data itself is not immediately 37 * various game systems and while the texture data itself is streamed in or loaded as necessary. 67 * Creates a Texture object that is mapped to the passed resource id. If a texture has already 68 * been allocated for this id, the previously allocated Texture object is returned. 81 /** Loads a single texture into memory. Does nothing if the texture is already loaded. */ 160 InputStream is = context.getResources().openRawResource(texture.resource); local 163 bitmap = BitmapFactory.decodeStream(is); 166 is.close() [all...] |
/frameworks/base/core/java/android/os/ |
DropBoxManager.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * log records, etc.). The queue is size bounded and will drop old data if the 51 /** Flag value: Content is human-readable UTF-8 text (can be combined with IS_GZIPPED). */ 57 /** Flag value for serialization only: Value is a byte array, not a file descriptor */ 61 * Broadcast Action: This is broadcast when a new entry is added in the dropbox. 65 * <p class="note">This is a protected intent that can only be sent 185 * @return the uncompressed text contents of the entry, null if the entry is not text. 191 InputStream is = null 211 InputStream is; local [all...] |
/frameworks/base/graphics/java/android/graphics/ |
BitmapFactory.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 65 * set in the Options structure is a way to see if the bitmap was reused, 88 * image, returning a smaller image to save memory. The sample size is 91 * an image that is 1/4 the width/height of the original, and 1/16 the 92 * number of pixels. Any value <= 1 is treated the same as 1. Note: the 99 * If this is non-null, the decoder will try to decode into this 100 * internal configuration. If it is null, or the request cannot be met, 111 * If dither is true, the decoder will attempt to dither the decoded 120 * if {@link #inScaled} is set (which it is by default} and thi 373 InputStream is = null; local [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
Program.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 31 * Program is a base class for all the objects that modify 181 * corresponding location is sampled 250 InputStream is = resources.openRawResource(resourceID); local 263 int bytesRead = is.read(str, strLength, bytesLeft); 270 is.close();
|
/frameworks/base/test-runner/src/junit/runner/ |
TestCaseClassLoader.java | 13 * of these packages is delegated to the system class 16 * The list of excluded package paths is specified in 17 * a properties file "excluded.properties" that is located in 198 InputStream is= getClass().getResourceAsStream(EXCLUDED_FILE); local 199 if (is == null) 203 p.load(is); 209 is.close();
|
/libcore/luni/src/main/java/java/util/jar/ |
JarFile.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 32 * {@code JarFile} is used to read jar entries and their associated data from 51 // The entry for the MANIFEST.MF file before it is read. 67 JarFileInputStream(InputStream is, ZipEntry ze, 69 super(is); 161 * if this JAR file is signed whether it must be verified. 179 * if this JAR filed is signed whether it must be verified. 214 * if this JAR filed is signed whether it must be verified. 232 * if this {@code JarFile} is closed 290 InputStream is = super.getInputStream(manifestEntry); local 343 InputStream is = super.getInputStream(entry); local [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
JarURLConnectionImpl.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 45 * This class is responsible for connecting and retrieving resources from a Jar 66 * if the URL is malformed 68 * if there is a problem opening the connection. 142 final InputStream is = jarFileURL.openConnection().getInputStream(); local 152 while ((nbytes = is.read(buf)) > -1) { 169 if (is != null) { 170 is.close(); 241 // the type for jar file itself is always "x-java/jar [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldDataInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 210 DataInputStream is = new DataInputStream(new ByteArrayInputStream(new byte[testLength])); local 215 is.readFully(byteArray, 0, -1); 222 is.readFully(byteArray, 0, byteArray.length + 1); 229 is.readFully(byteArray, 1, byteArray.length); 236 is.readFully(byteArray, -1, byteArray.length); 243 is.readFully(null, 0, 1); 249 is = new DataInputStream(null); 252 is.readFully(byteArray, 0, 1) [all...] |
/libcore/luni/src/test/java/libcore/java/util/jar/ |
OldJarFileTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 120 InputStream is = jf.getInputStream(jf.getEntry(entryName)); local 121 assertTrue("Returned invalid stream", is.available() > 0); 122 int r = is.read(b, 0, 1024); 123 is.close();
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidZipStressTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 36 * JarEntry.getCertificates() is really slow. http://b/1046174 46 InputStream is = jarFile.getInputStream(je); local 47 while (is.read(readBuffer, 0, readBuffer.length) != -1) { 49 is.close(); 76 // Boot-time package scan is slow. Not expected to fail. Please see log if 123 * some internal ZLIB buffers in size, so this test is trying to execute a
|
OldZipFileTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 38 public byte[] getAllBytesFromStream(InputStream is) throws IOException { 42 while ((iRead = is.read(buf, 0, buf.length)) != -1) { 134 InputStream is = null; local 139 is = zfile.getInputStream(zentry); 148 * is called before a test is executed. 164 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); local 166 byte[] rbuf = getAllBytesFromStream(is); [all...] |
/libcore/luni/src/test/java/tests/api/java/lang/ |
ProcessTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 50 InputStream is = proc.getInputStream(); local 53 int c = is.read(); 58 is.close(); 78 // send data, and check if it is echoed back correctly 81 String str3 = "Here is some more data.\n"; 89 InputStream is = proc.getInputStream(); local 92 int c = is.read(); 97 is.close() [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
StreamItemPopulatorActivity.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 56 "This is a public service announcement. If you were even close to considering visiting" 197 InputStream is = getResources().openRawResource(resourceId); local 198 return readInputStreamFully(is); 201 protected byte[] readInputStreamFully(InputStream is) { 203 byte[] buffer = new byte[is.available()]; 204 is.read(buffer); 205 is.close(); 248 // We don't care. This is just for test purposes [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
Search.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 52 // TODO Check with UX whether this is correct 105 // Range is sent in the form first-last (e.g. 0-9) 116 InputStream is = resp.getInputStream(); local 118 SearchParser sp = new SearchParser(is, svc, filter); 122 is.close();
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropLoader.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 104 * Gets a bitmap at a given URI that is downsampled so that both sides are 119 InputStream is = null; local 122 is = context.getContentResolver().openInputStream(uri); 125 BitmapFactory.decodeStream(is, null, options); 146 // Make sure sample size is reasonable 154 is.close(); 155 is = context.getContentResolver().openInputStream(uri); 156 return BitmapFactory.decodeStream(is, null, options) 179 InputStream is = null; local [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
FileUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 43 * It is not possible to instantiate this class 54 * storage is not currnetly mounted 105 InputStream is = null; local 107 is = context.getResources().openRawResource(maskRawResourceId); 108 bitmap = BitmapFactory.decodeStream(is); 118 if (is != null) { 119 is.close(); 196 InputStream is = null local [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarDebugActivity.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 105 * Starts spinner while task is running. 113 InputStream is = null; local 123 is = new FileInputStream(inFile); 131 int len = is.read(buf); 145 // Tell the media scanner about the new file so that it is 158 if (is != null) { 159 is.close();
|
/cts/tests/src/android/opengl/cts/ |
CompressedTextureLoader.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 96 /* .pvr header is described by the following c struct 139 protected static PVRHeader readPVRHeader(InputStream is) { 143 is.read(headerData); 212 private static ByteBuffer read(InputStream is, int dataSize) { 219 is.read(ioBuffer, 0, chunkSize); 231 InputStream is = null; local 233 is = res.openRawResource(id); 238 PVRHeader header = readPVRHeader(is); 399 InputStream is = null; local [all...] |