Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 66) sorted by relevance

123

/cts/tests/app/src/android/app/cts/
DRemoteInputTest.java33 RemoteInput input = newDataOnlyRemoteInput(); in testRemoteInputBuilder_setDataOnly() local
35 assertTrue(input.isDataOnly()); in testRemoteInputBuilder_setDataOnly()
36 assertFalse(input.getAllowFreeFormInput()); in testRemoteInputBuilder_setDataOnly()
37 assertTrue(input.getChoices() == null || input.getChoices().length == 0); in testRemoteInputBuilder_setDataOnly()
38 assertEquals(1, input.getAllowedDataTypes().size()); in testRemoteInputBuilder_setDataOnly()
39 assertTrue(input.getAllowedDataTypes().contains(MIME_TYPE)); in testRemoteInputBuilder_setDataOnly()
43 RemoteInput input = newTextRemoteInput(); in testRemoteInputBuilder_setTextOnly() local
45 assertFalse(input.isDataOnly()); in testRemoteInputBuilder_setTextOnly()
46 assertTrue(input.getAllowFreeFormInput()); in testRemoteInputBuilder_setTextOnly()
47 assertTrue(input.getChoices() == null || input.getChoices().length == 0); in testRemoteInputBuilder_setTextOnly()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java179 for (int input = 0; input <= blockSize * 2; input++) { in testGetOutputSizeInEncryptionMode()
180 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode()
181 int expectedOutputSize = input + getKatAuthenticationTagLengthBytes(); in testGetOutputSizeInEncryptionMode()
191 for (int input = 0; input <= blockSize * 2; input++) { in testGetOutputSizeInEncryptionMode()
192 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode()
193 if (actualOutputSize < input) { in testGetOutputSizeInEncryptionMode()
194 fail("getOutputSize(" + input + ") underestimated output size. min expected: <" in testGetOutputSizeInEncryptionMode()
195 + input + ">, actual: <" + actualOutputSize + ">"); in testGetOutputSizeInEncryptionMode()
204 for (int input = 0; input <= blockSize * 2; input++) { in testGetOutputSizeInEncryptionMode()
205 int inputInclBuffered = buffered + input; in testGetOutputSizeInEncryptionMode()
[all …]
DAESGCMCipherTestBase.java152 byte[] aad, byte[] input, byte[] expectedOutput) throws Exception { in assertKatTransformWithAadProvidedInOneGo() argument
155 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo()
159 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo()
163 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInOneGo()
167 byte[] aad, byte[] input, byte[] expectedOutput, int maxChunkSize) throws Exception { in assertKatTransformWithAadProvidedInChunks() argument
176 assertEquals(expectedOutput, doFinal(input)); in assertKatTransformWithAadProvidedInChunks()
DRSACipherTest.java55 byte[] input = new byte[] {1}; in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
57 byte[] expectedOutput = TestUtils.leftPadWithZeroBytes(input, modulusSizeBytes); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
61 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
64 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java66 protected static long assertInteger(String input) { in assertInteger() argument
68 return Long.parseLong(input); in assertInteger()
70 fail("Expected an integer but found \"" + input + "\""); in assertInteger()
76 protected static long assertNonNegativeInteger(String input) { in assertNonNegativeInteger() argument
78 final long result = Long.parseLong(input); in assertNonNegativeInteger()
83 fail("Expected an integer but found \"" + input + "\""); in assertNonNegativeInteger()
89 protected static long assertPositiveInteger(String input) { in assertPositiveInteger() argument
91 final long result = Long.parseLong(input); in assertPositiveInteger()
96 fail("Expected an integer but found \"" + input + "\""); in assertPositiveInteger()
124 protected static double assertDouble(String input) { in assertDouble() argument
[all …]
/cts/common/util/src/com/android/compatibility/common/util/
DResultUploader.java48 InputStream input = new FileInputStream(reportFile); in uploadResult() local
50 byte[] data = getBytes(input); in uploadResult()
57 input.close(); in uploadResult()
61 private static byte[] getBytes(InputStream input) throws IOException { in getBytes() argument
66 while ((count = input.read(buffer)) > 0) { in getBytes()
DFileUtil.java57 public static void writeToFile(InputStream input, File destFile) throws IOException { in writeToFile() argument
61 origStream = new BufferedInputStream(input); in writeToFile()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DReduceTest.java174 private int addint(final int[] input) { in addint() argument
176 for (int idx = 0; idx < input.length; ++idx) in addint()
177 rslt += input[idx]; in addint()
182 final int[] input = createInputArrayInt(100000, 0, 1 << 13); in testAddInt1D() local
184 final int javaRslt = addint(input); in testAddInt1D()
185 final int rsRslt = mScript.reduce_addint(input).get(); in testAddInt1D()
209 private Int2 findMinAndMax(final float[] input) { in findMinAndMax() argument
215 for (int idx = 0; idx < input.length; ++idx) { in findMinAndMax()
216 if (input[idx] < minVal) { in findMinAndMax()
217 minVal = input[idx]; in findMinAndMax()
[all …]
Dfloat16_gen.c48 FP16Constant input[] = { variable
80 const int numInputs = sizeof(input) / sizeof(FP16Constant);
217 printf("(short) 0x%04x, // %s\n", input[x].value, input[x].description); in printInput()
236 result = operation(input[x].value, input[y].value); in printReferenceOutput()
DScriptGroupTest.java373 Allocation input = Allocation.createSized(mRS, Element.I32_4(mRS), ARRAY_SIZE); in testBuilder2PointWiseKernelToKernelDependency() local
374 input.copyFrom(array); in testBuilder2PointWiseKernelToKernelDependency()
395 ((Allocation)group.execute(input)[0]).copyTo(a); in testBuilder2PointWiseKernelToKernelDependency()
399 input.destroy(); in testBuilder2PointWiseKernelToKernelDependency()
428 Allocation input = Allocation.createSized(mRS, Element.I32_4(mRS), ARRAY_SIZE); in testBuilder2GatherScatterAcrossKernelsViaGlobals() local
429 input.copyFrom(array); in testBuilder2GatherScatterAcrossKernelsViaGlobals()
453 ((Allocation)group.execute(input)[0]).copyTo(a); in testBuilder2GatherScatterAcrossKernelsViaGlobals()
457 input.destroy(); in testBuilder2GatherScatterAcrossKernelsViaGlobals()
487 Allocation input = Allocation.createSized(mRS, Element.I32_4(mRS), ARRAY_SIZE); in testBuilder2KernelOutputToGlobal() local
488 input.copyFrom(array); in testBuilder2KernelOutputToGlobal()
[all …]
DFloat16ArithmeticTest.java37 private int numInputs = Float16TestData.input.length;
65 mInput.copyFromUnchecked(Float16TestData.input); in setUp()
87 short in1 = Float16TestData.input[x]; in checkFloat16Output()
88 short in2 = Float16TestData.input[y]; in checkFloat16Output()
DFloat16TestData.java22 static short[] input = { field in Float16TestData
/cts/tests/tests/rscpp/librscpptest/
Drs_jni.cpp90 jbyte * input = (jbyte *) env->GetPrimitiveArrayCritical(inputByteArray, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest() local
107 inputAlloc->copy2DRangeFrom(0, 0, X, Y, input); in Java_android_cts_rscpp_RSBlurTest_blurTest()
114 env->ReleasePrimitiveArrayCritical(inputByteArray, input, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest()
130 jbyte * input = (jbyte *) env->GetPrimitiveArrayCritical(inputByteArray, 0); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() local
142 inputAlloc->copy2DRangeFrom(0, 0, X, Y, input); in Java_android_cts_rscpp_RSConvolveTest_convolveTest()
159 env->ReleasePrimitiveArrayCritical(inputByteArray, input, 0); in Java_android_cts_rscpp_RSConvolveTest_convolveTest()
176 jbyte * input = (jbyte *) env->GetPrimitiveArrayCritical(inputByteArray, 0); in Java_android_cts_rscpp_RSLUTTest_lutTest() local
188 inputAlloc->copy2DRangeFrom(0, 0, X, Y, input); in Java_android_cts_rscpp_RSLUTTest_lutTest()
200 env->ReleasePrimitiveArrayCritical(inputByteArray, input, 0); in Java_android_cts_rscpp_RSLUTTest_lutTest()
218 jbyte * input = (jbyte *) env->GetPrimitiveArrayCritical(inputByteArray, 0); in Java_android_cts_rscpp_RS3DLUTTest_lutTest() local
[all …]
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DPackageTest.java52 private static final String truncateError(String input) { in truncateError() argument
53 return input.substring(0, Math.min(input.length(), MAX_ERROR_LENGTH)); in truncateError()
/cts/tests/tests/provider/src/android/provider/cts/
DPhotoUtil.java29 InputStream input = context.getResources().openRawResource(R.drawable.testimage); in getTestPhotoData() local
30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java143 InputStream input = null; in onCreateDialog() local
146 input = new FileInputStream(imageFile); in onCreateDialog()
149 BitmapFactory.decodeStream(input, null, options); in onCreateDialog()
159 input.close(); in onCreateDialog()
160 input = new FileInputStream(imageFile); in onCreateDialog()
161 scaled = BitmapFactory.decodeStream(input, null, options); in onCreateDialog()
168 input.close(); in onCreateDialog()
/cts/tests/tests/accounts/src/android/accounts/cts/
DAccountRemovalDummyActivity.java40 Bundle input = (savedInstanceState == null) ? getIntent().getExtras() : savedInstanceState; in onCreate() local
41 mResponse = input in onCreate()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DRawConverter.java351 Allocation input = Allocation.createTyped(rs, inputType); in convertToSRGB() local
352 input.copyFromUnchecked(rawImageInput); in convertToSRGB()
356 converterKernel.set_inputRawBuffer(input); in convertToSRGB()
659 private static void map(float[] matrix, float[] input, /*out*/float[] output) { in map() argument
660 output[0] = input[0] * matrix[0] + input[1] * matrix[1] + input[2] * matrix[2]; in map()
661 output[1] = input[0] * matrix[3] + input[1] * matrix[4] + input[2] * matrix[5]; in map()
662 output[2] = input[0] * matrix[6] + input[1] * matrix[7] + input[2] * matrix[8]; in map()
DBitmapUtils.java51 Allocation input = Allocation.createFromBitmap(rs, bmap); in calcHistograms() local
54 hist.forEach(input); in calcHistograms()
/cts/tests/tests/hardware/src/android/hardware/input/cts/
DInputCallback.java17 package android.hardware.input.cts;
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java130 InputStream input = mContext.getResources().openRawResource(resId); in getSignature() local
136 while ((numBytes = input.read(buffer)) != -1) { in getSignature()
141 input.close(); in getSignature()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java17 package android.hardware.input.cts.tests;
20 import android.hardware.input.cts.InputCtsActivity;
21 import android.hardware.input.cts.InputCallback;
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DDepthImage.java60 InputStream input = context.getContentResolver().openInputStream(image); in createFromXMPMetadata() local
61 XmpDepthDecode decode = new XmpDepthDecode(input); in createFromXMPMetadata()
/cts/tests/tests/view/src/android/view/animation/cts/
DDecelerateInterpolatorTest.java171 final float input = 0.25f; in testGetInterpolation() local
176 float delta1 = interpolator1.getInterpolation(input); in testGetInterpolation()
177 float delta2 = interpolator2.getInterpolation(input); in testGetInterpolation()
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
DProgressBarModifier.java34 public float getInterpolation(float input) { in getInterpolation() argument

123