Home
last modified time | relevance | path

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

1234567

/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 …]
DProtoFuzzerMutator.cpp113 ExecSpec result{}; in RandomGen() local
126 *result.add_function_call() = rand_call; in RandomGen()
128 return result; in RandomGen()
159 FuncSpec result{func_spec}; in RandomGen() local
161 result.clear_arg(); in RandomGen()
162 result.clear_return_type_hidl(); in RandomGen()
165 auto *new_var = result.add_arg(); in RandomGen()
168 return result; in RandomGen()
172 FuncSpec result{func_spec}; in Mutate() local
173 size_t num_args = result.arg_size(); in Mutate()
[all …]
/test/mlts/benchmark/results/
Dgenerate_result.py118 result = {}
119 result['iterations'] = self.read_typed(int)
120 result['total_time_sec'] = self.read_typed(float)
121 result['time_freq_start_sec'] = self.read_typed(float)
122 result['time_freq_step_sec'] = self.read_typed(float)
124 result['time_freq_sec'] = self.read_typed_array(float, time_freq_sec_count)
125 return LatencyResult(**result)
129 result = {}
132 result[compilation_type] = self.read_latency_result() if has_results else None
133 result['cache_size_bytes'] = self.read_typed(int)
[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/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 …]
DProcFsFileTests.py46 result = []
50 result.append(parsed)
51 return result
80 result = []
86 result.append(parsed)
87 return result
108 def result_correct(self, result): argument
109 return self.REQUIRED_COLUMNS.issubset(result[0])
/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/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;
200 CompatibilityTestResult result = createCompatibilityTestResult(); in testPackage() local
201 result.packageName = mPackageName; in testPackage()
205 result.status = null; in testPackage()
206 result.message = null; in testPackage()
[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/mlts/benchmark/jni/
Drandom_graph_test_jni.cpp93 std::vector<test_helper::TestOperationType> result; in getOperationsInModel() local
95 [&result](const test_helper::TestSubgraph& subgraph) { in getOperationsInModel()
97 result.push_back(operation.type); in getOperationsInModel()
101 return result; in getOperationsInModel()
312 std::vector<test_helper::TestHalVersion>* result) { in HalVersionsSupportedByDevice() argument
325 if (featureLevel == 27) *result = {test_helper::TestHalVersion::V1_0}; in HalVersionsSupportedByDevice()
326 if (featureLevel == 28) *result = {test_helper::TestHalVersion::V1_1}; in HalVersionsSupportedByDevice()
327 if (featureLevel == 29) *result = {test_helper::TestHalVersion::V1_2}; in HalVersionsSupportedByDevice()
333 std::vector<test_helper::TestOperandType>* result) { in OperandTypesSupportedByDevice() argument
349 *result = { in OperandTypesSupportedByDevice()
[all …]
Drun_tflite.cpp209 void BenchmarkModel::saveInferenceOutput(InferenceResult* result, in saveInferenceOutput() argument
213 auto& sink = result->inferenceOutputs[output_index]; in saveInferenceOutput()
219 InferenceResult* result, int output_index) { in getOutputError() argument
255 result->meanSquareErrors[output_index] = err_sum / elements_count; in getOutputError()
256 result->maxSingleErrors[output_index] = max_error; in getOutputError()
346 InferenceResult result{ in benchmark() local
348 result.meanSquareErrors.resize(outputsCount); in benchmark()
349 result.maxSingleErrors.resize(outputsCount); in benchmark()
350 result.inferenceOutputs.resize(outputsCount); in benchmark()
360 getOutputError(data.outputs[j].ptr, data.outputs[j].size, &result, j); in benchmark()
[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/vti/dashboard/src/main/java/com/android/vts/proto/
DTestSuiteResultMessageProto.java1829 boolean result = true; in equals()
1830 result = result && (hasAccessToken() == other.hasAccessToken()); in equals()
1832 result = result && getAccessToken() in equals()
1835 result = result && (hasResultPath() == other.hasResultPath()); in equals()
1837 result = result && getResultPath() in equals()
1840 result = result && (hasBootSuccess() == other.hasBootSuccess()); in equals()
1842 result = result && (getBootSuccess() in equals()
1845 result = result && (hasBranch() == other.hasBranch()); in equals()
1847 result = result && getBranch() in equals()
1850 result = result && (hasTarget() == other.hasTarget()); in equals()
[all …]
DVtsReportMessage.java1173 boolean result = true; in equals()
1174 result = result && (hasProductType() == other.hasProductType()); in equals()
1176 result = result && getProductType() in equals()
1179 result = result && (hasProductVariant() == other.hasProductVariant()); in equals()
1181 result = result && getProductVariant() in equals()
1184 result = result && (hasBuildFlavor() == other.hasBuildFlavor()); in equals()
1186 result = result && getBuildFlavor() in equals()
1189 result = result && (hasBuildId() == other.hasBuildId()); in equals()
1191 result = result && getBuildId() in equals()
1194 result = result && (hasBranch() == other.hasBranch()); in equals()
[all …]
/test/vts/runners/adapters/acts/
Dacts_adapter.py184 for result in results:
186 result[records.TestResultEnums.RECORD_NAME])
188 result[records.TestResultEnums.RECORD_NAME])
189 record.test_class = result[records.TestResultEnums.RECORD_CLASS]
190 record.begin_time = result[
192 record.end_time = result[records.TestResultEnums.RECORD_END_TIME]
193 record.result = result[records.TestResultEnums.RECORD_RESULT]
194 record.uid = result[records.TestResultEnums.RECORD_UID]
195 record.extras = result[records.TestResultEnums.RECORD_EXTRAS]
196 record.details = result[records.TestResultEnums.RECORD_DETAILS]
[all …]
/test/vts/utils/python/io/
Dfile_util_test.py44 result = file_util.Makedirs(dir_name)
45 self.assertEqual(True, result)
48 result = file_util.Makedirs(dir_name)
49 self.assertEqual(False, result)
52 result = file_util.Rmdirs(dir_name)
53 self.assertEqual(True, result)
56 result = file_util.Rmdirs(dir_name)
57 self.assertEqual(False, result)
67 result = file_util.MakeTempDir(base_dir)
/test/vts-testcase/performance/hwbinder_latency_test/
DHwBinderLatencyTest.py80 result = self._runBenchmark(32)
81 self._addBenchmarkTableToResult(result, 32)
82 self._uploadResult(result, 32)
85 result = self._runBenchmark(64)
86 self._addBenchmarkTableToResult(result, 64)
87 self._uploadResult(result, 64)
140 def _addBenchmarkTableToResult(self, result, bits): argument
141 pair_cnt = result[self._CFG][self._PAIR]
147 pair_result = result[row_name]
157 def _uploadResult(self, result, bits): argument
[all …]
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DBenchmarkResult.java206 StringBuilder result = new StringBuilder("BenchmarkResult{" + in toString() local
214 result.append(", ").append(mEvaluatorKeys[i]).append("=").append(mEvaluatorResults[i]); in toString()
217 result.append(", mValidationErrors=["); in toString()
219 result.append(mValidationErrors[i]); in toString()
221 result.append(","); in toString()
224 result.append("]"); in toString()
227 result.append(", mLatencyCompileWithoutCache=") in toString()
231 result.append(", mLatencySaveToCache=").append(mLatencySaveToCache.toString()); in toString()
234 result.append(", mLatencyPrepareFromCache=") in toString()
237 result.append(", mCompilationCacheSizeBytes=").append(mCompilationCacheSizeBytes); in toString()
[all …]
/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DIOUtils.java38 float[] result = new float[size]; in readFloats() local
41 result[i] = buffer.getFloat(); in readFloats()
43 result[i] = (float)(buffer.get() & 0xff); in readFloats()
46 return result; in readFloats()
61 byte[] result = output.toByteArray(); in readAsset()
65 invertOrder4(result); in readAsset()
67 invertOrder2(result); in readAsset()
74 return result; in readAsset()
/test/vts/testcases/template/mobly/
Dmobly_test.py198 for result in mobly_results:
199 logging.debug('Adding result for %s' % result[records.TestResultEnums.RECORD_NAME])
200 record = records.TestResultRecord(result[records.TestResultEnums.RECORD_NAME])
201 record.test_class = result[records.TestResultEnums.RECORD_CLASS]
202 record.begin_time = result[records.TestResultEnums.RECORD_BEGIN_TIME]
203 record.end_time = result[records.TestResultEnums.RECORD_END_TIME]
204 record.result = result[records.TestResultEnums.RECORD_RESULT]
205 record.uid = result[records.TestResultEnums.RECORD_UID]
206 record.extras = result[records.TestResultEnums.RECORD_EXTRAS]
207 record.details = result[records.TestResultEnums.RECORD_DETAILS]
[all …]
/test/vts/utils/python/controllers/
Dandroid.py93 result = json.loads(str(resp, encoding="utf8"))
94 if result['status']:
95 self.uid = result['uid']
123 result = json.loads(str(response, encoding="utf8"))
124 if result['error']:
125 raise SL4AAPIError(result['error'])
126 if result['id'] != apiid:
128 return result['result']

1234567