Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 111) sorted by relevance

12345

/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DPreconditions.java40 public static int checkBitFlags(String argName, int arg, String flagsName, int flags) { in checkBitFlags() argument
41 if ((arg & flags) == 0) { in checkBitFlags()
46 return arg; in checkBitFlags()
60 public static <T> T checkEquals(String argName, T arg, in checkEquals() argument
62 if (!Objects.equals(arg, expectedValue)) { in checkEquals()
66 argName, expectedName, arg, expectedValue)); in checkEquals()
69 return arg; in checkEquals()
85 public static <T> T checkNotNull(String argName, T arg) { in checkNotNull() argument
86 if (arg == null) { in checkNotNull()
90 return arg; in checkNotNull()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
DListenerTest.java65 public boolean check(ListenerArgument arg, long msec) throws InterruptedException { in check() argument
67 argList.add(arg); in check()
90 for (ListenerArgument arg: mReceivedArgList) { in check()
91 if (!mExArgList.remove(arg)) { in check()
93 Log.d(TAG, " received an invalid response. " + arg); in check()
133 protected synchronized void receiveCallback(ListenerArgument arg) { in receiveCallback() argument
134 mReceivedArgList.add(arg); in receiveCallback()
139 if (!mExArgList.remove(arg)) { in receiveCallback()
140 Log.d(TAG, "received invalid response. " + arg); in receiveCallback()
180 for (ListenerArgument arg: args) { in createResultString()
[all …]
DActionListenerTest.java39 Argument arg = new Argument(reason); in onFailure() local
40 receiveCallback(arg); in onFailure()
46 Argument arg = new Argument(); in onSuccess() local
47 receiveCallback(arg); in onSuccess()
82 Argument arg = (Argument)obj; in equals() local
83 return (mIsSuccess == arg.mIsSuccess) && (mResult == arg.mResult); in equals()
/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderSurfaceTest.java175 for (Object[] arg : args) { in input()
176 final String mediaType = (String) arg[0]; in input()
177 final int br = (int) arg[3]; in input()
178 final int fps = (int) arg[4]; in input()
188 testArgs[0] = arg[0]; // encoder mediaType in input()
189 testArgs[1] = arg[1]; // test file mediaType in input()
190 testArgs[2] = arg[2]; // test file in input()
193 testArgs[5] = arg[5]; // tone map in input()
207 for (Object[] arg : argsHighBitDepth) { in input()
208 final String mediaType = (String) arg[0]; in input()
[all …]
DEncoderLevelTest.java106 for (Object[] arg : exhaustiveArgsList) { in input()
107 final String mediaType = (String) arg[0]; in input()
108 final int width = (int) arg[1]; in input()
109 final int height = (int) arg[2]; in input()
110 final int br = (int) arg[3]; in input()
111 final int fps = (int) arg[4]; in input()
128 testArgs[0] = arg[0]; in input()
141 testArgs[0] = arg[0]; in input()
DVideoEncoderTest.java93 for (Object[] arg : args) { in prepareTestArgs()
94 String mediaType = (String) arg[0]; in prepareTestArgs()
95 int bitRate = (int) arg[1]; in prepareTestArgs()
96 int width = (int) arg[2]; in prepareTestArgs()
97 int height = (int) arg[3]; in prepareTestArgs()
98 int frameRate = (int) arg[4]; in prepareTestArgs()
99 int colorFormat = (int) arg[5]; in prepareTestArgs()
109 testArgs[0] = arg[0]; in prepareTestArgs()
112 testArgs[2] = arg[6]; in prepareTestArgs()
DEncoderProfileLevelTest.java122 private static List<Object[]> prepareTestArgs(Object[] arg, int[] profiles, int colorFormat) { in prepareTestArgs() argument
125 final String mediaType = (String) arg[0]; in prepareTestArgs()
127 final int br = (int) arg[1]; in prepareTestArgs()
128 final int param1 = (int) arg[2]; in prepareTestArgs()
129 final int param2 = (int) arg[3]; in prepareTestArgs()
130 final int fps = (int) arg[4]; in prepareTestArgs()
131 final int level = (int) arg[5]; in prepareTestArgs()
159 testArgs[0] = arg[0]; in prepareTestArgs()
170 testArgs[0] = arg[0]; in prepareTestArgs()
483 for (Object[] arg : exhaustiveArgsList) { in input()
[all …]
/cts/tests/tests/security/native/encryption/
DFileBasedEncryptionPolicyTest.cpp247 struct fscrypt_get_policy_ex_arg arg; in TEST() local
279 arg.policy_size = sizeof(arg.policy); in TEST()
280 res = ioctl(fd, FS_IOC_GET_ENCRYPTION_POLICY_EX, &arg); in TEST()
284 res = ioctl(fd, FS_IOC_GET_ENCRYPTION_POLICY, &arg.policy.v1); in TEST()
314 switch (arg.policy.version) { in TEST()
317 contents_mode = arg.policy.v1.contents_encryption_mode; in TEST()
318 filenames_mode = arg.policy.v1.filenames_encryption_mode; in TEST()
319 flags = arg.policy.v1.flags; in TEST()
341 contents_mode = arg.policy.v2.contents_encryption_mode; in TEST()
342 filenames_mode = arg.policy.v2.filenames_encryption_mode; in TEST()
[all …]
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java313 AsyncTaskArg arg = params[0]; in doInBackground() local
315 arg.testType.toString()); in doInBackground()
316 switch (arg.testType) { in doInBackground()
318 arg.abortReq.cancel(); in doInBackground()
321 arg.abortReq.sendAbortResult(arg.extras); in doInBackground()
324 arg.commandReq.cancel(); in doInBackground()
328 Utils.toBundleString(arg.extras) + ", string_in_bundle: " + in doInBackground()
331 arg.commandReq.sendResult(arg.extras); in doInBackground()
334 arg.compReq.cancel(); in doInBackground()
337 arg.compReq.sendCompleteResult(arg.extras); in doInBackground()
[all …]
/cts/tests/mediapc/
DREADME.md21 …t CtsMediaPerformanceClassTestCases -- --module-arg CtsMediaPerformanceClassTestCases:instrumentat…
34 …t CtsMediaPerformanceClassTestCases -- --module-arg CtsMediaPerformanceClassTestCases:instrumentat…
42 …t CtsMediaPerformanceClassTestCases -- --module-arg CtsMediaPerformanceClassTestCases:instrumentat…
51 …t CtsMediaPerformanceClassTestCases -- --module-arg CtsMediaPerformanceClassTestCases:instrumentat…
57 …t CtsMediaPerformanceClassTestCases -- --module-arg CtsMediaPerformanceClassTestCases:instrumentat…
/cts/hostsidetests/jvmti/base/jni/
Dcts_logging.cpp30 Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging(JNIEnv* env, jclass, jstring arg) { in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging() argument
38 const char* data_raw = env->GetStringUTFChars(arg, nullptr); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
40 data.resize(env->GetStringUTFLength(arg)); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
42 env->ReleaseStringUTFChars(arg, data_raw); in Java_android_jvmti_cts_JvmtiRunTestBasedTest_setupExtraLogging()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0837/
Dpoc.cpp33 static void *acquireSoundTriggerSessionThread(void *arg) { in acquireSoundTriggerSessionThread() argument
35 pocAudioSessionCtxt *ctxt = (pocAudioSessionCtxt *)arg; in acquireSoundTriggerSessionThread()
53 static void *releaseSoundTriggerSessionThread(void *arg) { in releaseSoundTriggerSessionThread() argument
55 pocAudioSessionCtxt *ctxt = (pocAudioSessionCtxt *)arg; in releaseSoundTriggerSessionThread()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaCasTest.java229 public void onEvent(MediaCas MediaCas, int event, int arg, byte[] data) { in testEnumeratePlugins()
231 + "event=" + event + ", arg=" + arg in testEnumeratePlugins()
236 int event, int arg, byte[] data) { in testEnumeratePlugins()
238 + "event=" + event + ", arg=" + arg in testEnumeratePlugins()
671 TestEventListener(MediaCas mediaCas, int event, int arg, byte[] data) { in TestEventListener() argument
674 mArg = arg; in TestEventListener()
680 int arg, byte[] data) { in TestEventListener() argument
684 mArg = arg; in TestEventListener()
715 public void onEvent(MediaCas mediaCas, int event, int arg, byte[] data) { in onEvent() argument
717 + ", arg=" + arg + ", data=" + Arrays.toString(data)); in onEvent()
[all …]
/cts/tests/media/
DREADME.md31 atest CtsMediaV2TestCases -- --module-arg CtsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.…
37 atest CtsMediaV2TestCases -- --module-arg CtsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.…
46 atest CtsMediaV2TestCases -- --module-arg CtsMediaV2TestCases:instrumentation-arg:codec-filter:="c2…
55 atest android.mediav2.cts.CodecDecoderTest -- --module-arg CtsMediaV2TestCases:instrumentation-arg
63 atest android.mediav2.cts.ExtractorTest -- --module-arg CtsMediaV2TestCases:instrumentation-arg:ex…
71 atest android.mediav2.cts.MuxerTest -- --module-arg CtsMediaV2TestCases:instrumentation-arg:mux-se…
/cts/tests/video/src/android/video/cts/
DCodecEncoderPerformanceTest.java72 for (Object[] arg : exhaustiveArgsList) { in input()
74 MediaFormat format = getVideoFormat((String) arg[0]); in input()
77 "in the file: " + ((String) arg[0])); in input()
90 int bitrate = (int)(((int) arg[1]) * getBitrateScalingFactor(encoderMime)); in input()
103 new Object[]{decoder, arg[0], encoderMime, encoder, in input()
109 new Object[]{decoder, arg[0], encoderMime, encoder, in input()
/cts/tests/app/src/android/app/cts/
DActivityDumpTest.java105 private void legacyArgDumpTest(String arg, String dumpableName) throws IOException { in legacyArgDumpTest() argument
108 String legacyArgDump = dump(mActivity, arg); in legacyArgDumpTest()
111 assertWithMessage("dump([%s])", arg).that(legacyArgDump).isNotEqualTo(baselineDump); in legacyArgDumpTest()
112 assertWithMessage("dump([%s])", arg).that(legacyArgDump) in legacyArgDumpTest()
114 assertWithMessage("dump([%s])", arg).that(legacyArgDump).contains(arg); in legacyArgDumpTest()
115 assertWithMessage("dump([%s])", arg).that(legacyArgDump).contains("deprecated"); in legacyArgDumpTest()
116 assertWithMessage("dump([%s])", arg).that(legacyArgDump) in legacyArgDumpTest()
/cts/tests/tests/widget/
DTEST_MAPPING7 "instrumentation-arg": "size:=small"
10 "instrumentation-arg": "notAnnotation:=androidx.test.filters.FlakyTest"
/cts/tests/JobSchedulerSharedUid/jobperm/src/android/jobscheduler/cts/shareduid/jobperm/
DJobPermProvider.java38 public Bundle call(@NonNull String method, @Nullable String arg, @Nullable Bundle extras) { in call() argument
45 getContext().grantUriPermission(arg, uri, in call()
52 getContext().revokeUriPermission(arg, uri, in call()
59 return super.call(method, arg, extras); in call()
/cts/tests/tests/mediaediting/src/android/media/mediaediting/cts/
DTranscodeQualityTest.java118 for (Object[] arg : exhaustiveArgsList) { in prepareParamList()
119 String from = arg[0].toString(); in prepareParamList()
120 String to = arg[1].toString(); in prepareParamList()
132 (int) arg[2], (int) arg[3], Math.round((float) arg[4]), in prepareParamList()
133 (boolean) arg[6] ? "ForceEncoding" : ""); in prepareParamList()
135 System.arraycopy(arg, 0, argUpdate, 0, argLength); in prepareParamList()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DInstallMultiple.java38 public InstallMultiple addArg(String arg) { in addArg() argument
39 mArgs.add(arg); in addArg()
79 for (String arg : mArgs) { in createSession()
80 cmd.append(' ').append(arg); in createSession()
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java80 for (String arg : args) { in createConfig()
81 if (arg.startsWith(ABI)) { in createConfig()
82 abiName = arg.substring(ABI.length()); in createConfig()
83 } else if (arg.startsWith(INCLUDE)) { in createConfig()
84 for (String include : arg.substring(INCLUDE.length()).split(",")) { in createConfig()
87 } else if (arg.startsWith(EXCLUDE)) { in createConfig()
88 for (String exclude : arg.substring(EXCLUDE.length()).split(",")) { in createConfig()
91 } else if (arg.startsWith(INCLUDE_FILE)) { in createConfig()
92 loadFilters(arg.substring(INCLUDE_FILE.length()), config.includes); in createConfig()
93 } else if (arg.startsWith(EXCLUDE_FILE)) { in createConfig()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFieldPackerTest.java141 for (int arg: badAlignArgs) { in testAlignResetSkip()
143 fp.align(arg); in testAlignResetSkip()
150 for (int arg: badResetArgs) { in testAlignResetSkip()
152 fp.reset(arg); in testAlignResetSkip()
160 for (int arg: badSkipArgs) { in testAlignResetSkip()
163 fp.skip(arg); in testAlignResetSkip()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8427/
Dpoc.c34 void *thr(void *arg) in thr() argument
37 switch ((long)arg) { in thr()
/cts/hostsidetests/mediapc/videoencodingquality/app/
DREADME.md6 $ atest CtsVideoEncodingTestCases -- --module-arg CtsVideoEncodingTestCases:instrumentation-arg:con…
/cts/hostsidetests/videoencodingminimum/app/
DREADME.md6 …t CtsVideoQualityFloorHostTestCases -- --module-arg CtsVideoQualityFloorHostTestCases:instrumentat…

12345