/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/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/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/action/ |
H A D | ScrollToActionIntegrationTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 24 import static org.hamcrest.Matchers.is; 52 onView(withId(is(R.id.bottom_left))) 60 onView(withId(is(R.id.bottom_right))) 64 onView(withId(is(R.id.top_left))) 71 onView(withId(is(R.id.double_scroll)))
|
H A D | TypeTextActionIntegrationTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 31 import static org.hamcrest.Matchers.is; 58 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText("Hello!")); 69 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText( 71 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeTextIntoFocusedView( 73 onView(withId(is(R.id.send_data_to_call_edit_text))).check(matches(withText( 78 onView(withId(is(R.id.send_data_to_call_edit_text))).perform(typeText( 81 onView(withId(is(R.id.edit_text_message)))
|
/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/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/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/util/ |
H A D | TreeIterablesTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 23 import static org.hamcrest.Matchers.is; 117 assertThat(distanceRecorder.getDistance(complexTree), is(0)); 118 assertThat(distanceRecorder.getDistance(complexTree.children.iterator().next()), is(1)); 151 assertThat(distancesByData.size(), is(17)); 159 is((List<String>) Lists.newArrayList( 168 is((Iterable<String>) Lists.newArrayList( 177 is((List<String>) Lists.newArrayList( 191 assertThat(breadthFirst, is((List<String>) Lists.newArrayList("a", "b", "c", "d"))); 198 assertThat(depthFirst, is((Lis [all...] |
/frameworks/base/packages/SystemUI/tests/ |
H A D | Android.mk | 10 # distributed under the License is distributed on an "AS IS" BASIS, 26 # sign this with platform cert, so this test is allowed to inject key events into 27 # UI it doesn't own. This is necessary to allow screenshots to be taken
|
/frameworks/support/v7/appcompat/ |
H A D | Android.mk | 10 # distributed under the License is distributed on an "AS IS" BASIS, 17 # Here is the final static library that apps can link against. 18 # The R class is automatically excluded from the generated library.
|
/frameworks/support/v7/gridlayout/ |
H A D | Android.mk | 10 # distributed under the License is distributed on an "AS IS" BASIS, 17 # Here is the final static library that apps can link against. 18 # The R class is automatically excluded from the generated library.
|
/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, "BitmapDrawable cannot decode " + is); 89 create(Resources res, java.io.InputStream is) argument
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | ScriptC.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 * The superclass for all user-defined scripts. This is only 78 InputStream is = resources.openRawResource(resourceID); 91 int bytesRead = is.read(pgm, pgmLength, bytesLeft); 98 is.close();
|
/frameworks/testing/espresso/espresso-sample/src/androidTest/java/com/google/android/apps/common/testing/ui/testapp/ |
H A D | LongListMatchers.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 25 import static org.hamcrest.Matchers.is; 43 * In LongListActivity's case - each row is a Map containing 2 key value pairs. The key "STR" is 45 * key "LEN" is an Integer which is the length of the string "STR" refers to. This length is 55 * Creates a matcher against the text stored in R.id.item_content. This text is roughly 59 // use preconditions to fail fast when a test is creating an invalid matcher. 65 * Creates a matcher against the text stored in R.id.item_content. This text is roughl [all...] |
H A D | ScrollToTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 23 import static org.hamcrest.Matchers.is; 49 // You can pass more than one action to perform. This is useful if you are performing two actions 51 // Note - scrollTo is a no-op if the view is already displayed on the screen. 53 onView(withId(is(R.id.bottom_left)))
|
/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/testing/support/tests/src/android/support/test/runner/ |
H A D | AndroidJUnitRunnerLifeCycleTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.Matchers.is; 94 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.PRE_ON_CREATE)); 110 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.STARTED)); 114 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.STOPPED)); 130 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.CREATED)); 142 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.RESUMED)); 154 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.PAUSED)); 166 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stage.RESTARTED)); 178 assertThat(mMonitor.getLifecycleStageOf(mSpiedActivity), is(Stag [all...] |
/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/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 286 InputStream is = null; 288 is = res.openRawResource(id); 294 if (is instanceof AssetManager.AssetInputStream) { 295 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 304 FileA3D fa3d = new FileA3D(fileId, rs, is);
|
/frameworks/base/core/java/android/text/style/ |
H A D | ImageSpan.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 136 InputStream is = mContext.getContentResolver().openInputStream( 138 bitmap = BitmapFactory.decodeStream(is); 142 is.close();
|