/foundation/systemabilitymgr/samgr/interfaces/innerkits/rust/tests/cxx/ |
H A D | samgr_rust_test_mem.cpp | 28 Foo::~Foo() in ~Foo() 33 Keeper::Keeper(sptr<Foo> inner) : inner_(inner) in Keeper() 37 std::unique_ptr<sptr<Foo>> GetUniqueSptr() in GetUniqueSptr() 39 auto foo = sptr<Foo>::MakeSptr(); in GetUniqueSptr() local 40 return std::make_unique<sptr<Foo>>(std::move(foo)); in GetUniqueSptr() 43 std::unique_ptr<Keeper> KeepUniqueSptr(std::unique_ptr<sptr<Foo>> foo) in KeepUniqueSptr() argument [all...] |
/foundation/systemabilitymgr/samgr/interfaces/innerkits/rust/tests/include/ |
H A D | samgr_rust_test_mem.h | 26 struct Foo : RefBase { struct 27 Foo() = default; 28 ~Foo(); 32 typedef sptr<Foo> SptrFoo; 36 Keeper(sptr<Foo> inner); 38 sptr<Foo> inner_; 40 std::unique_ptr<sptr<Foo>> GetUniqueSptr(); 41 std::unique_ptr<Keeper> KeepUniqueSptr(std::unique_ptr<SptrFoo> foo);
|
/foundation/resourceschedule/ffrt/test/ut/testcase/ |
H A D | ut_csync.cpp | 1019 class foo { class 1049 foo f; in HWTEST_F() 1059 std::thread t5(&foo::bar, &f); // t5 runs foo::bar() on object f in HWTEST_F() 1075 foo f; in HWTEST_F() 1085 ffrt::thread t5(&foo::bar, &f); // t5 runs foo::bar() on object f in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/sdk/frame/fuzztest/softbusclientstub_fuzzer/ |
H A D | softbusclientstub_fuzzer.cpp | 26 constexpr size_t FOO_MAX_LEN = 1024; member 644 if (data == nullptr || size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
|
/foundation/communication/ipc/ipc/test/moduletest/native/common/ |
H A D | ipc_core_module_test.cpp | 31 #include "foo_service.h" 326 sptr<IFoo> fooService = testService->TestGetFooService(); in HWTEST_F() local 327 EXPECT_TRUE(fooService != nullptr); in HWTEST_F() 329 std::string fooName = fooService->GetFooName(); in HWTEST_F() local 330 EXPECT_EQ(fooName, "ReallFoo"); in HWTEST_F() 775 sptr<FooStub> fooCallback = new FooStub(); in HWTEST_F() local 776 srcParcel.WriteRemoteObject(fooCallback in HWTEST_F() 859 sptr<FooStub> fooCallback = new FooStub(); HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_capi_remote_object_unittest.cpp | 222 auto *fooProxy = OH_IPCParcel_ReadRemoteProxy(replyParcel); in HWTEST_F() local 223 EXPECT_NE(fooProxy, nullptr); in HWTEST_F() 226 OH_IPCRemoteProxy_Destroy(fooProxy); in HWTEST_F()
|
/foundation/communication/ipc/services/dbinder/test/moduletest/src/ |
H A D | rpc_client_test.cpp | 73 std::string fooName = g_rpcTestProxy->TestGetFooName(); in HWTEST_F() local 75 ASSERT_TRUE(fooName == selfFooName) << "fooName: " << fooName << " fooName_: " << selfFooName; in HWTEST_F()
|
H A D | rpc_test.cpp | 24 return fooName_; in GetFooName()
|
/foundation/communication/ipc/services/dbinder/test/moduletest/include/ |
H A D | rpc_test.h | 30 enum FooInterFaceId { enum in OHOS::IRpcFooTest 46 std::string fooName_ = "IRpcFooTest"; member in OHOS::IRpcFooTest
|
/foundation/communication/ipc/ipc/test/auxiliary/native/ |
H A D | BUILD.gn | 24 "./src/foo_service.cpp", 107 "./src/foo_service.cpp",
|
/foundation/communication/ipc/ipc/test/auxiliary/native/include/ |
H A D | test_service_skeleton.h | 24 #include "foo_service.h"
|
H A D | foo_service.h | 31 enum FooInterFaceId { enum in OHOS::IFoo 43 class FooStub : public IRemoteStub<IFoo> { class 45 virtual ~FooStub(); 61 static constexpr HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_ID_TEST, "FooStub" }; 64 class FooProxy : public IRemoteProxy<IFoo> { class 66 explicit FooProxy(const sptr<IRemoteObject> &impl); 67 ~FooProxy() = default; 72 static constexpr HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_ID_TEST, "FooProxy" }; 73 static inline BrokerDelegator<FooProxy> delegator_;
|
/foundation/communication/ipc/interfaces/innerkits/rust/src/parcel/ |
H A D | msg.rs | 93 /// struct Foo { 97 /// impl Serialize for Foo { 104 /// msg.write(&Foo { a: 1 }).unwrap(); 120 /// struct Foo { 123 /// impl Serialize for Foo { 128 /// impl Deserialize for Foo { 130 /// Ok(Foo { a: parcel.read()? }) 134 /// msg.write(&Foo { a: 1 }).unwrap(); 135 /// let foo = msg.read::<Foo>() [all...] |
H A D | exts.rs | 25 /// struct Foo { 30 /// impl Serialize for Foo { 52 /// struct Foo { 57 /// impl Deserialize for Foo {
|
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | test_service_skeleton.cpp | 185 sptr<FooStub> fooCallback = new FooStub(); in TestAsyncCallbackTrans() local 186 dataParcel.WriteRemoteObject(fooCallback->AsObject()); in TestAsyncCallbackTrans() 188 reply = fooCallback->WaitForAsyncReply(timeout); in TestAsyncCallbackTrans() 190 FooStub::CleanDecTimes(); in TestAsyncCallbackTrans() 191 fooCallback = nullptr; in TestAsyncCallbackTrans() 192 if (FooStub::GetDecTimes() != 1) { in TestAsyncCallbackTrans() 232 ZLOGE(LABEL, "null foo service"); in TestGetFooService() 738 sptr<IFoo> foo in TestNestingSend() local 768 sptr<IFoo> fooProxy = iface_cast<IFoo>(data.ReadRemoteObject()); ServerAsyncTransaction() local 790 sptr<IFoo> fooService = TestGetFooService(); ServerGetFooService() local 856 sptr<IFoo> foo = iface_cast<IFoo>(object); ServerNestingSend() local [all...] |
H A D | test_service.cpp | 137 return new FooStub(); in TestGetFooService()
|
H A D | test_service_client.cpp | 92 sptr<IFoo> foo = testService_->TestGetFooService(); in StartGetFooService() local 93 if (foo == nullptr) { in StartGetFooService() 94 ZLOGD(LABEL, "Fail to get foo service"); in StartGetFooService()
|
H A D | foo_service.cpp | 16 #include "foo_service.h" 21 std::mutex FooStub::decTimeMutex_; 22 int FooStub::decTimes_ = 0; 24 int FooStub::OnRemoteRequest(uint32_t code, in OnRemoteRequest() 51 std::string FooStub::GetFooName() in GetFooName() 56 int FooStub::WaitForAsyncReply(int timeout) in WaitForAsyncReply() 66 void FooStub::SendAsyncReply(int &replyValue) in SendAsyncReply() 73 FooStub::~FooStub() in ~FooStub() 79 void FooStub 95 FooProxy::FooProxy(const sptr<IRemoteObject> &impl) FooProxy() function in OHOS::FooProxy [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fscrypt_key_v1_ext.cpp | 260 // fscrypt key dir is like `/data/foo/bar/el1/100` in GetUserIdFromDir() 282 // fscrypt key dir is like `/data/foo/bar/el1/100` in GetTypeFromDir()
|
/foundation/filemanagement/app_file_service/test/fuzztest/backupsa_fuzzer/ |
H A D | backupsa_fuzzer.cpp | 34 constexpr size_t FOO_MAX_LEN = 1024; member 73 if (dataSize < OHOS::U32_AT_SIZE || dataSize > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
|
/foundation/filemanagement/app_file_service/test/fuzztest/servicereverse_fuzzer/ |
H A D | servicereverse_fuzzer.cpp | 37 constexpr size_t FOO_MAX_LEN = 1024; member 154 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
|
/foundation/filemanagement/app_file_service/test/unittest/file_share_ndk_test/file_share_permission_test/ |
H A D | file_share_permission_test.cpp | 939 for (int32_t i = 0; i <= FOO_MAX_LEN + 1; i++) { in HWTEST_F() 1041 std::vector<bool> errorResults(FOO_MAX_LEN + 1, true); in HWTEST_F()
|
/foundation/filemanagement/dfs_service/test/fuzztest/clouddaemonstub_fuzzer/ |
H A D | clouddaemonstub_fuzzer.cpp | 30 constexpr size_t FOO_MAX_LEN = 1024; member 80 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
|
/foundation/filemanagement/dfs_service/test/fuzztest/daemonstub_fuzzer/ |
H A D | daemonstub_fuzzer.cpp | 48 constexpr size_t FOO_MAX_LEN = 1024; member 330 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
|
/foundation/filemanagement/dfs_service/test/fuzztest/filetranslistenerstub_fuzzer/ |
H A D | filetranslistenerstub_fuzzer.cpp | 28 constexpr size_t FOO_MAX_LEN = 1024; member 97 if (size < OHOS::U32_AT_SIZE || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
|