/frameworks/base/core/java/android/pim/vcard/ |
H A D | VCardParser.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 30 * local encoding to it. For example, Japanese phone career uses Shift_JIS, which is 32 * In some exreme case, it is allowed for vCard to have different charsets in one vCard. 39 * @param is The source to parse. 43 public void parse(InputStream is, VCardInterpreter interepreter) argument 51 * Actual cancel is done after parsing the current vcard.
|
H A D | VCardParser_V21.java | 11 * 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 101 public void parse(InputStream is, VCardInterpreter interepreter) argument 103 mVCardParserImpl.parse(is, interepreter);
|
H A D | VCardParser_V30.java | 11 * 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". 58 * "QUOTED-PRINTABLE" is not allowed in vCard 3.0 and not in this parser either, 79 public void parse(InputStream is, VCardInterpreter interepreter) argument 81 mVCardParserImpl.parse(is, interepreter);
|
H A D | VCardParser_V40.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 32 * Currently this parser is based on vCard 4.0 specification rev 11. 69 public void parse(InputStream is, VCardInterpreter interepreter) argument 71 mVCardParserImpl.parse(is, interepreter);
|
H A D | VCardParserImpl_V21.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 142 * The encoding type for deconding byte streams. This member variable is 146 * "Encoding" in vCard is different from "Charset". It is mainly used for 166 * Set for storing unkonwn TYPE attributes, which is not acceptable in vCard 174 * Set for storing unkonwn VALUE attributes, which is not acceptable in 181 // In some cases, vCard is nested. Currently, we only consider the most 244 * @return true when a given property name is a valid property name. 367 * accordingly when this function is called outside this function itself. 370 * @param useCache When true, line is obtaine 1017 parse(InputStream is, VCardInterpreter interpreter) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | AssetTest.java | 11 * 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/core/tests/coretests/src/android/pim/vcard/test_utils/ |
H A D | PropertyNodesVerifier.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 55 public void verify(InputStream is, int vcardType) throws IOException, VCardException { argument 57 verify(is, vcardType, parser); 60 public void verify(InputStream is, int vcardType, final VCardParser parser) argument 63 parser.parse(is, this); 65 if (is != null) { 67 is.close();
|
H A D | ContentValuesVerifierElem.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 55 public void verify(InputStream is, int vcardType) throws IOException, VCardException { argument 60 vCardParser.parse(is, builder); 62 if (is != null) { 64 is.close();
|
H A D | VCardVerifier.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 51 * "Round trip test" (import -> export -> import, or export -> import -> export) is not supported. 150 AndroidTestCase.fail("addInputEntry() is called."); 152 AndroidTestCase.fail("InputStream is already set"); 162 AndroidTestCase.fail("setInputStream is called"); 237 private void verifyWithInputStream(InputStream is) throws IOException { argument 261 parser.parse(is, interpreter); 269 InputStream is = null; 271 is = new ByteArrayInputStream(vcard.getBytes(mCharset)); 272 verifyWithInputStream(is); [all...] |
/frameworks/base/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_huffman_decoding.cpp | 11 * 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 D | pvmp3_huffman_parsing.cpp | 11 * 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 D | pvmp3_dequantize_sample.cpp | 11 * 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/opengl/java/android/opengl/ |
H A D | Texture.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 48 private int readInt16(InputStream is) throws IOException { argument 49 return is.read() | (is.read() << 8); 52 public Texture(InputStream is) throws IOException { argument 53 this.width = readInt16(is); 54 this.height = readInt16(is); 63 int nread = is.read(arr, idx, nbytes - idx);
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/ |
H A D | AdbUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 82 * @param is input stream of the socket connection 88 public static boolean sendAdbCmd(InputStream is, OutputStream os, argument 94 int read = is.read(buf); 106 * The proxying is transparent, e.g. if a socket is returned, then it can be written to and 107 * read from as if it is directly connected to the target
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Movie.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 45 public static native Movie decodeStream(InputStream is); argument 50 InputStream is; 52 is = new FileInputStream(pathName); 57 return decodeTempStream(is); 60 private static Movie decodeTempStream(InputStream is) { argument 63 moov = decodeStream(is); 64 is.close(); 69 If it happened on close, moov is still valid.
|
H A D | BitmapRegionDecoder.java | 10 * distributed under the License is distributed on an "AS IS" BASIS, 28 * BitmapRegionDecoder is particularly useful when an original image is large and 48 * @param isShareable If this is true, then the BitmapRegionDecoder may keep a 49 * shallow reference to the input. If this is false, 51 * input data, and keep that. Even if sharing is allowed, 53 * copy of the input data. If an image is progressively encoded, 56 * @throws IOException if the image format is not supported or can not be decoded. 69 * this returns, so the descriptor can be used again as is. 73 * @param isShareable If this is tru 106 newInstance(InputStream is, boolean isShareable) argument 259 nativeNewInstance( InputStream is, byte[] storage, boolean isShareable) argument [all...] |
H A D | BitmapFactory.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 55 * image, returning a smaller image to save memory. The sample size is 58 * an image that is 1/4 the width/height of the original, and 1/16 the 59 * number of pixels. Any value <= 1 is treated the same as 1. Note: the 67 * If this is non-null, the decoder will try to decode into this 68 * internal configuration. If it is null, or the request cannot be met, 79 * If dither is true, the decoder will attempt to dither the decoded 88 * if {@link #inScaled} is set (which it is by default} and this 92 * <p>If this is 316 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument 439 decodeStream(InputStream is, Rect outPadding, Options opts) argument 524 decodeStream(InputStream is) argument 595 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
H A D | ScriptC.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 60 InputStream is = resources.openRawResource(id); 63 setScript(is); 65 is.close(); 72 public void setScript(InputStream is) throws IOException { argument 83 int bytesRead = is.read(buf, currentPos, bytesLeft);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 68 // TODO: This is very inefficient and should be done in native by Skia 93 /*package*/ static Bitmap nativeDecodeStream(InputStream is, byte[] storage, argument 103 if (is instanceof NinePatchInputStream) { 104 NinePatchInputStream npis = (NinePatchInputStream) is; 127 bm = Bitmap_Delegate.createBitmap(is, true, density);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 11 * distributed under the License is distributed on an "AS IS" BASIS, 138 with the same descriptor. This is only required if we didn't dup the 139 file descriptor, but it is OK to do it all the time. 156 jobject is, // InputStream 160 SkStream* stream = CreateJavaInputStreamAdaptor(env, is, storage, 1024); 217 // happens earlier than AutoDecoderCancel object is added 155 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument
|
H A D | BitmapFactory.cpp | 51 // the host lives longer than we do, so a raw ptr is safe 70 // You have to copy the data because it is owned by the png reader 228 // happens earlier than AutoDecoderCancel object is added 304 jobject is, // InputStream 309 SkStream* stream = CreateJavaInputStreamAdaptor(env, is, storage, 0); 356 with the same descriptor. This is only required if we didn't dup the 357 file descriptor, but it is OK to do it all the time. 303 nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options) argument
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | BitmapDrawable.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 145 public BitmapDrawable(java.io.InputStream is) { argument 146 this(new BitmapState(BitmapFactory.decodeStream(is)), null); 148 android.util.Log.w("BitmapDrawable", "BitmapDrawable cannot decode " + is); 155 public BitmapDrawable(Resources res, java.io.InputStream is) { argument 156 this(new BitmapState(BitmapFactory.decodeStream(is)), null); 159 android.util.Log.w("BitmapDrawable", "BitmapDrawable cannot decode " + is);
|
H A D | Drawable.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 36 * A Drawable is a general abstraction for "something that can be drawn." Most 44 * mechanisms for its client to interact with what is being drawn: 48 * Drawable where it is drawn and how large it should be. All Drawables 54 * information about how to frame content that is placed inside of them. 55 * For example, a Drawable that is intended to be the frame for a button 60 * in which state it is to be drawn, such as "focused", "selected", etc. 64 * continuous controller that can modify the Drawable is displayed, such as 71 * simple way to do this is through the system facilities such as 93 * whose overall size is modifie 656 createFromStream(InputStream is, String srcName) argument 664 createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName) argument 673 createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName, BitmapFactory.Options opts) argument [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 11 * 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/telephony/java/com/android/internal/telephony/ |
H A D | RIL.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 386 // The timer of WAKE_LOCK_TIMEOUT is reset with each 396 Log.d(LOG_TAG, "NOTE: mReqWaiting is NOT 0 but" 420 // is the expected time to get response, all requests 422 // mRequestMessagesPending is 0 )while TIMEOUT occurs. 424 Log.e(LOG_TAG, "ERROR: mReqPending is NOT 0 but" 440 * The final message (length header omitted) is read into 442 * is returned. A return value of -1 indicates end-of-stream. 444 * @param is non-null; Stream to read from 450 private static int readRilMessage(InputStream is, byt argument [all...] |