/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
XmpPresets.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 62 InputStream is = null; local 65 is = context.getContentResolver().openInputStream(srcUri); 66 xmpMeta = XmpUtilHelper.extractXMPMeta(is); 70 Utils.closeSilently(is); 95 InputStream is = null; local 98 is = context.getContentResolver().openInputStream(uriToEdit); 99 xmpMeta = XmpUtilHelper.extractXMPMeta(is); 102 Utils.closeSilently(is); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
ShortcutConfigActivityInfo.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 157 IntentSender is = (IntentSender) m.invoke( local 159 activity.startIntentSenderForResult(is, requestCode, null, 0, 0, 0);
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
CharMatcher.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * character" is used to mean "any character {@code c} for which {@code 49 // Excludes 2000-2000a, which is handled as a range 53 // Excludes 2007, which is handled as a gap in a pair of ranges 58 * Determines whether a character is whitespace according to the latest 61 * This is not the same definition used by other Java APIs. See a comparison 73 * Determines whether a character is a breaking whitespace (that is, 86 * Determines whether a character is ASCII, meaning that its code point i 379 public static CharMatcher is(final char match) { method in class:CharMatcher [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
DecoderUtil.java | 13 * software distributed under the License is distributed on an * 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * 54 QuotedPrintableInputStream is = new QuotedPrintableInputStream( local 58 while ((b = is.read()) != -1) { 83 Base64InputStream is = new Base64InputStream( local 87 while ((b = is.read()) != -1) { 148 * =?charset?enc?Encoded word?= where enc is either 'Q' or 'q' for 216 // return null on error. Begin is index of '=?' in body.
|
/prebuilts/ndk/r10/sources/cxx-stl/stlport/stlport/stl/ |
_ctype.h | 8 * This material is provided "as is", with absolutely no warranty expressed 9 * or implied. Any use is at your own risk. 11 * Permission to use or copy this software for any purpose is hereby granted 13 * Permission to modify the code and to distribute modified code is granted, 15 * modified is included with the above copyright notice. 18 // WARNING: This is an internal header file, included by other C++ 78 bool is(mask __m, char __c) const function in class:ctype 81 const char* is(const char* __low, const char* __high, mask* __vec) const { function in class:ctype 183 bool is(mask __m, wchar_t __c) cons function in class:ctype 186 const wchar_t* is(const wchar_t* __low, const wchar_t* __high, function in class:ctype [all...] |
/prebuilts/ndk/r11/sources/cxx-stl/stlport/stlport/stl/ |
_ctype.h | 8 * This material is provided "as is", with absolutely no warranty expressed 9 * or implied. Any use is at your own risk. 11 * Permission to use or copy this software for any purpose is hereby granted 13 * Permission to modify the code and to distribute modified code is granted, 15 * modified is included with the above copyright notice. 18 // WARNING: This is an internal header file, included by other C++ 78 bool is(mask __m, char __c) const function in class:ctype 81 const char* is(const char* __low, const char* __high, mask* __vec) const { function in class:ctype 183 bool is(mask __m, wchar_t __c) cons function in class:ctype 186 const wchar_t* is(const wchar_t* __low, const wchar_t* __high, function in class:ctype [all...] |
/prebuilts/ndk/r13/sources/cxx-stl/stlport/stlport/stl/ |
_ctype.h | 8 * This material is provided "as is", with absolutely no warranty expressed 9 * or implied. Any use is at your own risk. 11 * Permission to use or copy this software for any purpose is hereby granted 13 * Permission to modify the code and to distribute modified code is granted, 15 * modified is included with the above copyright notice. 18 // WARNING: This is an internal header file, included by other C++ 78 bool is(mask __m, char __c) const function in class:ctype 81 const char* is(const char* __low, const char* __high, mask* __vec) const { function in class:ctype 183 bool is(mask __m, wchar_t __c) cons function in class:ctype 186 const wchar_t* is(const wchar_t* __low, const wchar_t* __high, function in class:ctype [all...] |
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/lib/ |
Socket.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 54 if (DEBUG) Log.d(TAG, "Socket is constructed for " + mChannelName); 60 * @return true if socket is connected, or false if socket is not connected. 87 * @param data Data to send. Data size is defined by the length of the 97 // Same technique is used everywhere in this class where mSocket member 98 // is touched. 133 final InputStream is = socket.getInputStream(); local 136 final int chunk = is.read(data, received, len - received) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
CreateFileChange.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 84 InputStream is = null; local 96 is = supplier.getInput(); 97 file.create(is, false, new SubProgressMonitor(pm, 1)); 102 Closeables.closeQuietly(is);
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
DataIdleTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 63 description = "If this test is to use mobile data or not.") 134 InputStreamSource is = new ByteArrayInputStreamSource(output.getBytes()); local 135 listener.testLog(DUMPSYS_REPORT_LABEL, LogDataType.TEXT, is);
|
/cts/tests/tests/media/src/android/media/cts/ |
DecoderConformanceTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 86 InputStream is = mContext.getResources().openRawResource(resId); local 87 BufferedReader in = new BufferedReader(new InputStreamReader(is, "UTF-8")); 98 is.close();
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
GLES20TriangleRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 118 * surface is created. 138 InputStream is = mContext.getResources() local 142 bitmap = BitmapFactory.decodeStream(is); 145 is.close();
|
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
GLES20TriangleRenderer.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 116 * surface is created. 136 InputStream is = mContext.getResources() local 140 bitmap = BitmapFactory.decodeStream(is); 143 is.close();
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
RBBITestExtended.java | 31 * The test data file is common to both ICU4C and ICU4J. 60 InputStream is = null; local 62 is = RBBITestExtended.class.getResourceAsStream("rbbitst.txt"); 63 if (is == null) { 67 InputStreamReader isr = new InputStreamReader(is, "UTF-8"); 90 is.close(); 221 // Need one extra because last break position returned is after the 279 if (c == CH_HASH && column==3) { // TODO: why is column off so far? 416 // Check that the {nnn} tag value is correct. 474 // Check that the {nnn} tag value is correct [all...] |
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/ |
ICULocaleServiceProvider.java | 146 // locales if script is available. Need to add them too. 236 InputStream is = ClassLoader.getSystemResourceAsStream(SPI_PROP_FILE); local 238 spiConfigProps.load(is); 240 is.close();
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
RBBITestExtended.java | 30 * The test data file is common to both ICU4C and ICU4J. 59 InputStream is = null; local 61 is = RBBITestExtended.class.getResourceAsStream("rbbitst.txt"); 62 if (is == null) { 66 InputStreamReader isr = new InputStreamReader(is, "UTF-8"); 89 is.close(); 220 // Need one extra because last break position returned is after the 278 if (c == CH_HASH && column==3) { // TODO: why is column off so far? 415 // Check that the {nnn} tag value is correct. 473 // Check that the {nnn} tag value is correct [all...] |
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
SwatDeprecated.java | 104 this.srcTag = "@deprecated This is a draft API and might change in a future release of ICU."; 195 InputStream is = new FileInputStream(inFile); local 199 BufferedReader br = new BufferedReader(new InputStreamReader(is)); 276 is.close();
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/mbcs/ |
BIG5Tool.java | 19 * Default is to produce an informative dump. 21 * -sjis Do Shift_JIS. The structure of sjis is very similar to Big5. 97 System.err.println("\"" + dirName + "\" is not a directory"); 115 FileInputStream is = null; local 118 is = new FileInputStream(files[i]); 119 fileSize = is.read(buf); 168 if (is != null) { 170 is.close(); 230 // This is a little class containing a 270 // iteratedChar is copied and slightly hacked from the similar calss in CharsetRecog_mbc [all...] |
EUCTool.java | 19 * Default is to produce an informative dump. 23 * Default is the current directory. 84 System.err.println("\"" + dirName + "\" is not a directory"); 115 FileInputStream is = null; local 118 is = new FileInputStream(files[i]); 119 fileSize = is.read(buf); 168 if (is != null) { 170 is.close(); 230 // This is a little class containing a 270 // iteratedChar is copied and slightly hacked from the similar calss in CharsetRecog_mbc [all...] |
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
ImageUtils.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 50 * Normally, this test will fail when there is a missing thumbnail. However, when 67 InputStream is = ImageUtils.class.getClassLoader().getResourceAsStream(relativePath); local 68 if (is == null) { 79 BufferedImage goldenImage = ImageIO.read(is); 82 is.close(); 251 // then 340, and finally 680. (The next one, 1360, is larger than 1000). 256 // divide-in-half resizing operation at the end so there is less distortion. 259 int nearestWidth = destWidth; // Width closest to source width that = 2^x, x is intege [all...] |
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
BluetoothMasRequest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 101 * headers. So this is workaround, at least temporary. TODO: check 114 InputStream is = op.openInputStream(); local 115 readResponse(is); 116 is.close();
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
VCardVerifier.java | 11 * 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 { 252 parser.parse(is); 269 InputStream is = null; local 271 is = new ByteArrayInputStream(vcard.getBytes(mCharset)) [all...] |
/frameworks/support/compat/tests/java/android/support/v4/provider/ |
MockFontProvider.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 204 InputStream is = null; local 206 is = mgr.open("fonts/" + file); 207 copy(is, getCopiedFile(context, file)); 211 if (is != null) { 213 is.close(); 223 * The caller is responsible for closing the given InputStream. 225 private static void copy(InputStream is, File file) throws IOException { 231 while ((readLen = is.read(buffer)) != -1) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ClassLoaderTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 55 // The SystemClassLoader's parent should be the Boot classloader, which is used to load 61 // It is difficult to test further because the CTS tests run as an instrumented TestCase. 63 // load app classes and resources, not the System ClassLoader. The System ClassLoader is not 74 // It is difficult to test this because the CTS tests run as an instrumented TestCase. 87 // class while being deliberately vague about which classloader it actually is. 105 // class while being deliberately vague about which classloader it actually is. 117 // class while being deliberately vague about which classloader it actually is. 143 InputStream is = uncachedConnection.getInputStream() local 205 InputStream is = null; local 219 InputStream is = null; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
JarURLConnectionTest.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 222 InputStream is = conn.getInputStream(); local 223 is.close(); 253 InputStream is = juc.getInputStream(); local 255 while (is.read(buf) > 0) ; 261 is = juc.getJarFileURL().openStream(); 262 while (is.read(buf) > 0) ; 308 InputStream is = url.openStream(); local 309 is.close() [all...] |