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

12

/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/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/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/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java11 * distributed under the License is distributed on an "AS IS" BASIS,
71 // TODO: This is very inefficient and should be done in native by Skia
91 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage, argument
93 return nativeDecodeStream(is, storage, padding, opts, false, 1.f);
97 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage, argument
113 if (is instanceof NinePatchInputStream) {
114 NinePatchInputStream npis = (NinePatchInputStream) is;
137 bm = Bitmap_Delegate.createBitmap(is, bitmapCreateFlags, density);
/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,
46 public static Movie decodeStream(InputStream is) { argument
47 if (is == null) {
50 if (is instanceof AssetManager.AssetInputStream) {
51 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
55 return nativeDecodeStream(is);
59 private static native Movie nativeDecodeStream(InputStream is); argument
66 InputStream is;
68 is = new FileInputStream(pathName);
73 return decodeTempStream(is);
85 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
402 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument
574 decodeStream(InputStream is, Rect outPadding, Options opts) argument
608 decodeStreamInternal(InputStream is, Rect outPadding, Options opts) argument
626 decodeStream(InputStream is) argument
685 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/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp11 * distributed under the License is distributed on an "AS IS" BASIS,
139 jobject is, // InputStream
144 SkStreamRewindable* stream = CopyJavaInputStream(env, is, storage);
206 // happens earlier than AutoDecoderCancel object is added
138 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DSignalClusterView.java11 * distributed under the License is distributed on an "AS IS" BASIS,
120 public void setIsAirplaneMode(boolean is, int airplaneIconId) { argument
121 mIsAirplaneMode = is;
/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/volley/src/com/android/volley/toolbox/
H A DDiskBasedCache.java11 * distributed under the License is distributed on an "AS IS" BASIS,
40 * directory. The default disk usage size is 5MB, but is configurable.
333 /** The size of the data identified by this CacheHeader. (This is not
374 * @param is The InputStream to read from.
377 public static CacheHeader readHeader(InputStream is) throws IOException { argument
379 int magic = readInt(is);
384 entry.key = readString(is);
385 entry.etag = readString(is);
389 entry.serverDate = readLong(is);
470 read(InputStream is) argument
485 readInt(InputStream is) argument
505 readLong(InputStream is) argument
524 readString(InputStream is) argument
542 readStringStringMap(InputStream is) argument
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothSocket.java11 * distributed under the License is distributed on an "AS IS" BASIS,
42 * <p>The interface for Bluetooth Sockets is similar to that of TCP sockets:
45 * socket. When a connection is accepted by the {@link BluetoothServerSocket},
50 * <p>The most common type of Bluetooth socket is RFCOMM, which is the type
51 * supported by the Android APIs. RFCOMM is a connection-oriented, streaming
52 * transport over Bluetooth. It is also known as the Serial Port Profile (SPP).
58 * This call will block until a connection is established or the connection
64 * <p>Once the socket is connected, whether initiated as a client or accepted
70 * <p>{@link BluetoothSocket} is threa
480 waitSocketSignal(InputStream is) argument
500 readAll(InputStream is, byte[] b) argument
514 readInt(InputStream is) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java11 * distributed under the License is distributed on an "AS IS" BASIS,
73 InputStream is, boolean isShareable) {
75 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable);
110 public static DumbBitmapRegionDecoder newInstance(InputStream is) { argument
111 Bitmap b = BitmapFactory.decodeStream(is);
266 InputStream is = mContext.getContentResolver().openInputStream(mUri);
267 return new BufferedInputStream(is);
272 InputStream is = regenerateInputStream();
274 SimpleBitmapRegionDecoderWrapper.newInstance(is, false);
275 Utils.closeSilently(is);
72 newInstance( InputStream is, boolean isShareable) argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java11 * distributed under the License is distributed on an "AS IS" BASIS,
27 * TestWebServer is a simulated controllable test server that
62 /* Indicator for whether this server is configured as a HTTP/1.1
122 * @param timeout Indicates the period of time to wait until a socket is
192 * When this value is set, the server will respond to a request with
216 * The AcceptThread is responsible for initiating worker threads
230 // Socket timeout functionality is not available yet
322 * connection. If pipelining is turned on, this will allow this
324 * connection is closed.
432 * @param is Inputstrea
435 readOneLine(InputStream is) argument
473 readData(InputStream is, int length) argument
497 parseStatusLine(InputStream is) argument
567 parseHeader(InputStream is) argument
605 readHeaders(InputStream is) argument
626 readContent(InputStream is) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DVideoView.java11 * distributed under the License is distributed on an "AS IS" BASIS,
69 * change from its previously returned value when the VideoView is restored.
87 // mCurrentState is a VideoView object's current state.
88 // mTargetState is the state that a method caller intends to reach.
150 // the size is fixed
163 // only the width is fixed, adjust the height to match aspect ratio if possible
171 // only the height is fixed, adjust the width to match aspect ratio if possible
262 * @param is input stream containing the subtitle data. It will be
270 public void addSubtitleSource(InputStream is, MediaFormat format) { argument
272 mPendingSubtitleTracks.add(Pair.create(is, forma
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DBitmapDrawable.java11 * distributed under the License is distributed on an "AS IS" BASIS,
85 * instead to specify a bitmap to draw with and ensure the correct density is set.
155 public BitmapDrawable(java.io.InputStream is) { argument
156 this(new BitmapState(BitmapFactory.decodeStream(is)), null);
158 android.util.Log.w("BitmapDrawable", "BitmapDrawable cannot decode " + is);
166 public BitmapDrawable(Resources res, java.io.InputStream is) { argument
167 this(new BitmapState(BitmapFactory.decodeStream(is)), null);
170 android.util.Log.w("BitmapDrawable", "BitmapDrawable cannot decode " + is);
273 * If the bitmap is null calling this method has no effect.
287 * Indicates whether the mipmap hint is enable
[all...]
H A DDrawable.java11 * distributed under the License is distributed on an "AS IS" BASIS,
49 * A Drawable is a general abstraction for "something that can be drawn." Most
57 * mechanisms for its client to interact with what is being drawn:
61 * Drawable where it is drawn and how large it should be. All Drawables
67 * information about how to frame content that is placed inside of them.
68 * For example, a Drawable that is intended to be the frame for a button
73 * in which state it is to be drawn, such as "focused", "selected", etc.
77 * continuous controller that can modify the Drawable is displayed, such as
84 * simple way to do this is through the system facilities such as
106 * whose overall size is modifie
788 createFromStream(InputStream is, String srcName) argument
801 createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName) argument
815 createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName, BitmapFactory.Options opts) argument
[all...]

Completed in 641 milliseconds

12