/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/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/mlts/benchmark/results/ |
D | generate_result.py | 104 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-testcase/kernel/api/proc/ |
D | ProcSimpleFileTests.py | 63 def result_correct(self, result): argument 64 return result in [0, 1] 125 def result_correct(self, result): argument 126 return result >= 0 and result <= 4 145 def result_correct(self, result): argument 146 return result in [0, 1] 161 def result_correct(self, result): argument 162 return result in [0, 1] 241 def result_correct(self, result): argument 242 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 | 164 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testInstallDeps_reqFile_success() local 165 result.setStdout("output"); in testInstallDeps_reqFile_success() 166 result.setStderr("std err"); in testInstallDeps_reqFile_success() 171 .andReturn(result); in testInstallDeps_reqFile_success() 173 addDefaultModuleExpectations(mMockRunUtil, result); in testInstallDeps_reqFile_success() 188 CommandResult result = new CommandResult(CommandStatus.SUCCESS); in testInstallDeps_depModule_success() local 189 result.setStdout("output"); in testInstallDeps_depModule_success() 190 result.setStderr("std err"); in testInstallDeps_depModule_success() 191 addDefaultModuleExpectations(mMockRunUtil, result); in testInstallDeps_depModule_success() 195 .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 …]
|
D | BinderServer.cpp | 74 int32_t result = in onTransact() local 77 ALOGD("BnVtsFuzzer::%s LoadHal(%s) -> %i", __FUNCTION__, path, result); in onTransact() 85 reply->writeInt32(result); in onTransact() 90 int32_t result = Status(type); in onTransact() local 92 ALOGD("BnVtsFuzzer::%s status(%i) -> %i", __FUNCTION__, type, result); in onTransact() 100 reply->writeInt32(result); in onTransact() 105 const string& result = Call(arg); in onTransact() local 107 ALOGD("BnVtsFuzzer::%s call(%s) = %i", __FUNCTION__, arg, result.c_str()); in onTransact() 115 reply->writeCString(result.c_str()); in onTransact() 119 const char* result = GetFunctions(); in onTransact() local [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/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; 160 IInvocationResult result = mReporter.getResult(); in testResultReporting() local 161 assertEquals("Expected 1 pass", 1, result.countResults(TestStatus.PASS)); in testResultReporting() 162 assertEquals("Expected 2 failures", 2, result.countResults(TestStatus.FAIL)); in testResultReporting() 163 List<IModuleResult> modules = result.getModules(); in testResultReporting() 215 IInvocationResult result = mReporter.getResult(); in testRepeatedExecutions() local [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 …]
|
/test/vts/utils/python/io/ |
D | file_util_test.py | 44 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/vti/dashboard/src/main/java/com/android/vts/proto/ |
D | TestSuiteResultMessageProto.java | 1829 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 …]
|
/test/vts-testcase/performance/hwbinder_latency_test/ |
D | HwBinderLatencyTest.py | 80 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 …]
|