/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 19 import static org.hamcrest.CoreMatchers.is; 115 assertThat(resolveInfo.size(), is(2)); in testQuery() 117 is("com.android.cts.ephemeralapp1")); in testQuery() 119 is("com.android.cts.ephemeralapp1.EphemeralActivity")); in testQuery() 121 is(true)); in testQuery() 123 is("com.android.cts.normalapp")); in testQuery() 125 is("com.android.cts.normalapp.ExposedActivity")); in testQuery() 127 is(false)); in testQuery() 138 assertThat(resolveInfo.size(), is(2)); in testQuery() 140 is("com.android.cts.ephemeralapp1")); in testQuery() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | ClientTest.java | 19 import static org.hamcrest.CoreMatchers.is; 97 assertThat(resolveInfo.size(), is(2)); in testQuery() 99 is("com.android.cts.normalapp")); in testQuery() 101 is("com.android.cts.normalapp.ExposedActivity")); in testQuery() 103 is(false)); in testQuery() 105 is("com.android.cts.normalapp")); in testQuery() 107 is("com.android.cts.normalapp.NormalActivity")); in testQuery() 109 is(false)); in testQuery() 122 assertThat(resolveInfo.size(), is(2)); in testQuery() 124 is("com.android.cts.normalapp")); in testQuery() [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/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | DeviceTestCompanion.java | 60 private String nextTest(@NonNull InputStream is, @NonNull OutputStream os, in nextTest() argument 64 int numRead = is.read(sizeBuffer); in nextTest() 68 numRead = is.read(nextTestNameBytes); in nextTest() 75 numRead = is.read(sizeBuffer); in nextTest() 94 private boolean echoBytes(@NonNull InputStream is, @NonNull OutputStream os, int size) in echoBytes() argument 98 int numRead = is.read(buffer); in echoBytes() 118 private boolean echoUntilStopSignal(@NonNull InputStream is, @NonNull OutputStream os) { in echoUntilStopSignal() argument 122 int numRead = is.read(dataBytes); in echoUntilStopSignal() 180 try (InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in runTest() argument 186 testName = nextTest(is, os, isSuccess); in runTest() [all …]
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | BytesStreamSucker.java | 37 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()
|
D | CharactersStreamSucker.java | 42 @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/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/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/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptorTest.java | 135 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 …]
|
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/hostsidetests/appsecurity/test-apps/EphemeralTestApp/UserAppTest/src/com/android/cts/userapptest/ |
D | ClientTest.java | 19 import static org.hamcrest.CoreMatchers.is; 57 assertThat(resolveInfo.size(), is(1)); in testQueryFull() 59 is("com.android.cts.userapp")); in testQueryFull() 61 is("com.android.cts.userapp.UserActivity")); in testQueryFull()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CANotifyOnBootActivity.java | 58 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()
|
D | CAInstallNotificationVerifierActivity.java | 97 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/ |
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()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | CurrentXmlHandler.java | 80 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/hostsidetests/sustainedperf/dhrystone/ |
D | Rationale | 16 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/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/ |
D | ResourceSourceTest.java | 74 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/ |
D | KeyAttestationTest.java | 47 import static org.hamcrest.CoreMatchers.is; 449 assertThat(attestationCert.getKeyUsage(), is(expectedKeyUsage)); in checkKeyUsage() 575 assertThat(attestation.getSoftwareEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin() 577 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_UNKNOWN)); in checkOrigin() 579 assertThat(attestation.getTeeEnforced().getOrigin(), is(KM_ORIGIN_GENERATED)); in checkOrigin() 645 is(startTime.getTime() + ORIGINATION_TIME_OFFSET)); in checkValidityPeriod() 647 is(startTime.getTime() + CONSUMPTION_TIME_OFFSET)); in checkValidityPeriod() 670 assertThat(allDigests, is(expectedDigests)); in checkDigests() 676 softwareEnforcedDigests, is(expectedDigests)); in checkDigests() 689 assertThat(teeEnforcedDigests, is(expectedDigests)); in checkDigests() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 118 InputStream is = mResources.openRawResource(MOVIE); in testDecodeByteArray() local 119 byte[] bytes = inputStreamToBytes(is); in testDecodeByteArray() 121 is.close(); in testDecodeByteArray() 129 try (InputStream is = mResources.openRawResource(MOVIE)) { in testDecodeStream() argument 130 mMovie = Movie.decodeStream(is); in testDecodeStream()
|
/cts/apps/EmptyDeviceAdmin/ |
D | README | 10 distributed under the License is distributed on an "AS IS" BASIS, 15 This package is used to generate CtsEmptyDeviceAdmin.apk that is used in assets of CtsVerifier.
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
D | PermissionTestService.java | 228 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()
|