Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 69) sorted by relevance

123

/system/connectivity/wifilogd/tests/
Dmain_loop_unittest.cpp50 .WillOnce(Return(std::tuple<size_t, Os::Errno>{kControlSocketFd, 0})); in MainLoopTest()
81 Return(std::tuple<size_t, Os::Errno>{sizeof(protocol::Command), 0})); in TEST_F()
90 Return(std::tuple<size_t, Os::Errno>{protocol::kMaxMessageSize, 0})); in TEST_F()
98 .WillOnce(Return(std::tuple<size_t, Os::Errno>{0, 0})); in TEST_F()
106 std::tuple<size_t, Os::Errno>{protocol::kMaxMessageSize + 1, 0})); in TEST_F()
114 .WillOnce(Return(std::tuple<size_t, Os::Errno>{0, EINTR})); in TEST_F()
129 .WillByDefault(Return(std::tuple<size_t, Os::Errno>{-1, ERANGE})); in TEST_F()
137 .WillByDefault(Return(std::tuple<size_t, Os::Errno>{0, EFAULT})); in TEST_F()
Dmock_os.h38 std::tuple<int, Errno>(const std::string& socket_name));
41 std::tuple<size_t, Errno>(int fd, void* buf, size_t buflen));
42 MOCK_METHOD3(Write, std::tuple<size_t, Os::Errno>(int fd, const void* buf,
Dos_unittest.cpp101 constexpr std::tuple<int, Os::Errno> kExpectedResult{kFakeValidFd, 0}; in TEST_F()
111 constexpr std::tuple<int, Os::Errno> kExpectedResult{Os::kInvalidFd, kError}; in TEST_F()
199 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
212 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
225 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kDatagramSize, 0}; in TEST_F()
236 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
248 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, kError}; in TEST_F()
259 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{buffer.size(), 0}; in TEST_F()
270 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{kBytesWritten, 0}; in TEST_F()
279 constexpr std::tuple<size_t, Os::Errno> kExpectedResult{0, 0}; in TEST_F()
[all …]
Dmessage_buffer_unittest.cpp177 const std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; in TEST_F()
185 const std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; in TEST_F()
210 constexpr std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; in TEST_F()
219 constexpr std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; in TEST_F()
232 constexpr std::tuple<const uint8_t*, size_t> expected{nullptr, 0}; in TEST_F()
/system/security/keystore/
Dkeymaster_worker.h129 using type = std::function<void(ErrorType, std::tuple<std::decay_t<Args>...>&&)>;
147 const std::tuple<Args...>& tuple, std::index_sequence<I...>) {
148 cb(((*keymasterDevice_).*kmfn)(std::get<I>(tuple)...));
153 void unwrap_tuple(KMFn kmfn, std::function<void(ErrorType, std::tuple<ReturnTypes...>&&)> cb,
154 const std::tuple<Args...>& tuple, std::index_sequence<I...>) {
155 std::tuple<ReturnTypes...> returnValue;
157 std::get<I>(tuple)...,
165 tuple = std::make_tuple(std::forward<Args>(args)...)]() {
166 unwrap_tuple(kmfn, std::move(cb), tuple, std::index_sequence_for<Args...>{});
171 void addRequest(KMFn kmfn, std::function<void(ErrorType, std::tuple<ReturnTypes...>&&)> cb,
[all …]
Dauth_token_table.h76 std::tuple<Error, HardwareAuthToken> FindAuthorization(const AuthorizationSet& key_info,
152 std::tuple<Error, HardwareAuthToken>
155 std::tuple<Error, HardwareAuthToken> FindTimedAuthorization(const std::vector<uint64_t>& sids,
Dblob.cpp477 std::tuple<ResponseCode, Blob, Blob>
479 std::tuple<ResponseCode, Blob, Blob> result; in readBlobs()
525 std::tuple<bool, keystore::AuthorizationSet, keystore::AuthorizationSet>
527 std::tuple<bool, keystore::AuthorizationSet, keystore::AuthorizationSet> result; in getKeyCharacteristics()
702 static std::tuple<bool, uid_t, std::string> filename2UidAlias(const std::string& filepath) { in filename2UidAlias()
703 std::tuple<bool, uid_t, std::string> result; in filename2UidAlias()
727 std::tuple<ResponseCode, std::list<LockedKeyBlobEntry>>
742 return std::tuple<ResponseCode, std::list<LockedKeyBlobEntry>&&>{ResponseCode::SYSTEM_ERROR, in list()
771 return std::tuple<ResponseCode, std::list<LockedKeyBlobEntry>&&>{ResponseCode::NO_ERROR, in list()
Dblob.h150 std::tuple<bool, keystore::AuthorizationSet, keystore::AuthorizationSet>
264 static std::tuple<ResponseCode, std::list<LockedKeyBlobEntry>>
271 std::tuple<ResponseCode, Blob, Blob> readBlobs(const std::vector<uint8_t>& aes_key,
Dauth_token_table.cpp114 std::tuple<AuthTokenTable::Error, HardwareAuthToken>
134 std::tuple<AuthTokenTable::Error, HardwareAuthToken> AuthTokenTable::FindAuthPerOpAuthorization( in FindAuthPerOpAuthorization()
148 std::tuple<AuthTokenTable::Error, HardwareAuthToken>
DKeyStore.h123 std::tuple<ResponseCode, Blob, Blob> get(const LockedKeyBlobEntry& blobfile);
136 std::tuple<ResponseCode, Blob, Blob, LockedKeyBlobEntry>
/system/security/keystore/include/keystore/
Dkeystore_promises.h40 class CallbackPromise<BnInterface, std::tuple<Results...>>
41 : public BnInterface, public std::promise<std::tuple<Results...>> {
59 std::tuple<::android::security::keystore::KeystoreResponse,
67 std::tuple<::android::security::keystore::KeystoreResponse,
/system/connectivity/wifilogd/
Dos.h66 virtual std::tuple<int, Errno> GetControlSocket(
86 virtual std::tuple<size_t, Errno> ReceiveDatagram(int fd, NONNULL void* buf,
96 virtual std::tuple<size_t, Errno> Write(int fd, NONNULL const void* buf,
Dos.cpp42 std::tuple<int, Os::Errno> Os::GetControlSocket( in GetControlSocket()
93 std::tuple<size_t, Os::Errno> Os::ReceiveDatagram(int fd, void* buf, in ReceiveDatagram()
112 std::tuple<size_t, Os::Errno> Os::Write(int fd, const void* buf, in Write()
Dmemory_reader.h38 explicit MemoryReader(std::tuple<const uint8_t*, size_t> buf) in MemoryReader()
Dmessage_buffer.h71 std::tuple<const uint8_t*, size_t> ConsumeNextMessage();
Dmessage_buffer.cpp62 std::tuple<const uint8_t*, size_t> MessageBuffer::ConsumeNextMessage() { in ConsumeNextMessage()
/system/extras/simpleperf/
Ddso.cpp162 auto tuple = SplitUrlInApk(path); in GetPathInSymFsDir() local
163 if (std::get<0>(tuple)) { in GetPathInSymFsDir()
164 std::string apk_path = std::get<1>(tuple); in GetPathInSymFsDir()
165 std::string entry_path = std::get<2>(tuple); in GetPathInSymFsDir()
426 auto tuple = SplitUrlInApk(debug_file_path_); in LoadSymbols() local
428 if (std::get<0>(tuple)) { in LoadSymbols()
429 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(std::get<1>(tuple)); in LoadSymbols()
433 ahelper->FindEntry(std::get<2>(tuple), &entry) && ahelper->GetEntryData(entry, &data)) { in LoadSymbols()
478 auto tuple = SplitUrlInApk(debug_file_path_); in GetMinExecutableVaddr() local
479 if (std::get<0>(tuple)) { in GetMinExecutableVaddr()
[all …]
DOfflineUnwinder.cpp123 auto tuple = SplitUrlInApk(entry->dso->GetDebugFilePath()); in CreateMapInfo() local
124 if (std::get<0>(tuple)) { in CreateMapInfo()
127 EmbeddedElf* elf = ApkInspector::FindElfInApkByName(std::get<1>(tuple), std::get<2>(tuple)); in CreateMapInfo()
/system/libvintf/
DRuntimeInfo-target.cpp167 const static std::vector<std::tuple<F, FetchFunction, std::string>> gFetchFunctions({ in fetchAllInformation()
177 for (const auto& tuple : gFetchFunctions) in fetchAllInformation() local
178 if ((flags & std::get<0>(tuple)) && (err = (*this.*std::get<1>(tuple))()) != OK) in fetchAllInformation()
179 LOG(WARNING) << "Cannot fetch or parse " << std::get<2>(tuple) << ": " in fetchAllInformation()
/system/testing/gtest_extras/
DIsolate.h61 int ChildProcessFn(const std::tuple<std::string, std::string>& test);
77 static std::string GetTestName(const std::tuple<std::string, std::string>& test) { in GetTestName()
98 std::vector<std::tuple<std::string, std::string>> tests_;
/system/update_engine/update_manager/
Dweekly_time_unittest.cc24 using std::tuple;
43 : public testing::TestWithParam<tuple<int /* start_day_of_week */,
102 : public testing::TestWithParam<tuple<int /* day_of_week */,
146 : public testing::TestWithParam<tuple<int /* test_day_of_week */,
Dpolicy_test_utils.cc29 using std::tuple;
100 update_state.download_errors = vector<tuple<int, ErrorCode, Time>>(); in GetDefaultUpdateState()
/system/tools/hidl/
DgenerateJava.cpp334 for (const auto &tuple : iface->allMethodsFromRoot()) { in generateJava() local
335 const Method *method = tuple.method(); in generateJava()
337 const Interface *superInterface = tuple.interface(); in generateJava()
537 for (const auto &tuple : iface->allMethodsFromRoot()) { in generateJava() local
538 const Method *method = tuple.method(); in generateJava()
540 const Interface *superInterface = tuple.interface(); in generateJava()
/system/libhwbinder/vts/performance/
DPerfTest.h27 using std::tuple;
36 static tuple<Pipe, Pipe> createPipePair();
/system/extras/perfprofd/scripts/
Dperf_proto_stack.py92 tuple = (start, length, name)
93 self._list.insert(tuple)
97 tuple = self._list.find_le(addr)
98 if addr < tuple[0] + tuple[1]:
99 return tuple[2]

123