/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 115 InputStream is = getActivity().getResources().openRawResource(MOVIE); local 116 byte[] bytes = inputStreamToBytes(is); 118 is.close(); 126 InputStream is = getActivity().getResources() local 128 mMovie = Movie.decodeStream(is); 129 is.close();
|
TypefaceTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 172 InputStream is = getContext().getAssets().open("samplefont.ttf"); local 176 while ((readLength = is.read(dataBuffer)) != -1) { 179 is.close();
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
PermissionTestService.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 131 // testNetworkAccess is performed asynchronously and calls testNetworkAccessDone. 224 Log.e(TAG, "Test is bad, could not create the URL in " 228 InputStream is = null; local 230 is = url.openStream(); 233 int value = is.read(); 246 if (is != null) { 248 is.close();
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ExternalStorage.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 20 //class is in a sub-package. 195 // no error checking, and assumes the picture is small (does not 196 // try to copy it in chunks). Note that if external storage is 198 InputStream is = getResources().openRawResource(R.drawable.balloons); local 200 byte[] data = new byte[is.available()]; 201 is.read(data); 203 is.close(); 206 // Tell the media scanner about the new file so that it is 262 InputStream is = getResources().openRawResource(R.drawable.balloons); local 324 InputStream is = getResources().openRawResource(R.drawable.balloons); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
StaticTriangleRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 46 * provide a programming model that is closer to the C OpenGL ES APIs, which 96 * surface is created. 133 * Usually, the first thing one might want to do is to clear 134 * the screen. The most efficient way of doing this is to use 173 * be set when the viewport is resized. 189 InputStream is = mContext.getResources().openRawResource( local 193 bitmap = BitmapFactory.decodeStream(is); 196 is.close() [all...] |
TriangleRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 68 * surface is created. 91 InputStream is = mContext.getResources() local 95 bitmap = BitmapFactory.decodeStream(is); 98 is.close(); 120 * Usually, the first thing one might want to do is to clear 121 * the screen. The most efficient way of doing this is to use 160 * be set when the viewport is resized.
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
DeflaterInputStreamTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 31 String testStr = "Hi,this is a test"; 33 InputStream is; field in class:DeflaterInputStreamTest 40 DeflaterInputStream dis = new DeflaterInputStream(is); 62 DeflaterInputStream dis = new DeflaterInputStream(is); 86 DeflaterInputStream dis = new DeflaterInputStream(is); 98 DeflaterInputStream dis = new DeflaterInputStream(is); 108 DeflaterInputStream dis = new DeflaterInputStream(is); 131 DeflaterInputStream dis = new DeflaterInputStream(is); [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
ClassLoaderTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 52 assertTrue("default domain is not dynamic", a.getProtectionDomain().implies(p)); 135 * and the same classloader. It is expected that both threads succeed but 171 java.io.InputStream is = null; local 173 is = u.openStream(); 174 assertNotNull("Resource returned is invalid", is); 175 is.close(); 189 java.io.InputStream is = null local 206 java.io.InputStream is = cl.getResourceAsStream("hyts_Foo.c"); local 264 InputStream is = getResourceAsStream(path + "A.class"); local [all...] |
ProcessTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 47 InputStream is = proc.getInputStream(); local 50 int c = is.read(); 55 is.close(); 80 // send data, and check if it is echoed back correctly 83 String str3 = "Here is some more data.\n"; 94 InputStream is = proc.getInputStream(); local 97 int c = is.read(); 102 is.close() [all...] |
/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/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ResourceExtractor.java | 2 // Use of this source code is governed by a BSD-style license that can be 117 InputStream is = null; local 120 is = manager.open(file); 128 while ((count = is.read(buffer, 0, BUFFER_SIZE)) != -1) { 141 if (is != null) { 142 is.close(); 172 // TODO(yusufo): Figure out why remove is required here. 219 // timestamp file is already up-to date. 245 : "Must be called before startExtractingResources is called"; 252 * currently specified locale. This behavior can be changed with this function and is [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, 73 * byte count} of the decoded bitmap is less than or equal to the {@link 75 * bitmap. This can be because the intrinsic size is smaller, or its 76 * size post scaling (for density / sample size) is smaller.</p> 89 * provided, clipping if the output content size (post scaling) is larger 119 * image, returning a smaller image to save memory. The sample size is 122 * an image that is 1/4 the width/height of the original, and 1/16 the 123 * number of pixels. Any value <= 1 is treated the same as 1. Note: the 130 * If this is non-null, the decoder will try to decode into thi 446 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();
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
ImageUtils.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 85 * @return true if the MimeType type is image 137 * no bitmap is returned (null) then padding is 140 * image should be completely decoded, or just is size returned. 142 * decoded, or, if opts is non-null, if opts requested only the 147 InputStream is = null; local 150 is = factory.createInputStream(); 151 final int orientation = Exif.getOrientation(is, -1) 303 InputStream is = null; local [all...] |
/frameworks/support/v4/kitkat/android/support/v4/print/ |
PrintHelperKitkat.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 73 * this is a black and white image 77 * this is a color image (default) 120 * @param colorMode The color mode which is one of 130 * @param orientation The page orientation which is one of 140 * @return The preferred orientation which is one of 150 * @return The color mode which is one of {@link #COLOR_MODE_COLOR} 283 * @throws FileNotFoundException if <code>Uri</code> is not pointing to a valid image. 482 // Make sure sample size is reasonabl 510 InputStream is = null; local [all...] |
/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...] |