Home
last modified time | relevance | path

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

12345678910>>...84

/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dpixel_format_f32.rsh4 // FocusPixel is the pixel format in the input image, which serves the
8 // value (actual_depth). The actual_depth field is never changed once set.
11 // whether or not a pixel is on the current target layer. For pixels that are
12 // active or not active but "close enough" to an active pixel, a matte value is
14 // is no larger than dilation_radius defined in LayerInfo_t in "layer_info.rsh".
16 // 3. After each layer is processed from back-most layer to focal depth layer,
17 // the color (red, green, blue) of FocusPixel is updated and ready to be used in
20 // 4. After each layer is processed from front-most layer to focal depth layer,
21 // the color (red, green, blue) of FocusPixel is *not* changed.
23 // 5. After each layer is processed in either of the two passes, the fields
[all …]
DXmpDepthDecode.java65 public XmpDepthDecode(InputStream is) throws IOException { in XmpDepthDecode() argument
66 XMPMeta meta = read(is, false); in XmpDepthDecode()
143 static XMPMeta read(InputStream is, boolean skipExtendedContent) { in read() argument
144 List<Section> sections = parse(is, true, skipExtendedContent); in read()
206 private static List<Section> parse(InputStream is, boolean readMetaOnly, in parse() argument
209 if (is == null) { in parse()
214 if (is.read() != 0xff || is.read() != M_SOI) { in parse()
218 while ((c = is.read()) != -1) { in parse()
223 while ((c = is.read()) == 0xff) { in parse()
236 section.data = new byte[is.available()]; in parse()
[all …]
Dluts_for_speedup_f32.rsh6 // Depth Range: [1,g_kMaxDepthValue]; 0 is reserved for invalid pixels.
11 // depth y is visible in the presence of a pixel with depth x.
13 // The value range of both x and y is [0,g_kMaxDepthValue].
14 // The value range of VisibilityProbability.lut[y][x] is [0,1].
43 // is, a depth value x that has a larger value (closer to the camera)
44 // than y but is still within the focal layer is _not_ considered as an
49 // For depths > front_focal_depth, visibility check is not used in
65 // The value range of r is [0,g_kMaxKernelRadius].
66 // The value range of y is [-g_kMaxKernelRadius,g_kMaxKernelRadius].
Dimage_and_kernel.rsh6 // width-by-height is the dimension of a padded image with a margin.
9 // The dimension of the original unpadded image is
20 // Auxiliary information that is needed to extract a kernel matrix from a buffer
27 // The matrix is of size (2*radius_y+1)-by-(2*radius_x+1).
/cts/tools/vm-tests-tf/src/util/build/
DBytesStreamSucker.java37 private final InputStream is; field in BytesStreamSucker
45 @Nonnull InputStream is, @Nonnull OutputStream os, boolean toBeClose) { in BytesStreamSucker()
46 this.is = is; in BytesStreamSucker()
51 public BytesStreamSucker(@Nonnull InputStream is, @Nonnull OutputStream os) { in BytesStreamSucker() argument
52 this(is, os, false); in BytesStreamSucker()
58 while ((bytesRead = is.read(buffer)) >= 0) { in suck()
DCharactersStreamSucker.java42 @Nonnull InputStream is, @Nonnull PrintStream os, boolean toBeClose) { in CharactersStreamSucker()
43 this.ir = new BufferedReader(new InputStreamReader(is)); in CharactersStreamSucker()
48 public CharactersStreamSucker(@Nonnull InputStream is, @Nonnull PrintStream os) { in CharactersStreamSucker() argument
49 this(is, os, false); in CharactersStreamSucker()
/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()
/cts/tests/tests/os/jni/seccomp-tests/
DREADME.android1 This is the kernel unittest for seccomp-bpf sandboxing.
16 backport is the only change in local-modifications-android-2.diff
18 Additional modification is to backport fixes for Android Native Bridge:
19 https://patchwork.kernel.org/patch/7537891/. This is not found in the above
20 diff file. The patch is located in local-modifications-strict-args-fd88d16.diff.
/cts/tests/tests/telecom/src/android/telecom/cts/
DCallDetailsTest.java21 import static org.hamcrest.CoreMatchers.is;
133 assertThat(mCall.getDetails().getAccountHandle(), is(PhoneAccountHandle.class)); in testAccountHandle()
145 assertThat(mCall.getDetails().getCallCapabilities(), is(Integer.class)); in testCallCapabilities()
250 assertThat(mCall.getDetails().getCallerDisplayName(), is(String.class)); in testCallerDisplayName()
262 assertThat(mCall.getDetails().getCallerDisplayNamePresentation(), is(Integer.class)); in testCallerDisplayNamePresentation()
274 assertThat(mCall.getDetails().getCallProperties(), is(Integer.class)); in testCallProperties()
288 assertThat(mCall.getDetails().getConnectTimeMillis(), is(Long.class)); in testConnectTimeMillis()
299 assertThat(mCall.getDetails().getDisconnectCause(), is(DisconnectCause.class)); in testDisconnectCause()
311 assertThat(mCall.getDetails().getExtras(), is(Bundle.class)); in testExtras()
323 assertThat(mCall.getDetails().getIntentExtras(), is(Bundle.class)); in testIntentExtras()
[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 …]
DCustomClassLoaderTest.java47 InputStream is = mContext.getAssets().open("dex1.bytes"); in setUp() local
48 assertNotNull(is); in setUp()
51 int len = is.read(buffer); in setUp()
54 len = is.read(buffer); in setUp()
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/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/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()
/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()
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java39 InputStream is = null; in loadCertificates() local
42 is = getContext().getResources().openRawResource(resource); in loadCertificates()
43 certs = certFactory.generateCertificates(is); in loadCertificates()
46 if (is != null) { in loadCertificates()
47 is.close(); in loadCertificates()
/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()
321 InputStream is = obtainInputStream(RES_IDS[i]); in testInBitmapReuse() local
322 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in testInBitmapReuse()
435 InputStream is = obtainInputStream(resId); in obtainByteArray() local
439 while ((readLength = is.read(buffer)) != -1) { in obtainByteArray()
[all …]
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale16 performance indication which is more meaningful than MIPS numbers
21 function. Version 2 of Dhrystone is the result of such a re-
31 There is an obvious need for a common C version of Dhrystone, since C
32 is at present the most popular system programming language for the
34 Dhrystone is used most. There should be, as far as possible, only
43 o As far as it is possible without changes to the Dhrystone statistics,
93 However, it turned out that it is not enough just to inclose the main
95 the variables that are computed are not used somehow, there is the
103 branches that are not executed. The intention is that optimizing
116 To a certain degree, this is unavoidable for small synthetic
[all …]
/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/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/
DResourceSourceTest.java74 InputStream is = null; in loadCertificates() local
76 is = getContext().getResources().openRawResource(resId); in loadCertificates()
77 for (Certificate cert : factory.generateCertificates(is)) { in loadCertificates()
82 if (is != null) { in loadCertificates()
83 is.close(); in loadCertificates()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java47 import static org.hamcrest.CoreMatchers.is;
416 assertThat(attestationCert.getKeyUsage(), is(expectedKeyUsage)); in checkKeyUsage()
521 assertThat(attestation.getSoftwareEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin()
523 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_UNKNOWN)); in checkOrigin()
525 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin()
591 is(startTime.getTime() + ORIGINATION_TIME_OFFSET)); in checkValidityPeriod()
593 is(startTime.getTime() + CONSUMPTION_TIME_OFFSET)); in checkValidityPeriod()
616 assertThat(allDigests, is(expectedDigests)); in checkDigests()
622 softwareEnforcedDigests, is(expectedDigests)); in checkDigests()
634 assertThat(teeEnforcedDigests, is(expectedDigests)); in checkDigests()
[all …]
/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/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/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()

12345678910>>...84