Home
last modified time | relevance | path

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

123

/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()
DDnsSdResponseListenerTest.java111 Argument arg = (Argument)obj; in equals() local
112 return equals(mInstanceName, arg.mInstanceName) && in equals()
113 equals(mRegistrationType, arg.mRegistrationType); in equals()
DDnsSdTxtRecordListenerTest.java115 Argument arg = (Argument)obj; in equals() local
116 return equals(mFullDomainName, arg.mFullDomainName) && in equals()
117 equals(mTxtRecordMap, arg.mTxtRecordMap); in equals()
/cts/tests/tests/security/native/encryption/
DFileBasedEncryptionPolicyTest.cpp206 struct fscrypt_get_policy_ex_arg arg; in TEST() local
232 arg.policy_size = sizeof(arg.policy); in TEST()
233 res = ioctl(fd, FS_IOC_GET_ENCRYPTION_POLICY_EX, &arg); in TEST()
237 res = ioctl(fd, FS_IOC_GET_ENCRYPTION_POLICY, &arg.policy.v1); in TEST()
258 switch (arg.policy.version) { in TEST()
261 contents_mode = arg.policy.v1.contents_encryption_mode; in TEST()
262 filenames_mode = arg.policy.v1.filenames_encryption_mode; in TEST()
263 flags = arg.policy.v1.flags; in TEST()
285 contents_mode = arg.policy.v2.contents_encryption_mode; in TEST()
286 filenames_mode = arg.policy.v2.filenames_encryption_mode; in TEST()
[all …]
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java276 AsyncTaskArg arg = params[0]; in doInBackground() local
278 arg.testType.toString()); in doInBackground()
279 switch (arg.testType) { in doInBackground()
281 arg.abortReq.cancel(); in doInBackground()
284 arg.abortReq.sendAbortResult(arg.extras); in doInBackground()
287 arg.commandReq.cancel(); in doInBackground()
291 Utils.toBundleString(arg.extras) + ", string_in_bundle: " + in doInBackground()
294 arg.commandReq.sendResult(arg.extras); in doInBackground()
297 arg.compReq.cancel(); in doInBackground()
300 arg.compReq.sendCompleteResult(arg.extras); in doInBackground()
[all …]
/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/tests/tests/media/src/android/media/cts/
DMediaCasTest.java219 public void onEvent(MediaCas MediaCas, int event, int arg, byte[] data) { in testEnumeratePlugins()
221 + "event=" + event + ", arg=" + arg in testEnumeratePlugins()
226 int event, int arg, byte[] data) { in testEnumeratePlugins()
228 + "event=" + event + ", arg=" + arg in testEnumeratePlugins()
629 TestEventListener(MediaCas mediaCas, int event, int arg, byte[] data) { in TestEventListener() argument
632 mArg = arg; in TestEventListener()
638 int arg, byte[] data) { in TestEventListener() argument
642 mArg = arg; in TestEventListener()
673 public void onEvent(MediaCas mediaCas, int event, int arg, byte[] data) { in onEvent() argument
675 + ", arg=" + arg + ", data=" + Arrays.toString(data)); in onEvent()
[all …]
/cts/tests/media/
DREADME.md27 atest CtsMediaV2TestCases -- --module-arg CtsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.…
33 atest CtsMediaV2TestCases -- --module-arg CtsMediaV2TestCases:instrumentation-arg:codec-prefix:=c2.…
42 atest android.mediav2.cts.CodecDecoderTest -- --module-arg CtsMediaV2TestCases:instrumentation-arg
50 atest android.mediav2.cts.ExtractorTest -- --module-arg CtsMediaV2TestCases:instrumentation-arg:ex…
58 atest android.mediav2.cts.MuxerTest -- --module-arg CtsMediaV2TestCases:instrumentation-arg:mux-se…
/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/video/src/android/video/cts/
DCodecEncoderPerformanceTest.java67 for (Object[] arg : exhaustiveArgsList) { in input()
69 MediaFormat format = getVideoFormat((String) arg[0]); in input()
72 "in the file: " + ((String) arg[0])); in input()
84 int bitrate = (int)(((int) arg[1]) * getBitrateScalingFactor(encoderMime)); in input()
94 argsList.add(new Object[]{decoder, arg[0], encoderMime, encoder, in input()
/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/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/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/tests/tests/widget/
DTEST_MAPPING7 "instrumentation-arg": "size:=small"
10 "instrumentation-arg": "notAnnotation:=androidx.test.filters.FlakyTest"
/cts/tests/smartspace/src/android/smartspace/cts/
DSmartspaceManagerTest.java195 ArgumentCaptor<SmartspaceTargetEvent> arg = ArgumentCaptor.forClass( in testNotifySmartspaceEvent() local
201 .notifySmartspaceEvent(any(), arg.capture()); in testNotifySmartspaceEvent()
202 assertEquals(arg.getValue().getSmartspaceActionId(), SMARTSPACE_ACTION_ID); in testNotifySmartspaceEvent()
203 assertEquals(arg.getValue().getEventType(), SmartspaceTargetEvent.EVENT_TARGET_BLOCK); in testNotifySmartspaceEvent()
204 assertEquals(arg.getValue().getSmartspaceTarget().getComponentName(), componentName); in testNotifySmartspaceEvent()
205 assertEquals(arg.getValue().getSmartspaceTarget().getUserHandle(), Process.myUserHandle()); in testNotifySmartspaceEvent()
206 assertEquals(arg.getValue().getSmartspaceTarget().getSmartspaceTargetId(), "id"); in testNotifySmartspaceEvent()
/cts/tests/tests/database/apps/src/com/android/cts/providerapp/
DDummyProvider.java66 public Bundle call(String method, String arg, Bundle extras) { in call() argument
67 Log.d(TAG, "call method: " + method + ", arg: " + arg); in call()
72 switch (arg) { in call()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DBaseInstallMultiple.java59 T addArg(String arg) { in addArg() argument
60 mArgs.add(arg); in addArg()
129 for (String arg : mArgs) { in run()
130 cmd.append(' ').append(arg); in run()
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/
DBaseInstallMultiple.java59 T addArg(String arg) { in addArg() argument
60 mArgs.add(arg); in addArg()
129 for (String arg : mArgs) { in run()
130 cmd.append(' ').append(arg); in run()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8427/
Dpoc.c34 void *thr(void *arg) in thr() argument
37 switch ((long)arg) { in thr()
/cts/hostsidetests/dexmetadata/host/src/com/android/cts/dexmetadata/
DBaseInstallMultiple.java53 T addArg(String arg) { in addArg() argument
54 mArgs.add(arg); in addArg()
98 for (String arg : mArgs) { in run()
99 cmd.append(' ').append(arg); in run()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSession.java186 AsyncTaskArg arg = params[0]; in doInBackground() local
189 if (arg.isCompleteRequest) { in doInBackground()
190 arg.mCompReq.sendCompleteResult(new Bundle()); in doInBackground()
192 arg.mAbortReq.sendAbortResult(new Bundle()); in doInBackground()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseInstallMultiple.java96 T addArg(String arg) { in addArg() argument
97 mArgs.add(arg); in addArg()
219 for (String arg : mArgs) { in runNonIncremental()
220 cmd.append(' ').append(arg); in runNonIncremental()
306 for (String arg : mArgs) { in runIncremental()
307 cmd.append(' ').append(arg); in runIncremental()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/
Dpoc.c37 void *thread_entry(void *arg) { in thread_entry() argument
40 index = (int)(unsigned long)arg; in thread_entry()

123