/system/libhidl/base/include/hidl/ |
D | Status.h | 136 template<typename T> class Return; variable 145 friend Return<U> StatusOf(const Return<T> &other); 211 template<typename T> class Return : public details::return_status { 215 Return(T v) : details::return_status(), mVal{v} {} in Return() function 216 Return(Status s) : details::return_status(s) {} in Return() function 221 Return(Return&& other) noexcept = default; 222 Return& operator=(Return&&) noexcept = default; 224 ~Return() = default; 236 template<typename T> class Return<sp<T>> : public details::return_status { 240 Return(sp<T> v) : details::return_status(), mVal{v} {} in Return() function [all …]
|
/system/core/trusty/keymaster/include/trusty_keymaster/ |
D | TrustyKeymaster3Device.h | 33 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 …]
|
/system/keymaster/ng/include/ |
D | AndroidKeymaster4Device.h | 34 using ::android::hardware::Return; 54 Return<void> getHardwareInfo(getHardwareInfo_cb _hidl_cb) override; 55 Return<void> getHmacSharingParameters(getHmacSharingParameters_cb _hidl_cb) override; 56 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params, 58 Return<void> verifyAuthorization(uint64_t challenge, 62 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override; 63 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 65 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 69 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 71 Return<void> importWrappedKey(const hidl_vec<uint8_t>& wrappedKeyData, [all …]
|
D | AndroidKeymaster3Device.h | 42 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 …]
|
/system/security/keystore/ |
D | legacy_keymaster_device_wrapper.h | 38 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/update_engine/ |
D | mock_boot_control_hal.h | 27 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));
|
D | common_service_unittest.cc | 34 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() 110 .WillOnce(Return(true)); in TEST_F() 120 .WillOnce(DoAll(SetArgPointee<0>(true), Return(true))); in TEST_F() 123 .WillOnce(Return(true)); in TEST_F() 135 .WillOnce(Return(false)); in TEST_F() 159 EXPECT_CALL(*mock_update_attempter_, ResetStatus()).WillOnce(Return(true)); in TEST_F() [all …]
|
D | certificate_checker_unittest.cc | 33 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/ |
D | NetdHwService.h | 25 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/ |
D | AshmemMemory.cpp | 39 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()
|
D | AshmemMemory.h | 35 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/libhidl/libhidlcache/ |
D | HidlMemoryCache.cpp | 35 Return<void> update() override { return mHeap->update(); } in update() 36 Return<void> read() override { return mHeap->read(); } in read() 37 Return<void> updateRange(uint64_t start, uint64_t length) override { in updateRange() 40 Return<void> readRange(uint64_t start, uint64_t length) override { in readRange() 43 Return<void> commit() override { return mHeap->commit(); } in commit() 45 Return<void*> getPointer() override { return mHeap->getPointer(); } in getPointer() 46 Return<uint64_t> getSize() override { return mHeap->getSize(); } in getSize() 70 Return<void> readRange(uint64_t start, uint64_t length) override { in readRange() 77 Return<void> updateRange(uint64_t start, uint64_t length) override { in updateRange() 84 Return<void> read() override { return this->readRange(0, mSize); } in read() [all …]
|
/system/hwservicemanager/ |
D | ServiceManager.h | 36 using ::android::hardware::Return; 46 Return<sp<IBase>> get(const hidl_string& fqName, 48 Return<bool> add(const hidl_string& name, 51 Return<Transport> getTransport(const hidl_string& fqName, 54 Return<void> list(list_cb _hidl_cb) override; 55 Return<void> listByInterface(const hidl_string& fqInstanceName, 58 Return<bool> registerForNotifications(const hidl_string& fqName, 62 Return<void> debugDump(debugDump_cb _cb) override; 63 Return<void> registerPassthroughClient(const hidl_string &fqName, 67 Return<bool> unregisterForNotifications(const hidl_string& fqName, [all …]
|
/system/update_engine/update_manager/ |
D | real_updater_provider_unittest.cc | 43 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 …]
|
D | real_device_policy_provider_unittest.cc | 55 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 .WillRepeatedly(DoAll(SetArgPointee<0>(2), Return(true))); in TEST_F() [all …]
|
/system/tools/hidl/test/hidl_test/ |
D | FooCallback.h | 17 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/ |
D | avrcp_connection_handler_test.cc | 28 using ::testing::Return; 44 ON_CALL(mock_avrcp_, Close(_)).WillByDefault(Return(0)); in SetUp() 50 .WillOnce(DoAll(SaveArg<3>(sdp_cb), Return(0))); in SetUpSdp() 66 .WillRepeatedly(Return(&fake_features)); in SetUpSdp() 70 .WillOnce(Return((tSDP_DISC_REC*)0x01)) // Return any non null pointer in SetUpSdp() 71 .WillOnce(Return((tSDP_DISC_REC*)0x01)); // Return any non null pointer in SetUpSdp() 75 .WillRepeatedly(DoAll(SetArgPointee<2>(AVRC_REV_1_6), Return(true))); in SetUpSdp() 97 DoAll(SetArgPointee<0>(1), SaveArgPointee<1>(&conn_cb), Return(0))); in TEST_F() 120 DoAll(SetArgPointee<0>(1), SaveArgPointee<1>(&conn_cb), Return(0))); in TEST_F() 144 DoAll(SetArgPointee<0>(1), SaveArgPointee<1>(&conn_cb), Return(0))); in TEST_F() [all …]
|
/system/bt/vendor_libs/linux/interface/ |
D | bluetooth_hci.h | 34 using ::android::hardware::Return; 42 Return<void> initialize( 44 Return<void> sendHciCommand(const hidl_vec<uint8_t>& packet) override; 45 Return<void> sendAclData(const hidl_vec<uint8_t>& data) override; 46 Return<void> sendScoData(const hidl_vec<uint8_t>& data) override; 47 Return<void> close() override;
|
/system/connectivity/wificond/tests/ |
D | scanner_unittest.cpp | 45 using ::testing::Return; 130 .WillByDefault(Return(offload_scan_manager_)); in SetUp() 132 .WillByDefault(Return(offload_scan_callback_interface_)); in SetUp() 162 WillOnce(Return(true)); in TEST_F() 175 WillOnce(Return(true)); in TEST_F() 190 WillOnce(Return(true)); in TEST_F() 205 WillOnce(Return(true)); in TEST_F() 220 WillOnce(Return(true)); in TEST_F() 234 WillOnce(Return(true)); in TEST_F() 248 WillOnce(Return(true)); in TEST_F() [all …]
|
D | mock_offload.h | 42 android::hardware::Return<void>( 47 android::hardware::Return<void>(OnScanStatsCallback cb)); 49 android::hardware::Return<void>(uint32_t delayMs, 51 MOCK_METHOD0(unsubscribeScanResults, android::hardware::Return<void>()); 54 android::hardware::Return<void>(
|
/system/core/libunwindstack/tests/ |
D | DwarfSectionTest.cpp | 61 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(nullptr)); in TEST_F() 72 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 84 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 86 .WillOnce(::testing::Return(false)); in TEST_F() 98 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 100 .WillOnce(::testing::Return(true)); in TEST_F() 104 .WillOnce(::testing::Return(true)); in TEST_F() 124 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 130 .WillRepeatedly(::testing::Return(true)); in TEST_F() 144 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde0)); in TEST_F() [all …]
|
/system/chre/host/hal_generic/ |
D | generic_context_hub.h | 50 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; 63 …Return<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/netd/libnetdutils/ |
D | FdTest.cpp | 26 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() 107 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F() 124 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F() 133 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(status::ok)); in TEST_F() 139 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(statusFromErrno(EINTR, "test"))); in TEST_F()
|
D | SyscallsTest.cpp | 36 using testing::Return; 62 EXPECT_CALL(mSyscalls, open(kPath, kFlags, kMode)).WillOnce(Return(ByMove(UniqueFd(kFd)))); in TEST_F() 63 EXPECT_CALL(mSyscalls, close(kFd)).WillOnce(Return(status::ok)); in TEST_F() 87 EXPECT_CALL(mSyscalls, getsockname(kFd, _, _)).WillOnce(Return(kError)); in TEST_F() 100 .WillOnce(Return(status::ok)); in TEST_F() 106 .WillOnce(Return(kError)); in TEST_F() 120 .WillOnce(Return(status::ok)); in TEST_F() 126 .WillOnce(Return(kError)); in TEST_F() 137 .WillOnce(Return(status::ok)); in TEST_F() 143 .WillOnce(Return(kError)); in TEST_F() [all …]
|
/system/connectivity/wifilogd/tests/ |
D | main_loop_unittest.cpp | 38 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()
|