Home
last modified time | relevance | path

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

12345678910>>...140

/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java25 import static org.hamcrest.CoreMatchers.is;
139 assertThat(resolveInfo.size(), is(2)); in testQuery()
141 is("com.android.cts.ephemeralapp1")); in testQuery()
143 is("com.android.cts.ephemeralapp1.EphemeralActivity")); in testQuery()
145 is(true)); in testQuery()
147 is("com.android.cts.normalapp")); in testQuery()
149 is("com.android.cts.normalapp.ExposedActivity")); in testQuery()
151 is(false)); in testQuery()
162 assertThat(resolveInfo.size(), is(2)); in testQuery()
164 is("com.android.cts.ephemeralapp1")); in testQuery()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java20 import static org.hamcrest.CoreMatchers.is;
99 assertThat(resolveInfo.size(), is(2)); in testQuery()
101 is("com.android.cts.normalapp")); in testQuery()
103 is("com.android.cts.normalapp.ExposedActivity")); in testQuery()
105 is(false)); in testQuery()
107 is("com.android.cts.normalapp")); in testQuery()
109 is("com.android.cts.normalapp.NormalActivity")); in testQuery()
111 is(false)); in testQuery()
124 assertThat(resolveInfo.size(), is(2)); in testQuery()
126 is("com.android.cts.normalapp")); in testQuery()
[all …]
/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].
Dlayered_filter_fast_f32.rscript4 // This is a speedup version of layered_filter_f32.rs using summation table.
9 // 1. The depth value varies between 1 and number of depth levels. 0 is reserved
14 // 4. The focal layer (i.e., the global variable g_focal_layer) is the depth
40 // This image buffer is used to store input image initially.
41 // Then the input image gets updated as each layer is processed from the
42 // back-most to the focal depth. This image buffer is padded.
45 // This image buffer is used to save an integral image of g_sharp_image
52 // This image buffer is used to store output image, both for intermediate
55 // layer filtering result temporarily and then the result is used to update the
56 // input image after each layer is processed.
[all …]
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).
Dlayered_filter_fast_d1new.rscript4 // This is a speedup version of layered_filter_f32.rs using summation table.
9 // 1. The depth value varies between 1 and number of depth levels. 0 is reserved
14 // 4. The focal layer (i.e., the global variable g_focal_layer) is the depth
43 // This image buffer is used to store input image initially.
44 // Then the input image gets updated as each layer is processed from the
45 // back-most to the focal depth. This image buffer is padded.
47 // This image buffer is used to save an integral image of g_sharp_image
53 // This image buffer is used to store output image, both for intermediate
56 // layer filtering result temporarily and then the result is used to update the
57 // input image after each layer is processed.
[all …]
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DDeviceTestCompanion.java59 private String nextTest(@NonNull InputStream is, @NonNull OutputStream os, in nextTest() argument
63 int numRead = is.read(sizeBuffer); in nextTest()
67 numRead = is.read(nextTestNameBytes); in nextTest()
74 numRead = is.read(sizeBuffer); in nextTest()
93 private boolean echoBytes(@NonNull InputStream is, @NonNull OutputStream os, int size) in echoBytes() argument
99 int ret = is.read(buffer, read, size - read); in echoBytes()
121 private boolean echoUntilStopSignal(@NonNull InputStream is, @NonNull OutputStream os) { in echoUntilStopSignal() argument
125 int numRead = is.read(dataBytes); in echoUntilStopSignal()
183 try (InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in runTest() argument
189 testName = nextTest(is, os, isSuccess); in runTest()
[all …]
/cts/tests/tests/resolverservice/src/android/service/resolver/cts/
DResolverTargetTest.java19 import static org.hamcrest.CoreMatchers.is;
41 assertThat(target.getChooserScore(), is(1.0f)); in sanityCheckDataConsistency()
44 assertThat(target.getLaunchScore(), is(0.5f)); in sanityCheckDataConsistency()
47 assertThat(target.getRecencyScore(), is(0.3f)); in sanityCheckDataConsistency()
50 assertThat(target.getSelectProbability(), is(0.2f)); in sanityCheckDataConsistency()
53 assertThat(target.getTimeSpentScore(), is(0.1f)); in sanityCheckDataConsistency()
71 assertThat(fromParcel.getChooserScore(), is(1.0f)); in sanityCheckParcelability()
72 assertThat(fromParcel.getLaunchScore(), is(0.5f)); in sanityCheckParcelability()
73 assertThat(fromParcel.getRecencyScore(), is(0.3f)); in sanityCheckParcelability()
74 assertThat(fromParcel.getSelectProbability(), is(0.2f)); in sanityCheckParcelability()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java111 try (InputStream is = new ParcelFileDescriptor.AutoCloseInputStream( in onAttached() argument
126 nextTest(is, os, "echo 32 bytes"); in onAttached()
130 int numRead = is.read(buffer32); in onAttached()
135 nextTest(is, os, "echo 32 bytes"); in onAttached()
139 numRead = is.read(buffer16); in onAttached()
147 nextTest(is, os, "echo two 16 byte transfers as one"); in onAttached()
152 numRead = is.read(buffer32); in onAttached()
158 nextTest(is, os, "echo 32 bytes as two 16 byte transfers"); in onAttached()
164 numRead = is.read(buffer32); in onAttached()
169 numRead = is.read(buffer32); in onAttached()
[all …]
/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/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java21 import static org.hamcrest.CoreMatchers.is;
440 assertThat(selectResponse[selectResponse.length - 1] & 0xFF, is(0x00)); in testSelectableAid()
441 assertThat(selectResponse[selectResponse.length - 2] & 0xFF, is(0x90)); in testSelectableAid()
497 assertThat(selectResponse[selectResponse.length - 1] & 0xFF, is(0x00)); in testSecurityExceptionInTransmit()
498 assertThat(selectResponse[selectResponse.length - 2] & 0xFF, is(0x90)); in testSecurityExceptionInTransmit()
575 assertThat(response.length, is(2)); in testTransmitApdu()
576 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu()
577 assertThat(response[response.length - 2] & 0xFF, is(0x90)); in testTransmitApdu()
583 assertThat(response.length, is(258)); in testTransmitApdu()
584 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureLoader.java127 protected static PVRHeader readPVRHeader(InputStream is) { in readPVRHeader() argument
131 is.read(headerData); in readPVRHeader()
200 private static ByteBuffer read(InputStream is, int dataSize) { in read() argument
207 is.read(ioBuffer, 0, chunkSize); in read()
219 InputStream is = null; in loadTexturePVRTC() local
221 is = res.openRawResource(id); in loadTexturePVRTC()
226 PVRHeader header = readPVRHeader(is); in loadTexturePVRTC()
242 ByteBuffer dataBuffer = read(is, dataSize); in loadTexturePVRTC()
247 is.close(); in loadTexturePVRTC()
334 protected static DDSHeader readDDSHeader(InputStream is) { in readDDSHeader() argument
[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/tests/tests/graphics/src/android/graphics/fonts/
DFontTest.java79 try (InputStream is = am.open(path)) { in mmap() argument
80 if (!copyToFile(file, is)) { in mmap()
101 private static boolean copyToFile(File file, InputStream is) { in copyToFile() argument
102 return copyToFile(file, is, null, null); in copyToFile()
105 private static boolean copyToFile(File file, InputStream is, byte[] prepend, byte[] append) { in copyToFile() argument
112 while ((readLen = is.read(buffer)) != -1) { in copyToFile()
251 try (InputStream is = am.open(path)) { in testBuilder_file() argument
252 assertTrue(copyToFile(file, is)); in testBuilder_file()
278 try (InputStream is = am.open(path)) { in testBuilder_file_ttc() argument
279 assertTrue(copyToFile(file, is)); in testBuilder_file_ttc()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java49 import static org.hamcrest.CoreMatchers.is;
581 assertThat(attestationCert.getKeyUsage(), is(expectedKeyUsage)); in checkKeyUsage()
712 attestation.getUnexpectedExtensionOids(), is(empty())); in checkUnexpectedOids()
761 assertThat(attestation.getSoftwareEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin()
763 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_UNKNOWN)); in checkOrigin()
765 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin()
831 is(startTime.getTime() + ORIGINATION_TIME_OFFSET)); in checkValidityPeriod()
833 is(startTime.getTime() + CONSUMPTION_TIME_OFFSET)); in checkValidityPeriod()
856 assertThat(allDigests, is(expectedDigests)); in checkDigests()
862 softwareEnforcedDigests, is(expectedDigests)); in checkDigests()
[all …]
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java82 try (InputStream is = manager.open("syscalls_allowed.json")) { in initializeSyscallMap() argument
83 mAllowedSyscallMap = new JSONObject(readInputStreamFully(is)); in initializeSyscallMap()
85 try (InputStream is = manager.open("syscalls_blocked.json")) { in initializeSyscallMap() argument
86 mBlockedSyscallMap = new JSONObject(readInputStreamFully(is)); in initializeSyscallMap()
207 private String readInputStreamFully(InputStream is) throws IOException { in readInputStreamFully() argument
210 while (is.available() > 0) { in readInputStreamFully()
211 int size = is.read(buffer); in readInputStreamFully()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/UserAppTest/src/com/android/cts/userapptest/
DClientTest.java19 import static org.hamcrest.CoreMatchers.is;
58 assertThat(resolveInfo.size(), is(1)); in testQueryFull()
60 is("com.android.cts.userapp")); in testQueryFull()
62 is("com.android.cts.userapp.UserActivity")); in testQueryFull()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCANotifyOnBootActivity.java62 InputStream is = null; in onClick() local
66 is = getAssets().open(CERT_ASSET_NAME); in onClick()
70 while ((length = is.read(buffer)) > 0) { in onClick()
74 if (is != null) is.close(); in onClick()
DCAInstallNotificationVerifierActivity.java97 InputStream is = null; in performTest() local
101 is = getAssets().open(CERT_ASSET_NAME); in performTest()
105 while ((length = is.read(buffer)) > 0) { in performTest()
109 if (is != null) is.close(); in performTest()
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java41 InputStream is = null; in loadCertificates() local
44 is = getContext().getResources().openRawResource(resource); in loadCertificates()
45 certs = certFactory.generateCertificates(is); in loadCertificates()
48 if (is != null) { in loadCertificates()
49 is.close(); in loadCertificates()
DBitmapFactorySecurityTests.java37 InputStream is = mContext.getResources().openRawResource(resId); in getResource() local
38 assertNotNull(is); in getResource()
44 while ((readLength = is.read(buffer)) != -1) { in getResource()
47 is.close(); in getResource()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java150 InputStream is = obtainInputStream(RES_IDS[i]); in testNewInstanceInputStream() local
153 BitmapRegionDecoder.newInstance(is, false); in testNewInstanceInputStream()
160 if (is != null) { in testNewInstanceInputStream()
161 is.close(); in testNewInstanceInputStream()
333 InputStream is = obtainInputStream(RES_IDS[0]); in testRecycle() local
334 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in testRecycle()
374 InputStream is = obtainInputStream(RES_IDS[i]); in testInBitmapReuse() local
375 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in testInBitmapReuse()
441 InputStream is = obtainInputStream(RES_IDS[0]); in testDecodeHardwareBitmap() local
442 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is, false); in testDecodeHardwareBitmap()
[all …]
/cts/tests/tests/os/src/android/os/cts/
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()

12345678910>>...140