/cts/tests/tests/graphics/src/android/graphics/cts/ |
MovieTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 113 InputStream is = getActivity().getResources().openRawResource(MOVIE); local 114 byte[] bytes = inputStreamToBytes(is); 116 is.close(); 124 InputStream is = getActivity().getResources() local 126 mMovie = Movie.decodeStream(is); 127 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();
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
VideoProvider.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 63 InputStream is = null; local 70 is = new BufferedInputStream(urlConnection.getInputStream()); 84 if (null != is) { 86 is.close();
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
VideoProvider.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 157 InputStream is = null; local 164 is = new BufferedInputStream(urlConnection.getInputStream()); 178 if (null != is) { 180 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/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); 78 is.close(); 93 InputStream is = certUrl.openStream(); local 94 Collection certs = fact.generateCertificates(is); 115 InputStream is = certUrl.openStream(); local 116 CRL crl = fact.generateCRL(is); 136 InputStream is = certUrl.openStream() local [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/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
Downsampler.java | 80 // 5MB. This is the max image header size we can handle, we preallocate a much smaller buffer but will resize up to 87 * for the given InputStream is available, the operation is much less expensive in terms of memory. 91 * those of the image for the given InputStream is provided. 94 * @param is An {@link InputStream} to the data for the image. 98 * @return A new bitmap containing the image from the given InputStream, or recycle if recycle is not null. 103 public Bitmap decode(InputStream is, BitmapPool pool, int outWidth, int outHeight, DecodeFormat decodeFormat) { 111 ExceptionCatchingInputStream.obtain(new RecyclableBufferedInputStream(is, bytesForStream)); 144 // BitmapFactory swallows exceptions during decodes and in some cases when inBitmap is non null, may catch 173 // If we're rotating the image +-90 degrees, we need to downsample accordingly so the image width is [all...] |
/external/jetty/src/java/org/eclipse/jetty/server/ |
ResourceCache.java | 9 // The Eclipse Public License is available at 12 // The Apache License v2.0 is available at 176 * if no matching entry was found. If the content exists but is not cachable, 177 * then a {@link ResourceAsHttpContent} instance is return. If 178 * the resource does not exist, then null is returned. 184 // Is the content in this cache? 195 // Is the content in the parent cache? 209 * @return True if the resource is cacheable. The default implementation tests the cache sizes. 302 InputStream is = resource.getInputStream(); local 303 buffer.readFrom(is,len) 329 InputStream is = resource.getInputStream(); 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/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/ |
HttpTransportSE.java | 4 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * sell copies of the Software, and to permit persons to whom the Software is 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 157 // SOAPAction is not a valid header for VER12 so do not add 204 InputStream is; local 218 // ignoring case since users found that all smaller case is used on some server 219 // and even if it is wrong according to spec, we rather have it work.. 226 is = getUnZippedInputStream(connection.openInputStream()); 228 is = connection.openInputStream() [all...] |
/external/linux-tools-perf/src/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, 30 * log records, etc.). The queue is size bounded and will drop old data if the 48 /** Flag value: Content is human-readable UTF-8 text (can be combined with IS_GZIPPED). */ 54 /** Flag value for serialization only: Value is a byte array, not a file descriptor */ 58 * Broadcast Action: This is broadcast when a new entry is added in the dropbox. 62 * <p class="note">This is a protected intent that can only be sent 182 * @return the uncompressed text contents of the entry, null if the entry is not text. 188 InputStream is = null 208 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 461 InputStream is = null; local [all...] |
/frameworks/base/rs/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/services/core/java/com/android/server/updates/ |
ConfigUpdateInstallReceiver.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 74 Slog.i(TAG, "Not installing, new version is <= current version"); 134 InputStream is = c.getContentResolver().openInputStream(content); local 136 return Streams.readFullyNoClose(is); 138 is.close(); 169 // this is an optional value- if the required field is NONE then we ignore it
|
/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/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/ |
MusicProvider.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 102 // Media is stored relative to JSON file 132 InputStream is = null; local 136 is = new BufferedInputStream(urlConnection.getInputStream()); 149 if (null != is) { 151 is.close();
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/ |
BluetoothPbapRequest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 62 /* in case request is aborted before can be executed */ 71 /* make sure final flag for GET is used (PBAP spec 6.2.2) */ 82 InputStream is = mOp.openInputStream(); local 83 readResponse(is); 84 is.close();
|