Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 276) sorted by relevance

12345678910>>...12

/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerMutateFns.cpp28 VarInstance result{}; in VarInstanceStubFromSpec() local
30 result.set_type(var_spec.type()); in VarInstanceStubFromSpec()
36 result.set_name(var_spec.name()); in VarInstanceStubFromSpec()
39 result.set_predefined_type(var_spec.predefined_type()); in VarInstanceStubFromSpec()
41 return result; in VarInstanceStubFromSpec()
45 VarInstance result{VarInstanceStubFromSpec(var_spec)}; in ArrayRandomGen() local
47 result.set_vector_size(vector_size); in ArrayRandomGen()
49 *result.add_vector_value() = this->RandomGen(var_spec.vector_value(0)); in ArrayRandomGen()
51 return result; in ArrayRandomGen()
55 VarInstance result{var_instance}; in ArrayMutate() local
[all …]
/test/framework/harnesses/host_controller/campaigns/
Dcampaign_common.py87 result = []
108 result.append(
115 result[-1] += " --fetch_signed_build=True"
117 result[-1] += " --full_device_images=True"
120 result.append("fetch --type=pab --branch=%s --target=%s "
126 result.append("fetch --type=pab --branch=%s --target=%s "
132 result.append("fetch --type=gcs --path=%s" % (manifest_branch))
134 result[-1] += " --full_device_images=True"
158 result.append(sub_commands)
160 result.extend(GenerateSdm845SetupCommands(serials[0]))
[all …]
/test/vts/testcases/system/libc/
DLibcTest.py46 result = self.dut.lib.libc.socket(self.dut.lib.libc.PF_UNIX,
48 asserts.assertNotEqual(result.return_type.scalar_value.int32_t, -1,
51 result = self.dut.lib.libc.close(
52 result.return_type.scalar_value.int32_t)
53 asserts.assertNotEqual(result.return_type.scalar_value.int32_t, -1,
61 result = self.dut.lib.libc.socket(self.dut.lib.libc.PF_UNIX,
63 asserts.assertNotEqual(result.return_type.scalar_value.int32_t, -1,
66 result = self.dut.lib.libc.close(
67 result.return_type.scalar_value.int32_t)
68 asserts.assertNotEqual(result.return_type.scalar_value.int32_t, -1,
[all …]
/test/vts/compilation_tools/vtsc/
DVtsCompilerUtils.cpp158 string result; in GetCppVariableType() local
166 result = arg.predefined_type(); in GetCppVariableType()
171 result = GetCppVariableType(arg.scalar_type()); in GetCppVariableType()
176 result = "::android::hardware::hidl_string"; in GetCppVariableType()
182 result = arg.predefined_type(); in GetCppVariableType()
184 result = arg.name(); // nested enum type. in GetCppVariableType()
195 result = "::android::hardware::hidl_vec<" + element_type + ">"; in GetCppVariableType()
208 result = "::android::hardware::hidl_array<" + element_type + ", "; in GetCppVariableType()
210 result += to_string(array_sizes[i]); in GetCppVariableType()
211 if (i != array_sizes.size() - 1) result += ", "; in GetCppVariableType()
[all …]
/test/mlts/benchmark/results/
Dgenerate_result.py104 for result in results:
105 groupings[result.name].append(result)
139 for result in [results_with_bl.baseline] + results_with_bl.other:
140 mins.append(result.time_freq_start_sec)
141 to_add = len(result.time_freq_sec) * result.time_freq_step_sec
142 maxs.append(result.time_freq_start_sec + to_add)
198 def generate_accuracy_headers(result): argument
200 if is_topk_evaluator(result.evaluator_keys):
202 elif is_melceplogf0_evaluator(result.evaluator_keys):
204 elif is_phone_error_rate_evaluator(result.evaluator_keys):
[all …]
/test/vts/testcases/host/kernel_proc_file_api_test/proc_tests/
DProcSimpleFileTests.py65 def result_correct(self, result): argument
66 return result in [0, 1]
127 def result_correct(self, result): argument
128 return result >= 0 and result <= 4
147 def result_correct(self, result): argument
148 return result in [0, 1]
163 def result_correct(self, result): argument
164 return result in [0, 1]
243 def result_correct(self, result): argument
244 return result >= 0 and result <= 2
[all …]
DProcUidCpuPowerTests.py30 def result_correct(self, result): argument
31 if not result:
34 if (len(result) - 1) % (result[0] + 1) != 0:
55 def result_correct(self, result): argument
56 if not result:
59 if (len(result) - 1) % (result[0] + 1) != 0:
80 def result_correct(self, result): argument
81 if not result:
84 policy_cnt = result[0]
85 result_len = len(result)
[all …]
/test/vts-testcase/kernel/api/proc/
DProcSimpleFileTests.py64 def result_correct(self, result): argument
65 return result in [0, 1]
126 def result_correct(self, result): argument
127 return result >= 0 and result <= 4
146 def result_correct(self, result): argument
147 return result in [0, 1]
162 def result_correct(self, result): argument
163 return result in [0, 1]
242 def result_correct(self, result): argument
243 return result >= 0 and result <= 2
[all …]
DProcUidCpuPowerTests.py33 def result_correct(self, result): argument
34 if not result:
37 if (len(result) - 1) % (result[0] + 1) != 0:
57 def result_correct(self, result): argument
58 if not result:
61 if (len(result) - 1) % (result[0] + 1) != 0:
81 def result_correct(self, result): argument
82 if not result:
85 policy_cnt = result[0]
86 result_len = len(result)
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/
DAppCompatibilityTest.java33 import com.android.tradefed.result.ByteArrayInputStreamSource;
34 import com.android.tradefed.result.CompatibilityTestResult;
35 import com.android.tradefed.result.ITestInvocationListener;
36 import com.android.tradefed.result.InputStreamSource;
37 import com.android.tradefed.result.LogDataType;
38 import com.android.tradefed.result.TestDescription;
290 CompatibilityTestResult result = new CompatibilityTestResult();
291 result.rank = apkInfo.rank;
294 result.name = apkInfo.packageName;
295 result.packageName = apkInfo.packageName;
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsPythonVirtualenvPreparerTest.java74 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testInstallDeps_reqFile_success() local
75 result.setStdout("output"); in testInstallDeps_reqFile_success()
76 result.setStderr("std err"); in testInstallDeps_reqFile_success()
81 .andReturn(result); in testInstallDeps_reqFile_success()
83 addDefaultModuleExpectations(mMockRunUtil, result); in testInstallDeps_reqFile_success()
98 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testInstallDeps_depModule_success() local
99 result.setStdout("output"); in testInstallDeps_depModule_success()
100 result.setStderr("std err"); in testInstallDeps_depModule_success()
101 addDefaultModuleExpectations(mMockRunUtil, result); in testInstallDeps_depModule_success()
105 .andReturn(result); in testInstallDeps_depModule_success()
[all …]
/test/vti/test_serving/gae/webapp/src/endpoint/
Dendpoint_base_test.py50 result = self.eb.GetAttributes(job_message, assigned_only=True)
51 self.assertEqual(set(attrs), set(result))
58 result = self.eb.GetAttributes(job, assigned_only=True)
59 self.assertEqual(set(attrs), set(result))
80 result = self.eb.GetAttributes(job_message, assigned_only=False)
81 self.assertTrue(set(full_attrs) <= set(result))
103 result = self.eb.GetAttributes(job, assigned_only=False)
104 self.assertTrue(set(full_attrs) <= set(result))
119 result, more = self.eb.Get(
123 self.assertEqual(len(result), 1)
[all …]
/test/vts/drivers/shell/
DShellDriver.cpp40 int result = 0; in Close() local
43 result = unlink(this->socket_address_.c_str()); in Close()
44 if (result != 0) { in Close()
50 return result; in Close()
54 CommandResult* result = new CommandResult(); in ExecShellCommandPopen() local
63 result->exit_code = errno; in ExecShellCommandPopen()
64 return result; in ExecShellCommandPopen()
76 result->exit_code = -1; in ExecShellCommandPopen()
77 return result; in ExecShellCommandPopen()
85 result->stdout = ss.str(); in ExecShellCommandPopen()
[all …]
/test/vts/runners/host/tcp_client/
Dvts_tcp_client.py251 return int(resp.result)
295 result = {}
299 result[struct_value.
303 result["attribute%d" %
307 return result
309 result = {}
313 result[union_value.
317 result["attribute%d" %
321 return result
324 result = []
[all …]
/test/vts/utils/python/mirror/
Dpb2py.py80 result = []
83 result.append(PbScalar2PyValue(curr_value))
85 result.append(PbStruct2PyDict(curr_value))
89 return result
101 result = []
104 result.append(PbScalar2PyValue(curr_value))
106 result.append(PbStruct2PyDict(curr_value))
110 return result
122 result = {}
125 result[attr.name] = PbEnum2PyValue(attr)
[all …]
Dnative_entity_mirror.py233 result = results[i]
234 if (not result or not isinstance(
235 result, CompSpecMsg.VariableSpecificationMessage)):
239 if result.type == CompSpecMsg.TYPE_HIDL_INTERFACE:
240 if result.hidl_interface_id <= -1:
242 driver_id = result.hidl_interface_id
244 result.predefined_type.split("::")[-1]
250 elif (result.type == CompSpecMsg.TYPE_FMQ_SYNC
251 or result.type == CompSpecMsg.TYPE_FMQ_UNSYNC):
252 if (result.fmq_value[0].fmq_id == -1):
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/testtype/
DAppLaunchTest.java32 import com.android.tradefed.result.ByteArrayInputStreamSource;
33 import com.android.tradefed.result.CompatibilityTestResult;
34 import com.android.tradefed.result.ITestInvocationListener;
35 import com.android.tradefed.result.InputStreamSource;
36 import com.android.tradefed.result.LogDataType;
37 import com.android.tradefed.result.TestDescription;
181 CompatibilityTestResult result = createCompatibilityTestResult(); in testPackage() local
182 result.packageName = mPackageName; in testPackage()
186 result.status = null; in testPackage()
187 result.message = null; in testPackage()
[all …]
/test/vts/drivers/hal/server/
DSocketServer.cpp66 string result; in ReadSpecification() local
67 google::protobuf::TextFormat::PrintToString(msg, &result); in ReadSpecification()
68 LOG(DEBUG) << "Result: " << result; in ReadSpecification()
69 return result; in ReadSpecification()
75 const string& result = driver_manager_->CallFunction(call_msg); in Call() local
76 LOG(DEBUG) << "Result: " << result; in Call()
77 return result; in Call()
83 const string& result = driver_manager_->GetAttribute(call_msg); in GetAttribute() local
84 LOG(DEBUG) << "Result: " << result; in GetAttribute()
85 return result; in GetAttribute()
[all …]
/test/vts-testcase/hal/nfc/V1_0/host/
DVtsHalNfcV1_0HostTest.py84 result = self.dut.hal.nfc.open(client_callback)
85 logging.info("open result: %s", result)
87 result = self.dut.hal.nfc.prediscover()
88 logging.info("prediscover result: %s", result)
90 result = self.dut.hal.nfc.controlGranted()
91 logging.info("controlGranted result: %s", result)
93 result = self.dut.hal.nfc.powerCycle()
94 logging.info("powerCycle result: %s", result)
99 result = self.dut.hal.nfc.write([0, 1, 2, 3, 4, 5])
100 logging.info("write result: %s", result)
[all …]
/test/vts-testcase/kernel/checkpoint/
DVtsKernelCheckpointTest.py94 result = self.dut.adb.shell("getprop sys.boot_completed")
96 boot_completed = int(result)
105 result = self.dut.adb.shell("getprop ro.product.first_api_level")
107 first_api_level = int(result)
126 result = self.dut.adb.shell("vdc checkpoint startCheckpoint 1", no_except = True)
127 asserts.assertEqual(result[const.EXIT_CODE], 0)
135 result = self.dut.adb.shell("cat " + self._CHECKPOINTTESTFILE)
136 asserts.assertEqual(result.strip(), self._ORIGINALVALUE)
140 result = self.dut.adb.shell("vdc checkpoint commitChanges", no_except = True)
141 asserts.assertEqual(result[const.EXIT_CODE], 0)
[all …]
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DLightInvocationResult.java51 public LightInvocationResult(IInvocationResult result) { in LightInvocationResult() argument
52 mTimestamp = result.getStartTime(); in LightInvocationResult()
53 mInvocationInfo = new HashMap<String, String>(result.getInvocationInfo()); in LightInvocationResult()
54 mSerials = new HashSet<String>(result.getDeviceSerials()); in LightInvocationResult()
55 mBuildFingerprint = result.getBuildFingerprint(); in LightInvocationResult()
56 mTestPlan = result.getTestPlan(); in LightInvocationResult()
57 mCommandLineArgs = result.getCommandLineArgs(); in LightInvocationResult()
58 mNotExecuted = result.getNotExecuted(); in LightInvocationResult()
59 mModuleCompleteCount = result.getModuleCompleteCount(); in LightInvocationResult()
61 mRetryDirectory = result.getRetryDirectory(); in LightInvocationResult()
[all …]
DCaseResult.java53 ITestResult result = mResults.get(testName); in getOrCreateResult() local
54 if (result == null) { in getOrCreateResult()
55 result = new TestResult(this, testName); in getOrCreateResult()
56 mResults.put(testName, result); in getOrCreateResult()
58 return result; in getOrCreateResult()
75 for (ITestResult result : mResults.values()) { in getResults()
76 if (result.getResultStatus() == status) { in getResults()
77 results.add(result); in getResults()
99 for (ITestResult result : mResults.values()) { in countResults()
100 if (result.getResultStatus() == status) { in countResults()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DIntegrationTest.java21 import com.android.compatibility.common.tradefed.result.ResultReporter;
35 import com.android.tradefed.result.ITestInvocationListener;
36 import com.android.tradefed.result.ResultForwarder;
37 import com.android.tradefed.result.TestDescription;
213 IInvocationResult result = mReporter.getResult(); in testSingleModuleRun() local
214 assertEquals(2, result.countResults(TestStatus.PASS)); in testSingleModuleRun()
215 assertEquals(1, result.countResults(TestStatus.FAIL)); in testSingleModuleRun()
216 assertEquals(1, result.getModules().size()); in testSingleModuleRun()
217 assertEquals(1, result.getModuleCompleteCount()); in testSingleModuleRun()
316 IInvocationResult result = mReporter.getResult(); in testSingleModuleRun_incomplete() local
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/result/
DCompatibilityTestResult.java17 package com.android.tradefed.result;
78 CompatibilityTestResult result = new CompatibilityTestResult(); in fromJsonString() local
79 result.packageName = o.getString(KEY_PACKAGE); in fromJsonString()
81 result.versionString = o.getString(KEY_VERSION_STRING); in fromJsonString()
84 result.versionString = o.getString(KEY_VERSION_CODE); in fromJsonString()
87 result.name = o.getString(KEY_NAME); in fromJsonString()
90 result.rank = o.getInt(KEY_RANK); in fromJsonString()
92 result.status = o.getString(KEY_STATUS); in fromJsonString()
94 result.message = o.getString(KEY_MESSAGE); in fromJsonString()
96 return result; in fromJsonString()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DResultReporterTest.java17 package com.android.compatibility.common.tradefed.result;
32 import com.android.tradefed.result.ByteArrayInputStreamSource;
33 import com.android.tradefed.result.InputStreamSource;
34 import com.android.tradefed.result.LogDataType;
35 import com.android.tradefed.result.TestDescription;
159 IInvocationResult result = mReporter.getResult(); in testResultReporting() local
160 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testResultReporting()
161 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testResultReporting()
162 List<IModuleResult> modules = result.getModules(); in testResultReporting()
214 IInvocationResult result = mReporter.getResult(); in testRepeatedExecutions() local
[all …]

12345678910>>...12