/test/vts-testcase/hal/treble/vintf/ |
D | VtsTrebleVintfTestBase.cpp | 97 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 …]
|
D | VtsNoHidl.cpp | 39 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
|
D | DeviceManifestTest.cpp | 92 bool ret = vendor_manifest_->forEachInstance( in TEST_F() local 103 if (!ret || !exists) { in TEST_F()
|
D | SingleManifestTest.cpp | 99 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/ |
D | cpio.cpp | 35 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()
|
D | vts_dlkm_partition_test.cpp | 65 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/ |
D | syscall.cpp | 62 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()
|
D | tracer.cpp | 37 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()
|
D | instruction.cpp | 51 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()
|
D | binder_request.cpp | 36 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()
|
D | multithreading_utils.cpp | 32 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/ |
D | SequenceUtils.java | 39 int ret = -1; in indexOfLargest() local 43 ret = i; in indexOfLargest() 47 return ret; in indexOfLargest()
|
/test/vts-testcase/security/avb/ |
D | kernel_version_test.cpp | 76 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/ |
D | BpfTest.cpp | 51 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/ |
D | Keymaster.cpp | 141 bool ret = false; in exportKey() local 158 ret = true; in exportKey() 162 return ret; in exportKey()
|
D | utils.cpp | 319 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()
|
D | adiantum.cpp | 287 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/ |
D | MopedRunner.java | 138 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/ |
D | InferenceInOutSequence.java | 227 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/ |
D | elf_parser.py | 211 ret = b"" 221 ret += buf 223 ret += buf[:end_index] 224 return utils.BytesToString(ret)
|