/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 25 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/ |
D | ClientTest.java | 20 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/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | DeviceTestCompanion.java | 59 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/ |
D | pixel_format_f32.rsh | 4 // 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 …]
|
D | XmpDepthDecode.java | 65 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 …]
|
D | luts_for_speedup_f32.rsh | 6 // 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].
|
D | image_and_kernel.rsh | 6 // 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/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | UsbAccessoryTestActivity.java | 111 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/ |
D | RawResourceTest.java | 38 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/ |
D | OmapiTest.java | 21 import static org.hamcrest.CoreMatchers.is; 359 assertThat(selectResponse[selectResponse.length - 1] & 0xFF, is(0x00)); in testSelectableAid() 360 assertThat(selectResponse[selectResponse.length - 2] & 0xFF, is(0x90)); in testSelectableAid() 414 assertThat(selectResponse[selectResponse.length - 1] & 0xFF, is(0x00)); in testSecurityExceptionInTransmit() 415 assertThat(selectResponse[selectResponse.length - 2] & 0xFF, is(0x90)); in testSecurityExceptionInTransmit() 491 assertThat(response.length, is(2)); in testTransmitApdu() 492 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu() 493 assertThat(response[response.length - 2] & 0xFF, is(0x90)); in testTransmitApdu() 499 assertThat(response.length, is(258)); in testTransmitApdu() 500 assertThat(response[response.length - 1] & 0xFF, is(0x00)); in testTransmitApdu() [all …]
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | CompressedTextureLoader.java | 127 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/appsecurity/test-apps/EphemeralTestApp/UserAppTest/src/com/android/cts/userapptest/ |
D | ClientTest.java | 19 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/os/src/android/os/cts/ |
D | CustomClassLoaderTest.java | 47 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/ |
D | ConscryptIntermediateVerificationTest.java | 41 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()
|
D | BitmapFactorySecurityTests.java | 37 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/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CANotifyOnBootActivity.java | 62 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()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyAttestationTest.java | 50 import static org.hamcrest.CoreMatchers.is; 458 assertThat(attestationCert.getKeyUsage(), is(expectedKeyUsage)); in checkKeyUsage() 584 assertThat(attestation.getSoftwareEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin() 586 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_UNKNOWN)); in checkOrigin() 588 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin() 654 is(startTime.getTime() + ORIGINATION_TIME_OFFSET)); in checkValidityPeriod() 656 is(startTime.getTime() + CONSUMPTION_TIME_OFFSET)); in checkValidityPeriod() 679 assertThat(allDigests, is(expectedDigests)); in checkDigests() 685 softwareEnforcedDigests, is(expectedDigests)); in checkDigests() 699 assertThat(teeEnforcedDigests, is(expectedDigests)); in checkDigests() [all …]
|
/cts/hostsidetests/jvmti/run-tests/test-1939/app/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-1901/app/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-928/app/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-1912/app/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-1903/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-951/app/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-1922/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|
/cts/hostsidetests/jvmti/run-tests/test-947/ |
D | OWNERS | 1 # DO NOT DELETE: OWNERS is intended to be empty as module owner and bug component are defined 2 # in parent directory. This file is needed as a placeholder for verification purpose as we 3 # need to tell the difference between "no owner is specified for this module" vs "explicitly
|