Home
last modified time | relevance | path

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

12

/cts/tests/camera/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()
DUPnPServiceResponseListenerTest.java104 Argument arg = (Argument)obj; in equals() local
105 return equals(mUniqueServiceName, arg.mUniqueServiceName); in equals()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainInteractionSession.java271 AsyncTaskArg arg = params[0]; in doInBackground() local
273 arg.testType.toString()); in doInBackground()
274 switch (arg.testType) { in doInBackground()
276 arg.abortReq.cancel(); in doInBackground()
279 arg.abortReq.sendAbortResult(arg.extras); in doInBackground()
282 arg.commandReq.cancel(); in doInBackground()
286 Utils.toBundleString(arg.extras) + ", string_in_bundle: " + in doInBackground()
289 arg.commandReq.sendResult(arg.extras); in doInBackground()
292 arg.compReq.cancel(); in doInBackground()
295 arg.compReq.sendCompleteResult(arg.extras); in doInBackground()
[all …]
/cts/tests/jdwp/runner/device-side/src/com/android/compatibility/dalvik/
DDalvikTestRunner.java64 for (String arg : args) { in main()
65 if (arg.startsWith(ABI)) { in main()
66 abiName = arg.substring(ABI.length()); in main()
67 } else if (arg.startsWith(INCLUDE)) { in main()
68 for (String include : arg.substring(INCLUDE.length()).split(",")) { in main()
71 } else if (arg.startsWith(EXCLUDE)) { in main()
72 for (String exclude : arg.substring(EXCLUDE.length()).split(",")) { in main()
75 } else if (arg.startsWith(INCLUDE_FILE)) { in main()
76 loadFilters(arg.substring(INCLUDE_FILE.length()), includes); in main()
77 } else if (arg.startsWith(EXCLUDE_FILE)) { in main()
[all …]
/cts/tests/core/runner/src/com/android/cts/core/runner/
DCoreTestRunner.java143 String arg; in onCreate() local
144 if ((arg = args.getString(ARGUMENT_TEST_FILE)) != null) { in onCreate()
147 testNameSet.addAll(readTestsFromFile(arg)); in onCreate()
152 } else if ((arg = args.getString(ARGUMENT_TEST_CLASS)) != null) { in onCreate()
154 String[] tests = arg.split(","); in onCreate()
161 if ((arg = args.getString(ARGUMENT_NOT_TEST_FILE)) != null) { in onCreate()
164 notTestNameSet.addAll(readTestsFromFile(arg)); in onCreate()
169 } else if ((arg = args.getString(ARGUMENT_NOT_TEST_CLASS)) != null) { in onCreate()
171 String[] tests = arg.split(","); in onCreate()
176 if ((arg = args.getString(ARGUMENT_TEST_PACKAGE)) != null) { in onCreate()
[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/libs/vogar-expect/src/vogar/commands/
DCommandFailedException.java46 for (String arg : args) { in formatMessage()
47 result.append(" ").append(arg); in formatMessage()
/cts/tests/tests/alarmclock/service/src/android/alarmclock/service/
DMainInteractionSession.java163 AsyncTaskArg arg = params[0]; in doInBackground() local
166 if (arg.isCompleteRequest) { in doInBackground()
167 arg.mCompReq.sendCompleteResult(new Bundle()); in doInBackground()
169 arg.mAbortReq.sendAbortResult(new Bundle()); in doInBackground()
/cts/tests/tests/voicesettings/service/src/android/voicesettings/service/
DMainInteractionSession.java182 AsyncTaskArg arg = params[0]; in doInBackground() local
185 if (arg.isCompleteRequest) { in doInBackground()
186 arg.mCompReq.sendCompleteResult(new Bundle()); in doInBackground()
188 arg.mAbortReq.sendAbortResult(new Bundle()); in doInBackground()
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DAuthenticatorContentProvider.java62 public Bundle call(String method, String arg, Bundle extras) { in call() argument
63 super.call(method, arg, extras); in call()
/cts/apps/cts-usb-accessory/
Dcts-usb-accessory.c36 static void* message_thread(void* arg) { in message_thread() argument
37 int *endpoints = (int *)arg; in message_thread()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DSplitTests.java331 T addArg(String arg) { in addArg() argument
332 mArgs.add(arg); in addArg()
386 for (String arg : mArgs) { in run()
387 cmd.append(' ').append(arg); in run()
DPkgInstallSignatureVerificationTest.java367 for (String arg : args) { in assertInstallSucceedsForEach()
369 String.format(Locale.US, apkFilenamePatternInResources, arg); in assertInstallSucceedsForEach()
/cts/tools/vm-tests-tf/src/util/build/
DExecuteFile.java160 for (String arg : cmdLine) { in run()
161 cmdLineBuilder.append(arg).append(' '); in run()
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java196 public Bundle call(String method, String arg, Bundle extras) { in call() argument
200 mSharedPrefs.edit().putString(SET_CUSTOM_PREFIX, arg).apply(); in call()
/cts/libs/deviceutil/src/android/cts/util/
DReadElf.java175 for (String arg : args) { in main()
176 ReadElf re = new ReadElf(new File(arg)); in main()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/command/
DCompatibilityConsole.java107 String arg = args.get(2).get(0); in setCustomCommands()
108 int shards = Integer.parseInt(arg); in setCustomCommands()
/cts/tests/tests/os/jni/seccomp-tests/
Dlocal-modifications-strict-args-fd88d16.diff102 /* TODO(wad) add 64-bit versus 32-bit arg tests. */
/cts/tools/utils/
DCollectAllTests.java72 for (String arg : args) { in main()
73 System.err.println(" " + arg); in main()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityTest.java605 for (String arg : mModuleArgs) { in setupFilters()
606 mIncludeFilters.add(arg.split(":")[0]); in setupFilters()
DModuleRepo.java595 for (String arg : args) { in putArgs()
596 String[] parts = arg.split(":"); in putArgs()

12