/test/vts-testcase/fuzz/iface_fuzzer/ |
D | ProtoFuzzerMutateFns.cpp | 28 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/ |
D | campaign_common.py | 87 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/mlts/benchmark/results/ |
D | generate_result.py | 118 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/testcases/system/libc/ |
D | LibcTest.py | 46 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/ |
D | VtsCompilerUtils.cpp | 158 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/ |
D | ProcSimpleFileTests.py | 65 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 …]
|
D | ProcUidCpuPowerTests.py | 30 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/ |
D | ProcSimpleFileTests.py | 64 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 …]
|
D | ProcUidCpuPowerTests.py | 33 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/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/ |
D | VtsPythonVirtualenvPreparerTest.java | 74 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/ |
D | endpoint_base_test.py | 50 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/ |
D | ShellDriver.cpp | 40 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/ |
D | vts_tcp_client.py | 251 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/ |
D | pb2py.py | 80 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 …]
|
D | native_entity_mirror.py | 233 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/vts/drivers/hal/server/ |
D | SocketServer.cpp | 66 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/ |
D | VtsHalNfcV1_0HostTest.py | 84 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/ |
D | VtsKernelCheckpointTest.py | 94 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/ |
D | LightInvocationResult.java | 51 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 …]
|
D | CaseResult.java | 53 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/ |
D | IntegrationTest.java | 21 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/mlts/benchmark/jni/ |
D | random_graph_test_jni.cpp | 93 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() 310 std::vector<test_helper::TestHalVersion>* result) { in HalVersionsSupportedByDevice() argument 323 if (featureLevel == 27) *result = {test_helper::TestHalVersion::V1_0}; in HalVersionsSupportedByDevice() 324 if (featureLevel == 28) *result = {test_helper::TestHalVersion::V1_1}; in HalVersionsSupportedByDevice() 325 if (featureLevel == 29) *result = {test_helper::TestHalVersion::V1_2}; in HalVersionsSupportedByDevice() 331 std::vector<test_helper::TestOperandType>* result) { in OperandTypesSupportedByDevice() argument 347 *result = { in OperandTypesSupportedByDevice() [all …]
|
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/ |
D | ResultReporterTest.java | 17 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 …]
|
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/ |
D | ResultHandlerTest.java | 192 IInvocationResult result = new InvocationResult(); in testSerialization() local 193 result.setStartTime(START_MS); in testSerialization() 194 result.setTestPlan(SUITE_PLAN); in testSerialization() 195 result.addDeviceSerial(DEVICE_A); in testSerialization() 196 result.addDeviceSerial(DEVICE_B); in testSerialization() 197 result.addInvocationInfo(BUILD_FINGERPRINT, EXAMPLE_BUILD_FINGERPRINT); in testSerialization() 198 result.addInvocationInfo(BUILD_ID, EXAMPLE_BUILD_ID); in testSerialization() 199 result.addInvocationInfo(BUILD_PRODUCT, EXAMPLE_BUILD_PRODUCT); in testSerialization() 200 result.addInvocationInfo(RUN_HISTORY, EXAMPLE_RUN_HISTORY); in testSerialization() 202 ((InvocationResult) result).getRunHistories(); in testSerialization() [all …]
|
/test/vts/runners/adapters/acts/ |
D | acts_adapter.py | 184 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 …]
|