Home
last modified time | relevance | path

Searched refs:is (Results 1 – 25 of 2049) sorted by relevance

12345678910>>...82

/cts/tests/tests/content/src/android/content/res/cts/
DRawResourceTest.java38 final InputStream is = mResources.openRawResource(R.raw.text); in testReadToEnd() local
39 verifyTextAsset(is); in testReadToEnd()
42 static void verifyTextAsset(final InputStream is) throws IOException { in verifyTextAsset() argument
48 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
58 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
62 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
66 is.close(); in verifyTextAsset()
DResourcesTest.java578 InputStream is = mResources.openRawResource(R.raw.text); in testRawResource() local
579 verifyTextAsset(is); in testRawResource()
581 is = mResources.openRawResource(R.raw.text, new TypedValue()); in testRawResource()
582 verifyTextAsset(is); in testRawResource()
587 static void verifyTextAsset(final InputStream is) throws IOException { in verifyTextAsset() argument
593 while ((readCount = is.read(buffer, 0, buffer.length)) > 0) { in verifyTextAsset()
603 readCount = is.read(buffer, 0, buffer.length); in verifyTextAsset()
607 readCount = is.read(buffer, buffer.length, 0); in verifyTextAsset()
611 is.close(); in verifyTextAsset()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCallDetailsTest.java21 import static org.hamcrest.CoreMatchers.is;
117 assertThat(mCall.getDetails().getAccountHandle(), is(PhoneAccountHandle.class)); in testAccountHandle()
129 assertThat(mCall.getDetails().getCallCapabilities(), is(Integer.class)); in testCallCapabilities()
145 assertThat(mCall.getDetails().getCallerDisplayName(), is(String.class)); in testCallerDisplayName()
157 assertThat(mCall.getDetails().getCallerDisplayNamePresentation(), is(Integer.class)); in testCallerDisplayNamePresentation()
169 assertThat(mCall.getDetails().getCallProperties(), is(Integer.class)); in testCallProperties()
181 assertThat(mCall.getDetails().getConnectTimeMillis(), is(Long.class)); in testConnectTimeMillis()
192 assertThat(mCall.getDetails().getDisconnectCause(), is(DisconnectCause.class)); in testDisconnectCause()
204 assertThat(mCall.getDetails().getExtras(), is(Bundle.class)); in testExtras()
216 assertThat(mCall.getDetails().getIntentExtras(), is(Bundle.class)); in testIntentExtras()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DPrintStreamPrinterTest.java48 InputStream is = null; in testPrintln() local
58 is = new FileInputStream(mFile); in testPrintln()
59 BufferedReader reader = new BufferedReader(new InputStreamReader(is)); in testPrintln()
64 is.close(); in testPrintln()
DPrintWriterPrinterTest.java69 InputStream is = new FileInputStream(mFile); in testPrintln() local
71 new InputStreamReader(is)); in testPrintln()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCANotifyOnBootActivity.java58 InputStream is = null; in onClick() local
62 is = getAssets().open(CERT_ASSET_NAME); in onClick()
66 while ((length = is.read(buffer)) > 0) { in onClick()
70 if (is != null) is.close(); in onClick()
DCAInstallNotificationVerifierActivity.java209 InputStream is = null; in onClick() local
213 is = getAssets().open(CERT_ASSET_NAME); in onClick()
217 while ((length = is.read(buffer)) > 0) { in onClick()
221 if (is != null) is.close(); in onClick()
/cts/tests/tests/graphics/src/android/opengl/cts/
DCompressedTextureLoader.java139 protected static PVRHeader readPVRHeader(InputStream is) { in readPVRHeader() argument
143 is.read(headerData); in readPVRHeader()
212 private static ByteBuffer read(InputStream is, int dataSize) { in read() argument
219 is.read(ioBuffer, 0, chunkSize); in read()
231 InputStream is = null; in loadTexturePVRTC() local
233 is = res.openRawResource(id); in loadTexturePVRTC()
238 PVRHeader header = readPVRHeader(is); in loadTexturePVRTC()
254 ByteBuffer dataBuffer = read(is, dataSize); in loadTexturePVRTC()
259 is.close(); in loadTexturePVRTC()
346 protected static DDSHeader readDDSHeader(InputStream is) { in readDDSHeader() argument
[all …]
/cts/tests/tests/os/src/android/os/cts/
DParcelFileDescriptorTest.java135 private static void assertInputStreamContent(byte[] expected, InputStream is) in assertInputStreamContent() argument
139 int count = is.read(observed); in assertInputStreamContent()
141 assertEquals(-1, is.read()); in assertInputStreamContent()
144 is.close(); in assertInputStreamContent()
155 FileInputStream is = new FileInputStream(fd); in testFromDataSkip() local
157 assertEquals(1, is.skip(1)); in testFromDataSkip()
158 assertEquals(41, is.read()); in testFromDataSkip()
159 assertEquals(42, is.read()); in testFromDataSkip()
160 assertEquals(2, is.skip(2)); in testFromDataSkip()
161 assertEquals(45, is.read()); in testFromDataSkip()
[all …]
DRecoverySystemTest.java48 InputStream is = mAssets.open(name); in getAsset() local
51 while ((read = is.read(b)) != -1) { in getAsset()
54 is.close(); in getAsset()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java113 InputStream is = getActivity().getResources().openRawResource(MOVIE); in testDecodeByteArray() local
114 byte[] bytes = inputStreamToBytes(is); in testDecodeByteArray()
116 is.close(); in testDecodeByteArray()
124 InputStream is = getActivity().getResources() in testDecodeStream() local
126 mMovie = Movie.decodeStream(is); in testDecodeStream()
127 is.close(); in testDecodeStream()
DBitmapRegionDecoderTest.java110 InputStream is = obtainInputStream(RES_IDS[i]); in testNewInstanceInputStream() local
113 BitmapRegionDecoder.newInstance(is, false); in testNewInstanceInputStream()
120 if (is != null) { in testNewInstanceInputStream()
121 is.close(); in testNewInstanceInputStream()
282 InputStream is = obtainInputStream(RES_IDS[0]); in testRecycle() local
283 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in testRecycle()
358 InputStream is = obtainInputStream(resId); in obtainByteArray() local
362 while ((readLength = is.read(buffer)) != -1) { in obtainByteArray()
366 is.close(); in obtainByteArray()
375 InputStream is = obtainInputStream(RES_IDS[idx]); in obtainPath() local
[all …]
DTypefaceTest.java172 InputStream is = getContext().getAssets().open("samplefont.ttf"); in obtainPath() local
176 while ((readLength = is.read(dataBuffer)) != -1) { in obtainPath()
179 is.close(); in obtainPath()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCurrentXmlHandler.java80 mCurrentClassName, mDeprecated, is(attributes, "abstract"), superClass); in startElement()
93 mCurrentMethodIsAbstract = is(attributes, "abstract"); in startElement()
95 mCurrentMethodStaticMethod = is(attributes, "static"); in startElement()
96 mCurrentMethodFinalMethod = is(attributes, "final"); in startElement()
147 private static boolean is(Attributes attributes, String valueName) { in is() method in CurrentXmlHandler
/cts/tools/dex-tools/
DREADME.txt4 The parser is able to read a dex file and to create a datastructure based on it.
5 It is designed to be fast and close to the spec.
18 doc : dex file spec on which this parser is based
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DPermissionTestService.java228 InputStream is = null; in testNetworkAccess() local
230 is = url.openStream(); in testNetworkAccess()
233 int value = is.read(); in testNetworkAccess()
246 if (is != null) { in testNetworkAccess()
248 is.close(); in testNetworkAccess()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DPhoneNumberTest.java41 InputStream is = new FileInputStream(pfd.getFileDescriptor()); in setDefaultSmsApp() local
44 while ((is.read(buffer)) != -1); in setDefaultSmsApp()
/cts/libs/deviceutil/src/android/cts/util/
DFileUtils.java149 public static byte[] readInputStreamFully(InputStream is) { in readInputStreamFully() argument
154 while ((count = is.read(buffer)) != -1) { in readInputStreamFully()
157 is.close(); in readInputStreamFully()
/cts/tools/tradefed-host/
DREADME4 CTS Trade Federation, cts-tradefed for short, is the next
7 cts-tradefed is built on top of the Android Trade Federation test harness.
16 is lost
21 1. Ensure 'adb' is in your current PATH. adb can be found in the
33 4. Ensure device is visible via 'adb devices'
/cts/tests/tests/media/src/android/media/cts/
DUtils.java38 public static String convertStreamToString(InputStream is) { in convertStreamToString() argument
39 try (Scanner scanner = new Scanner(is).useDelimiter("\\A")) { in convertStreamToString()
/cts/tests/expectations/
Dknownfailures.txt12 description: "the UsageStats is not yet stable enough",
111 description: "test can only run properly on a user build device when the bug is resolved",
161 …description: "This test should be outside of official CTS suite until it is verified for all Nexus…
169 description: "Test is not yet properly implemented",
212 description: "The new recording test is not yet passing on all devices",
219 description: "The new image reader test is not yet passing on all devices",
226 description: "The new prepare performance test is not yet passing on all devices",
243 description: "The new create session test is not yet passing on all devices",
250 description: "The new long processing test is not yet passing on all devices",
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteStatementTest.java329 private static void assertInputStreamContent(byte[] expected, InputStream is) in assertInputStreamContent() argument
333 int count = is.read(observed); in assertInputStreamContent()
335 assertEquals(-1, is.read()); in assertInputStreamContent()
338 is.close(); in assertInputStreamContent()
/cts/tests/tests/os/jni/seccomp-tests/
DREADME.android1 This is the kernel unittest for seccomp-bpf sandboxing.
/cts/tests/tests/drm/
DREADME4 - If new plug-in is added, user should add corresponding configuration
/cts/hostsidetests/appsecurity/test-apps/SplitApp/
DREADME2 The entire libs/ directory is built and constructed automatically with

12345678910>>...82