Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 20 of 20) sorted by relevance

/test/vts-testcase/hal/treble/vintf/
DVtsTrebleVintfTestBase.cpp97 std::vector<HidlInstance> ret; in GetHidlInstances() local
98 manifest->forEachInstance([manifest, &ret](const auto &manifest_instance) { in GetHidlInstances()
100 ret.emplace_back(manifest_instance); in GetHidlInstances()
104 return ret; in GetHidlInstances()
109 std::vector<AidlInstance> ret; in GetAidlInstances() local
110 manifest->forEachInstance([manifest, &ret](const auto &manifest_instance) { in GetAidlInstances()
112 ret.emplace_back(manifest_instance); in GetAidlInstances()
116 return ret; in GetAidlInstances()
121 std::vector<NativeInstance> ret; in GetNativeInstances() local
122 manifest->forEachInstance([manifest, &ret](const auto &manifest_instance) { in GetNativeInstances()
[all …]
DVtsNoHidl.cpp39 std::set<std::string> ret; in allHidlManifestInterfaces() local
44 ret.insert(i.getFqInstance().getFqNameString()); in allHidlManifestInterfaces()
49 return ret; in allHidlManifestInterfaces()
66 hardware::Return<void> ret = in TEST_F() local
DDeviceManifestTest.cpp92 bool ret = vendor_manifest_->forEachInstance( in TEST_F() local
103 if (!ret || !exists) { in TEST_F()
DSingleManifestTest.cpp99 FqInstance ret; in ToFqInstance() local
103 return ret; in ToFqInstance()
105 if (!ret.setTo(fq_interface.getPackage(), fq_interface.getMajorVersion(), in ToFqInstance()
111 return ret; in ToFqInstance()
482 Return<void> ret = hal_service->interfaceChain( in TEST_P() local
494 EXPECT_TRUE(ret.isOk()); in TEST_P()
/test/vts-testcase/kernel/gki/
Dcpio.cpp35 std::vector<char*> ret; in ToCStringArray() local
36 ret.reserve(args->size() + 1); in ToCStringArray()
38 ret.push_back(arg.data()); in ToCStringArray()
40 ret.push_back(nullptr); in ToCStringArray()
41 return ret; in ToCStringArray()
Dvts_dlkm_partition_test.cpp65 int ret = ftw(dlkm_symlink.c_str(), not_empty_callback, 128); in VerifyDlkmPartition() local
66 ASSERT_NE(-1, ret) << "ftw(" << dlkm_symlink << "): " << strerror(errno); in VerifyDlkmPartition()
68 if (ret == 0) { in VerifyDlkmPartition()
77 ASSERT_EQ(1, ret); in VerifyDlkmPartition()
/test/dittosuite/src/
Dsyscall.cpp62 long ret = syscall(SYS_gettid); in GetTid() local
63 if (ret == -1) { in GetTid()
66 return ret; in GetTid()
127 long ret = syscall(__NR_sched_setattr, pid, &attr, flags); in SchedSetattr() local
128 if (ret == -1) { in SchedSetattr()
131 return ret; in SchedSetattr()
Dtracer.cpp37 std::string ret; in random_string() local
39 ret.reserve(len); in random_string()
41 ret += char_set[rand() % (char_set.length())]; in random_string()
44 return ret; in random_string()
Dinstruction.cpp51 int ret = pthread_setname_np(pthread_self(), params.name_.c_str()); in RunSynchronized() local
52 if (ret) { in RunSynchronized()
53 if (ret == ERANGE) { in RunSynchronized()
56 LOGF("Error setting thread name: " + std::to_string(ret)); in RunSynchronized()
Dbinder_request.cpp36 int8_t ret = service_->sync(c); in RunSingle() local
37 if (ret != (~c)) { in RunSingle()
38 LOGF("Wrong result, expected: " + std::to_string(~c) + ", but got: " + std::to_string(ret)); in RunSingle()
40 LOGD("Returned from Binder request: " + std::to_string(ret)); in RunSingle()
62 bool ret = service_->isUsbMassStorageConnected(); in RunSingle() local
63 LOGD("Returned from Binder request: " + std::to_string(ret)); in RunSingle()
Dmultithreading_utils.cpp32 int ret = syscall_.SchedSetattr(0 /* self */, sched_attr_, 0 /* still not implemented */); in Set() local
33 if (ret) { in Set()
106 int ret = sched_setaffinity(0 /* self */, sizeof(mask), &mask); in Set() local
107 if (ret) { in Set()
/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DSequenceUtils.java39 int ret = -1; in indexOfLargest() local
43 ret = i; in indexOfLargest()
47 return ret; in indexOfLargest()
/test/vts-testcase/security/avb/
Dkernel_version_test.cpp76 std::string ret = android::vintf::to_string(kernel_version_); in string() local
78 ret += " (" + kernel_release_->string() + ")"; in string()
80 return ret; in string()
106 RawKernelVersionMatrix ret; in ReadRawKernelVersionMatrix() local
107 if (!google::protobuf::TextFormat::ParseFromString(matrix_content, &ret)) { in ReadRawKernelVersionMatrix()
111 return ret; in ReadRawKernelVersionMatrix()
168 KernelVersionMatrix ret; in FromRaw() local
184 ret.emplace(api_level, std::move(ret_value)); in FromRaw()
186 return ret; in FromRaw()
/test/vts-testcase/kernel/api/bpf_native_test/
DBpfTest.cpp51 int ret = access(bpfMapPath, F_OK); in TEST() local
52 if (!ret) { in TEST()
130 int ret = access(TEST_PROG_PATH, R_OK); in SetUp() local
133 if (ret == 0) { in SetUp()
/test/vts-testcase/kernel/encryption/
DKeymaster.cpp141 bool ret = false; in exportKey() local
158 ret = true; in exportKey()
162 return ret; in exportKey()
Dutils.cpp319 int ret; in VerifyDataRandomness() local
321 ret = LzmaCompress(dest.data(), &destLen, bytes.data(), bytes.size(), in VerifyDataRandomness()
328 if (ret == SZ_ERROR_OUTPUT_EOF) return true; // incompressible in VerifyDataRandomness()
330 if (ret == SZ_OK) { in VerifyDataRandomness()
334 ADD_FAILURE() << "LZMA compression error: ret=" << ret; in VerifyDataRandomness()
Dadiantum.cpp287 int ret; in DoCrypt() local
304 ret = AES_set_encrypt_key(subkeys, kAes256KeySize * 8, &aes_key); in DoCrypt()
306 ret = AES_set_decrypt_key(subkeys, kAes256KeySize * 8, &aes_key); in DoCrypt()
307 if (ret != 0) { in DoCrypt()
/test/catbox/runner/src/com/android/catbox/runner/
DMopedRunner.java138 ArrayList<String> ret = new ArrayList<String>(); in executeHostCommand() local
153 ret.add(line); in executeHostCommand()
165 return ret; in executeHostCommand()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DInferenceInOutSequence.java227 ArrayList<InferenceInOutSequence> ret = new ArrayList<InferenceInOutSequence>(); in readDataset() local
253 ret.add(sequence); in readDataset()
255 return ret; in readDataset()
/test/vts/vndk_utils/library/
Delf_parser.py211 ret = b""
221 ret += buf
223 ret += buf[:end_index]
224 return utils.BytesToString(ret)