Home
last modified time | relevance | path

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

12345678910>>...156

/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java25 import static org.hamcrest.CoreMatchers.is;
145 assertThat(resolveInfo.size(), is(2)); in testQuery()
147 is("com.android.cts.ephemeralapp1")); in testQuery()
149 is("com.android.cts.ephemeralapp1.EphemeralActivity")); in testQuery()
151 is(true)); in testQuery()
153 is("com.android.cts.normalapp")); in testQuery()
155 is("com.android.cts.normalapp.ExposedActivity")); in testQuery()
157 is(false)); in testQuery()
168 assertThat(resolveInfo.size(), is(2)); in testQuery()
170 is("com.android.cts.ephemeralapp1")); in testQuery()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java24 import static org.hamcrest.CoreMatchers.is;
120 assertThat(resolveInfo.size(), is(2)); in testQuery()
122 is("com.android.cts.normalapp")); in testQuery()
124 is("com.android.cts.normalapp.ExposedActivity")); in testQuery()
126 is(false)); in testQuery()
128 is("com.android.cts.normalapp")); in testQuery()
130 is("com.android.cts.normalapp.NormalActivity")); in testQuery()
132 is(false)); in testQuery()
145 assertThat(resolveInfo.size(), is(2)); in testQuery()
147 is("com.android.cts.normalapp")); in testQuery()
[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/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/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/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/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
DUsbAccessoryTestActivity.java141 try (InputStream is = new ParcelFileDescriptor.AutoCloseInputStream( in onAttached() argument
156 nextTest(is, os, "echo 32 bytes"); in onAttached()
160 int numRead = is.read(buffer32); in onAttached()
165 nextTest(is, os, "echo 32 bytes"); in onAttached()
169 numRead = is.read(buffer16); in onAttached()
177 nextTest(is, os, "echo two 16 byte transfers as one"); in onAttached()
182 numRead = is.read(buffer32); in onAttached()
188 nextTest(is, os, "echo 32 bytes as two 16 byte transfers"); in onAttached()
194 numRead = is.read(buffer32); in onAttached()
199 numRead = is.read(buffer32); in onAttached()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCACertWriter.java50 InputStream is = null; in extractCertToDownloads() local
54 is = assetManager.open(CERT_ASSET_NAME); in extractCertToDownloads()
58 while ((length = is.read(buffer)) > 0) { in extractCertToDownloads()
62 if (is != null) is.close(); in extractCertToDownloads()
/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/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/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/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()
/cts/tests/tests/security/src/android/security/cts/
DConscryptIntermediateVerificationTest.java40 InputStream is = null; in loadCertificates() local
43 is = getContext().getResources().openRawResource(resource); in loadCertificates()
44 certs = certFactory.generateCertificates(is); in loadCertificates()
47 if (is != null) { in loadCertificates()
48 is.close(); in loadCertificates()
DBitmapFactorySecurityTests.java36 InputStream is = mContext.getResources().openRawResource(resId); in getResource() local
37 assertNotNull(is); in getResource()
43 while ((readLength = is.read(buffer)) != -1) { in getResource()
46 is.close(); in getResource()
/cts/hostsidetests/library/
DAndroid.bp10 // distributed under the License is distributed on an "AS IS" BASIS,
36 // Note that this app is built as a java library. The actual app is built
37 // by the test (CtsUsesNativeLibraryTest) while the test is running.
38 // This java library is appended to the built apk by the test.
55 // an apk by the test. This zip file is extracted by the test and files
60 // not the tools for creating the zip. However, since the java test is not
66 // property instead of `tools` or `srcs`. This is because those modules are
69 // directory is manually searched in the cmd, while dependencies to them are
74 // (except for soong_zip which is actually the tool)
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/
DAndroid.bp11 // distributed under the License is distributed on an "AS IS" BASIS,
28 // This is the first version of the test app signed with the initial signing
30 // library and is used to verify end to end updates with key rotation.
45 // This is the second version of the test app signed with the rotated signing
46 // key with an updated version number. This app is intended to verify that an
65 // This is the third version of the test app signed with the same rotated
66 // signing key as v2. This app is intended to verify that an app can still
/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()
208 private String readInputStreamFully(InputStream is) throws IOException { in readInputStreamFully() argument
211 while (is.available() > 0) { in readInputStreamFully()
212 int size = is.read(buffer); in readInputStreamFully()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/
DResourceSourceTest.java73 InputStream is = null; in loadCertificates() local
75 is = getContext().getResources().openRawResource(resId); in loadCertificates()
76 for (Certificate cert : factory.generateCertificates(is)) { in loadCertificates()
81 if (is != null) { in loadCertificates()
82 is.close(); in loadCertificates()
/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/cts/
DBitmapRegionDecoderTest.java152 InputStream is = obtainInputStream(RES_IDS[i]); in testNewInstanceInputStream() local
155 BitmapRegionDecoder.newInstance(is); in testNewInstanceInputStream()
162 if (is != null) { in testNewInstanceInputStream()
163 is.close(); in testNewInstanceInputStream()
330 InputStream is = obtainInputStream(RES_IDS[0]); in testRecycle() local
331 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is); in testRecycle()
371 InputStream is = obtainInputStream(RES_IDS[i]); in testInBitmapReuse() local
372 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is); in testInBitmapReuse()
439 InputStream is = obtainInputStream(RES_IDS[0]); in testDecodeHardwareBitmap() local
440 BitmapRegionDecoder decoder = BitmapRegionDecoder.newInstance(is); in testDecodeHardwareBitmap()
[all …]
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DCurrentXmlHandler.java83 mCurrentClassName, mDeprecated, is(attributes, "abstract"), superClass); in startElement()
95 mCurrentMethodIsAbstract = is(attributes, "abstract"); in startElement()
97 mCurrentMethodStaticMethod = is(attributes, "static"); in startElement()
98 mCurrentMethodFinalMethod = is(attributes, "final"); in startElement()
149 private static boolean is(Attributes attributes, String valueName) { in is() method in CurrentXmlHandler
/cts/tools/incremental-cts/
DREADME.md2 incremental-cts is an EXPERIMENTAL project. It's for analysis purpose only and is NOT meant to be u…
23 Target file is an build artifact produced by Android build system, e.g.

12345678910>>...156