/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 71 InputStream is, boolean isShareable) { 73 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); 108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { argument 109 Bitmap b = BitmapFactory.decodeStream(is); 267 InputStream is = mContext.getContentResolver().openInputStream(mUri); 268 return new BufferedInputStream(is); 273 InputStream is = regenerateInputStream(); 275 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); 276 Utils.closeSilently(is); 70 newInstance( InputStream is, boolean isShareable) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | MemoryFileTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 88 InputStream is = file.getInputStream(); 89 is.mark(testString.length); 90 is.read(buffer); 95 is.reset(); 96 is.read(buffer); 128 InputStream is = file.getInputStream(); 131 is.read(buffer, offset, count); 134 // this is what should happen 136 is [all...] |
/frameworks/rs/api/ |
H A D | rs_io.spec | 11 # distributed under the License is distributed on an "AS IS" BASIS, 55 message queue is full. 57 A message ID is required. The data payload is optional. 77 until there is room on the message queue for this message. 81 A message ID is required. The data payload is optional.
|
H A D | rs_time.spec | 11 # distributed under the License is distributed on an "AS IS" BASIS, 21 system up time. It is not recommended to call these functions inside of a kernel. 48 field: int tm_isdst, "Flag to indicate whether daylight saving time is in effect. The value is positive if it is in effect, zero if it is not, and negative if the information is not available." 69 hour, etc. This value is stored at *local. 71 This functions returns the same pointer that is passed as first argument. If the 72 local parameter is NUL [all...] |
H A D | rs_object_info.spec | 11 # distributed under the License is distributed on an "AS IS" BASIS, 38 The term "element" is used a bit ambiguously in RenderScript, as both type information 40 <li>@rs_element is a handle to a type specification, and</li> 54 Elements can also have a kind, which is semantic information used to interpret pixel 69 ret: uint32_t, "Returns 1 if more than one face is present, 0 otherwise." 73 If the Allocation is a cubemap, this function returns 1 if there's more than one face 81 ret: uint32_t, "Returns 1 if more than one LOD is present, 0 otherwise." 85 Query an Allocation for the presence of more than one Level Of Detail. This is useful 182 Returns the Element's data kind. This is used to interpret pixel data. 202 If the Element describes a structure, RS_TYPE_NONE is returne [all...] |
H A D | rs_for_each.spec | 11 # distributed under the License is distributed on an "AS IS" BASIS, 38 This type is used to suggest how the invoked kernel should iterate over the cells of the 39 allocations. This is a hint only. Implementations may not follow the suggestion. 42 locality when the processing is distributed over multiple cores. 80 This structure is used to provide iteration information to a rsForEach call. 81 It is currently used to restrict processing to a subset of cells. In future 103 When rsForEach is called, the root script is launched immediately. rsForEach returns 104 only when the script has completed and the output allocation is ready to use. 106 The rs_script argument is typicall [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 10 * 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...] |
/frameworks/base/core/java/android/os/ |
H A D | 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; 190 is [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | ThreadUtilTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 101 assertThat(data, is(new Object[]{7, 9})); 110 assertThat(data, is(new Object[]{3, tile})); 118 assertThat(data, is(new Object[]{1, 2})); 126 assertThat(data, is(new Object[]{2})); 134 assertThat(data, is(new Object[] {10, 20, 5, 25, 1})); 142 assertThat(data, is(new Object[]{2, 1})); 151 assertThat(data, is(new Object[]{tile}));
|
/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/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | ImageUtils.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 82 * @return true if the MimeType type is image 134 * no bitmap is returned (null) then padding is 137 * image should be completely decoded, or just is size returned. 139 * decoded, or, if opts is non-null, if opts requested only the 144 InputStream is = null; 147 is = factory.createInputStream(); 148 final int orientation = Exif.getOrientation(is, -1); 149 if (is ! [all...] |
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/ |
H A D | LargeAssetTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * Skeleton to test large-asset handling. The asset in question is one million 70 InputStream is = am.open("million-ints", AssetManager.ACCESS_STREAMING); 74 int num = is.read(buf, 0, 4); 79 // the byte array is stored in the asset in little-endian order 88 is.close();
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/pbap/ |
H A D | 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(); 83 readResponse(is); 84 is.close();
|
/frameworks/support/v4/java/android/support/v4/graphics/drawable/ |
H A D | RoundedBitmapDrawableFactory.java | 11 * 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/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 11 * 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/chips/src/com/android/ex/chips/ |
H A D | DefaultPhotoManager.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 * For reading photos for directory contacts, this is the chunk size for 108 InputStream is = mContentResolver.openInputStream( 110 if (is != null) { 115 while ((size = is.read(buffer)) != -1) { 119 is.close();
|
/frameworks/base/packages/SettingsProvider/test/ |
H A D | Android.mk | 6 # because this test is not an instrumentation test. (because the target runs in the system process.)
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifModifier.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 52 InputStream is = null; 54 is = new ByteBufferInputStream(byteBuffer); 56 ExifParser parser = ExifParser.parse(is, mInterface); 61 ExifInterface.closeSilently(is); 70 InputStream is = null; 72 is = new ByteBufferInputStream(mByteBuffer); 98 ExifParser parser = ExifParser.parse(is, flag, mInterface); 135 ExifInterface.closeSilently(is);
|
/frameworks/ex/common/ |
H A D | Android.mk | 10 # distributed under the License is distributed on an "AS IS" BASIS, 17 # Note: the source code is in java/, not src/, because this code is also part of 29 # we can't build the test for apps only build, because android.test.runner is not unbundled yet.
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | KernelWakelockReader.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 69 FileInputStream is; 71 is = new FileInputStream(sWakelockFile); 75 is = new FileInputStream(sWakeupSourceFile); 84 len = is.read(buffer); 85 is.close(); 129 endIndex++; // endIndex is an exclusive upper bound. 138 // Stomp out any bad characters since this is from a circular buffer 139 // A corruption is seen sometimes that results in the vm crashing
|
/frameworks/base/media/java/android/media/ |
H A D | MediaMetadataRetriever.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 44 // The field below is accessed by native methods 60 * @throws IllegalArgumentException If the path is invalid. 67 FileInputStream is = null; 69 is = new FileInputStream(path); 70 FileDescriptor fd = is.getFD(); 79 if (is != null) { 80 is.close(); 92 * @throws IllegalArgumentException If the URI is invalid. 117 * Sets the data source (FileDescriptor) to use. It is th [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | FileA3D.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 * Specifies what renderscript object type is contained within 289 InputStream is = null; 291 is = res.openRawResource(id); 297 if (is instanceof AssetManager.AssetInputStream) { 298 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 307 FileA3D fa3d = new FileA3D(fileId, rs, is);
|
H A D | ScriptC.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 26 * The superclass for all user-defined scripts. This is only 97 InputStream is = resources.openRawResource(resourceID); 110 int bytesRead = is.read(pgm, pgmLength, bytesLeft); 117 is.close();
|
/frameworks/base/docs/html/ndk/reference/ |
H A D | dynsections.js | 8 if (content.is(':visible')===true) { 63 //First row is visible we are HIDING 64 if (childRows.filter(':first').is(':visible')===true) { 89 if (rows.filter(':first').is(':visible')===true) {
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | 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(); 115 readResponse(is); 116 is.close();
|