Home
last modified time | relevance | path

Searched refs:Return (Results 1 – 25 of 184) sorted by relevance

12345678

/system/libhidl/base/include/hidl/
DStatus.h136 template<typename T> class Return; variable
150 friend Return<U> StatusOf(const Return<T> &other);
218 template<typename T> class Return : public details::return_status {
222 Return(T v) : details::return_status(), mVal{v} {} in Return() function
223 Return(Status s) : details::return_status(s) {} in Return() function
228 Return(Return&& other) noexcept = default;
229 Return& operator=(Return&&) noexcept = default;
231 ~Return() = default;
243 template<typename T> class Return<sp<T>> : public details::return_status {
247 Return(sp<T> v) : details::return_status(), mVal{v} {} in Return() function
[all …]
/system/core/trusty/keymaster/include/trusty_keymaster/
DTrustyKeymaster3Device.h33 using ::android::hardware::Return;
47 Return<void> getHardwareFeatures(getHardwareFeatures_cb _hidl_cb);
48 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
49 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
51 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
55 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
57 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
60 Return<void> attestKey(const hidl_vec<uint8_t>& keyToAttest,
63 Return<void> upgradeKey(const hidl_vec<uint8_t>& keyBlobToUpgrade,
66 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
[all …]
DTrustyKeymaster4Device.h31 using ::android::hardware::Return;
51 Return<void> getHardwareInfo(getHardwareInfo_cb _hidl_cb) override;
52 Return<void> getHmacSharingParameters(getHmacSharingParameters_cb _hidl_cb) override;
53 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params,
55 Return<void> verifyAuthorization(uint64_t challenge,
59 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
60 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
62 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
66 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
68 Return<void> importWrappedKey(const hidl_vec<uint8_t>& wrappedKeyData,
[all …]
/system/keymaster/ng/include/
DAndroidKeymaster4Device.h35 using ::android::hardware::Return;
55 Return<void> getHardwareInfo(getHardwareInfo_cb _hidl_cb) override;
56 Return<void> getHmacSharingParameters(getHmacSharingParameters_cb _hidl_cb) override;
57 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params,
59 Return<void> verifyAuthorization(uint64_t challenge,
63 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
64 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
66 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
70 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
72 Return<void> importWrappedKey(const hidl_vec<uint8_t>& wrappedKeyData,
[all …]
DAndroidKeymaster3Device.h42 using ::android::hardware::Return;
62 Return<void> getHardwareFeatures(getHardwareFeatures_cb _hidl_cb);
63 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
64 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
66 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
70 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
72 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
75 Return<void> attestKey(const hidl_vec<uint8_t>& keyToAttest,
78 Return<void> upgradeKey(const hidl_vec<uint8_t>& keyBlobToUpgrade,
81 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
[all …]
DAndroidKeymaster41Device.h34 using ::android::hardware::Return;
68 Return<V41ErrorCode> deviceLocked(bool /* passwordOnly */,
70 Return<V41ErrorCode> earlyBootEnded() override;
72 Return<void> getHardwareInfo(super::getHardwareInfo_cb _hidl_cb) override { in getHardwareInfo()
76 Return<void> getHmacSharingParameters(super::getHmacSharingParameters_cb _hidl_cb) override { in getHmacSharingParameters()
80 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params, in computeSharedHmac()
85 Return<void> verifyAuthorization(uint64_t challenge, in verifyAuthorization()
92 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override { in addRngEntropy()
96 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey()
101 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics()
[all …]
/system/security/keystore/
Dlegacy_keymaster_device_wrapper.h38 using ::android::hardware::Return;
50 Return<void> getHardwareFeatures(getHardwareFeatures_cb _hidl_cb);
51 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override;
52 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams,
54 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob,
58 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat,
60 Return<void> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob,
63 Return<void> attestKey(const hidl_vec<uint8_t>& keyToAttest,
66 Return<void> upgradeKey(const hidl_vec<uint8_t>& keyBlobToUpgrade,
69 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override;
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dreturn.h26 class Return {
42 static Return Ok() { return Return(ErrorCode::SUCCESS); } in Ok()
43 static Return Error() { return Return(ErrorCode::ERROR); } in Error()
44 static Return NoSpace(uint64_t size) { return Return(ErrorCode::NO_SPACE, size); } in NoSpace()
46 explicit Return(const FiemapStatus& status) in Return() function
52 Return(ErrorCode error_code, uint64_t required_size = 0)
/system/update_engine/
Dmock_boot_control_hal.h27 MOCK_METHOD0(getNumberSlots, ::android::hardware::Return<uint32_t>());
28 MOCK_METHOD0(getCurrentSlot, ::android::hardware::Return<uint32_t>());
30 ::android::hardware::Return<void>(markBootSuccessful_cb));
32 ::android::hardware::Return<void>(uint32_t,
35 ::android::hardware::Return<void>(uint32_t,
39 ::android::hardware::Return<::android::hardware::boot::V1_0::BoolResult>(
43 ::android::hardware::Return<::android::hardware::boot::V1_0::BoolResult>(
46 ::android::hardware::Return<void>(uint32_t, getSuffix_cb));
Dcommon_service_unittest.cc34 using testing::Return;
63 .WillOnce(Return(true)); in TEST_F()
80 .WillOnce(Return(false)); in TEST_F()
90 .WillOnce(Return(true)); in TEST_F()
98 .WillOnce(Return(false)); in TEST_F()
105 .WillOnce(Return(true)); in TEST_F()
112 .WillOnce(Return(false)); in TEST_F()
124 .WillOnce(Return(true)); in TEST_F()
134 .WillOnce(DoAll(SetArgPointee<0>(true), Return(true))); in TEST_F()
137 .WillOnce(Return(true)); in TEST_F()
[all …]
Dcertificate_checker_unittest.cc33 using ::testing::Return;
81 Return(true))); in TEST_F()
82 EXPECT_CALL(prefs_, GetString(cert_key_, _)).WillOnce(Return(false)); in TEST_F()
83 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); in TEST_F()
97 Return(true))); in TEST_F()
99 .WillOnce(DoAll(SetArgPointee<1>(digest_hex_), Return(true))); in TEST_F()
114 Return(true))); in TEST_F()
116 .WillOnce(DoAll(SetArgPointee<1>(diff_digest_hex_), Return(true))); in TEST_F()
120 EXPECT_CALL(prefs_, SetString(cert_key_, digest_hex_)).WillOnce(Return(true)); in TEST_F()
/system/netd/server/
DNetdHwService.h25 using android::hardware::Return;
34 Return<void> createOemNetwork(createOemNetwork_cb _hidl_cb) override;
35 Return<StatusCode> destroyOemNetwork(uint64_t netHandle) override;
38 Return <StatusCode> addRouteToOemNetwork(
41 Return <StatusCode> removeRouteFromOemNetwork(
44 Return <StatusCode> addInterfaceToOemNetwork(uint64_t networkHandle,
46 Return <StatusCode> removeInterfaceFromOemNetwork(uint64_t networkHandle,
48 Return <StatusCode> setIpForwardEnable(bool enable) override;
49 Return <StatusCode> setForwardingBetweenInterfaces(const hidl_string& inputIfName,
/system/libhidl/transport/memory/1.0/default/
DAshmemMemory.cpp39 Return<void> AshmemMemory::update() { in update()
44 Return<void> AshmemMemory::updateRange(uint64_t /* start */, uint64_t /* length */) { in updateRange()
49 Return<void> AshmemMemory::read() { in read()
54 Return<void> AshmemMemory::readRange(uint64_t /* start */, uint64_t /* length */) { in readRange()
59 Return<void> AshmemMemory::commit() { in commit()
64 Return<void*> AshmemMemory::getPointer() { in getPointer()
68 Return<uint64_t> AshmemMemory::getSize() { in getSize()
DAshmemMemory.h35 using ::android::hardware::Return;
45 Return<void> update() override;
46 Return<void> updateRange(uint64_t start, uint64_t length) override;
47 Return<void> read() override;
48 Return<void> readRange(uint64_t start, uint64_t length) override;
49 Return<void> commit() override;
50 Return<void*> getPointer() override;
51 Return<uint64_t> getSize() override;
/system/bt/vendor_libs/linux/interface/
Dbluetooth_hci.h35 using ::android::hardware::Return;
43 Return<void> initialize(
45 Return<void> initialize_1_1(
47 Return<void> sendHciCommand(const hidl_vec<uint8_t>& packet) override;
48 Return<void> sendAclData(const hidl_vec<uint8_t>& data) override;
49 Return<void> sendScoData(const hidl_vec<uint8_t>& data) override;
50 Return<void> sendIsoData(const hidl_vec<uint8_t>& data) override;
51 Return<void> close() override;
54 Return<void> initialize_impl(
/system/hwservicemanager/
DServiceManager.h35 using ::android::hardware::Return;
45 Return<sp<IBase>> get(const hidl_string& fqName,
47 Return<bool> add(const hidl_string& name,
50 Return<Transport> getTransport(const hidl_string& fqName,
53 Return<void> list(list_cb _hidl_cb) override;
54 Return<void> listByInterface(const hidl_string& fqInstanceName,
57 Return<bool> registerForNotifications(const hidl_string& fqName,
61 Return<void> debugDump(debugDump_cb _cb) override;
62 Return<void> registerPassthroughClient(const hidl_string &fqName,
66 Return<bool> unregisterForNotifications(const hidl_string& fqName,
[all …]
/system/update_engine/update_manager/
Dreal_updater_provider_unittest.cc43 using testing::Return;
122 .WillOnce(DoAll(SetArgPointee<0>(kUpdateBootTime), Return(true))); in SetupUpdateCompletedTime()
147 Return(true))); in TEST_F()
154 .WillOnce(Return(false)); in TEST_F()
160 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(0.0), Return(true))); in TEST_F()
166 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(0.3), Return(true))); in TEST_F()
172 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(1.0), Return(true))); in TEST_F()
178 .WillOnce(Return(false)); in TEST_F()
184 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(-2.0), Return(true))); in TEST_F()
190 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(2.0), Return(true))); in TEST_F()
[all …]
Dreal_device_policy_provider_unittest.cc55 using testing::Return;
93 ON_CALL(mock_policy_provider_, Reload()).WillByDefault(Return(false)); in SetUpNonExistentDevicePolicy()
95 .WillByDefault(Return(false)); in SetUpNonExistentDevicePolicy()
101 ON_CALL(mock_policy_provider_, Reload()).WillByDefault(Return(true)); in SetUpExistentDevicePolicy()
103 .WillByDefault(Return(true)); in SetUpExistentDevicePolicy()
209 .WillOnce(DoAll(SetArgPointee<0>(string("mychannel")), Return(true))); in TEST_F()
211 .WillOnce(Return(false)); in TEST_F()
213 .WillOnce(DoAll(SetArgPointee<0>(true), Return(true))); in TEST_F()
215 .WillOnce(DoAll(SetArgPointee<0>(string("myapp")), Return(true))); in TEST_F()
241 .WillOnce(DoAll(SetArgPointee<0>(string("")), Return(true))) in TEST_F()
[all …]
/system/tools/hidl/test/hidl_test/
DFooCallback.h17 using ::android::hardware::Return;
26 Return<void> heyItsYou(const sp<IFooCallback>& cb) override;
27 Return<bool> heyItsYouIsntIt(const sp<IFooCallback>& cb) override;
28 Return<void> heyItsTheMeaningOfLife(uint8_t tmol) override;
29 Return<void> reportResults(int64_t ns, reportResults_cb _hidl_cb) override;
30 Return<void> youBlockedMeFor(const hidl_array<int64_t, 3 /* 3 */>& callerBlockedInfo) override;
/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc31 using ::testing::Return;
45 ON_CALL(mock_avrcp_, Close(_)).WillByDefault(Return(0)); in SetUp()
51 .WillOnce(DoAll(SaveArg<3>(sdp_cb), Return(0))); in SetUpSdp()
67 .WillRepeatedly(Return(&fake_features)); in SetUpSdp()
71 .WillOnce(Return((tSDP_DISC_REC*)0x01)) // Return any non null pointer in SetUpSdp()
72 .WillOnce(Return((tSDP_DISC_REC*)0x01)); // Return any non null pointer in SetUpSdp()
76 .WillRepeatedly(DoAll(SetArgPointee<2>(AVRC_REV_1_6), Return(true))); in SetUpSdp()
98 DoAll(SetArgPointee<0>(1), SaveArgPointee<1>(&conn_cb), Return(0))); in TEST_F()
121 DoAll(SetArgPointee<0>(1), SaveArgPointee<1>(&conn_cb), Return(0))); in TEST_F()
145 DoAll(SetArgPointee<0>(1), SaveArgPointee<1>(&conn_cb), Return(0))); in TEST_F()
[all …]
/system/chre/host/hal_generic/
Dgeneric_context_hub.h50 using ::android::hardware::Return;
57 Return<void> debug(const hidl_handle& fd, const hidl_vec<hidl_string>& options) override;
60 Return<void> getHubs(getHubs_cb _hidl_cb) override;
61 Return<Result> registerCallback(uint32_t hubId, const sp<IContexthubCallback>& cb) override;
62 Return<Result> sendMessageToHub(uint32_t hubId, const ContextHubMsg& msg) override;
63Return<Result> loadNanoApp(uint32_t hubId, const NanoAppBinary& appBinary, uint32_t transactionId)…
64 Return<Result> unloadNanoApp(uint32_t hubId, uint64_t appId, uint32_t transactionId) override;
65 Return<Result> enableNanoApp(uint32_t hubId, uint64_t appId, uint32_t transactionId) override;
66 Return<Result> disableNanoApp(uint32_t hubId, uint64_t appId, uint32_t transactionId) override;
67 Return<Result> queryApps(uint32_t hubId) override;
[all …]
/system/core/libunwindstack/tests/
DDwarfSectionTest.cpp68 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(nullptr)); in TEST_F()
79 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
91 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
93 .WillOnce(::testing::Return(false)); in TEST_F()
105 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
107 .WillOnce(::testing::Return(true)); in TEST_F()
111 .WillOnce(::testing::Return(true)); in TEST_F()
131 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F()
137 .WillRepeatedly(::testing::Return(true)); in TEST_F()
151 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde0)); in TEST_F()
[all …]
/system/bt/test/rootcanal/
Dbluetooth_hci.h45 ::android::hardware::Return<void> initialize(
47 ::android::hardware::Return<void> initialize_1_1(
50 …::android::hardware::Return<void> sendHciCommand(const ::android::hardware::hidl_vec<uint8_t>& pac…
52 …::android::hardware::Return<void> sendAclData(const ::android::hardware::hidl_vec<uint8_t>& packet…
54 …::android::hardware::Return<void> sendScoData(const ::android::hardware::hidl_vec<uint8_t>& packet…
56 ::android::hardware::Return<void> sendIsoData(
59 ::android::hardware::Return<void> close() override;
66 ::android::hardware::Return<void> initialize_impl(
/system/netd/libnetdutils/
DFdTest.cpp26 using testing::Return;
75 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(status::ok)); in TEST_F()
85 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(status::ok)); in TEST_F()
93 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(status::ok)); in TEST_F()
108 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F()
127 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F()
136 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(status::ok)); in TEST_F()
142 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(statusFromErrno(EINTR, "test"))); in TEST_F()
/system/connectivity/wifilogd/tests/
Dmain_loop_unittest.cpp38 using ::testing::Return;
50 .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()
105 .WillOnce(Return( 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()

12345678