/system/libhidl/base/include/hidl/ |
D | Status.h | 136 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/ |
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 …]
|
D | TrustyKeymaster4Device.h | 31 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/ |
D | AndroidKeymaster4Device.h | 36 using ::android::hardware::Return; 57 Return<void> getHardwareInfo(getHardwareInfo_cb _hidl_cb) override; 58 Return<void> getHmacSharingParameters(getHmacSharingParameters_cb _hidl_cb) override; 59 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params, 61 Return<void> verifyAuthorization(uint64_t challenge, 65 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override; 66 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, 68 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, 72 Return<void> importKey(const hidl_vec<KeyParameter>& params, KeyFormat keyFormat, 74 Return<void> importWrappedKey(const hidl_vec<uint8_t>& wrappedKeyData, [all …]
|
D | AndroidKeymaster3Device.h | 38 using ::android::hardware::Return; 61 Return<void> getHardwareFeatures(getHardwareFeatures_cb _hidl_cb); 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> exportKey(KeyFormat exportFormat, const hidl_vec<uint8_t>& keyBlob, 74 Return<void> attestKey(const hidl_vec<uint8_t>& keyToAttest, 77 Return<void> upgradeKey(const hidl_vec<uint8_t>& keyBlobToUpgrade, 80 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override; [all …]
|
D | AndroidKeymaster41Device.h | 34 using ::android::hardware::Return; 69 Return<V41ErrorCode> deviceLocked(bool /* passwordOnly */, 71 Return<V41ErrorCode> earlyBootEnded() override; 73 Return<void> getHardwareInfo(super::getHardwareInfo_cb _hidl_cb) override { in getHardwareInfo() 77 Return<void> getHmacSharingParameters(super::getHmacSharingParameters_cb _hidl_cb) override { in getHmacSharingParameters() 81 Return<void> computeSharedHmac(const hidl_vec<HmacSharingParameters>& params, in computeSharedHmac() 86 Return<void> verifyAuthorization(uint64_t challenge, in verifyAuthorization() 93 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override { in addRngEntropy() 97 Return<void> generateKey(const hidl_vec<KeyParameter>& keyParams, in generateKey() 102 Return<void> getKeyCharacteristics(const hidl_vec<uint8_t>& keyBlob, in getKeyCharacteristics() [all …]
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | return.h | 26 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/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/bt/vendor_libs/linux/interface/ |
D | bluetooth_hci.h | 35 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/ |
D | ServiceManager.h | 35 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/aosp/ |
D | cleanup_previous_update_action_unittest.cc | 38 using testing::Return; 60 .WillByDefault(Return(&dynamic_control_)); in SetUp() 61 ON_CALL(boot_control_, GetCurrentSlot()).WillByDefault(Return(0)); in SetUp() 63 .WillByDefault(Return(&mock_stats_)); in SetUp() 88 .WillRepeatedly(Return(NONE)); in TEST_F() 103 .WillRepeatedly(Return(LAUNCH)); in TEST_F() 108 .WillRepeatedly(Return(1)); in TEST_F() 111 .WillRepeatedly(Return(true)); in TEST_F() 114 .WillOnce(Return(UpdateState::Merging)) in TEST_F() 115 .WillRepeatedly(Return(UpdateState::MergeCompleted)); in TEST_F() [all …]
|
/system/core/healthd/ |
D | healthd_mode_charger_test.cpp | 32 using android::hardware::Return; 86 MOCK_METHOD(Return<::android::hardware::health::V2_0::Result>, registerCallback, 88 MOCK_METHOD(Return<::android::hardware::health::V2_0::Result>, unregisterCallback, 90 MOCK_METHOD(Return<::android::hardware::health::V2_0::Result>, update, ()); 91 MOCK_METHOD(Return<void>, getChargeCounter, (getChargeCounter_cb _hidl_cb)); 92 MOCK_METHOD(Return<void>, getCurrentNow, (getCurrentNow_cb _hidl_cb)); 93 MOCK_METHOD(Return<void>, getCurrentAverage, (getCurrentAverage_cb _hidl_cb)); 94 MOCK_METHOD(Return<void>, getCapacity, (getCapacity_cb _hidl_cb)); 95 MOCK_METHOD(Return<void>, getEnergyCounter, (getEnergyCounter_cb _hidl_cb)); 96 MOCK_METHOD(Return<void>, getChargeStatus, (getChargeStatus_cb _hidl_cb)); [all …]
|
/system/bt/test/mock/ |
D | mock_android_hardware_audio.cc | 28 ::android::hardware::Return<void> setHALInstrumentation() { return Void(); } in setHALInstrumentation() 29 ::android::hardware::Return<bool> linkToDeath( in linkToDeath() 33 ::android::hardware::Return<void> ping() { return Void(); } in ping() 34 ::android::hardware::Return<void> getDebugInfo( in getDebugInfo() 38 ::android::hardware::Return<void> notifySyspropsChanged() { return Void(); } in notifySyspropsChanged() 39 ::android::hardware::Return<bool> unlinkToDeath( in unlinkToDeath()
|
/system/update_engine/cros/ |
D | common_service_unittest.cc | 33 using testing::Return; 59 .WillOnce(Return(true)); in TEST_F() 76 .WillOnce(Return(false)); in TEST_F() 86 .WillOnce(Return(true)); in TEST_F() 94 .WillOnce(Return(false)); in TEST_F() 101 .WillOnce(Return(true)); in TEST_F() 108 .WillOnce(Return(false)); in TEST_F() 120 .WillOnce(Return(true)); in TEST_F() 130 .WillOnce(DoAll(SetArgPointee<0>(true), Return(true))); in TEST_F() 133 .WillOnce(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/update_engine/update_manager/ |
D | real_updater_provider_unittest.cc | 40 using testing::Return; 117 .WillOnce(DoAll(SetArgPointee<0>(kUpdateBootTime), Return(true))); in SetupUpdateCompletedTime() 142 Return(true))); in TEST_F() 149 .WillOnce(Return(false)); in TEST_F() 155 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(0.0), Return(true))); in TEST_F() 161 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(0.3), Return(true))); in TEST_F() 167 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(1.0), Return(true))); in TEST_F() 173 .WillOnce(Return(false)); in TEST_F() 179 .WillOnce(DoAll(ActionSetUpdateEngineStatusProgress(-2.0), Return(true))); in TEST_F() 185 .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() 213 .WillOnce(DoAll(SetArgPointee<0>(string("mychannel")), Return(true))); in TEST_F() 215 .WillOnce(Return(false)); in TEST_F() 217 .WillOnce(DoAll(SetArgPointee<0>(true), Return(true))); in TEST_F() 219 .WillOnce(DoAll(SetArgPointee<0>(string("myapp")), Return(true))); in TEST_F() 245 .WillOnce(DoAll(SetArgPointee<0>(string("")), Return(true))) in TEST_F() [all …]
|
/system/bt/profile/avrcp/tests/ |
D | avrcp_connection_handler_test.cc | 30 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/update_engine/ |
D | download_action_android_unittest.cc | 46 using testing::Return; 64 .WillRepeatedly(DoAll(SetArgPointee<1>(0L), Return(true))); in TEST_F() 66 .WillRepeatedly(DoAll(SetArgPointee<1>(METADATA_SIZE), Return(true))); in TEST_F() 68 .WillRepeatedly(DoAll(SetArgPointee<1>(SIGNATURE_SIZE), Return(true))); in TEST_F() 70 .WillRepeatedly(DoAll(SetArgPointee<1>(0L), Return(true))); in TEST_F() 72 .WillRepeatedly(DoAll(SetArgPointee<1>(data), Return(true))); in TEST_F() 128 .WillRepeatedly(DoAll(SetArgPointee<1>(0L), Return(true))); in TEST_F() 130 .WillRepeatedly(DoAll(SetArgPointee<1>(metadata_size), Return(true))); in TEST_F() 133 DoAll(SetArgPointee<1>(signature_blob_length), Return(true))); in TEST_F() 135 .WillRepeatedly(DoAll(SetArgPointee<1>(0L), 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/bt/test/rootcanal/ |
D | bluetooth_hci.h | 45 ::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/ |
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() 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/unwinding/libunwindstack/tests/ |
D | DwarfSectionTest.cpp | 68 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(nullptr)); in TEST_F() 80 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 93 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 95 .WillOnce(::testing::Return(false)); in TEST_F() 108 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 110 .WillOnce(::testing::Return(true)); in TEST_F() 114 .WillOnce(::testing::Return(true)); in TEST_F() 135 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde)); in TEST_F() 141 .WillRepeatedly(::testing::Return(true)); in TEST_F() 156 EXPECT_CALL(*section_, GetFdeFromPc(0x1000)).WillOnce(::testing::Return(&fde0)); in TEST_F() [all …]
|