Home
last modified time | relevance | path

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

12345

/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()
39 input.getEditChoicesBeforeSending()); in testRemoteInputBuilder_setDataOnly()
40 assertEquals(1, input.getAllowedDataTypes().size()); in testRemoteInputBuilder_setDataOnly()
41 assertTrue(input.getAllowedDataTypes().contains(MIME_TYPE)); in testRemoteInputBuilder_setDataOnly()
45 RemoteInput input = newTextRemoteInput(); in testRemoteInputBuilder_setTextOnly() local
47 assertFalse(input.isDataOnly()); in testRemoteInputBuilder_setTextOnly()
48 assertTrue(input.getAllowFreeFormInput()); in testRemoteInputBuilder_setTextOnly()
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/test_package/
DITest.aidl80 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument
81 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument
82 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument
83 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument
84 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument
85 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument
86 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument
87 ByteEnum[] RepeatByteEnumArray(in ByteEnum[] input, out ByteEnum[] repeated); in RepeatByteEnumArray() argument
88 IntEnum[] RepeatIntEnumArray(in IntEnum[] input, out IntEnum[] repeated); in RepeatIntEnumArray() argument
89 LongEnum[] RepeatLongEnumArray(in LongEnum[] input, out LongEnum[] repeated); in RepeatLongEnumArray() argument
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/aidl_api/libbinder_ndk_test_interface/2/test_package/
DITest.aidl32 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument
33 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument
34 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument
35 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument
36 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument
37 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument
38 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument
39 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument
40 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument
41 …test_package.LongEnum[] RepeatLongEnumArray(in test_package.LongEnum[] input, out test_package.Lon… in RepeatLongEnumArray() argument
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/aidl_api/libbinder_ndk_test_interface_dup/1/test_package/
DITest.aidl32 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument
33 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument
34 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument
35 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument
36 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument
37 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument
38 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument
39 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument
40 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument
41 …test_package.LongEnum[] RepeatLongEnumArray(in test_package.LongEnum[] input, out test_package.Lon… in RepeatLongEnumArray() argument
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/aidl_api/libbinder_ndk_test_interface_dup/current/test_package/
DITest.aidl49 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument
50 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument
51 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument
52 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument
53 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument
54 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument
55 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument
56 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument
57 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument
58 …test_package.LongEnum[] RepeatLongEnumArray(in test_package.LongEnum[] input, out test_package.Lon… in RepeatLongEnumArray() argument
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/aidl_api/libbinder_ndk_test_interface/1/test_package/
DITest.aidl32 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument
33 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument
34 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument
35 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument
36 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument
37 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument
38 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument
39 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument
40 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument
41 …test_package.LongEnum[] RepeatLongEnumArray(in test_package.LongEnum[] input, out test_package.Lon… in RepeatLongEnumArray() argument
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/aidl_api/libbinder_ndk_test_interface/current/test_package/
DITest.aidl49 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument
50 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument
51 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument
52 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument
53 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument
54 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument
55 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument
56 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument
57 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument
58 …test_package.LongEnum[] RepeatLongEnumArray(in test_package.LongEnum[] input, out test_package.Lon… in RepeatLongEnumArray() argument
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DBlockCipherTestBase.java181 for (int input = 0; input <= blockSize * 2; input++) { in testGetOutputSizeInEncryptionMode()
182 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode()
183 int expectedOutputSize = input + getKatAuthenticationTagLengthBytes(); in testGetOutputSizeInEncryptionMode()
193 for (int input = 0; input <= blockSize * 2; input++) { in testGetOutputSizeInEncryptionMode()
194 int actualOutputSize = mCipher.getOutputSize(input); in testGetOutputSizeInEncryptionMode()
195 if (actualOutputSize < input) { in testGetOutputSizeInEncryptionMode()
196 fail("getOutputSize(" + input + ") underestimated output size. min expected: <" in testGetOutputSizeInEncryptionMode()
197 + input + ">, actual: <" + actualOutputSize + ">"); in testGetOutputSizeInEncryptionMode()
206 for (int input = 0; input <= blockSize * 2; input++) { in testGetOutputSizeInEncryptionMode()
207 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()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java32 public static void assertContains(String pattern, String input) throws Exception { in assertContains() argument
33 assertFind(pattern, input, false, false); in assertContains()
36 public static void assertContainsMultiline(String pattern, String input) throws Exception { in assertContainsMultiline() argument
37 assertFind(pattern, input, false, true); in assertContainsMultiline()
40 public static void assertNotContains(String pattern, String input) throws Exception { in assertNotContains() argument
41 assertFind(pattern, input, true, false); in assertNotContains()
44 public static void assertNotContainsMultiline(String pattern, String input) throws Exception { in assertNotContainsMultiline() argument
45 assertFind(pattern, input, true, true); in assertNotContainsMultiline()
49 String pattern, String input, boolean shouldFind, boolean multiline) { in assertFind() argument
51 TimeoutCharSequence timedInput = new TimeoutCharSequence(input, TIMEOUT_DURATION); in assertFind()
[all …]
DSecurityTestCase.java109 public void assertMatches(String pattern, String input) throws Exception { in assertMatches() argument
110 RegexUtils.assertContains(pattern, input); in assertMatches()
114 public void assertMatchesMultiLine(String pattern, String input) throws Exception { in assertMatchesMultiLine() argument
115 RegexUtils.assertContainsMultiline(pattern, input); in assertMatchesMultiLine()
119 public void assertNotMatches(String pattern, String input) throws Exception { in assertNotMatches() argument
120 RegexUtils.assertNotContains(pattern, input); in assertNotMatches()
124 public void assertNotMatchesMultiLine(String pattern, String input) throws Exception { in assertNotMatchesMultiLine() argument
125 RegexUtils.assertNotContainsMultiline(pattern, input); in assertNotMatchesMultiLine()
/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 …]
Dkernel_input.rscript26 * This checks that modifications to input arguments done by a kernel
27 * are never reflected back to the input Allocation. In order to do
28 * this, we create kernels that modify their input arguments (the
31 * When the kernels modify their input arguments, these modifications
34 * used as an in input to a clear_input_* kernel. The verify_input_*
35 * functions check their input against a global variable.
44 // For clear_input_* kernels, we use a volatile qualified input argument
46 // the input argument being optimized out by the compiler.
/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/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/tests/autofillservice/src/android/autofillservice/cts/
DSimpleSaveActivity.java64 mInput = findViewById(R.id.input); in onCreate()
106 public FillExpectation expectAutoFill(String input) { in expectAutoFill() argument
107 final FillExpectation expectation = new FillExpectation(input, null); in expectAutoFill()
112 public FillExpectation expectAutoFill(String input, String password) { in expectAutoFill() argument
113 final FillExpectation expectation = new FillExpectation(input, password); in expectAutoFill()
127 private FillExpectation(String input, String password) { in FillExpectation() argument
128 mInputWatcher = new OneTimeTextWatcher("input", mInput, input); in FillExpectation()
DAttachedContextActivity.java41 mInput = findViewById(R.id.input); in onCreate()
57 FillExpectation expectAutoFill(String input) { in expectAutoFill() argument
58 final FillExpectation expectation = new FillExpectation(input); in expectAutoFill()
66 private FillExpectation(String input) { in FillExpectation() argument
67 mInputWatcher = new OneTimeTextWatcher("input", mInput, input); in FillExpectation()
DPreSimpleSaveActivity.java62 public FillExpectation expectAutoFill(String input) { in expectAutoFill() argument
63 final FillExpectation expectation = new FillExpectation(input); in expectAutoFill()
75 private FillExpectation(String input) { in FillExpectation() argument
76 mInputWatcher = new OneTimeTextWatcher("input", mPreInput, input); in FillExpectation()
DFatActivityTest.java115 final ViewNode input = inputContainer.getChildAt(0);
116 assertNode(input, IMPORTANT_FOR_AUTOFILL_YES);
117 assertThat(input.getIdEntry()).isEqualTo(ID_INPUT);
195 final ViewNode input = inputContainer.getChildAt(0);
196 assertNode(input, IMPORTANT_FOR_AUTOFILL_YES);
197 assertThat(input.getIdEntry()).isEqualTo(ID_INPUT);
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp518 for (const auto& input : tests) { in testRepeat() local
520 out1.resize(input.size()); in testRepeat()
523 ASSERT_OK((i.get()->*repeatMethod)(input, &out1, &out2)) << input.size(); in testRepeat()
524 EXPECT_EQ(input, out1); in testRepeat()
525 EXPECT_EQ(input, out2); in testRepeat()
532 for (const auto& input : tests) { in testRepeat2List() local
537 expected.insert(expected.end(), input.begin(), input.end()); in testRepeat2List()
538 expected.insert(expected.end(), input.begin(), input.end()); in testRepeat2List()
540 ASSERT_OK((i.get()->*repeatMethod)(input, &out1, &out2)) << expected.size(); in testRepeat2List()
647 for (const auto& input : tests) { in testRepeat() local
[all …]
/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/autofillservice/src/android/autofillservice/cts/augmented/
DDisableAutofillTest.java99 final EditText input = simpleActivity.getInput(); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity() local
103 final AutofillId inputId = input.getAutofillId(); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()
104 final AutofillValue inputValue = input.getAutofillValue(); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()
111 simpleActivity.syncRunOnUiThread(() -> input.requestFocus()); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java17 package android.hardware.input.cts.tests;
23 import android.hardware.input.cts.InputCallback;
24 import android.hardware.input.cts.InputCtsActivity;
33 import com.android.cts.input.HidDevice;
34 import com.android.cts.input.HidJsonParser;
35 import com.android.cts.input.HidTestData;

12345