/cts/tests/app/src/android/app/cts/ |
D | RemoteInputTest.java | 33 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/ |
D | ITest.aidl | 85 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument 86 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument 87 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument 88 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument 89 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument 90 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument 91 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument 92 ByteEnum[] RepeatByteEnumArray(in ByteEnum[] input, out ByteEnum[] repeated); in RepeatByteEnumArray() argument 93 IntEnum[] RepeatIntEnumArray(in IntEnum[] input, out IntEnum[] repeated); in RepeatIntEnumArray() argument 94 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/1/test_package/ |
D | ITest.aidl | 65 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument 66 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument 67 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument 68 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument 69 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument 70 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument 71 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument 72 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument 73 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument 74 …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/ |
D | ITest.aidl | 65 boolean[] RepeatBooleanArray(in boolean[] input, out boolean[] repeated); in RepeatBooleanArray() argument 66 byte[] RepeatByteArray(in byte[] input, out byte[] repeated); in RepeatByteArray() argument 67 char[] RepeatCharArray(in char[] input, out char[] repeated); in RepeatCharArray() argument 68 int[] RepeatIntArray(in int[] input, out int[] repeated); in RepeatIntArray() argument 69 long[] RepeatLongArray(in long[] input, out long[] repeated); in RepeatLongArray() argument 70 float[] RepeatFloatArray(in float[] input, out float[] repeated); in RepeatFloatArray() argument 71 double[] RepeatDoubleArray(in double[] input, out double[] repeated); in RepeatDoubleArray() argument 72 …test_package.ByteEnum[] RepeatByteEnumArray(in test_package.ByteEnum[] input, out test_package.Byt… in RepeatByteEnumArray() argument 73 …test_package.IntEnum[] RepeatIntEnumArray(in test_package.IntEnum[] input, out test_package.IntEnu… in RepeatIntEnumArray() argument 74 …test_package.LongEnum[] RepeatLongEnumArray(in test_package.LongEnum[] input, out test_package.Lon… in RepeatLongEnumArray() argument [all …]
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | RegexUtils.java | 32 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 …]
|
D | SecurityTestCase.java | 148 public void assertMatches(String pattern, String input) throws Exception { in assertMatches() argument 149 RegexUtils.assertContains(pattern, input); in assertMatches() 153 public void assertMatchesMultiLine(String pattern, String input) throws Exception { in assertMatchesMultiLine() argument 154 RegexUtils.assertContainsMultiline(pattern, input); in assertMatchesMultiLine() 158 public void assertNotMatches(String pattern, String input) throws Exception { in assertNotMatches() argument 159 RegexUtils.assertNotContains(pattern, input); in assertNotMatches() 163 public void assertNotMatchesMultiLine(String pattern, String input) throws Exception { in assertNotMatchesMultiLine() argument 164 RegexUtils.assertNotContainsMultiline(pattern, input); in assertNotMatchesMultiLine()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | BlockCipherTestBase.java | 181 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 …]
|
D | AESGCMCipherTestBase.java | 152 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/apps/CtsVerifier/jni/audio_loopback/analyzer/ |
D | PeakDetector.h | 34 double process(double input) { in process() argument 36 input = fabs(input); in process() 38 if (input > mLevel) { in process() 39 mLevel = input; in process()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | SimpleSaveActivity.java | 66 mInput = findViewById(R.id.input); in onCreate() 108 public FillExpectation expectInputTextChange(String input) { in expectInputTextChange() argument 109 final FillExpectation expectation = new FillExpectation(input, null); in expectInputTextChange() 114 public FillExpectation expectAutoFill(String input) { in expectAutoFill() argument 115 return expectInputTextChange(input); in expectAutoFill() 118 public FillExpectation expectAutoFill(String input, String password) { in expectAutoFill() argument 119 final FillExpectation expectation = new FillExpectation(input, password); in expectAutoFill() 133 private FillExpectation(String input, String password) { in FillExpectation() argument 134 mInputWatcher = new OneTimeTextWatcher("input", mInput, input); in FillExpectation()
|
D | AttachedContextActivity.java | 43 mInput = findViewById(R.id.input); in onCreate() 59 public FillExpectation expectAutoFill(String input) { in expectAutoFill() argument 60 final FillExpectation expectation = new FillExpectation(input); in expectAutoFill() 68 private FillExpectation(String input) { in FillExpectation() argument 69 mInputWatcher = new OneTimeTextWatcher("input", mInput, input); in FillExpectation()
|
D | PreSimpleSaveActivity.java | 64 public FillExpectation expectAutoFill(String input) { in expectAutoFill() argument 65 final FillExpectation expectation = new FillExpectation(input); in expectAutoFill() 77 private FillExpectation(String input) { in FillExpectation() argument 78 mInputWatcher = new OneTimeTextWatcher("input", mPreInput, input); in FillExpectation()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | BaseDumpsysTest.java | 66 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/tests/media/src/android/media/cts/ |
D | MediaCodecBlockModelTest.java | 241 … public void onInputSlot(MediaCodec codec, int index, LinearInputBlock input) throws Exception; in onInputSlot() argument 302 … public void onInputSlot(MediaCodec codec, int index, LinearInputBlock input) throws Exception { in onInputSlot() argument 313 input.block.recycle(); in onInputSlot() 314 input.block = MediaCodec.LinearBlock.obtain(Math.toIntExact(size), codecNames); in onInputSlot() 316 input.block.isMappable()); in onInputSlot() 317 input.buffer = input.block.map(); in onInputSlot() 318 input.offset = 0; in onInputSlot() 320 if (input.buffer.capacity() < size) { in onInputSlot() 321 input.block.recycle(); in onInputSlot() 322 input.block = MediaCodec.LinearBlock.obtain( in onInputSlot() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | ReduceTest.java | 174 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 …]
|
D | float16_gen.c | 48 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()
|
D | kernel_input.rscript | 26 * 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/ |
D | rs_jni.cpp | 90 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/tests/searchui/src/android/searchuiservice/cts/ |
D | CtsSearchUiService.java | 79 Query input, SearchTargetEvent event) { in onNotifyEvent() argument 81 Log.d(TAG, "onNotifyEvent query=" + input.getInput() + ", event=" in onNotifyEvent() 84 sWatcher.verifier.onNotifyEvent(sessionId, input, event); in onNotifyEvent() 88 public void onQuery(SearchSessionId sessionId, Query input, in onQuery() argument 90 if (DEBUG) Log.d(TAG, "onQuery query=" + input.getInput()); in onQuery() 94 sWatcher.verifier.onQuery(sessionId, input, callback); in onQuery()
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerServiceHostTest.java | 102 input -> input.getAtom().getTifTuneChanged()); in verifyCallbackVideoAvailable() 130 input -> input.getAtom().getTifTuneChanged()); in verifyCallbackVideoUnavailable() 158 input -> input.getAtom().getTifTuneChanged()); in verifyCommandTune() 228 Iterables.all(getterNames, input -> input.isEqual(actual, expected)); in build() 232 input -> input.diff(actual, expected))); in build() 235 input -> input.name)).formattingDiffsUsing( in build()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputUinputTestCase.java | 17 package android.hardware.input.cts.tests; 19 import com.android.cts.input.UinputDevice; 20 import com.android.cts.input.UinputTestData;
|
/cts/hostsidetests/packagemanager/parsing/processing/api/src/android/content/pm/parsing/cts/generator/api/ |
D | ApkGenerator.kt | 77 zipFile.getInputStream(entry).use { input -> in <lambda>() method 79 input.copyTo(output) in <lambda>() 92 .use { input -> in <lambda>() method 94 input.copyTo(output) in <lambda>()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | AppSearchMigratorTest.java | 70 GenericDocument input = in testOnUpgrade() local 87 migrator.onUpgrade(/*currentVersion=*/ 3, /*finalVersion=*/ 5, input); in testOnUpgrade() 132 GenericDocument input = in testOnDowngrade() local 149 migrator.onDowngrade(/*currentVersion=*/ 6, /*finalVersion=*/ 4, input); in testOnDowngrade()
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/ |
D | PhotoUtil.java | 29 InputStream input = context.getResources().openRawResource(R.drawable.testimage); in getTestPhotoData() local 30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | AccountRemovalDummyActivity.java | 40 Bundle input = (savedInstanceState == null) ? getIntent().getExtras() : savedInstanceState; in onCreate() local 41 mResponse = input in onCreate()
|