Searched defs:is (Results 1 - 25 of 52) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/content/
H A DAssetTest.java11 * distributed under the License is distributed on an "AS IS" BASIS,
35 public static void verifyTextAsset(InputStream is) throws IOException { argument
41 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) {
51 readCount = is.read(buffer, 0, buffer.length);
55 readCount = is.read(buffer, buffer.length, 0);
59 is.close();
64 InputStream is = mAssets.open("text.txt");
65 verifyTextAsset(is);
/frameworks/base/obex/javax/obex/
H A DObexPacket.java12 * distributed under the License is distributed on an "AS IS" BASIS,
35 * @param is the input stream to read from.
39 public static ObexPacket read(InputStream is) throws IOException { argument
40 int headerId = is.read();
41 return read(headerId, is);
47 * @param is the stream to read from, assuming 1 byte have already been read.
51 public static ObexPacket read(int headerId, InputStream is) throws IOException { argument
53 int length = is.read();
54 length = (length << 8) + is.read();
63 bytesReceived = is
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardParser.java11 * distributed under the License is distributed on an "AS IS" BASIS,
40 * @param is The source to parse.
43 public abstract void parse(InputStream is) throws IOException, VCardException; argument
55 * <p>This happens when the first entry contains nested vCards, which is allowed in vCard 2.1.
71 * @param is The source to parse.
74 public abstract void parseOne(InputStream is) throws IOException, VCardException; argument
81 public void parse(InputStream is, VCardInterpreter interpreter) argument
84 parse(is);
92 * Actual cancel is done after parsing the current vcard.
H A DVCardParser_V21.java11 * distributed under the License is distributed on an "AS IS" BASIS,
32 * The spec is written in 1996, and currently various types of "vCard 2.1" exist.
35 * In stead, not only vCard spec but also real world vCard is considered.
38 * the PNG format to determine the type of image, while it is not allowed in
107 public void parse(InputStream is) throws IOException, VCardException { argument
108 mVCardParserImpl.parse(is);
112 public void parseOne(InputStream is) throws IOException, VCardException { argument
113 mVCardParserImpl.parseOne(is);
H A DVCardParser_V30.java11 * distributed under the License is distributed on an "AS IS" BASIS,
32 * This parser allows vCard format which is not allowed in the RFC, since
37 * have it and they uses non UTF-8 charsets. UTF-8 is recommended in RFC 2426,
38 * but it is not a must. We silently allow "CHARSET".
59 * "QUOTED-PRINTABLE" is not allowed in vCard 3.0 and not in this parser either,
86 public void parse(InputStream is) throws IOException, VCardException { argument
87 mVCardParserImpl.parse(is);
91 public void parseOne(InputStream is) throws IOException, VCardException { argument
92 mVCardParserImpl.parseOne(is);
H A DVCardParser_V40.java11 * distributed under the License is distributed on an "AS IS" BASIS,
32 * Currently this parser is based on vCard 4.0 specification rev 15 (partly).
74 public void parse(InputStream is) throws IOException, VCardException { argument
75 mVCardParserImpl.parse(is);
79 public void parseOne(InputStream is) throws IOException, VCardException { argument
80 mVCardParserImpl.parseOne(is);
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_huffman_decoding.cpp11 * distributed under the License is distributed on an "AS IS" BASIS,
123 int32 *is,
180 *is = v;
181 *(is + 1) = w;
182 *(is + 2) = x;
183 *(is + 3) = y;
190 int32 *is,
228 *is = x;
229 *(is + 1) = y;
233 *is
122 pvmp3_huffman_quad_decoding(struct huffcodetab *h, int32 *is, tmp3Bits *pMainData) argument
189 pvmp3_huffman_pair_decoding(struct huffcodetab *h, int32 *is, tmp3Bits *pMainData) argument
244 pvmp3_huffman_pair_decoding_linbits(struct huffcodetab *h, int32 *is, tmp3Bits *pMainData) argument
[all...]
H A Dpvmp3_huffman_parsing.cpp11 * distributed under the License is distributed on an "AS IS" BASIS,
44 int32 is[],
51 int32 is[], uncompressed data
125 int32 pvmp3_huffman_parsing(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], argument
197 (*pt_huff)(h, &is[i], pMainData);
212 (*pt_huff)(h, &is[i], pMainData);
227 (*pt_huff)(h, &is[i], pMainData);
243 (*pt_huff)(h, &is[i], pMainData);
257 (*pt_huff)(h, &is[i], pMainData);
274 (*pt_huff)(h, &is[
[all...]
H A Dpvmp3_dequantize_sample.cpp11 * distributed under the License is distributed on an "AS IS" BASIS,
58 int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS],
65 int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], dequantize output as (.)^(4/3)
187 void pvmp3_dequantize_sample(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], argument
294 /* 0 < abs(is[ss]) < 8192 */
296 int32 tmp = fxp_mul32_Q30((is[ss] << 16), power_1_third(pv_abs(is[ ss])));
305 is[ss] = (tmp >> temp);
309 is[ss] = 0;
314 is[s
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java11 * distributed under the License is distributed on an "AS IS" BASIS,
51 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage, argument
65 if (is instanceof NinePatchInputStream) {
66 NinePatchInputStream npis = (NinePatchInputStream) is;
91 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density);
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DPropertyNodesVerifier.java11 * distributed under the License is distributed on an "AS IS" BASIS,
56 public void verify(InputStream is, int vcardType) throws IOException, VCardException { argument
58 verify(is, vcardType, parser);
61 public void verify(InputStream is, int vcardType, final VCardParser parser) argument
65 parser.parse(is);
67 if (is != null) {
69 is.close();
H A DVCardVerifier.java11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
49 * "Round trip test" (import -> export -> import, or export -> import -> export) is not supported.
147 AndroidTestCase.fail("addInputEntry() is called.");
149 AndroidTestCase.fail("InputStream is already set");
159 AndroidTestCase.fail("setInputStream is called");
238 private void verifyWithInputStream(InputStream is) throws IOException { argument
252 parser.parse(is);
269 InputStream is = null;
271 is = new ByteArrayInputStream(vcard.getBytes(mCharset));
272 verifyWithInputStream(is);
[all...]
/frameworks/support/v4/java/android/support/v4/graphics/drawable/
H A DRoundedBitmapDrawableFactory.java11 * distributed under the License is distributed on an "AS IS" BASIS,
90 java.io.InputStream is) {
91 final RoundedBitmapDrawable drawable = create(res, BitmapFactory.decodeStream(is));
93 Log.w(TAG, "RoundedBitmapDrawable cannot decode " + is);
89 create(Resources res, java.io.InputStream is) argument
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java10 * distributed under the License is distributed on an "AS IS" BASIS,
27 * BitmapRegionDecoder is particularly useful when an original image is large and
50 * @param isShareable If this is true, then the BitmapRegionDecoder may keep a
51 * shallow reference to the input. If this is false,
53 * input data, and keep that. Even if sharing is allowed,
55 * copy of the input data. If an image is progressively encoded,
58 * @throws IOException if the image format is not supported or can not be decoded.
71 * this returns, so the descriptor can be used again as is.
75 * @param isShareable If this is tru
113 newInstance(InputStream is, boolean isShareable) argument
268 nativeNewInstance( InputStream is, byte[] storage, boolean isShareable) argument
[all...]
H A DMovie.java11 * distributed under the License is distributed on an "AS IS" BASIS,
51 public static Movie decodeStream(InputStream is) { argument
52 if (is == null) {
55 if (is instanceof AssetManager.AssetInputStream) {
56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
60 return nativeDecodeStream(is);
64 private static native Movie nativeDecodeStream(InputStream is); argument
71 InputStream is;
73 is = new FileInputStream(pathName);
78 return decodeTempStream(is);
90 decodeTempStream(InputStream is) argument
[all...]
H A DBitmapFactory.java11 * 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 this
131 * internal configuration. If it is nul
424 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument
596 decodeStream(InputStream is, Rect outPadding, Options opts) argument
630 decodeStreamInternal(InputStream is, Rect outPadding, Options opts) argument
648 decodeStream(InputStream is) argument
707 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
[all...]
/frameworks/base/libs/hwui/utils/
H A DSortedListImpl.cpp11 * distributed under the License is distributed on an "AS IS" BASIS,
88 const size_t is = itemSize(); local
91 ssize_t err = add(reinterpret_cast<const char*> (buffer) + i * is);
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiUtils.java11 * distributed under the License is distributed on an "AS IS" BASIS,
71 * Check if the given logical address is valid. A logical address is valid
72 * if it is one allocated for an actual device which allows communication
76 * @return true if the given address is valid
87 * if the address is not valid.
97 * Return the default device name for a logical address. This is the name
98 * by which the logical device is known to others until a name is
102 * @return default device name; empty string if the address is no
162 asImmutableList(final int[] is) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp11 * distributed under the License is distributed on an "AS IS" BASIS,
136 jobject is, // InputStream
141 SkStreamRewindable* stream = CopyJavaInputStream(env, is, storage);
204 // happens earlier than AutoDecoderCancel object is added
135 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DColladaParser.java11 * distributed under the License is distributed on an "AS IS" BASIS,
74 public void init(InputStream is, String rootDir) { argument
85 mDom = db.parse(is);
138 // Material is just a link to the effect
276 // This will find the actual texture node, which is sometimes hidden behind a sampler
281 // Check to see if the image file is hidden by a sampler surface link combo
313 // Now find what type it is
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DAsmGenerator.java11 * distributed under the License is distributed on an "AS IS" BASIS,
40 * Class that generates a new JAR from a list of classes, some of which are to be kept as-is
53 /** All classes to output as-is, except if they have native methods. */
57 /** All files that are to be copied as-is. */
167 // if the renamed class is null, this is the beginning of a section
229 /** Sets the map of classes to output as-is, except if they have native methods */
239 /** Sets the map of files to output as-is. */
254 InputStream is = ClassLoader.getSystemResourceAsStream(name);
255 ClassReader cr = new ClassReader(is);
439 inputStreamToByteArray(InputStream is) argument
[all...]
/frameworks/ex/framesequence/src/android/support/rastermill/
H A DFrameSequence.java11 * distributed under the License is distributed on an "AS IS" BASIS,
43 private static native FrameSequence nativeDecodeStream(InputStream is, byte[] tempStorage); argument
121 * Note: {@link #destroy()} *must* be called before the object is GC'd to free native resources
124 * remain ref'd while it is in use
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DDiskBasedCache.java11 * distributed under the License is distributed on an "AS IS" BASIS,
41 * directory. The default disk usage size is 5MB, but is configurable.
339 /** The size of the data identified by this CacheHeader. (This is not
384 * @param is The InputStream to read from.
387 public static CacheHeader readHeader(InputStream is) throws IOException { argument
389 int magic = readInt(is);
394 entry.key = readString(is);
395 entry.etag = readString(is);
399 entry.serverDate = readLong(is);
484 read(InputStream is) argument
499 readInt(InputStream is) argument
519 readLong(InputStream is) argument
538 readString(InputStream is) argument
556 readStringStringMap(InputStream is) argument
[all...]
/frameworks/base/cmds/content/src/com/android/commands/content/
H A DContent.java11 ** distributed under the License is distributed on an "AS IS" BASIS,
42 * This class is a command line utility for manipulating content. A client
64 * # Query \"name\" and \"value\" columns from secure settings where \"name\" is equal to"
80 + " <BINDING> binds a typed value to a column and is formatted:\n"
91 + " <WHERE> is a SQL style where clause in quotes (You have to escape single quotes"
107 + " <PROJECTION> is a list of colon separated column names and is formatted:\n"
109 + " <SORT_ORDER> is the order in which rows in the result should be sorted.\n"
111 + " # Select \"name\" and \"value\" columns from secure settings where \"name\" is "
118 + " <METHOD> is th
525 copy(InputStream is, OutputStream os) argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DRegisteredServicesCache.java11 * distributed under the License is distributed on an "AS IS" BASIS,
65 * Cache of registered services. This cache is lazily built by interrogating
68 * {@link #invalidateCache(int)} when a user is started, since
122 InputStream is = null;
124 is = file.openRead();
125 readPersistentServicesLocked(is);
129 IoUtils.closeQuietly(is);
172 // Don't regenerate the services map when the package is removed or its
179 // if it's a removal, is it part of an update-in-place step?
183 // package is goin
580 readPersistentServicesLocked(InputStream is) argument
[all...]

Completed in 881 milliseconds

123