/frameworks/base/obex/javax/obex/ |
H A D | ObexPacket.java | 12 * distributed under the License is distributed on an "AS IS" BASIS, 35 * @param is the input stream to read from. 39 public static ObexPacket read(InputStream is) throws IOException { argument 40 int headerId = is.read(); 41 return read(headerId, is); 47 * @param is the stream to read from, assuming 1 byte have already been read. 51 public static ObexPacket read(int headerId, InputStream is) throws IOException { argument 53 int length = is.read(); 54 length = (length << 8) + is.read(); 63 bytesReceived = is [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
H A D | pv_mp3_huffman.h | 11 * distributed under the License is distributed on an "AS IS" BASIS, 84 int32 pvmp3_huffman_parsing(int32 is[SUBBANDS_NUMBER*FILTERBANK_BANDS], 92 int32 *is, 96 int32 *is, 101 int32 *is,
|
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_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...] |
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...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardParser.java | 11 * 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.
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
H A D | MessageQueueTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 26 import static org.hamcrest.CoreMatchers.is; 48 assertThat(msg.what, is(0)); 49 assertThat(msg.arg1, is(1)); 50 assertThat(msg.arg2, is(2)); 51 assertThat(msg.arg3, is(3)); 52 assertThat(msg.arg4, is(4)); 53 assertThat(msg.arg5, is(5)); 64 assertThat(msg.what, is(1)); 65 assertThat(msg.arg1, is( [all...] |
H A D | TileListTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 50 assertThat(mTileList.getItemAt(0), is(1)); 51 assertThat(mTileList.getItemAt(1), is(2)); 52 assertThat(mTileList.getItemAt(2), is(3)); 58 assertThat(mTileList.size(), is(0)); 60 assertThat(mTileList.size(), is(1)); 62 assertThat(mTileList.size(), is(1)); 64 assertThat(mTileList.size(), is(2)); 67 assertThat(mTileList.size(), is(0)); 76 assertThat(mTileList.getAtIndex(0).mStartPosition, is( [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerWrapContentWithAspectRatioTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 147 MeasureSpecMatcher.is(borders[1] - borders[0], AT_MOST)); 149 MeasureSpecMatcher.is(borders[3] - borders[1], AT_MOST)); 153 MeasureSpecMatcher.is(15, EXACTLY)); 158 assertThat(behavior1.measureSpecs.size(), is(2)); 159 assertThat(behavior2.measureSpecs.size(), is(1)); 162 assertThat(behavior2.measureSpecs.size(), is(1)); 163 assertThat(behavior1.measureSpecs.size(), is(3)); 165 MeasureSpecMatcher.is(15, EXACTLY)); 167 MeasureSpecMatcher.is(1 [all...] |
H A D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 154 CoreMatchers.is(10)); 156 CoreMatchers.is(behavior1.getSecondary(10))); 160 CoreMatchers.is(15)); 162 CoreMatchers.is(behavior2.getSecondary(15))); 166 CoreMatchers.is(15)); 168 CoreMatchers.is(behavior3.getSecondary(15))); 171 CoreMatchers.is(1)); 174 MeasureSpecMatcher.is(0, View.MeasureSpec.UNSPECIFIED)); 177 MeasureSpecMatcher.is(parentDi [all...] |
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | IntentSenderTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 33 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, 35 is.send(); 37 is.cancel(); 54 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, 0); 55 is.send(Activity.RESULT_CANCELED, finish, null); 57 is.cancel(); 62 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, 64 is.send(); 66 is [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Movie.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 51 public static Movie decodeStream(InputStream is) { argument 52 if (is == null) { 55 if (is instanceof AssetManager.AssetInputStream) { 56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 60 return nativeDecodeStream(is); 64 private static native Movie nativeDecodeStream(InputStream is); argument 71 InputStream is; 73 is = new FileInputStream(pathName); 78 return decodeTempStream(is); 91 decodeTempStream(InputStream is) argument [all...] |
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
H A D | BitmapHelper.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { argument 50 return BitmapFactory.decodeStream(is, null, bmOptions); 53 public static int findScaleFactor(int targetW, int targetH, InputStream is) { argument 57 BitmapFactory.decodeStream(is, null, bmOptions); 69 BufferedInputStream is = null; 72 is = new BufferedInputStream(urlConnection.getInputStream()); 73 is.mark(MAX_READ_LIMIT_PER_IMG); 74 int scaleFactor = findScaleFactor(width, height, is); 77 is [all...] |
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/utils/ |
H A D | BitmapHelper.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 public static Bitmap scaleBitmap(int scaleFactor, InputStream is) { argument 50 return BitmapFactory.decodeStream(is, null, bmOptions); 53 public static int findScaleFactor(int targetW, int targetH, InputStream is) { argument 57 BitmapFactory.decodeStream(is, null, bmOptions); 69 BufferedInputStream is = null; 72 is = new BufferedInputStream(urlConnection.getInputStream()); 73 is.mark(MAX_READ_LIMIT_PER_IMG); 74 int scaleFactor = findScaleFactor(width, height, is); 77 is [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/content/pm/ |
H A D | MacAuthenticatedInputStreamTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 73 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); 75 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); 77 assertTrue(is.isTagEqual(TEST_STRING_1_MAC)); 84 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); 86 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); 88 assertFalse(is.isTagEqual(TEST_STRING_1_MAC_BROKEN)); 95 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); 97 assertTrue(Arrays.equals(TEST_STRING_1, Streams.readFully(is))); 99 assertFalse(is [all...] |
H A D | LimitedLengthInputStreamTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 28 private final byte[] TEST_STRING1 = "This is a test".getBytes(); 42 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); 52 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); 62 InputStream is = new LimitedLengthInputStream(null, 0, 1); 72 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, 74 fail("Should fail when offset + length is > Long.MAX_VALUE"); 88 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); 89 assertEquals(length, is.read(temp, 0, temp.length)); 94 assertEquals(-1, is [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | BottomSheetBehaviorWithInsetsTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 40 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_COLLAPSED)); 43 is(activity.mCoordinatorLayout.getHeight() - activity.mBehavior.getPeekHeight())); 44 assertThat(activity.mBottomSheetContent.getTop(), is(0));
|
/frameworks/support/transition/tests/src/android/support/transition/ |
H A D | SceneTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 28 import static org.hamcrest.CoreMatchers.is; 40 assertThat(scene.getSceneRoot(), is(sameInstance(root))); 55 assertThat(enterAction.wasCalled(), is(true)); 56 assertThat(exitAction.wasCalled(), is(false)); 57 assertThat(root.getChildCount(), is(1)); 58 assertThat(root.getChildAt(0), is((View) layout)); 60 assertThat(exitAction.wasCalled(), is(true)); 75 assertThat(enterAction.wasCalled(), is(true)); 76 assertThat(exitAction.wasCalled(), is(fals [all...] |
H A D | TransitionManagerTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 51 assertThat(mScenes[0], is(notNullValue())); 52 assertThat(mScenes[1], is(notNullValue())); 60 assertThat(runnable.wasCalled(), is(false)); 62 assertThat(runnable.wasCalled(), is(true)); 74 assertThat(enter.wasCalled(), is(false)); 75 assertThat(exit.wasCalled(), is(false)); 77 assertThat(enter.wasCalled(), is(true)); 78 assertThat(exit.wasCalled(), is(fals [all...] |
H A D | TransitionTest.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 19 import static org.hamcrest.CoreMatchers.is; 46 assertThat(transition.setDuration(duration), is(sameInstance(transition))); 47 assertThat(transition.getDuration(), is(duration)); 54 assertThat(transition.setInterpolator(interpolator), is(sameInstance(transition))); 55 assertThat(transition.getInterpolator(), is(interpolator)); 62 assertThat(transition.setStartDelay(startDelay), is(sameInstance(transition))); 63 assertThat(transition.getStartDelay(), is(startDelay)); 69 assertThat(transition.addTarget(R.id.view0), is(sameInstance(transition))); 70 assertThat(transition.addTarget(R.id.view1), is(sameInstanc [all...] |
/frameworks/base/docs/ |
H A D | __DEPRECATED__DO_NOT_EDIT__.txt | 10 - Reference documentation is still maintained via building of .java source files, 13 - Sample code documentation is not maintained in Piper, but is published from
|
/frameworks/base/docs/html/ |
H A D | __DEPRECATED__DO_NOT_EDIT__.txt | 10 - Reference documentation is still maintained via building of .java source files, 13 - Sample code documentation is not maintained in Piper, but is published from
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | PropertyNodesVerifier.java | 11 * 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();
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | DiskBasedCache.java | 11 * distributed under the License is distributed on an "AS IS" BASIS, 42 * directory. The default disk usage size is 5MB, but is configurable. 340 /** The size of the data identified by this CacheHeader. (This is not 385 * @param is The InputStream to read from. 388 public static CacheHeader readHeader(InputStream is) throws IOException { argument 390 int magic = readInt(is); 395 entry.key = readString(is); 396 entry.etag = readString(is); 400 entry.serverDate = readLong(is); 485 read(InputStream is) argument 500 readInt(InputStream is) argument 520 readLong(InputStream is) argument 539 readString(InputStream is) argument 557 readStringStringMap(InputStream is) argument [all...] |